text:
Create search functionality

#22 exclude validation of empty search field

Scenario 1: Searching by Company Name with Exact Match
When I enter a valid company name "Сільпо" in the search bar
And I click on the search button
Then the system display a list of companies with an exact match for "Сільпо"
And the results sorted in alphabetical order by company name
And the list should include companies with an exact match to the search term "Сільпо"
Yesterday added some changes to this task:
And the counter should show how many search results were found
I didn't add this thing yet
Scenario 2: Searching by Partial Company Name
When I enter a partial company name "Сіль" in the search bar
The system display a list of companies that contain the partial term "Сіль" in their name
And the results sorted in alphabetical order by company name
And the list only include companies with names containing the partial term "Сіль"
Yesterday added some changes to this task:
And the counter should show how many search results were found
I didn't add this thing yet
Scenario 3: Empty Search Input
Given I am on the main page
When I leave the search bar empty
And I click on the search button
Then the system does nothing_**
This Scenario edited yesterday, I didn't change this thing yet from previous scenario
Scenario 4: No Search Results
Given I am on the main page
When I enter a valid company name "Samsung" in the search bar
And I click on the search button
Then the system should display a message indicating that there are no companies matching the search term "Samsung."
And the counter should show 0 search results
This Scenario edited yesterday, I didn't change this thing yet from previous scenario
Scenario 5: Case Insensitive Search
When I enter a company name "Сільпо" in the search bar, with different letter cases (e.g., "сільпо" or "СІЛЬПО")
The system treat the search as case-insensitive and display results for "Сільпо" regardless of letter case
And the results sorted in alphabetical order by company name
And the list only include companies with names matching "Сільпо" in any letter case.
Yesterday added some changes to this task:
And the counter should show how many search results were found
I didn't add this thing yet

#156

repo: ita-social-projects/Forum


text:
[Search] Search functionality doesn't work by tags

Environment: Windows 8.1 x64, Google Chrome 83.0.4103.97 (64-bit)
Reproducible: always
Build found: commit 147fa44
Preconditions:

News with tag "Initiatives" is available

Steps to reproduce:

Go to https://ita-social-projects.github.io/GreenCityClient/#/welcome
Click on the 'Search' button
Enter "Initiatives" in the search field

Actual result:
Displays content that contains "Initiatives" without news tagged with "Initiatives"

Expected result:
Displays content that contains "Initiatives" including news tagged with "Initiatives"
User Story #545
Test case on JIRA 763

Verified

source: gharchive/issue

repo: ita-social-projects/GreenCity

license: MIT

license_type: permissive

license_source: github-api


text:
[Message] There is no unread message marker on the "Повідомлення" page.

Environment: Windows 10, 64-bit, Google Chrome 107.0.5304.107.
Reproducible: always.
Preconditions

Go to https://oos.dmytrominochkin.cloud/#
Log in as SP.
The service provider sent a message to the parent.

Steps to reproduce

Log in as Parent.
Go to the "Повідомлення" page.
Pay attention to a new message from the service provider.

Actual result
The Parent does not have an unread message marker on the "Повідомлення" page.

Expected result
When the service provider sends a new message to the parent, the parent sees a new message with an unread message marker (blue vertical bar) on the "Повідомлення" page.
Labels to be added
"Bug", Priority ("pri: low"), Severity ("severity: low"), Type ("UI").

This bug isn't reproduced anymore. @ViktoriiaHrytchyna Could you please validate it?

@SergeyGSA There is a blocker to verify this bug.

The parent doesn`t get notifications about new messages. After opening the 'Messages' page as a parent there are no new unread messages. Notifications and new messages appeared after refreshing the page. Or (as was mentioned in 'steps to reproduce') after the user login as a parent after the message was sent from the service provider
The service provider, as well, doesn`t get notifications about new messages. But in this case, after opening the 'Messages' page, new message is displayed and marked as unread.

Further improvements to the functionality of sending messages (according to the comment above)  are delayed.

authors: OMGaranina SergeyGSA ViktoriiaHrytchyna

repo: ita-social-projects/OoS-Frontend


text:
[SKIP for R1] As a user (any role) I want to view the tagline on the Main Page so that I will immediately understand the main idea of the site.

As a user (any role) I want to view the tagline on the Main Page so that I will immediately understand the main idea of the site.
Assumption:

It will be on one line.
The slogan text, the size of the letters, the indentation from the extreme letters to the line, the length of the line have not yet been approved.
This height is 100 pixels.

Acceptance Criteria:

The tagline is located on the Main Page between the “Important section” and the “Newest section”.
The place for the slogan must be fixed.
The slogan is aligned to the center of the page.
The empty space to the left and right of the slogan is filled with a line.

The new design of the slogan must match the design on the Figma link.

BA check 19/07/21
Not accepted.
The tagline has been skipped for R1

authors: EleonoraBudanova vitaliyhere

repo: ita-social-projects/dokazovi-be


text:
MANCATA ACQUISIZIONE PIANO IN SEDE DI CERTIFICAZIONE

Salve, scrivo dal Comune di Villacidro che è subentrato nel sistema ANPR dal 21/09/2019,
Ci siamo accorti che ogni qual volta effettuiamo una variazione di indirizzo nel quale vi è l'indicazione del piano, il sistema acquisisce correttamente l'indirizzo completo di interno riscontrabile dalla consultazione scheda, ma in sede di certificazione omette l'indicazione del Piano.
Il problema riguarda non solo le nuove variazione ma anche gli indirizzi passati in automatico in sede di migrazione. i soggetti  interessati sono un infinità e quasi impossibili da segnalare uno ad uno....
Come risolvere?

Buonasera ad oggi nelle certificazioni anagrafiche di residenza il piano non viene stampato perchè non previsto.
Il dato (se fornito) è comunque registrato in ANPR.
Nel caso ci sia la necessità di aggiungere l'informazione alle certificazioni anagrafiche in questione per noi è possibile farlo agevolmente con un adeguamento del servizio.
Facciamo un'analisi della segnalazione e vi facciamo sapere.
Cordiali saluti.

Ringraziando per il celere chiarimento, si comunica che per noi è assai importante l'aggiunta dell'informazione nel nella certificazione, in quanto la carenza del piano sta creando problemi per la tassazione Tares e Imu. Grazie

Mi inserisco per chiedere, al fine di valutare se accogliere la vostra richiesta, per quale motivo l'assenza del piano nei certificati possa creare problemi alla Tares o all'Imu. I cittadini devono presentare dei certificati di residenza? Grazie

Salve, l'assenza del piano ha inizialmente  generato delle incertezze  derivanti dalla discordanza del dato da interrogazioni con quello delle certificazioni tra gli uffici comunali,  ma se l'omissione del piano in sede di certificazione,  è disposizione di sogei - ministero,  il comune scrivente non potrà che prenderne atto....
Purtroppo dovremo sorbirci la titubanza del cittadino che quando effettua un cambio di residenza da un numero civico ad un altro appartamento con medesimo n civico ma con piano differente, si vede una  certificazione (da utilizzare per usi privati:   banca, lavoro, poste,  ecc.) con con il n. civico precedente alla variazione, ...... col risultato che si infuria con l'impiegato d'anagrafe. Infatti al cittadino poco gli importa delle politiche di Sogei o del Ministero, se egli ha dichiarato di risiedere alla Via tal dei tali al n 1 P1  egli vuole la certificazione corrispondente.
Si ragioni inoltre sulle richieste di conferma dati in sede di controllo delle autocertificazioni prodotte dai cittadini alle pubbliche amministrazioni, alle quali il comune  da esecuzione con l'invio di certificazione di residenza o famiglia,  o alle richieste di tribunali o alle casistiche legate ai minori e affidi con scissioni di famiglie nello stesso edificio ma in piani differenti.
E per le certificazioni storiche? Nel tempo il cittadino si troverà con delle vicende dominiciliari che attestano che si è spostato dal n. X allo stesso n: X ??
Per quella che è la nostra esperienza ventennale oseremo dire che la specifica del piano nella certificazione sia necessaria e inderogabile, anche alla luce dei controlli che si profileranno per il reddito di cittadinanza e tutte le casistiche in cui il cittadino debba giustificare in sede giudiziale le proprie ragioni e i propri spostamenti.
nell'ottica di una proficua collaborazione ed in attesa Vs. riscontro si porgono cordiali saluti
Maristella Ecca

cortesemente intervengo in argomento perchè gestendo un anagrafe con un immobile di 16 piani su due scale l'assenza del piano nelle certificazioni impedisce le notifiche a tutti.
Compresi avvocati, messi comunali,  che si trovano il numero civico, l'interno e la scala ma non il piano. Per noi è essenziale che il dato sia presente nelle certificazioni

repo: italia/anpr


text:
Esito AE: Soggetto non individuato in AT - Codice fiscale NON variato (Codice 12)

Buongiorno,
Per il soggetto id scheda anpr 31350206, non riusciamo a variare il nome, data nascita e CF, ne con mutazione tutti i dati e ne con la risoluzione CF confermando i dati AE.
I dati giusti sono quelli presenti in AE
Errore
Esito AE: Soggetto non individuato in AT - Codice fiscale NON variato (Codice 12)
Ricordo che in passato avevate svalidato voi il CF, è possibile risolvere gentilmente il problema?
Grazie
Cordiali saluti
Dante Della Strada
Comune di Cesena

Il codice fiscale è stato svalidato, potete procedere con l'operazione di mutazione dei dati

authors: DanteComuneCesena frmariani


text:
Caso d'uso 1312 - TRASCRIZIONE ATTO DI NASCITA AVVENUTA ALL'ESTERO SU RICHIESA DI CHI HA INTERESSE ALLA TRASCRIZIONE

Buongiorno, la segnalazione riguarda sia la web app che la gestione tramite servizi.
Se viene impostata come tipo richiesta la scelta "VERBALE"

nella sezione degli allegati viene comunque chiesto obbligatoriamente il documento "Richiesta di Trascrizione".

Se la richiesta è verbale questo documento in teoria non dovrebbe esserlo.
O c'è qualche motivo che sia noi che il nostro comune di test non stiamo considerando per il quale questo documento è sempre considerato obbligatorio?
Grazie
Pa Digitale Spa

Buongionro, verifichiamo e le facciamo sapere

Con la versione 1.22.0 è stata corretta la segnalazione. Chiudiamo pertanto la issue. In caso di ulteriori segnalazioni preghiamo di aprire una issue dedicata

authors: MarcoSalaPad asqueglia

repo: italia/ansc


text:
Docker compose broken?

do you people have any clue about what is going on here? how is everything supposed to be?
here the log when docker compose up gets run on WSL (ubuntu, latest version)
$ docker compose up
[+] Running 4/0
 ✔ Container spid-cie-oidc-django-wallet.trust-anchor.org-1  Created                                                                       0.0s
 ✔ Container spid-cie-oidc-django-trust-anchor.org-1         Created                                                                       0.0s
 ✔ Container spid-cie-oidc-django-relying-party.org-1        Created                                                                       0.0s
 ✔ Container spid-cie-oidc-django-cie-provider.org-1         Created                                                                       0.0s
Attaching to spid-cie-oidc-django-cie-provider.org-1, spid-cie-oidc-django-relying-party.org-1, spid-cie-oidc-django-trust-anchor.org-1, spid-cie-oidc-django-wallet.trust-anchor.org-1
spid-cie-oidc-django-trust-anchor.org-1         | python3: can't open file '/django-project/manage.py': [Errno 2] No such file or directory
spid-cie-oidc-django-wallet.trust-anchor.org-1  | python3: can't open file '/django-project/manage.py': [Errno 2] No such file or directory
spid-cie-oidc-django-wallet.trust-anchor.org-1 exited with code 2
spid-cie-oidc-django-cie-provider.org-1         | python3: can't open file '/django-project/manage.py': [Errno 2] No such file or directory
spid-cie-oidc-django-trust-anchor.org-1 exited with code 2
spid-cie-oidc-django-relying-party.org-1        | python3: can't open file '/django-project/manage.py': [Errno 2] No such file or directory
spid-cie-oidc-django-cie-provider.org-1 exited with code 2
spid-cie-oidc-django-relying-party.org-1 exited with code 2

i also tried to uncomment the lines inside the docker-compose file so it would build directly from the current version but even that did not work, i am working on main at the latest commit (I did a git reset) 2b0c2ef Merge pull request #285 from vernans/add-migrations
also i do lack a localsettings.py but the thing is that i also don't know it's supposed path or format and i also don't really need to customize anything for now (I hoped the docker compose would just run, or at least warn me about the lack of an .env file)
Status
update1: apparently you wanted the developer to copy-paste the examples directory and rename it as examples-docker? why would you do that? still broken but at least know i know that it wants the configuration file
update2: maybe having to configure the image using entire files was not really the reason they invented docker in the first place, i hope i will be able to figure out how to fix it and if i will have the time i will try to introduce good defaults, also the .env file can be useful.
update3: now it decided that it won't parse the records in the json files, cool django.core.serializers.base.DeserializationError: Problem installing fixture '/django-project/dumps/example.json':
update4: okay, so, since for some reason the restoring of the dump is likely just incompatible with whatever models django currently migrates the db to i just replaced all files with a json containing an empty array like this [], now the fun part is figuring out why every page the readme said existed just returns error 404, the Django admin page does that as well.
update5: so, turns out that Django is set up to be sensitive to the last slash / in the URL, and the thing is that you won't ever know when it wants one or when it does not

A new Docker image has been released, and the migrations will apply correctly now. Please try again.

A new Docker image has been released, and the migrations will apply correctly now. Please try again (NB delete the previous docker image, the examples-docker folder, and restart the docker-prepare.sh script).

@rglauco and it does, thank you, do you by any chance know if someone did set a default username/password for the demo or should do it myself?

@rglauco thank you

authors: gabrielesilinic rglauco

repo: italia/spid-cie-oidc-django


text:
🛑 CulturalGo Platform is down

In 15f803e, CulturalGo Platform (https://culturalgo.com/plataform) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CulturalGo Platform is back up in ed02a87 after 12 minutes.

repo: itbm-services/monitoring


text:
🛑 SuccesGo is down

In 801c39f, SuccesGo (https://success.culturalgo.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SuccesGo is back up in 1bd9bbd after 14 minutes.


text:
Design proposal for /itchysats/rollover protocol

Context
Here is what we know about the current rollover protocol:

We have an instance of the two-generals problem. Either party should only move to the new state if the other party completed the protocol successfully. We tried to naively solve this with ACKs but literature tells us that this doesn't do anything.
During rollover, the parties share revocation keys. Once a revocation key is shared, we have to assume it can be used and thus we MUST NOT go back to a previous commit transaction.
The current protocol does not explicitly state, which commit transaction we are rolling over over from. This creates problems in case we run into a 2-general situation where one party completes successfully and they other party does not.

New protocol
The design proposal for a new protocol is as follows:
sequenceDiagram
	Dialer->>Listener: Open substream `/itchysats/rollover`
	Note right of Listener: Contains CfdId, current commit transaction and `BitMexPriceEventId`
	Listener->>Dialer: Send Accept
	Note right of Listener: Reject on unknown CFD, commit transaction or bad event ID
	Dialer->>Listener: Send PubKeys
	Listener->>Dialer: Send PubKeys
	Dialer->>Listener: Send Signatures
	Listener->>Dialer: Send Signatures
	Dialer->>Listener: Send SecretKey
	Listener->>Dialer: Send SecretKey
	Dialer->>Listener: Send Done

struct Accept {
	funding_rate: f64
}

struct PubKeys {
	revocation: Bytes,
	publish: Bytes,
}

struct Signatures {
    commit: EcdsaAdaptorSignature,
    cets: HashMap<String, Vec<(RangeInclusive<u64>, EcdsaAdaptorSignature)>>,
    refund: Signature,
}

struct SecretKey {
	revocation: Bytes
}

The pillars of the new design are:

Sending the current commit transaction and event ID allows us to detect state disparity
Send messages one after the other to get implicit ACKs
Send final ACK to know whether dialer succeeded
Listener is idempotent IF previous rollover failed (no ACK received)

Detailed explanation
The two-generals problem tells us that it is not possible for both parties to know whether they other party successfully completed the protocol. However, what is possible is for the listener to know, whether the dialer succeeded if we add a final Done message. If the listener receives this, they know that the dialer completed successfully.
Additionally, by including the commitment transaction we are rolling over from in the initial message, we can design the listener in an idempotent way: We can allow the dialer to re-execute the rollover by using the exact same parameters. To ensure this, we include the funding_rate in the Accept message. This allows us to send the funding_rate that was used in the original, partially failed rollover and thus computing the exact same rollover again.
Doing so is important because a malicious dialer might re-trigger rollover even though they actually succeeded.
A key thing to note about the idempotent design is that we need only allow "re-rollovers" for previously failed ones. This is the motivation for including the Done message. Without this restriction, a malicious party could perform a DoS attack by constantly re-triggering rollover for the same CFD.
In case the dialer fails after sharing the revocation key, we must remember to not use the old commit transaction. In theory, a malicious listener may purposely abort the protocol and deny any attempt of retrying the rollover protocol. This leaves the dialer in a state where they cannot use the old commit transaction but the listener can without the dialer being able to revoke that state. I don't think this situation can be solved elegantly at the protocol level. Once relevant, we should aim to detect such behaviour as "bad intent" and not interact with that peer.

Some general notes:

If the listener did not receive the ack from the dialer, but the dialer (for whatever reason) still believes it was sent successfully the listener has to allow the dialer to trigger a next rollover;  i.e. the listener should not enforce a retry by the dialer!
In such a case the rollover state will match and the next rollover will succeed.

Based on the proposal in the description I propose these changes to the current itchysats/rollover protocol:

Include the current commit_tx and event_id in the proposal.

The listener rejects proposal if current commit_tx or event_id don't match

Only the dialer sends Msg3 (= ack), remove sending Msg3 from the listener - breaking protocol change
The listener records if the dialer's ack was received at the end of the protocol. If the ack was not received the listener has to record additional state in (or in addition to) RolloverCompleted:

The generated random keys used during protocol execution
The used tx_fee_rate

If the dialer fails to send Msg3 after sending the keys the dialer has to record additional state in (or in addition to) RolloverFailed:

The generated random keys used during protocol execution
The used tx_fee_rate
The current_fee based on the used offer's funding rate (the listener can know this from the succeeded rollover)
The event_id used (the listener can know this from the succeeded rollover)

The proposal message from dialer to listener needs to be extended with an optional parameter that marks it as retry so that the listener knows how to handle it.

If the last rollover by the listener has a missing ack retry will be allowed, otherwise not.

If the dialer triggers a rollover retry, and the retry is eligible on the listener side, the listener and dialer will have to use the previously used keys for the protocol execution.
9. At the end of the protocol execution the listener should verify that the outcome is the same, i.e. the saved rollover equals the result of the retry. The listener does not save the successfully retried rollover DLC, because the previous one is already valid and active.

sequenceDiagram
	Dialer->>Listener: Open substream `/itchysats/rollover`
	Dialer->>Listener: Proposal [commit_tx]
        Listener->>Listener: When was this commit_tx? Calculate costs from that commit_tx
        Listener->>Dialer: Accept[These are the costs]
        Dialer->>Listener: Send PubKeys
	Listener->>Dialer: Send PubKeys
	Dialer->>Listener: Send Signatures
	Listener->>Dialer: Send Signatures
	Dialer->>Listener: Send SecretKey
	Listener->>Dialer: Send SecretKey
        Listener->>Listener: Append Completed
       Note left of Dialer: It is irrelevant if the dialer succeeds or not

This will also close: https://github.com/itchysats/itchysats/issues/1622

Once we started implement this we ran into one obstacle:
At the moment the RolloverCompleted event funding_fee is still accumulative, i.e. for every rollover in the database when building the model::Cfd aggregate we accumulate the fee.
Now, with our change it can happen that the maker performs multiple rollovers for the same settlement_event_id for one Cfd. But, the fee should not  be accumulative then; only the latest fee should apply.
We cannot just remove the accumulated fees (i.e. we cannot just remove the mechanism of the FeeAccount) because the maker will have to be able to come up with a "start fee" for historical rollover requests.
There are different ways to overcome this:

Keep the funding_fee accumulative but add decision logic to the aggregate that makes sure to only apply the latest fee if we notice we have RolloverCompleted for the same event_id.
Only store the complete fee for a rollover and overwrite the funding_fee in the fee_account when building the CFD from events instead of accumulating it. Additionally, store the complete_fee for each RevokeCommit so we can "start" from there again.

I would try to move forward with (2), given that there is only one "active" rollover in the system now, I think the accumulated funding_fee is super error prone anyway.

I don't think only complete fee will work; you will likely run into problems of not being able to do any retries with that.

Why?
I think it would be more resilient to use the complete_fee instead of assembling it every time. The complete_fee is what is actually used for calculating the payouts in the rollover and is agreed upon between the two parties when you roll over.
I stated

Additionally, store the complete_fee for each RevokeCommit so we can "start" from there again.

This is what would allow going from any point in time, because the maker would know what the fee was for a specific commit_tx.

The taker sends a rollover proposal for commit_tx x
The maker goes through the list of commit_tx and finds x
The maker validates that the event_id attached to commit_tx is still within the range of 24h
The maker picks the fee attached to commit_tx as base fee.
The maker calculates the fee to be charged based on the base fee + time between commit_tx-event_id and the event_id that will be rolled over to.

I think this works and is more resilient than building up the fee on both sides.
When we apply the event we then set the complete fee instead of adding it.

@klochowicz see https://github.com/itchysats/itchysats/pull/2272/commits/ecd142e7aca495bc4cedf2e79c5da828af228b44
where I am using the complete_fee.
I opted for keeping he FeeAccount for now and just initialize it from the complete_fee. I think this is the better solution then trying to "filter out" the same event-id payments. this will add more resilience overall because we stop accumulating on both sides.

@bonomat here is another interesting thing that I stumbled upon when working on the more resilient rollover protocol (https://github.com/itchysats/itchysats/pull/2272):
The maker actually does not restrict rollovers to event-ids that have not occurred yet.
I think we did that on purpose - because the maker ensures to commit anyway, so we just did not restrict rollover.
This made our rollover actor tests (and potentially other tests...) simpler, because we can use an event-id that from the past - that's why we always see this message in the logs:
2022-06-22T03:24:35.319244Z  WARN model::cfd: Rolling over a contract that can be settled non-collaboratively

With the new rollover protocol the maker allows the taker to roll over from an event-id that was already used.
When it comes to the maker validating the taker's request I stated that the maker should validate that the event-id related to the commit-tx proposed by the taker is still valid, i.e.

The maker validates that the event_id attached to commit_tx x is still within the range of 24h

But this would cause problems with the tests, because we would not introduce the restriction that we previously (on purpose?) avoided.
I think we can opt for not implementing this restriction (as before) and allow the taker to pick a commit-tx with an event-id more than 24h in the past. Given our current fee calculation is that acceptable?

Closing this because #2272 merged which implements the protocol proposed in https://github.com/itchysats/itchysats/issues/1775#issuecomment-1160081024

authors: da-kami klochowicz thomaseizinger

repo: itchysats/itchysats


text:
Use heartbeat to detect loss of connection to taker daemon

Fixes #482.
A few notes:

I haven't done the same thing for the maker yet. I'm unsure if we actually intend to keep supporting the maker frontend. If so I'll do it in a separate PR, following a similar approach.
This does not yet support reconnecting once the daemon is up again, it simply prompts the user to refresh the page. It may be simple to add this feature, but it isn't strictly necessary at this stage, as discussed with @thomaseizinger.
I am unsure about the way I've handled the toast. In fact we get a big warning every time it renders:

Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
App@http://localhost:3000/src/App.tsx:32:45
Router@http://localhost:3000/node_modules/.vite/react-router-dom.js?v=b11c8a18:438:7
BrowserRouter@http://localhost:3000/node_modules/.vite/react-router-dom.js?v=b11c8a18:980:7
EnvironmentProvider@http://localhost:3000/node_modules/.vite/chunk-IDFFKOBS.js?v=b11c8a18:3863:18
ColorModeProvider@http://localhost:3000/node_modules/.vite/chunk-IDFFKOBS.js?v=b11c8a18:4024:15
ThemeProvider2@http://localhost:3000/node_modules/.vite/chunk-IDFFKOBS.js?v=b11c8a18:2145:43
ThemeProvider4@http://localhost:3000/node_modules/.vite/chunk-IDFFKOBS.js?v=b11c8a18:5922:28
IdProvider<@http://localhost:3000/node_modules/.vite/@chakra-ui_react.js?v=b11c8a18:791:18
ChakraProvider2@http://localhost:3000/node_modules/.vite/@chakra-ui_react.js?v=b11c8a18:1478:18 react-dom.development.js:67:29

bors r+

source: gharchive/pull-request


text:
Custom Aggregations sorting

Hi,
This mini update make aggregations configurable using a custom sorting array  (related issue : https://github.com/itemsapi/itemsjs/issues/94) :
we can now sort aggregations like this :
const configuration = {
// ...
aggregations: {
 actors: {
      title: 'Actors',
      size: 10,
      // we can use a custom array instead of  the only available 'term'
      sort: ['key']  // we can play with keys like : 'key', 'doc_count', 'selected' even add multiples keys like ['key', 'doc_count']
    },
}
//...
};

So we can play with all available sorting keys , and override the hardcoded 'selected' key if we want
The old behavior is still kept (backwards compatibility )

This looks good! Could you also add a test ? This test might be helpful to reproduce your use case https://github.com/itemsapi/itemsjs/blob/master/tests/searchSpec.js#L88

It would be nice to have this feature, do we know when can we have it merged ?

This PR is merged with tests. Please look into #109

authors: cigolpl lhoucinecherif ritz0106

repo: itemsapi/itemsjs

license_source: bigquery


text:
index: build: use detail=True if not localfs

This significantly speeds up entry building on slow filesystems.
Part of https://github.com/iterative/dvc/issues/10059

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (7ca63e6) 63.79% compared to head (0c84caf) 63.72%.

Files
Patch %
Lines

src/dvc_data/index/build.py
62.50%
2 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #478      +/-   ##
==========================================
- Coverage   63.79%   63.72%   -0.08%
==========================================
  Files          61       61
  Lines        4116     4119       +3
  Branches      703      551     -152
==========================================
- Hits         2626     2625       -1
- Misses       1345     1351       +6
+ Partials      145      143       -2

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

authors: codecov-commenter efiop

repo: iterative/dvc-data


text:
basic concepts: pipeline stages + automatic link

Other than explaining what a pipeline stage is, this can help us group 2 terms that are used extensively and sometimes confusingly throughout docs: .dvc files (formerly DVC-files) and dvc.yaml — which already have their own guide so maybe this can just use that page instead of a new basic concepts one. Not sure
See more context: https://github.com/iterative/dvc.org/pull/1408#issuecomment-643121300:

Mentioning dvc.yaml and .dvc (everywhere) is too noisy

Automatic linking

Maybe should be a separate issue

dvc.yaml could be like a command name, which automatically links to its user guide (currently under development in #1370
Not sure about .dvc file — I think here we don't want to link automatically.
"stage" could have a tooltip and glossary entry.
"orphan stage" we could link manually to dvc add
"import stage" to dvc import

@rogermparent let's start on this next, when you have time

Would be nice to decide on #1395 first too! I guess I should prioritize #550 to facilitate all this...

It seems like the most streamlined way to do this is add dvc.yaml as a glossary abbr target, giving the Tooltip a small entry that links to the full page.
For example, the Tooltip content could be:

The primary configuration file of DVC.
Read the full syntax here

I don't know how true that is, but I believe it gets the idea across.
If this is the kind of implementation we want, this change should be pretty simple. I can also use ripgrep to go through all existing content and change all the existing references to dvc.yaml to abbrs.
I can get a PR up soon showcasing this implementation.

I don't like the idea of using abbr - we'll have a lot of noise in the Markdown files. Let's link dvc.yaml (and other) inline code blocks instead automatically.

That's a reasonable concern, I'll check if we have an existing Remark plugin that has that behavior and make a new one if we don't.

@rogermparent yes, we do this already for dvc add kind of links, there should be code around for this.

Found it, thanks!

From what I understand, there's three currently proposed entries for the automatic linker

[x] dvc.yaml could be like a command name, which automatically links to its user guide
[ ] "orphan stage" we could link manually to dvc add
[ ] "import stage" to dvc import

There's also

[ ] "stage" could have a tooltip and glossary entry.

which I can do, but is notably separate from the rest and may need another Issue as Glossary entries need to wait for tooltip content where auto-linker entries have everything they need in the description.

"orphan stage" we could link manually to dvc add

Don't worry about that one. We got rid of the term.

"import stage" to dvc import

We won't be using that term either in the future, just import .dvc file possibly. So probably also no special work needed there.

"stage" could have a tooltip and glossary entry.

That's the content part of this issue. I guess it should be a separate issue, let's just leave it unchecked for now?

Chnged to p1 since all the docs-engine work here has been done by @rogermparent from what I understand. Thanks Roger!!!

Also added to the issue description (content related):

remove all existing manual links from dvc.yaml, dvc.lock, and .dvc file.

Is dvc.lock also auto-linked now, @rogermparent ? If not where do we add it? Thanks

"stage" could have a tooltip and glossary entry.
which I can do, but is notably separate

Extracted this to #1579 Roger, so that your PR closes this one 🙂

authors: jorgeorpinel rogermparent shcheklein


text:
guide: Running Experiments

We are removing some parts of the experiments trail that may be better put into a UG document.
Related to #2548
A guide dedicated to running experiments should contain:

Running experiments
Running experiments in parallel
Managing experiments queue
Naming experiments

Please add a checkbox in epic #2548.

authors: iesahin jorgeorpinel


text:
cmd ref: improvements to params

You may disregard these recommendations if you used the Edit on GitHub button from dvc.org to improve a doc in place.

❗ Please read the guidelines in the Contributing to the Documentation list if you make any substantial changes to the documentation or JS engine.
🐛 Please make sure to mention Fix #issue (if applicable) in the description of the PR. This causes GitHub to close it automatically when the PR is merged.
Please choose to allow us to edit your branch when creating the PR.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏

The intention is that you get to the info. on how to create params faster (dvc run -p). I think that is more important than the other important explanations I moved under. There's really no other doc that covers param creation except perhaps a passage in Get Started.

and the example in dvc run

But those two paragraphs look strange in "benefits and workflow" section

May be we can just remove that sub-section

I removed it. I also reorganized paragraphs again (closer to the original).
I feel like this description is too long though. But that's kind of out of scope right now.

Oops sorry just after I said the scope was limited I went ahead and updated this whole doc for 1.0!

authors: jorgeorpinel shcheklein


text:
Exp tracking use case updates

Closes #4087. Still need to add a good Studio gif once we have other functionality like the PRs working well enough.

Feel free to suggest more changes. I kept this pretty minor for now.


text:
Fix title and description

~Machine Learning Engineering Management~ - no
Now:

@aguschin  - Pushed another change, didn't want "productionize" to be so prominent - not a real word, more of a slang, to niche for site description IMO, also maybe not great for SEO, please TAL


text:
Extend EQDSK interface to output B0

Result
Python routines that evaluate

Magnetic field in R,Z
R,Z for given s, theta_geom
Combination to get B(s,theta_geom)

Think about how to separate or combine EQDSK RZ and flux coordinate (Boozer) modules/classes.

@krystophny issue already exists.

authors: krystophny marjohma

repo: itpplasma/libneo


text:
docs(security): remove example committing secrets

That may have been a joke, but most devs won't get it. Please don't suggest people to commit their private keys into their code. 😄

fair lol

repo: its-danny/koji


text:
iPhone7 9,3 - 15.2 & 15.3.1 | Hangs after verbose while booting

**Isolating from https://github.com/itsnebulalol/palera1n/issues/5
Devices: iPhone7 9,3 - 15.2 & iPhone7 9,3 - 15.3.1 (2 different devices)
No passcode;
Blobs from TSSaver
Command:
./palera1n.sh ~/Downloads/7399542136251174_iPhone9,3_d101ap_15.2-27325c8258be46e69d9ee57fa9a8fbc28b873df434e5e702a8b27999551138ae.shsh2 --dfu 15.2 --debug
palera1n | Version 1.0.0
Written by Nebula | Some code by Nathan | Patching commands and ramdisk by Mineek | Loader app by Amy

[*] Getting device info...
[*] Pwning device
[*] Downloading BuildManifest
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: BuildManifest.plist
100% [===================================================================================================>]
download succeeded
img4tool version: 0.197-aca6cf005c94caf135023263cbb5c61a0081804f-RELEASE
Compiled with plist: YES
Saved IM4M to IM4M
[*] Downloading and decrypting iBSS
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: Firmware/dfu/iBSS.d10.RELEASE.im4p
100% [===================================================================================================>]
download succeeded
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33]
Found the USB handle.
Stage: RESET
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33]
Found the USB handle.
Stage: SPRAY
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33]
Found the USB handle.
Stage: SETUP
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33]
Found the USB handle.
Stage: PATCH
ret: true
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33] PWND:[gaster]
Found the USB handle.
Now you can boot untrusted images.
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
Found the USB handle.
[*] Downloading and decrypting iBEC
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: Firmware/dfu/iBEC.d10.RELEASE.im4p
100% [===================================================================================================>]
download succeeded
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33] PWND:[gaster]
Found the USB handle.
Now you can boot untrusted images.
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
Found the USB handle.
[*] Downloading DeviceTree
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: Firmware/all_flash/DeviceTree.d101ap.im4p
100% [===================================================================================================>]
download succeeded
[*] Downloading trustcache
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: Firmware/018-73308-068.dmg.trustcache
100% [===================================================================================================>]
download succeeded
[*] Downloading kernelcache
Version: 9bfdde2b2456181045f74631683fba491d8bf4f2 - 38
libfragmentzip version: 0.64-aaf6fae83a0aa6f7aae1c94721857076d04a14e8-RELEASE
init pzb: https://updates.cdn-apple.com/2021FCSWinter/fullrestores/071-91985/2A9A676E-4BE6-4AE4-93A6-15A8A12AD433/iPhone_4.7_P3_15.2_19C56_Restore.ipsw
init done
getting: kernelcache.release.iphone9
100% [===================================================================================================>]
download succeeded
[*] Patching and repacking iBSS/iBEC
main: Starting...
iOS 15 iBoot detected!
getting get_debug_enabled_patch() patch
getting get_sigcheck_patch() patch
applying patch=0x1800c0ef8 : 000080d2
applying patch=0x1800c0f40 : 000080d2
applying patch=0x1800c2b14 : 200080d2
main: Writing out patched file to iBSS.patched...
main: Quitting...
main: Starting...
iOS 15 iBoot detected!
getting get_boot_arg_patch(-v keepsyms=1 debug=0xfffffffe panic-wait-forever=1 wdt=-1) patch
getting get_debug_enabled_patch() patch
getting get_sigcheck_patch() patch
applying patch=0x1800c0ef8 : 000080d2
applying patch=0x1800c0f40 : 000080d2
applying patch=0x1800c2b14 : 200080d2
applying patch=0x1800c416c : 183e0b50
applying patch=0x1800da92e : 2d76206b65657073796d733d312064656275673d307866666666666666652070616e69632d776169742d666f72657665723d31207764743d2d3100
main: Writing out patched file to iBEC.patched...
main: Quitting...
none
none
[*] Patching and converting kernelcache
Reading work/kernelcache.release.iphone9...
[NOTE] Image4 payload data is LZFSE compressed, decompressing...
Extracted Image4 payload data to: work/kcache.raw
main: Starting...
main: Detected fat macho kernel
Kernel: Adding AMFI_get_out_of_my_way patch...
get_amfi_out_of_my_way_patch: Entering ...
get_amfi_out_of_my_way_patch: Kernel-8019 inputted
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str loc at 0x9aaadc
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str ref at 0x1131c84
get_amfi_out_of_my_way_patch: Patching AMFI at 0x112d2d8
Kernel: Adding could_not_authenticate_personalized_root_hash patch...
get_could_not_authenticate_personalized_root_hash_patch: Entering ...
get_could_not_authenticate_personalized_root_hash_patch: Found "successfully validated on-disk root hash" str loc at 0xd5e0bb
get_could_not_authenticate_personalized_root_hash_patch: Found "successfully validated on-disk root hash" xref at 0xc832cc
get_could_not_authenticate_personalized_root_hash_patch: Could not find previous cbz
main: Writing out patched file to work/kcache.patched...
main: Quitting...
Reading work/kcache.patched...
Compressing payload using LZSS...
IM4P outputted to: work/krnlboot.im4p
Reading work/krnlboot.im4p...
Reading work/IM4M...
Creating Image4...
Image4 file outputted to: boot-iPhone9,3/kernelcache.img4
[*] Converting DeviceTree
dtre
[*] Patching and converting trustcache
trst
[*] Pwning device
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
CPID:8010 CPRV:11 CPFM:03 SCEP:01 BDID:0C ECID:001A49D828882326 IBFL:3C SRTG:[iBoot-2696.0.0.1.33] PWND:[gaster]
Found the USB handle.
Now you can boot untrusted images.
usb_timeout: 5
[IOKit] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227
Found the USB handle.
[*] Booting device
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%
[==================================================] 100.0%

Done!
The device should now boot to iOS
If you already have installed Pogo, click uicache and remount preboot in the tools section
If not, get an IPA from the latest action build of Pogo and install with TrollStore
Add the repo mineek.github.io/repo for Procursus

The only thing i see that’s different between my working patch, and yours is this:
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str loc at 0x9aaadc
get_amfi_out_of_my_way_patch: Found Internal Error: No cdhash found. str ref at 0x1131c84

Mine shows this:
get_amfi_out_of_my_way_patch: Found entitlements too small str loc at 0x8da177
get_amfi_out_of_my_way_patch: Found entitlements too small str ref at 0xeddf30

Not completely sure why there’s a difference.

Would you mind to try Kernel64Patcher from your end? Here's the kcache.raw:  https://drive.google.com/file/d/1hsLsCno8iHbHaH6Yp_2qgZ4mgzFwC4RH/view?usp=sharing

I had the same issue, but I applied a different patch too. Here's the krnlboot.im4p:
https://mega.nz/file/6mp2GYqI#7XJ8BVj78m4JVcH6V88mkWrZRbc91P_2oxVgSCriVL4
You'll have to sign it with your IM4M:
pyimg4 img4 create -p krnlboot.im4p -o kernelcache.img4 -m IM4M
(use img4tool -e -s path/to/your/blob.shsh2 -m IM4M to get the IM4M)

Thank you @itsnebulalol for all your time, the problem persists, same sympthoms. I believe we can mark as closed. Lets see if this is an issue with this specific device, I will keep checking for any success reported with the iphone7 9,3 . Thank you again

I fixed the issue, it was caused by using blobs off of tsssaver. I dumped the onboard blobs using SSHRD_Script-High-Sierra and used those for palera1n and it booted the iPhone 7 right away with no issue.

Thank you @itsnebulalol for all your time, the problem persists, same sympthoms. I believe we can mark as closed. Lets see if this is an issue with this specific device, I will keep checking for any success reported with the iphone7 9,3 . Thank you again

If you need assistance add me on Discord and I will help you kristenl64#0622 .

WARNING 3: As of now, it was confirmed that if you do not use the onboard blobs for your device when you are using palera1n then it will cause the device to enter a blank screen after verbose boot. You will have a blank screen on your phone after verbose boot if you do not use the right blobs for palera1n. To ensure you do not get a blank screen after you boot your device with palera1n, you must dumb your onboard blobs using kristenlc/SSHRD_Script-High-Sierra and use those blobs with this script. Please do not use the blobs on tsssaver.1conan.com for your device as it will cause it to not boot with palera1n.

Hell yeah, good to know. Look at the ramdisk branch please, I haven't tested it yet, but it should work.
I'll close this for now.

This 9.3 devices must be doomed, even with dumped onboard blobs the same thing happens lol. The dumped onboard blobs are ok since it is validated by TSS against OTA. Added you on discord @kristenlc

*for advertising purposes for your jailbreak. I believe you need all the credit you can get.

As long as you link this repo and maybe even my twitter i don’t have a problem with it. Just only send it to people in issues if they asked for it

authors: iam-theKid itsnebulalol kristenlc


text:
Documentation for Woocommerce

Please add a small documentation for Woocommerce configuration just like medusa.
Svelte Commerce seems like a great project. Many thumbs up

I can't agree with you more

repo: itswadesh/svelte-commerce


text:
Migrate upcoming fixes to the v5 repo.

I've ported Last week's version of this service to the v5 monorepo as of this morning (and published as of 5.0.0-beta.12). Lets try to keep upcoming changes moving forward to the new package.

Sorry that I missed the message. Actually I'll be happy to archive this repo and redirect people to the new monorepo since I'm not actively using webdriver.io anymore.
Thanks for merging it into the monorepo!

authors: abjerstedt itszero

repo: itszero/wdio-browserstack-service

license: mit


text:
Motd skips backslashes

Trying to use back slashes in the motd as explained here to display colors does not work.
Log:
[init] Setting motd to '\u00A7aN\u00A7bO\u00A74D\u00A7eE\u00A77CRAFT \u00A70Official' in /data/server.properties.
Actual content of server.properties:
motd=u00A7aNu00A7bOu00A74Du00A7eEu00A77CRAFT u00A70Official

Guess it is something with the usage of sed: https://github.com/itzg/docker-minecraft-server/blob/1e334ca7d5c91c30ea505e4a44c34faecb1c607b/start-finalSetup04ServerProperties#L16
But I am too unexperienced with sed to dig deeper into this.

I think you’re right that the sed operation is chewing them up. I’ll also investigate this a little bit later, but for now try using double backslashes and see if that works.

Using double backslashes works as a temporary workaround.

@itzg Which solution do you prefer?

Leave a note in the README that you have to use \ when you want to use \ in server.properties (especially when configuring motd).
Automatically replace single backslashes with double backslashes before issuing the sed command, which might be a minor breaking change, but allows a more natural configuration of the server.

Sorry for the delay following up on this. I went ahead and created a PR for you check for me.

repo: itzg/docker-minecraft-server


text:
Add MC Router chart

This will enable MC Router deployment using Helm.
Chart was built using MC Router's regular YAML example file and other existing charts.

Unfortunately, I'm not familiar with how the chart testing tool works or what it expects. I'm sure the chart itself is fine, but would be nice to get the test automation happy:
https://github.com/itzg/minecraft-server-charts/actions/runs/6734798515/job/18314217048?pr=177

Unfortunately, I'm not familiar with how the chart testing tool works or what it expects. I'm sure the chart itself is fine, but would be nice to get the test automation happy:
https://github.com/itzg/minecraft-server-charts/actions/runs/6734798515/job/18314217048?pr=177

I'll take a look at that. :)

It looks like files like https://github.com/itzg/minecraft-server-charts/blob/master/charts/minecraft/ci/test-values.yaml get used as input to the test, but the default values should have been fine in this case.

It looks like files like https://github.com/itzg/minecraft-server-charts/blob/master/charts/minecraft/ci/test-values.yaml get used as input to the test, but the default values should have been fine in this case.

Yeah the problem's the default ports:

Error: Service "mc-router-uhe6wa9e6h" is invalid: spec.ports[0].nodePort: Invalid value: 25565: provided port is not in the valid range. The range of valid ports is 30000-32767

...it says: ✔

repo: itzg/minecraft-server-charts


text:
H5 canvas绘制出现模糊的问题

近期在做红包项目，涉及到人物关系图。我用了canvas实现。期间遇到不少问题。
今天讨论canvas在安卓展示模式问题。
有一种说法是说因为绘制的坐标不是整数级的坐标，所以会变得模糊，所以在计算坐标的时候可以使用 Math.floor 将坐标取整，这样绘制就会变得清晰。
个人觉得这种说法并不实际，因为在实现的时候就是要计算到每个点每条线的具体位置，角度等等的精确值，这样粗糙的取整，会使得绘制出来的整体跟设计图上有比较大的出入，而且本身也无法维护让每次绘制都是在整数级的坐标上，比如绘制一个圆，要如何让每个点都是在整数坐标的像素点上？
还有一种方法比较简单，容易实现，而且效果在目前看来还是不错的。
先补充说明一个基础知识点，在使用 canvas 的时候，要设置画布的大小，要使用的是 canvas 的 width 与 height 属性，而不是设置 canvas 的 style 或者CSS样式中的 width 与 height 。
因为在绘制的过程中画布内容的实际大小是根据 canvas 的 width 与 height 属性设置的，而 style 或者CSS设置的width 与 height 只是简单的对画布进行缩放。
这里可以将 canvas 比喻为一个 img ，其中画布的 width 与 height 属性，相当于 img 中图片的原始尺寸；我们使用JS在画布上绘制的内容对应的就是 img 中的图片；而 style 或者CSS设置的 width 与 height ，就是设置 canvas 或者 img 在页面上要显示的大小。
因此这里要解决模糊的做法，就是将这张“图片”变得高清一点，然后缩小了来显示。具体实现就是将画布的大小设置为实际显示大小的两倍，然后在canvas的css属性设置正常显示的宽高，比如，要显示一个100*200的画布，可以这样写：

如此就相当于画了一张200400的图片，然后设置他显示成100200的大小，这样一来就变得清晰了。需要注意的是，这样将画布放大之后，绘制的过程中对应的那些坐标，长度等等都要相应的放大，比如原本在100200的画布上绘制 ctx.arc(10,10,5,0,Math.PI2) ，现在在200400的画布上就得改成 ctx.arc(20,20,10,0,Math.PI2) 。

建议把项目功能需求、实现的效果和遇到的问题等这种背景信息介绍一下，相当于整个文章的上下文带进来。必要的地方把示例代码也贴一下，这样好分析。相信会是一篇干货，现在这样看没啥感觉。

repo: iuap-design/blog


text:
Atualização de um subitem em uma assinatura

Buenas,
Estou tentando atualizar um subitem de uma assinatura ou ate mesmo deletado porem quando faço a requisição ele me diz que preciso mandar 1 argumento junto.
subs = Iugu:Subscription.fetch(id: ID_DA_ASSINATURA)
subs.subitems = [{ "description": "Item um", "quantity": 1, "price_cents": 1000, "price": "R$ 1000000,00", "total": "R$ 10,00" }]
subs.save
Ok, até aqui funciona e ele salva certinho, porem eu nao consigo mais atualizar esse item e nem mesmo deleta-lo, alguém tem alguma ideia?
Dês de já, agradeço!

Quando eu faço o seguinte comando
subs.subitems.delete
Ele me retorna que o "method delete needs 1 more argument"

Estou tendo este mesmo problema atualmente. Não consigo atualizar um subitem pela gem.
Até tentei dar fork no projeto e criei o seguinte método:
`
 def change_subitems(subitems, options = {})
  options.merge!({ subitems: subitems })
  Iugu::Factory.create_from_response(self.class.object_type,
                                      APIRequest.request("PUT",
                                                        "#{self.class.url(self.id)}/",
                                                        options))
 end

`
E tento passar o seguinte objeto: {id: "user_limit_exceeded:destroy_false", description: "test", price_cents: 50000, quantity: 1, recurrent: true} como parâmetro do subitem.
E o retorno que me da é:  400 Bad Request

repo: iugu/iugu-ruby


text:
DateFormatter Typo in MainChartView.swift

Found a small typo
https://github.com/mountrcg/freeaps/commit/dd0564e4b9b91a484b1e447d0e5628a708c7ebfe

Fixed in https://github.com/ivalkou/freeaps/commit/ed43005cf7f03cb0a414424d4bbae102b9b87aa7

authors: ivalkou mountrcg

repo: ivalkou/freeaps


text:
problems about building WinAFL

Hello, ivanfratric
When building WinAFL with visual studio 2010, I got lots of C2664 ERRORs about the conversion from “u8 *” to “const char *”.   So I replace the
typedef uint8_t  u8;
with
typedef char  u8;.
However, as a result, I get a lot of problems when testing the generated EXE. And when I build it using dev c++ with gcc, I find the generated EXE get much larger than the original EXE. Meanwhile, the speed of fuzzing also slow down.  Do you have any suggestions to solve the problems?

The published binaries were also created with VS 2010 but I was only ever getting warnings, not errors. Unfortunately, most of those are legacy issues from AFL and I didn't want to spend too much time fixing them for the initial release. Please see building instructions in the readme, you should be able to build everything that way. For size/speed, my guess would be a debug build with compiler optimization turned off.

@ivanfratric Ok, when I tried to build it as instructions in the readme, I found almost the same errors. Eventually I solved the problems by adding the cmd -fpermissive when buiding, and with some brute-force method to fix the error from ck_free.

authors: fuzzyushi ivanfratric

repo: ivanfratric/winafl


text:
sys: bumped to 0.6.1

Goal
Fix security warnings.
Approach

Fix activesupport.
Fix rack.
Fix rubocop.

Coverage remained the same at 100.0% when pulling 17830a7df493dd257af6fbfaf50283734072635b on bump-0.6.1 into 8f2a35c78bec10ef2eb20c0ead32dfe64490381d on master.

authors: coveralls ivanoblomov


text:
add default for NOMAD_PORT

While I remember a lot of things, it's usually details like this that elude me. I do remember there are three ports for nomad (4 something 46, 47, and 48), but I only vaguely remember that 6 is the something, and I forget which of 46, 47, 48 is the "nomad server". Looking this up in nomad should be quick, but it took me a few pokes to remember that I should look at the agent section for configuration options.
Anyway.. that's a long way to say... defining a default that is correct / matches what the app expects from nomad would be great and save users one extra little detail to sort out when running nomad-ui for the first time.
I'd add this bit, but I'm not familiar enough with JS-tooling, and I see minimal bits in the production settings.json to work from.
Thanks for the great work!

Ah ok, yeah good point actually. I wanted to make the port configurable in case anyone had a non-default setup but adding it as default definitely makes sense. I'll update the readme to use the default port, this should be probably be good enough for most people, agreed?
Thanks!

I usually opt for "set $FOO to override, but there's a default in place in case you don't set anything", but yea, a doc update works for those who read it :)

Done!

authors: iverberk ketzacoatl

repo: iverberk/nomad-ui


text:
如果设置了isHideTimeBackground="false" 无法使用isConvertDaysToHours将多余的天转成成小时

如果我是用了isHideTimeBackground="false" ，当你设置isConvertDaysToHours = true的时候，他是不会将多余的天转换成小时
控件版本:2.1.6

背景模式不支持此属性，这块涉及到背景动态变化，如果有需要可以 clone 下来定制一下这块功能

repo: iwgang/CountdownView


text:
🛑 23心流 is down

In c9c89ca, 23心流 (https://blog.panghai.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 23心流 is back up in 923316f.

repo: iwyang/check


text:
🛑 24Braindance is down

In 16dfcd4, 24Braindance (https://www.penginman.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 24Braindance is back up in 11bc329.


text:
🛑 05Takagi is down

In 9a83f07, 05Takagi (https://lixingyong.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 05Takagi is back up in aad70c5 after 1 hour, 57 minutes.


text:
🛑 21Eurkon is down

In eafde27, 21Eurkon (https://blog.eurkon.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 21Eurkon is back up in 76fa2a3 after 27 minutes.


text:
🛑 21Eurkon is down

In 0add3d5, 21Eurkon (https://blog.eurkon.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 21Eurkon is back up in fd49b25 after 10 minutes.


text:
🛑 21Eurkon is down

In 198d47d, 21Eurkon (https://blog.eurkon.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 21Eurkon is back up in 69f4a61 after 15 minutes.


text:
🛑 21Eurkon is down

In 5a65499, 21Eurkon (https://blog.eurkon.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 21Eurkon is back up in 4be81d8 after 20 minutes.


text:
Add option for users profile pictures in the chat

Would be neat to have an option to display profile pictures next to the name or on the bubbles.

Doesn't look like avatar URLs are currently emitted anywhere in the websocket messages or in the websocket in general.

repo: izzy/twitch-chat


text:
Facts#asMap should return an immutable map

As of v3.4, Facts#asMap returns the underlying map, which exposes the internal state of the object and can have some nasty side effects. Facts#asMap should return a Collections.unmodifiableMap of the facts (or at least a copy/clone of the facts).

@R-Gerard I wanted to draw your attention to this issue since we discussed it in #250. Returning a Collections.unmodifiableMap does not work. This is because the map of facts is passed to rule actions which might add/remove facts. So the map should be mutable otherwise several tests fail with:
java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableMap.put(Collections.java:1457)

So I decided to make it return a copy of the facts and add a note in the javadoc to mention that it is not intended to mess with facts outside of the rules engine (aka other than manipulating them through rules), see 1420af6.

repo: j-easy/easy-rules


text:
🛑 nazunacord jellyfin is down

In ccbf44d, nazunacord jellyfin (https://jellyfin.nazunacord.net/health) was down:

HTTP code: 530
Response time: 102 ms

Resolved: nazunacord jellyfin is back up in 3f91188 after 6 minutes.


text:
🛑 nazunacord jellyfin is down

In 1bbb78a, nazunacord jellyfin (https://jellyfin.nazunacord.net/health) was down:

HTTP code: 530
Response time: 104 ms

Resolved: nazunacord jellyfin is back up in 966c1e3 after 13 minutes.


text:
Compatible version of j4ts with JSweet 1.2.0 release

Could we get a release that is compatible with the recent 1.2.0 release of JSweet?

Unless I am mistaking, I think that org.jsweet.candies:j4ts-0.3.0-SNAPSHOT is compatible. Do you want me to release 0.3.0?

So what we are trying to achieve is having a version of j4ts that has been built using your latest prod jsweet-transpiler release. It looks like 0.3.0-SNAPSHOT is using 1.1.1 of the transpiler.

Right. Version 1.2 is an intermediate release before version 2. Version 2 will be more open than version 1.x, which will allow everybody to modify candies and contribute easily. The core reason behind it is that we want to give more freedom to the users since maintaining all the candies ourselves it too much of a work.
So, since 1.2 is fully compatible with 1.1.1 candies, I have decided not to release any candies for that version. You should still use 1.1.1 candies, even if you get warnings. All this will be fixed soon with version 2. Of course, if you find an issue with the candy, please tell me and we will fix it.

Please note the 0.5.0-SNAPSHOT, (develop/v0.5.0 branch) which is now compatible with JSweet v2.

authors: renaudpawlak sadevelopment


text:
VPSのバックエンドまた死んでる

至急確認してね

VPSのバックエンドの無事死亡を確認

はいはい

CaaSの無事生存を確認

笑うわ

はい解決♨


text:
Make text module a label

The text module is too inflexible: it's not possible to set left/right padding, it's not possible to change the font, etc. Why not making it a label with a %text% token by default? This would be much more flexible and also consistent with most of the other modules (consider script, for a similar one).

To be more precise, what I mean is to add an implicit format = <content>. I think this will be easy to implement and mostly backwards compatible without any change of configuration (except for some format properties that will have to be moved from content to format, but the most common properties belong to both labels and formats). It's weird that the text module is almost the only one not doing this.

I've pushed a PR for this. It was a bit more difficult than my previous patches but at the end I think I got it right and now I understand quite more about how polybar works so I believe I could help with another not too complex issues in the future. I would be thankful if you review the change and will try to improve anything non merge-quality ASAP.

Revisiting the documentation I realized that this could be worked around, although in a admittedly hackish way, by using a format prefix or suffix which are themselves labels. Nevertheless I think having the main content as a label is not only cleaner but also more consistent with the rest of the modules.

TIL about the %{T} tag (https://github.com/jaagr/polybar/issues/1345) which also ameliorates the need for this refactoring. Still, the other reasons (mainly consistency) still hold.

repo: jaagr/polybar


text:
Bug Handover Report Cannot read qualifications of undefined for Exercise 030. Need reports by 30th March, 2021.

As an administrator l want to log on exercise 030 on the platform then click on handover tab and click on the export bottom so than l can download the handover report for the JO
Notes
These functionality is not working for this exercises but works for others like (029). The Admin staff cannot export Handover data. I also have issue I am unable to export the handover report from the platform for this exercise.  Whenever I press the 'export data' button nothing happens.
Warren investigation.
Some exercises are seeing an error when trying to export handover data.

The 9 candidates in handover were in the withdrawn status. Maria moved them to applied and the rpot could then be downloaded.

authors: KateMJAC joy-ade

repo: jac-uk/admin


text:
Ticketing System File Upload Failure

When I attempted to report a bug on this page and take a screenshot there was an error in the console and the file upload failed.
See screenshot of the console error below:

This has been fixed in this PR: https://github.com/jac-uk/admin/pull/2317


text:
[version:0.22.2]Warning: BottomModal: key is not a prop. Trying to access it will result in undefined being returned. If you need to access the same value within the child component, you should pass it as a different prop

warning after clicked button, and the dilog opened:
Warning: BottomModal: keyis not a prop. Trying to access it will result inundefinedbeing returned. If you need to access the same value within the child component, you should pass it as a different prop

duplicated #246


text:
feat(backlinks): hide by default when empty

I moved backlinks to afterBody and felt it looks better when the component is fully hidden whenever there's no backlinks, so I added that as an option.

If you get to it before I do tomorrow, don't forget to update the doc too :)


text:
TextAsset references lost when Unity imports the TextAsset and FullInspector behavior simultaneously

When Unity imports a TextAsset and a prefab containing a FullInspector behavior that references the TextAsset inside of a Serializable class at the same time, the reference to the TextAsset is lost.  For example:
public class ContainerBehavior : BaseBehavior
{
    public TextAsset textAsset1;
    public GameObject prefab1;

    public Referencer referencer;
}

[Serializable]
public class Referencer
{
    public TextAsset textAsset2;
    public GameObject prefab2;
}

If this behavior is placed on a prefab and then the TextAsset (in my case an XML file) and prefab are imported at the same time (e.g. someone else gets both new files from version control), textAsset1 will reference the TextAsset but textAsset2 will not.  For reference, the same action with normal Unity object references (prefab1 & prefab2) works as expected (both variables keep their references).

Can you send me an email? I'd like to verify that this issue still occurs on the current release, as I'm unable to reproduce it. Repro steps are a little bit tricky here, so I'd like you to verify as well. Thanks!

Thanks, I think this issue is fixed in the latest build (see the email reply so you can verify).

Yeah, 2.6.2 fixed it for me.  Thanks much!

authors: derubel jacobdufault

repo: jacobdufault/fullinspector


text:
Compile partial sass files

I have a lot of css modules defined as partials (files starting with _). Styledocco generates the documentation page, but the preview iframe contains no styling. I think this is because the filename starts with a _. If I rename the files ( without leading _) then it includes the styling.
Compiling the partials and adding them to the preview would really help document my modules. I guess other have this problem as well, saving modules as partials seems to be good practice.

I agree with most of what @jorgenfb @marrs have mentioned here, yet I'm not 100% sure the solution is on leaving the as is and documenting all in the main file, the reason behind this is that if you're including third party libraries like Bourbon you don't want those to get process, so it's easier to just pass the files you want to actually include, bringing the original problem back.
I'm currently working on a project that includes Bournon, Neat, Normalize and Animate in the main file and having all those files pass through Styledocco makes no since, not to mention that normalize.css comes heavily commented and those get build into the final style guide.

After looking into this it's not as easy as just changing the method preprocess() though of course that would need to be done, but the real root cause of the issue is #124  since the common path between say:
/styles/sass/partials/_partial1.scss
/styles/sass/partials/_partial2.scss

is /styles/sass/partials/_ which is not a real path but fails silently.

repo: jacobrask/styledocco


text:
Conveyor and Board api

Forgetting that this is based on incredibly old code at this point, Can you comment if conveyor should exist or the addboard api should be brought in irken, the implementation of mapping across the revisions and the new board with revision constructor and api.

If we make Board generic to the point of accepting a programmer with bootload function, a compile function and a read/write implementation, I don't see a reason to create a custom board class for each implementation.  They can just be added with added with addBoard and give those 3 impls.
I was experimenting with an addBoard API in irken and it feels like it belongs there, but there are only minuscule differences between it being there or in conveyor, so we can ship it as conveyor since it is already implemented.

authors: jacobrosenthal phated


text:
Code blocks and add pdding between icons

Hi!
Beautiful app, I love the native look of it.
My codeblocks isn’t shown until I tap on them and starts editing. I’m running dark mode on iOS 13.4.1.
Also maybe add some padding between the small buttons? Both on the top bar and the edit panel.
Like this:

Good work!
Best regards
Sebastian

I can try to play around with spacing for the buttons. As for the code block not showing up, can you show me what it looks like both before and after you select it? That might help me figure out what's happening. Including what code should be displayed would also help so I can test it on my blog

Of cource. Here you go!

Of cource. Here you go!
Also I use prism.js on my website.

That seems to be working as intended

Shouldn't you be able to see the "box" in preview mode just like in edit mode? Like on the Ghost admin panel?

authors: SebDanielsson jacobsokora

repo: jacobsokora/Ghost-Publisher


text:
Some songs show this error even if I have a local file saved: Auto-search skipped because it failed too many times. Manually request a lyrics search to try again.

I believe this issue has come up in the past and was fixed? I think it is back. Any ideas?

Sorry I think this was an error on my part. I thought I had local lyrics but it looks like the lyric file naming wasn't an exact match so it wasn't seeing it. A manual search fixed it and now it plays properly.

Sounds like the issue is resolved so I'm closing this. Note that openlyrics will stop searching (and show that message) if lyrics are not found in normal searches for long enough. Manually searching will refresh this, but it means that if search fails for a while because lyrics are not available online, and then you manually download & save lyrics (or do so by some mechanism other than openlyrics), it will continue to show that message until you explicitly request a search for lyrics.

Sounds like the issue is resolved so I'm closing this. Note that openlyrics will stop searching (and show that message) if lyrics are not found in normal searches for long enough. Manually searching will refresh this, but it means that if search fails for a while because lyrics are not available online, and then you manually download & save lyrics (or do so by some mechanism other than openlyrics), it will continue to show that message until you explicitly request a search for lyrics.

Thanks. I just have one question though. Why is it that the majority of instrumental songs seem to pull in chinese, or nonsense?

NetEase and/or QQMusic (which are both chinese providers) tend to give you lyrics (in chinese) for instrumental tracks (often just translating to "no lyrics" or something like that).

NetEase and/or QQMusic (which are both chinese providers) tend to give you lyrics (in chinese) for instrumental tracks (often just translating to "no lyrics" or something like that).

Thank you! That makes perfect sense. I have been confused about that for years, ha.


text:
Streaming dependency items

Requirement - what kind of business use case are you trying to solve?
Create a production-grade implementation of System Architecture Feature that is able to build dependency items from a continuous stream of spans consumed from Kafka.
Problem - what in Jaeger blocks you from solving the requirement?
It is worth recognizing that there is an existing means of computing dependency items from spans through spark-dependencies. This solution is based on a single query on spans in a backing store that builds and bulk-loads the dependency items into the backing store.
However, to maintain an accurate count of edges (call counts) between services and an up-to-date topology, a streaming solution would be more suitable while also removing the need to manage cron jobs and date boundaries.
Proposal - what do you suggest to solve the problem or improve the existing situation?
We currently have a streaming solution for the System Architecture feature running in our (Logz.io) production environment. It is based on the Kafka Streams library, which could be integrated into the existing Jaeger architecture with Kafka as an intermediate buffer.
The following illustrates how we have implemented the System Architecture feature currently, courtesy of the engineer of this solution @PropAnt:

The reason why dependency items are written back to Kafka is to allow the Kafka streams application to efficiently write processed data without being limited by back-pressure from by the dependency items backing store.
High-level description of the Kafka streams topology:

We propose to adopt and open source our implementation that already works in production.
Any open questions to address
There are few ways to design the solution:

A single module with a Kafka Streams application can be added to calculate dependency items and stream them to the separate Kafka topic for further ingestion. As above, this approach is tried and tested in our production environment and code is available to open-source (more or less) as-is.
Another approach is to structure the code to encapsulate the business logic and data models in separate modules. The advantage of this approach is that Jaeger will have a streaming framework-agnostic implementation of System Architecture Feature. The trade-off is the additional effort required to architect the existing code to be agnostic to the streaming framework.

I am glad to see this effort 👍🏼
I do have one question on how the results (dependency links) are stored and queried from the storage. The current spark batch implementation creates one record per time interval (e.g. 24h). I assume the streaming creates multiple records per the same interval. Did you have to change the query or perhaps the store implementation to deal with this?

@pavolloffay no we didn't. Jaeger queries for a certain period and gets a set of dependency links (items) back. Depending on the time interval for the dependencies, the query will return a bigger or smaller set. But nothing has to be changed in this flow. We didn't change data models. The time interval for dependency links can be set through properties.

authors: PropAnt albertteoh pavolloffay

repo: jaegertracing/jaeger-analytics-java


text:
Run self es-self provisioned test on travis

Run make e2e-tests-self-provisioned-es on travis. The motivation is to catch issues early.
For example https://github.com/jaegertracing/jaeger-operator/issues/481 is not related to OCP version but to change in ES operator.
@kevinearls would you be interested in this issue?

Side note. self provisioned ES needs openshift to run. It does not run on plain k8s so we will need OCP on travis. I propose to use oc cluster up (3.9 is the lightest), we have done it here https://github.com/RHsyseng/docker-rhel-elasticsearch/blob/master/tests/prepare.sh to test other ES image.

Perhaps we could add a suite for OpenShift (// +build openshift) and run it as a separate job?

authors: jpkrohling pavolloffay

repo: jaegertracing/jaeger-operator


text:
Configure index.translog.durability via operator?

I'm noticing a large amount of spans being dropped by the instance I have deployed via the operator. The storage backend is ES. After some Googling around, it seems like setting index.translog.durability=async may help with this problem. How exactly do I configure this setting with use of jaeger-operator?

Looks like I need to configure this on the ES end. Please disregard.


text:
Jaeger in istio

Hey, I want to deploy  jaeger in the production environment of istio. And in my understanding the istio sidecar will send tracing data to Jaeger collector, so it is not necessery to deploy the Jaeger agent, right? I did deploy the Jaeger collector and query, using ES as the storage backend. However there is nothing in the UI and ES.  All installation steps are referenced from https://github.com/jaegertracing/jaeger-kubernetes
My configration for istio:
tracing.zipkin.address : zipkin.:9411
My configration for jaeger:
apiVersion: v1
kind: ConfigMap
metadata:
  name: jaeger-configuration
  labels:
    app: jaeger
    app.kubernetes.io/name: jaeger
data:
  span-storage-type: elasticsearch
  collector: |
    es:
      server-urls: http://elasticsearch-logging.kube-system:9200
    collector:
      zipkin:
        http-port: 9411
  query: |
    es:
      server-urls: http://elasticsearch-logging.kube-system:9200
  agent: |
    collector:
      host-port: "jaeger-collector:14267"

My environment:
istio: 1.2.5
es:  6.6.1

Istio will create spans related to its own components, such as Proxy (ingress/egress) and Mixer checks. To be able to have a distrubuted trace, you'll need to at least propagate the context by relaying some HTTP headers from the incoming request to the outgoing request. See https://istio.io/docs/tasks/telemetry/distributed-tracing/overview/ .
In your case, you should at least be seeing the ingress spans. Could you please share how your deployment looks like? For reference, here's a working example from the Jaeger Operator repository:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
  annotations:
    "sidecar.jaegertracing.io/inject": "true"
spec:
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
      annotations:
        sidecar.istio.io/inject: "true"
    spec:
      containers:
      - name: myapp
        image: jaegertracing/vertx-create-span:operator-e2e-tests
        ports:
        - containerPort: 8080
          protocol: TCP

@packyzbq Have you checked the Istio docs related to Jaeger: https://istio.io/docs/tasks/telemetry/distributed-tracing/jaeger/#before-you-begin - option B describes how to setup Istio to use an external (production) configuration - although note there is a mistake, the port should be 9411 instead of 16686, I will create a PR to fix that.

@objectiser Thanks for your reply. I'm using  https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/jaeger-production-template.yml to deploy jaeger, just delete the jaeger agent daemonSet.
I don't want to use Jaeger Operator because I need to deploy Jaeger on the  mips arch node and it is not support Jaeger Operator.

@objectiser I refered this link, and I'm using 9411 port. Is this problem likely to be related to the jaeger sampling strategy?

@packyzbq No, Istio controls the sampling decision in this situation. As mentioned in the section I referenced:

When you enable tracing, you can set the sampling rate that Istio uses for tracing. Use the pilot.traceSampling option to set the sampling rate. The default sampling rate is 1%.

So you need to set the pilot.traceSampling parameter to 100.

@objectiser  I set the pilot.traceSampling parameter to 100 and it works! Thank you!

authors: jpkrohling objectiser packyzbq

repo: jaegertracing/jaeger


text:
[v2] How is tenancy handled / configured? Should it be part of storage config?

This might just need some verification / findings, with code links.

@yurishkuro can I please take this up?

You can try

@yurishkuro do you have any more context on this issue? what are we looking to achieve? what do we want to deliver here?

Here's what I am seeing:
$ rg tenancy cmd/jaeger
cmd/jaeger/internal/extension/jaegerquery/server.go
23:	"github.com/jaegertracing/jaeger/pkg/tenancy"
86:	tm := tenancy.NewManager(&s.config.Tenancy)

Seems query extension is using tenancy properly. But nothing else in v2 does?
Meanwhile, in v1 tenancy ihas top-level CLI flags
cmd/query/app/flags.go
73:	Tenancy tenancy.Options `mapstructure:"multi_tenancy"`

cmd/collector/app/flags/flags.go
171:	Tenancy tenancy.Options

Finally, somewhat of a weird thing, grpc storage is the only one that also has tenancy config
plugin/storage/grpc/config.go
16:	Tenancy                      tenancy.Options `mapstructure:"multi_tenancy"`

So some obvious questions:

the handlers in v1 collector are utilizing tenancy, but not in v2, how would we do that?
the grpc storage having dedicated tenancy flags makes no sense, we might need to fix in v1 too
ultimately tenancy is closely related to storage. In v2 storage management is concentrated in storage extension. Should that be the only place in v2 where tenancy is configurable and then passed around into other components
even with above, how would tenancy headers be parsed by the receivers? In case of gRPC receiver the metadata might still be present by the time control and Context reaches the storage exporter (except batching will mess it up), but for HTTP receivers tenancy header will be lost, unless OTEL has special mechanisms to capture it into Context

Stepping back, multi-tenancy may not work in v2 at all without support from OTEL. There is a relevant discussion in this PR https://github.com/open-telemetry/opentelemetry-collector/pull/2495


text:
Variable size separator groupings

Right now the upper and lower separators group the upper and lower digits into groups of three. It may be useful to group the digits into different sized groups. For example, it may be useful to group some binary representations into groups of 4. In fact, the add_group_chars function already has an input to control the number of grouping digits. This functionality is just not exposed to the user interface.

The possibility of variable sized separator groups could throw wrenches into input string parsing.

This was kind of going to be useful for binary representations, but actually, before #201, the binary modes were actually base-2 scientific formatting, not binary representations. Closing this since it is not useful.


text:
[Feature Request] Rejoin channels after restart

Is your feature request related to a problem? Please describe.
When I want to restart the musicbot, I have it in a few personal servers. Whenever I restart the bot, I have to manually put it back into every channel.
Describe the solution you'd like
Would it be possible to make the bot rejoin channels after a restart?

This is already possible. Simply set a vc channel for the bot (setvc) and an autoplaylist (autoplaylist) and the bot will join the channel and begin playing from the playlist when it starts up.

authors: Oelus jagrosh

repo: jagrosh/MusicBot


text:
Linking project overview dashboard to README

Adding a link to the README header. The linked dashboard describes overall repository structure. The goal is to help new developers explore project and understand architecture/dependencies. Direct link: https://sourcespy.com/github/jagroshvortex/

It doesn't even detect the database structure

It does not, you are right. Though the SQL access code is in the different module and it does not include DDL, right? Not sure where to get the table structure in addition to all this... any suggestions?

There only is one module and it includes all the tables and their structures. The access code also is available.

repo: jagrosh/Vortex


text:
[Bug]: At Update annotation, should we be most restrict

Specification Version
1.0.0-M2
Bug report
At the Update annotation, we have this quote:

The return type of the annotated method must be {@code void}, {@code boolean}, a numeric primitive type

(such as {@code int}), a corresponding primitive wrapper type (such as {@link Integer}), or the same type as the parameter.

Should we allow all primitives?
Why return the result as float, double, or byte?
IMHO: It should be most metric, such as only int and long
Additional information
No response

I agree. Including double and float is unnecessary here.

repo: jakartaee/data


text:
Stop downloads if service worker is unregistered

This should clarify what should happen if the browser profile is cleared too, as in incognito in Chrome.

Clarified in https://github.com/jakearchibald/background-fetch/commit/52bf7437807d2b540697d35f7f5002c09543315d

repo: jakearchibald/background-fetch


text:
draggedListIndex null when moving item in top left

Hi,
when moving an item from somewhere in the lists to the top left it occurs that the null-check of draggedListIndex fails.

It seems that .whenComplete((){ is somehow in the asyncronous call is called twice but I couldn't really dive deeper into the logic, maybe you have a clue.

Crash log:
I/flutter (13850): [2022-01-30 07:52:38.658171 | Catcher | INFO] ============================== CATCHER LOG ==============================
I/flutter (13850): [2022-01-30 07:52:38.658806 | Catcher | INFO] Crash occurred on 2022-01-30 07:52:38.657085
I/flutter (13850): [2022-01-30 07:52:38.659022 | Catcher | INFO]
I/flutter (13850): [2022-01-30 07:52:38.665425 | Catcher | INFO] ------- DEVICE INFO -------
I/flutter (13850): [2022-01-30 07:52:38.668144 | Catcher | INFO] id: RSR1.201013.001
I/flutter (13850): [2022-01-30 07:52:38.669514 | Catcher | INFO] androidId: a4eb8febffeede56
I/flutter (13850): [2022-01-30 07:52:38.671544 | Catcher | INFO] board: goldfish_x86
I/flutter (13850): [2022-01-30 07:52:38.673091 | Catcher | INFO] bootloader: unknown
I/flutter (13850): [2022-01-30 07:52:38.673414 | Catcher | INFO] brand: google
I/flutter (13850): [2022-01-30 07:52:38.673602 | Catcher | INFO] device: generic_x86_arm
I/flutter (13850): [2022-01-30 07:52:38.673771 | Catcher | INFO] display: sdk_gphone_x86_arm-userdebug 11 RSR1.201013.001 6903271 dev-keys
I/flutter (13850): [2022-01-30 07:52:38.674629 | Catcher | INFO] fingerprint: google/sdk_gphone_x86_arm/generic_x86_arm:11/RSR1.201013.001/6903271:userdebug/dev-keys
I/flutter (13850): [2022-01-30 07:52:38.675092 | Catcher | INFO] hardware: ranchu
I/flutter (13850): [2022-01-30 07:52:38.675526 | Catcher | INFO] host: abfarm-us-west1-c-0007
I/flutter (13850): [2022-01-30 07:52:38.675647 | Catcher | INFO] isPhysicalDevice: false
I/flutter (13850): [2022-01-30 07:52:38.675738 | Catcher | INFO] manufacturer: Google
I/flutter (13850): [2022-01-30 07:52:38.675944 | Catcher | INFO] model: sdk_gphone_x86_arm
I/flutter (13850): [2022-01-30 07:52:38.676414 | Catcher | INFO] product: sdk_gphone_x86_arm
I/flutter (13850): [2022-01-30 07:52:38.676522 | Catcher | INFO] tags: dev-keys
I/flutter (13850): [2022-01-30 07:52:38.676615 | Catcher | INFO] type: userdebug
I/flutter (13850): [2022-01-30 07:52:38.676703 | Catcher | INFO] versionBaseOs:
I/flutter (13850): [2022-01-30 07:52:38.676807 | Catcher | INFO] versionCodename: REL
I/flutter (13850): [2022-01-30 07:52:38.678090 | Catcher | INFO] versionIncremental: 6903271
I/flutter (13850): [2022-01-30 07:52:38.678334 | Catcher | INFO] versionPreviewSdk: 0
I/flutter (13850): [2022-01-30 07:52:38.678499 | Catcher | INFO] versionRelease: 11
I/flutter (13850): [2022-01-30 07:52:38.686513 | Catcher | INFO] versionSdk: 30
I/flutter (13850): [2022-01-30 07:52:38.686778 | Catcher | INFO] versionSecurityPatch: 2020-09-05
I/flutter (13850): [2022-01-30 07:52:38.686994 | Catcher | INFO]
I/flutter (13850): [2022-01-30 07:52:38.688534 | Catcher | INFO] ------- APP INFO -------
I/flutter (13850): [2022-01-30 07:52:38.689257 | Catcher | INFO] environment: debug
I/flutter (13850): [2022-01-30 07:52:38.689520 | Catcher | INFO] version: 0.9.1
I/flutter (13850): [2022-01-30 07:52:38.691351 | Catcher | INFO] appName: XXX
I/flutter (13850): [2022-01-30 07:52:38.691787 | Catcher | INFO] buildNumber: 202201291
I/flutter (13850): [2022-01-30 07:52:38.692339 | Catcher | INFO] packageName: XXX
I/flutter (13850): [2022-01-30 07:52:38.692592 | Catcher | INFO]
I/flutter (13850): [2022-01-30 07:52:38.692756 | Catcher | INFO] ---------- ERROR ----------
I/flutter (13850): [2022-01-30 07:52:38.692957 | Catcher | INFO] Null check operator used on a null value
I/flutter (13850): [2022-01-30 07:52:38.693181 | Catcher | INFO]
I/flutter (13850): [2022-01-30 07:52:38.693323 | Catcher | INFO] ------- STACK TRACE -------
I/flutter (13850): [2022-01-30 07:52:38.693588 | Catcher | INFO] #0      BoardViewState.build.<anonymous closure> package:boardview/boardview.dart:503
I/flutter (13850): [2022-01-30 07:52:38.694075 | Catcher | INFO] #1      _rootRun (dart:async/zone.dart:1420:47)
I/flutter (13850): [2022-01-30 07:52:38.694714 | Catcher | INFO] #2      _CustomZone.run (dart:async/zone.dart:1328:19)
I/flutter (13850): [2022-01-30 07:52:38.696102 | Catcher | INFO] #3      _FutureListener.handleWhenComplete (dart:async/future_impl.dart:203:18)
I/flutter (13850): [2022-01-30 07:52:38.696368 | Catcher | INFO] #4      Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:737:39)
I/flutter (13850): [2022-01-30 07:52:38.697425 | Catcher | INFO] #5      Future._propagateToListeners (dart:async/future_impl.dart:793:11)
I/flutter (13850): [2022-01-30 07:52:38.697798 | Catcher | INFO] #6      Future._completeWithValue (dart:async/future_impl.dart:602:5)
I/flutter (13850): [2022-01-30 07:52:38.698862 | Catcher | INFO] #7      _completeOnAsyncReturn (dart:async-patch/async_patch.dart:264:13)
I/flutter (13850): [2022-01-30 07:52:38.700419 | Catcher | INFO] #8      ScrollController.animateTo (package:flutter/src/widgets/scroll_controller.dart)
package:flutter/…/widgets/scroll_controller.dart:1
I/flutter (13850): [2022-01-30 07:52:38.700765 | Catcher | INFO] <asynchronous suspension>
I/flutter (13850): [2022-01-30 07:52:38.701310 | Catcher | INFO]
I/flutter (13850): [2022-01-30 07:52:38.701552 | Catcher | INFO] ------- CUSTOM INFO -------
I/flutter (13850): [2022-01-30 07:52:38.701705 | Catcher | INFO] ======================================================================

The same error occurs with any movement

authors: BenPoell Vebion

repo: jakebonk/FlutterBoardView


text:
The temporary files are stored next to the .exe file instead of in the directory intended for it

The WebView2 is creating tmp files while running. By default, the files are created next to the .exe file. It can be problematic while installing the app on C: partition in the location where there is no permission to create files next to the .exe file.
It will be nice to specify some standard directory or allow to specify it at the plugin API level.
While specifying some standard dir(hardcoded), it will be nice to care of situation that the user can have more than a single app using this plugin installed - then these apps can be in a collision if the location of WebView dir is the same - so the path should be rather unique.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/user-data-folder?tabs=win32#specifying-a-custom-udf-location
https://github.com/jakky1/webview_win_floating/blob/master/windows/my_webview.cpp#L123

Fixed in 2.2.0
Sample code:
String cacheDir = "c:\\test";
var params = WindowsPlatformWebViewControllerCreationParams(
    userDataFolder: cacheDir);
var controller = WebViewController.fromPlatformCreationParams(params);


text:
🛑 Repo1 is down

In 425b91b, Repo1 (https://repo1.dso.mil) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Repo1 is back up in aa79aed after 4 minutes.

repo: james-martinez/dso-mil


text:
🛑 Login is down

In bd319f3, Login (https://login.dso.mil) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Login is back up in 6d85db4 after 4 minutes.


text:
🛑 Ironbank is down

In 2c030b6, Ironbank (https://ironbank.dso.mil) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ironbank is back up in ad4d9b3 after 4 minutes.


text:
🛑 Ironbank is down

In 5ef20ba, Ironbank (https://ironbank.dso.mil) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ironbank is back up in 8104854 after 4 minutes.


text:
🛑 Registry1 is down

In 84ca560, Registry1 (https://registry1.dso.mil) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Registry1 is back up in 795d64e after 9 minutes.


text:
testpage-overlay Badge Number counts deleted resources

Currently the testpage-overlay badge number represents the number of resources including deleted ones. This is quite confusing for many users, as they are seeing e.g. 3 Patients in the overlay and then query the server and getting 0 results, as these 3 Patients are all deleted ones.
Would it make sense to change the overlays behaviour to only count available resources?

This probably merits a discussion.. The challenge with this is that adding a where clause on the count query would likely slow it down quite a bit on servers with a lot of data. Might make sense to make this a configurable thing, since including deletions in the counts is probably only even a problem on servers with smaller amounts of data

authors: jamesagnew patrick-werner

repo: jamesagnew/hapi-fhir


text:
[Calculate Similarity] Can we not using sentence-transformers pre-trained?

Hi there,
I so appreciate your nice work, It did give me a lot more understanding about the tokenization of the BERT model.
So in my case of training on the Vietnamese language (with a bunch of new specific vocabularies), can I load the model, not from sentence-transformer pre-trained (here the model I intend to use)
I did give it a shot, below is my pseudo-code
model_name = "vinai/phobert-large"
model = AutoModel.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
sentences = [
    "tôi thích quán này dữ lắm lắm luôn á trời",
    "trời hôm nay đẹp lắm",
]
#the first sentence means: I extremely love this restaurant,
#while the second one is the today's sky is so nice
#_______________

# initialize dictionary to store tokenized sentences
tokens = {'input_ids': [], 'attention_mask': []}

for sentence in sentences:
    # encode each sentence and append to dictionary
    new_tokens = tokenizer.encode_plus(clean_doc(sentence), max_length=128,
                                       truncation=True, padding='max_length',
                                       return_tensors='pt')
    tokens['input_ids'].append(new_tokens['input_ids'][0])
    tokens['attention_mask'].append(new_tokens['attention_mask'][0])

# reformat list of tensors into single tensor
tokens['input_ids'] = torch.stack(tokens['input_ids'])
tokens['attention_mask'] = torch.stack(tokens['attention_mask'])
outputs = model(**tokens)

embeddings = outputs.last_hidden_state

attention_mask = tokens['attention_mask']
mask = attention_mask.unsqueeze(-1).expand(embeddings.size()).float()

masked_embeddings = embeddings * mask
summed = torch.sum(masked_embeddings, 1)
summed_mask = torch.clamp(mask.sum(1), min=1e-9)
mean_pooled = summed / summed_mask

from sklearn.metrics.pairwise import cosine_similarity
mean_pooled = mean_pooled.detach().numpy()
cosine_similarity(
    [mean_pooled[0]],
    mean_pooled[1:]
)

Particularly, these two sentences are quite different, but their cosine value is about 91%.
Or there is any approach more suitable in my case.
I do appreciate your time and sharing.

Hey @lacls, apologies for the late response. Your code looks good, I think the problem most likely is that the PhoBERT model will not be trained specifically for similarity, whereas the sentence-transformer models are, so they will naturally outperform PhoBERT.
Nonetheless, I would hope that we could still get reasonable results using PhoBERT, maybe the cosine value is very high here, it could be an anomaly though. Have you tried with many sentences? I'd recommend getting 20 or so sentences with varying similarities and testing those.
Otherwise, it would be worth looking into if/how we could fine-tune a model like PhoBERT to be better suited for similarity, I can't say I have experience with this yet, although it is something I plan to work on soon.
Let me know if you manage to get results from more sentences :)

I do really appreciate your response.
I will update the results with more diverse sentences.
And I really agree with you at the point that, the PhoBERT wasn't be trained specifically for similarity.
I also intend to test these two sentences with a multilingual pre-trained of sentence-transformer to really know what was going on.

Yes definitely give that a go! Only thing I would check is which languages the multilingual models cover - the models I've seen I remember covering Chinese, English, German, and a couple others - but I'm not sure about Vietnamese.
I did find this article which looks pretty interesting and might help, the relevant part for this begins under the Transfer learning sentence embedding header - maybe this could help :)

Thank you really much for your sharing <3.

Closing the issue as I think you found your solution 😄

authors: jamescalam lacls

repo: jamescalam/transformers


text:
dispose animation controller

Thank you for the good pub.
I found the bug, Please check it.

The new version was published in pub.dev
https://pub.dev/packages/rolling_switch


text:
Google Play storefront country code propagation

Please, add the country code for storefront of the Google Play (for Android), as I know it has been available since Google Play Billing API 6.1.0+ through getBillingConfigAsync

I will add it in once the library is updated, the current binding is 6.0.1
We have the concept of a storefront already which iOS has. I will have to create some sort of initialization method to call into it, but should be doable.

Oh, that's great news! That's a very required feature for our application, so I will be really happy if you will add it as soon as possible.

The binding is in: https://github.com/xamarin/GooglePlayServicesComponents so would just wait for that, they usually update things every month or two.

Any updates regarding this question?

Looks like 6.1.0 is out so will give it a look

Did you check it out? Will it be included in the next version?

Just havent' had time, but feel free to PR

authors: jamesmontemagno ukod

repo: jamesmontemagno/InAppBillingPlugin