[Bug]: styleUrl and custom font: Mapbox error MapLoad error Failed to load glyphs

Mapbox Implementation
Mapbox
Mapbox Version
10.16.2
Platform
iOS, Android
@rnmapbox/maps version
10.1.3
Standalone component to reproduce
import React from 'react';
import {
  MapView,
  ShapeSource,
  LineLayer,
  Camera,
} from '@rnmapbox/maps';

const aLine = {
  type: 'LineString',
  coordinates: [
    [-74.00597, 40.71427],
    [-74.00697, 40.71527],
  ],
};

const styleUrl = "mapbox://styles/remigallego/clrq7yzzt00au01pebcy438s3"

class BugReportExample extends React.Component {
  render() {
    return (
         <MapView
            styleUrl={styleUrl}
          >
        <Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
        <ShapeSource id="idStreetLayer" shape={aLine}>
          <LineLayer id="idStreetLayer" />
        </ShapeSource>
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

I added a custom font to my mapbox custom style in Studio.
I added the styleUrl to my MapView component
The style is correctly displayed, however the fonts are not, and I get the following error message:

Mapbox error Map load failed: {type=glyphs, message=Failed to load glyphs: HTTP status code 404, begin=20384103955} {"level": "error", "message": "Map load failed: {type=glyphs, message=Failed to load glyphs: HTTP status code 404, begin=20384103955}", "tag": "RCTMGLMapView"}

Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response

@remigallego it's likely an issue with your style or an upstream issue with mapbox-maps-ios or mapbox-maps-android. Nothing the react-native wrappers can do about this.

@remigallego : I had same issue. Then, I realized that the font name in the Mapbox Studio is not the same than my font file (.ttf)
1 - Go to Mapbox studio
2 - Create a dummy style for testing purpose
3 - Click on top right, on the navbar to 'Fonts' to find your font name
4 - On React Native side, to use the font on your marker label style:
const markerLabelStyle = {
  ...
  textFont: ['fontName']
}

Hi, it seems like it doesn't work with custom fonts.
I'm facing the same issue, where I can't find a way to specify a custom "glyphs" URL as specified in the documentation — Glyphs.
I tried with the styleJSONprop on the MapViewcomponent but nothing gives.
Is there a way to add an additional style sheet/definition to include these custom glyphs?

@Oyzuu We've been able to add custom fonts by doing this in our app (tested on Android ONLY, we don't develop for iOS):

Manually fetch the styles.json file that you would have put in MapboxGL.MapView's styleURL prop, which should look something like this (this is the messiest part I think...)

 "glyphs": "mapbox://fonts/whatever/{fontstack}/{range}.pbf",

(optional) If you want to keep the fonts of the map intact, fetch all of the fonts from the glyphs property of the style.json at runtime
Programmatically modify the glyphs property to point to a custom path (on the device), where you'll put your font files (pbf format) that matches the variable glyph path:
"/local/path/on/your/device/{fontstack}/{range}.pbf"
Download your custom font files to that folder at runtime (we have them downloaded from our server to the same path, as you can't specify 2 different paths....), but you could find other ways...
Put the style.json object with the altered glyphs property in the styleJSON prop of the MapboxGL.MapView

The custom font is then used in that way (in the style prop of a a SymbolLayer:
{
  textFont: [fontface]
}

Where fontface matches the name of the folder of your font in your device local files.
ALTERNATIVELY (and that's how we first started to test it...), you can modify the glyphs property of the style.json to point to assets://{fontstack}/{range}.pbf, and put the font files (pbf) in these paths: android/app/src/main/assets/{fontface}/{range}.pbf.
Works for us, even though this feels very hacky and we're waiting to find a better way to do this...

Wanna just add my 2 cents with loading fonts on a SymbolLayer.
I had my font uploaded to my mapbox studio map, and although all the things on the map itself like road names had the font, the symbol layer I was rendering didnt have my custom font. Tried to use the name of the font, and nothing.
Well turns out it was just that easy, but the name was just wrong. I downloaded the map configuration from studio, and looked at the JSON. In there, I saw font names for the other aspects of the map I had configured. I tried one of those names, and boom the 404 error went away and the font looked correct on the SymbolLayer.
So if you have custom fonts on other parts of the primary map, try this approach to see if its just a naming thing.


Using native request.Context() to store params

Hey, since Go 1.7 http.Request supports integrated context package.
Do you have plans to pass httprouter.Params into http.HandlerFunc via request context?

See #147
Expect some progress within the next few days.


[SOLVED] Version 2.4 announcement blog post - RAT/PCR-DCC "Encryption"

I'm asking here, because I don't know yet, whether there is an issue in the blog post or not regarding technical description of transmitting, signing and decoding a RAT/PCR-DCC from test lab to "RKI" and to CWA. And because it's quite technical, it may fit here best for now.
Where to find the issue
https://www.coronawarn.app/en/blog/2021-06-24-cwa-version-2-4/

Please note: To create the test certificate, the data is encrypted end-to-end and transmitted from the lab or the rapid test site to the Corona-Warn-App. For this purpose, the encrypted data is transmitted to the Robert Koch-Institut (RKI) in order to digitally sign it and thus confirm the certificate’s validity. The RKI cannot decrypt the data, which will be deleted after the certificate has been delivered.

https://www.coronawarn.app/de/blog/2021-06-24-cwa-version-2-4/

Wichtig: Zur Erstellung des Testzertifikats werden die Daten Ende-zu-Ende verschlüsselt und vom Labor, beziehungsweise der Schnellteststelle an die Corona-Warn-App übermittelt.  Die Daten können vom RKI nicht entschlüsselt werden und werden nach Zustellung des Zertifikats gelöscht.

Describe the issue
As far as I understand data structure, encoding, signing and transmission of DCCs, above descriptions are not correct.
I assume the RAT/PCR-DCCs have following COSE structure:

(Taken from here: https://pycose.readthedocs.io/en/latest/cose/messages/sign1message.html)
As far as I know, CWA does not make use of any Document Signer Certificates (DSCs) or any other forms of certificates for cryptography yet, thus the payload of the DCC will need to be in plain text for displaying contents in CWA. It is encoded (and can be decoded), but it is not encrypted (hence will not be decrypted).
This means, the "RKI" is always able to "read" the contents of the DCC while it is processing the signing and then transmitting it to CWA. But for sure the data will be immediately erased after signing and transmitting to CWA, no doubt.
The test lab could encrypt the data before sending them to "RKI" for signing - in that case the test lab may have obtained a certificate for encryption from "RKI". But I assume that "end-to-end encryption" in the text above refers to the https transfer between these two endpoints? Encrypting the data then would be a second encryption layer, that is probably unnecessary, as "RKI" sends an unencrpted DCC to CWA?
If my assumptions are correct, should the blog post be corrected/made more precise then?
I think, @thomasaugsten or @mlenkeit could help here...
Thank you very much in advance, and have a nice week-end!

After pressing "submit", it just comes to my mind:
Are the DCCs actually encrypted - with the birthdate?

The content of DCC is encrypted. The device will create and private and public for each DCC request. In case of a negative result the user device will upload the public key to the test lab. The test lab will encrypt the DCC and the user can decrypt the DCC with the private key. On the transport nobody can decrypt the DCC. The birthday is necessary to have unique identifier in the test id of an pcr test

@thomasaugsten
Thank you very much - that's amazing. That was completely out of my sight when peeking to the code.
Have a nice time!

But still: won't RKI need to sign the unencrypted DCC to be compliant with the ehn-schema? If "RKI" signed an encrypted DCC, the signature would get invalid for veryfing the "regular" (unencrypted) DCC object?

RKI is signing the hash not the complete certificate

@thomasaugsten
Thanks again!

RKI is signing the hash not the complete certificate

That was also how I understood it earlier. In this case, the blog post is a bit misleading in this special detail:

Dafür werden die verschlüsselten Daten an das Robert Koch-Institut (RKI) übermittelt, um sie digital zu signieren

I will think about, whether that sentence may be improved and continue in website repo accordingly.
@dsarkar @heinezen
Could be nice to leave this issue here open for a while for information purposes, but please close anytime you feel it's suitable.

@vaubaehn I think the time has come to close this issue. 🥲

@vaubaehn already wrote:

Could be nice to leave this issue here open for a while for information purposes, but please close anytime you feel it's suitable.

So I suggest to close the issue now.


Update CFPB logo and references to BCFP

Sometime next week, we're anticipating the request to update the website to reflect our name change. Here's a PR for the necessary updates in this repo.
Changes

Logo and text references from CFPB to BCFP

Testing

Pull this branch
Ensure you're running on the latest master of cfgov-refresh, where the new logos have been added this afternoon
Click through the TDP pages locally and ensure that you're seeing the new logo and updated text everywhere

Checklist

[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[x] New functions include new tests
[x] New functions are documented (with a description, list of inputs, and expected output)
[x] Placeholder code is flagged
[x] Visually tested in supported browsers and devices
[x] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

This can be merged, but not released until we get the word. Once we do get the word, it would be good if we can release within an hour or two.


Get DNNL v1.2.2 back to master branch

Description
3rdparty/mkldnn was down graded from v1.2.2 to v1.1.2 by accident in #17084. This PR gets the right version back.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@pengzhao-intel @haojin2 If possible, please approve and merge. Thanks.


Validate require, minOccurs, maxOccurs

Great to see occurence support added in #101.
It would be good if jsonix could validate that required fields are present when unmarshalling an XML document. If a required field is missing, jsonix should throw an error.
This is already done for other things, like enum values: https://github.com/highsource/jsonix/blob/master/nodejs/scripts/jsonix.js#L2667

I'm a bit sceptic about validation. Enums were required because they can't
be typesafely converted otherwise.
But validating occurence or facets would probably go to far, it is from my
point of view not really the scope of Jsonix.
In this case I think it woule be better to generate a JSON Schema and to
validate JSON against that schema using a JSON Schema validator like AJV.
What do you think?
On Fri, Oct 9, 2015 at 8:57 PM, Alex Brausewetter<EMAIL_ADDRESS>wrote:

Great to see occurence support added in #101
https://github.com/highsource/jsonix/issues/101.
It would be good if jsonix could validate that required fields are present
when unmarshalling an XML document. If a required field is missing, jsonix
should throw an error.
This is already done for other things, like enum values:
https://github.com/highsource/jsonix/blob/master/nodejs/scripts/jsonix.js#L2667
—
Reply to this email directly or view it on GitHub
https://github.com/highsource/jsonix/issues/103.

Closing as wontfix as validation is not in the scope of Jsonix.

if validation is out of scope what is the purpose of required property inside typeInfos ?
propertyInfos: [{
name: 'contractStateCode',
required: true,
elementName: 'ContractStateCode',
typeInfo: 'Token'
}, {
thanx

Some folks use this information for tasks like UI generation. This required attribute is provided by the underlying schema model libs so it's easy to generate. But Jsonix has never had validation in the scope.

So ma it  VERY clear in docs at least. To avoid more of us confused users.
Thanx man


Source code

Hi,
Congrats on your project! Very cool. But i didn't see source code?
Would you consider adding the source code?
Thanks.

@muhammetsahin
Thank you for your kind words about the project!
This particular project was developed for a specific enterprise and has been running stably for some time. As you might understand, each company's requirements and business needs can vary widely.
If you are genuinely interested in the source code and wish to build upon it with new functionalities, I'm open to sharing it with you. However, I'd like to kindly point out that I've put a lot of effort into this project, so a certain fee for the code would be appreciated. If you agree with this, please feel free to reach out, and we can discuss the details.

Thank you. I sent an email.


Set UID of node user to the UID of the host user

Proposed changes
On multi-user systems, such as the University of Canterbury linux systems, it appears that the node user created by the Nodejs docker base has a different UID to the host user. This is a problem because we use a bind mount, which retains the host users permissions, meaning that the node user doesn't have permission to access the mounted files.
This PR sets the UID of the node user to the value of the $UID bash shell variable to fix the permission issue.
Checklist
Change the space in the box to an x for those you have completed.
You can also fill these out after creating the pull request.
If you're unsure about any of them, don't hesitate to ask.
We're here to help!
This is simply a reminder of what we are going to look for before merging your change.

[x] I have read the contribution guidelines.
[x] I have linked any relevant existing issues/suggestions in the description above (include #??? in your description to reference an issue, where ??? is the issue number).
[x] The pull request is requesting a merge into the develop branch.
[x] I have added necessary documentation (if appropriate).
[x] If I've added/modified/deleted a third-party system, I've updated the relevant license files.
[x] I have added myself to the 'Community Contributors' section of csfieldguide/templates/appendices/contributors.html

Thank you. I didn't realise my autoformatter was still on.

There are errors in the tests when trying to deploy this, not going to merge until i fix those and get a working development deployment. See https://github.com/Yamboy1/cs-field-guide/actions/runs/3483296577/jobs/5826626533

The CI passed on my fork, this PR is good again.


Allen & Heath SQ fader level to output issue

New to Stream Deck/Companion, very cool so far, but having an issue with the Allen & Health SQ module (we have an SQ6).  I've made several buttons to mute/unmute channels, those work great.  Made a button today that brings the main LR fader (fader level to output) up to 0 dB, and that works great.  However, having an issue making that same LR fader go back down to -Inf dB (infinity), instead of going all the way back down, it only down to -1 dB.  Doesn't matter if it's the unlatch action on a latch button, or on a button all by itself, selecting "-inf dB" as the level just goes to straight to -1 dB).  If I select "-39 dB", that works but only goes down to that level, which is not all the way down.  "-39 dB" is the lowest option available next to "-inf dB".  Just wanted to report this, it's possible I'm doing something wrong but not sure what.  Was originally running 2.2.0-0a98e47a-3475 (Windows), tried upgrading to 3482 today with no change.  Thank you.

Hi @toogle9  I've tried now and effectively it's a bug. I will resolve it in a short time, then I will upgrade this thread. Thanks.

Hello, thank you very much for acknowledging!  This is not a show stopper at this time, at least for me, so not a huge rush just wanted to get it reported.  Sometimes I end up running our Sunday services alone, so I sit at the computer to drive the slides, and use a laptop sitting to the right with the Allen & Heath MixPad app to run the board.  Unfortunately there are times when that requires 2 right hands, so since I only have 1 right hand, I am experimenting with the Stream Deck so that I can do certain key functions channel mute/unmute, etc with my left hand while driving the computer with the right.  Just a convenience thing really.  Thanks again!

@toogle9  New beta release is published. Enjoy.


Fix itemRenderer key value

When calling itemRenderer(index, key) key argument should be equal to index in order to improve performance by avoiding unnecessary components remounts/renders between rows on scrolling.
Right now key is always started from 0 and incremented by 1 for the different slices of list items which is wrong.
Because of this issue In my project I have to use index as a key value:
const itemRenderer = index => (
{someList[index]}
);

Feel free to use index as your key in your itemRenderer. Your statement is not true for all cases though, so we shouldn't make it impossible for people to use the key value for their itemRenderer key if they choose.


Redesign zopfli CLI usage

Redesign `zopfli` CLI utility based on sensible usage of Zopfli:
    Including integration with `zopflipng`.
    And removing/readjusting current options.

Purpose of Zopfli:
    Algorithm specifically designed to generate smaller Deflate compatible output.
    .
    May not compete more advanced designs like LZMA, Brotli alike:
    But implementations relied on Deflate may seamlessly receive the size reduction.
Primary usage:
    APK, PNG.


Update jena-arq, jena-fuseki-main to 4.8.0

About this PR
📦 Updates

org.apache.jena:jena-arq
org.apache.jena:jena-fuseki-main

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

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

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.apache.jena" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #356.


[Bug Bash] MS Docs Document Translation: code snippet might be broken?

The code in the example below doesn't run immediately for me. I might be missing something when attempting to run the sample, but the $  with the space after them in Console.WriteLine doesnt even allow the project to build. I have to remove the space after the $ in order for the snippet to run.
The code can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/translator/document-translation/client-sdks?tabs=csharp#translate-a-document-or-batch-files
  Console.WriteLine($ "  Status: {operation.Status}");
  Console.WriteLine($ "  Created on: {operation.CreatedOn}");
  Console.WriteLine($ "  Last modified: {operation.LastModified}");
  Console.WriteLine($ "  Total documents: {operation.DocumentsTotal}");
  Console.WriteLine($ "    Succeeded: {operation.DocumentsSucceeded}");
  Console.WriteLine($ "    Failed: {operation.DocumentsFailed}");
  Console.WriteLine($ "    In Progress: {operation.DocumentsInProgress}");
  Console.WriteLine($ "    Not started: {operation.DocumentsNotStarted}");

  await foreach(DocumentStatusResult document in operation.Value) {
    Console.WriteLine($ "Document with Id: {document.DocumentId}");
    Console.WriteLine($ "  Status:{document.Status}");
    if (document.Status == TranslationStatus.Succeeded) {
      Console.WriteLine($ "  Translated Document Uri: {document.TranslatedDocumentUri}");
      Console.WriteLine($ "  Translated to language: {document.TranslatedTo}.");
      Console.WriteLine($ "  Document source Uri: {document.SourceDocumentUri}");
    }
    else {
      Console.WriteLine($ "  Error Code: {document.Error.ErrorCode}");
      Console.WriteLine($ "  Message: {document.Error.Message}");
    }
  }
}

You're correct in that the code is malformed and is not compilable as-is.   The issue has been transferred to the MS Docs repository where the article is sourced as #84994.


Issue with dereferencing

I'm not entirely sure what the proper title should be because I don't entirely understand the issue.
Code: is_station_level((T = get_turf(H)).z)
Error: Invalid property "z"

Probably related to https://github.com/wixoaGit/OpenDream/issues/528


In Network DAO, click 'Create a proposal', jump to create normal proposals page

Description
In Network DAO, click 'Create a proposal', jump to create normal proposals page
Steps To Reproduce

Log in...
Enter Network DAO page
Click 'Create a proposal'

Current Behavior

Jump to create normal proposals page

Expected Behavior

Should jump to create network DAO proposal page

Environment

Platform: PC
Node: v18.18.0
Browser: Chrome 126.0.6478.56

fixed confirm


Add logic for handling new parameter in request

What does this PR do?

It checks if the new param is present in the request
If the param is present, it creates a random id and loads the default document

Finishes #229

This took me longer than I expected but finally got sth'n up. 😅


Question: How do I see student solutions?

Related user(s):
No response
Related issue(s) or PR(s):
No response
Related project scope(s):
No response
Question?
I'm not sure how to see the students solutions.  Is this in the docs?  I may have missed it.
What has already been tested:
I did look at the Teach link, but not seeing a way to actually see student answers.
learn-ocaml --version
No response
git describe --long --always --abbrev=40 --tags
No response
What OS do you use?
GNU/Linux
What browser(s) do you use with learn-ocaml?
No response
Additional context:
No response

Dear @heades,
Good question, it appears the possible teacher workflows are not very well documented currently…
(Just tagged your issue as kind: documentation BTW.)
To sum up, as a teacher (having a so-called "teacher token" starting with X-xxx-xxx-xxx-xxx) you can indeed browse the Teach tab then see the list of exercises and the list of students tokens:

then double-click on any student line to see the list of all the exercises he/she participated in, including their code (provided they clicked on Grade!, Sync would not be sufficient… we plan to improve this)
or middle-click on an exercise to trigger the "partition-view" feature → cf. e.g. slide 10/20 of this presentation of mine: https://www.irit.fr/~Erik.Martin-Dorel/exposes/2022-W12_learn-ocaml_features.pdf (unfortunately this does not seems available on macOS, cf. issue #500
or clone the underlying git repository of a given student → cf. e.g. slide 8/20 of the same presentation.

hoping that this helps; but feel free to ask more details

Also—just to recall—, if you are teacher and admin of your learn-ocaml instance, you can also fetch/backup/… the students solutions in the "sync" folder in the current directory (or in the typically-mounted-in-a-volume /sync directory if you use the official docker images).

Thanks so much @erikmd !  This helps a lot, and I now have it figured out.  Sorry I didn't close this sooner.


Tellurium Notebook: Python 3 on Windows cannot load large antimony string model

Originally filed on Tellurium discuss:
A user is reporting not being able to load in a model written as antimony string block on Tellurium notebook. It seems like this is more like a Python 3 issue, because apparently the same error occurs when you use something like miniconda.
Appears to work on Sypder IDE rinning Python 2.7
I was able to reproduce the issue on the latest Tellurium Notebook on Windows. It seems like Tellurium is trying to check whether the string is a path to a file or not. Not sure about The error message is: ('EOF in multi-line string', (1, 1)) bit though.
Attached is a script with the model. The same script runs without problem on Tellurium Spyder.
ERROR:root:An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line string', (1, 1))

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-18-8cf99abe5af5> in <module>()
    195   Vmaxf_R90 = ( R90 / ( unity - (S9 * S15 * S84 / S5 * S16 * S20) / Keq_R90 ) * S5 / Km_R90_S5 * S16 / Km_R90_S16 * S20 / Km_R90_S20 / ( unity + S5 / Km_R90_S5 + S16 / Km_R90_S16 + S20 / Km_R90_S20 + S9 / Km_R90_S9 + S15 / Km_R90_S15 + S84 / Km_R90_S84 ) );
    196   Vmaxf_R91 = ( R91 / ( unity - (S57 * S85 / S47 * S55) / Keq_R91 ) * S47 / Km_R91_S47 * S55 / Km_R91_S55 / ( unity + S47 / Km_R91_S47 + S55 / Km_R91_S55 + S57 / Km_R91_S57 + S85 / Km_R91_S85 ) );
--> 197  """)

~\AppData\Roaming\Tellurium\telocal\python-3.6.2\lib\site-packages\tellurium\tellurium.py in loada(ant)
    517     :rtype: roadrunner.ExtendedRoadRunner
    518     """
--> 519     return loadAntimonyModel(ant)
    520
    521

~\AppData\Roaming\Tellurium\telocal\python-3.6.2\lib\site-packages\tellurium\tellurium.py in loadAntimonyModel(ant)
    533     :rtype: roadrunner.ExtendedRoadRunner
    534     """
--> 535     sbml = antimonyToSBML(ant)
    536     return roadrunner.RoadRunner(sbml)
    537

~\AppData\Roaming\Tellurium\telocal\python-3.6.2\lib\site-packages\tellurium\tellurium.py in antimonyToSBML(ant)
    590     :rtype: str
    591     """
--> 592     if os.path.isfile(ant):
    593         code = antimony.loadAntimonyFile(ant)
    594     else:

~\AppData\Roaming\Tellurium\telocal\python-3.6.2\lib\genericpath.py in isfile(path)
     28     """Test whether a path is a regular file"""
     29     try:
---> 30         st = os.stat(path)
     31     except OSError:
     32         return False

ValueError: stat: path too long for Windows

bugpath.zip

I didn't write the code that throws an error, but I pushed a commit that should fix it. I will test and upload.


Projects restricted cluster target

@stgraber not sure about adding new HasFlagTarget field to InstancePost and InstanceSource structs but we need to pass info about use of flag '--target' by user. I thought about using targetNode var (which is used in lxd/instance_post.go:instancePost and lxd/instances_post.go:instancesPost) but this var is also set in code when request goes to second node.

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

Hmm, we shouldn't need to expand any of the structs for this.
Whenever the user passes --target, the server gets a ?target=NAME in the URL, so we already have that data.
I suspect what you'll need to do is look into ./lxd/instance_post.go (instance move) and ./lxd/instances_post.go"  (instance creation) for where queryParam(r, "target")` is used and at that point, retrieve the project and check if it's restricted, if it is, then we should fail.

@stgraber Yes, you are right. So we need to move out checking logic from lxd/project/permissions.go and do this check as soon as possible in lxd/instances_post.go and lxd/instance_post.go because ?target=NAME can be also set by server (by using UseTarget()) even when user doesn't pass --target flag (e.g. here lxd/instances_post.go). Am I right? And indeed this solution should be simpler and cleaner.

Yeah, right now the only place we need to have this check is in lxd/instances_post.go and lxd/instance_post.go, no need for the rest. I think we should also make it so that if you're an administrator, the restriction is bypassed (rbac.UserIsAdmin(r)) so that the server administrator evacuating some specific cluster nodes doesn't get impacted by this option.

@stgraber PR updated

@presztak just a few edits and we should be good to go!

@stgraber done.

jenkins: test this please


[Here's LIVe!!] Gervonta Davis vs Frank Martin LIVE STreams, ON TV Channel 15 June 2024

How to watch Davis vs Martin Live Stream: Tank vs Martin Live Free Gervonta 'Tank' Davis vs Frank Martin: Date, time, fight card, & PPV price TV Guide & Streaming. How to catch the crucial lightweight bout live from Las Vegas Today.
🔴🥊 Here: Davis vs Martin fight streams free
🔴🥊 Visit Here: Frank Martin vs Gervonta Davis live
Gervonta 'Tank' Davis will look to shake off the ring rust and put a controversial year outside of the ring behind him when he steps back into it to face Frank Martin in his first WBA lightweight title defence, live from the MGM Grand Garden Arena in Las Vegas, United States.
The undefeated fighter has not competed since he floored Ryan Garcia in April 2023. Tank instead spent more than a month in jail in Baltimore after breaking a home detention order.
But free to resume his career, Davis now puts his title on the line after he became the WBA's champion following Devin Haney's decision to move divisions and relinquish his crown last November.
It makes his bout with fellow unbeaten competitor Martin a fascinating encounter as he looks to stave off the challenger to his newfound crown in what looks set to be one of the most anticipated bouts of the year.
So, how can you catch it all unfold? Allow GOAL to give you all the details you need to know about how to watch Gervonta Davis and Frank Martin fight this Saturday from Vegas.
When will Gervonta Davis vs Frank Martin take place?
Gervonta Davis and Frank Martin will face off on Saturday, June 15, with the fight due to take place at the MGM Grand Garden Arena in Las Vegas, Nevada, United States.
The host of several other major bouts in recent years, a blockbuster crowd looks set to descend on Sin City for Tank's return to the ring against his latest challenger and opponent.
Gervonta Davis vs Frank Martin Fight Card
Weight Class Main Card
Lightweight Gervonta Davis vs Frank Martin
Light heavyweight David Benavidez vs Oleksandr Gvozdyk
Super lightweight Gary Antuanne Russell vs Alberto Puello
Middleweight Carlos Adames vs Terrell Gausha
Gervonta Davis professional boxing stats
Age: 29
Height: 5ft 5in
Reach: 67.5"
Total fights: 29
Record: 29-0 (27 KOs)
Frank Martin professional boxing stats
Age: 29
Height: 5ft 8in
Reach: 68"
Total fights: 18
Record: 18-0 (12 KOs)
fdsfdsffsdf fsdfdsfdsf

🥊👉Watch Davis vs Martin live streams HD
Watch HD : https://tinyurl.com/mr2ae76r
Watch 4k HD : https://tinyurl.com/mr2ae76r

🥊👉Watch Davis vs Martin live streams HD
Watch HD : https://tinyurl.com/mr2ae76r
Watch 4k HD : https://tinyurl.com/mr2ae76r

🥊👉Watch Davis vs Martin live streams HD
Watch HD : https://tinyurl.com/5etvp2ee
Watch 4k HD : https://tinyurl.com/5etvp2ee

The Match you are looking for is STREAMING NOW.


Add QString comparison

Since I'm using Qt I would like to make direct QString comparison without converting it to std::string explicitely. I would see two alternative to this:

Add the possibility to make constraint with custom type (it is already possible to add new constraint)
Add an optional set of instruction specific to Qt type like QString

I come back with this issue: I understand that it is not a good idea to have Qt dependencies within snowhouse. A best solution would  be to have the ability to create its own assertion?
My spec are full of these:
https://github.com/Phonations/Joker/blob/master/specs/StripSpec/StripDocSpec.cpp#L32

Perhaps you could add an operator for comparing QString and std::string like this:
bool operator==(const std::string& str, const QString& qstr)
{
    return str == mstr.toStdString();
};

That might allow the current equals operator to work out of the box.

It works perfectly!


Distinction between Knight Archer and Druid

Describe your idea
It would be really nice if i can differentiate between the different military classes like in the Title.
At the moment there is only "guardtower" as a military class but there are Knight , Archer and Druid.
Describe alternatives you've considered if you've any
No response
Additional context
No response
Linked Issues
No response

After some testing, I noticed that this already works
A citizen table has a key called work
In this table are two keys which are important for your request
First we have type which is the name of the building. Can be guardtower, barrackstower or any other name
And the job key which is the actual name of the job. Can be knight, druid, archer or something else for another job


Use total_net and total_tax fields instead of order.get_total()

Since we've added total_net and total_tax fields to Order model, we shouldn't calculate totals every time.

:+1:

Current coverage is 49.91%

Merging #427 into master will increase coverage by +0.05% as of 3a6eb85

@@            master    #427   diff @@
======================================
  Files           81      81
  Stmts         3445    3442     -3
  Branches       326     326
  Methods          0       0
======================================
  Hit           1718    1718
  Partial         32      32
+ Missed        1695    1692     -3

Review entire Coverage Diff as of 3a6eb85

Powered by Codecov. Updated on successful CI builds.

@patrys Fixed.

@tuerlefl I have observed the same.


Thumbnails and snippets occasionally mismatched

Describe the bug
When keyword searching, the returned thumbnail image does not always match the returned snippet.
To reproduce
Steps to reproduce the behavior:

Go to https://prosody.princeton.edu/archive/mdp.39015021952943/?query=%22Charlotte%20Smith%22
Scroll down to "Search within Volume" result
See error. The thumbnail pulls a piece of poetry from p. 4. The snippet with keywords highlighted is from page 2. And the page label says p. 20.

Expected behavior
Thumbnail image, snippet, and page label all should match.
Device information

Device: Macbook Pro 13-inch 2022
OS and version: macOS Sonoma 14.2
Browser and version: Chrome 120.0.6099.71
Site version 3.10.0

Additional context
We suspect this bug may be related to the HathiTrust rescanning problem, which changes the digital page sequencing.

We suspect that updating rsync (#453) might actually fix this problem and can check with known mismatches like the one described above

I wanted to test our theory, so I ran the hathi_rsync script on this id and then reindexed pages, and it corrected the problem for the search linked in the example.
(I did this in production without thinking about it because I was doing some other indexing fixes... 🤦♀  Glad it didn't cause any problems, and I'll stop now!)

@mnaydan maybe this should be in review - do you want to test the record linked above on the production site? Do you have any other records with known mismatches that you want to test with? I'd be glad to run the rsync + reindex on a subset of records. Or, maybe we could just test those records in tandem with testing the hathi rsync script - it looks to me like that script might be ready to test on the staging site, once we synchronize the data between production and staging so we can compare.

@rlskoeser I tested the above URL and it does appear fixed (there is still something wonky with the page label, but that seems to be on HT's end -- the physical page says 2, but HT's reader says the physical page is 6). The only other case I know of off the top of my head is https://test-prosody.cdh.princeton.edu/archive/mdp.39015060429332-p150/?query=his, which is pulling the right image (p. 96) but the wrong page label (p. 93) and the wrong text (p. 92). If you wanna try rerunning the rsync & reindex on that ID, I can test.


DataGrid doesn't show updated data with LoadData, virtualization and custom filters

Describe the bug
I have a DataGrid configured as follow:
<RadzenDataGrid @ref="grid" Data="@_projects" Count="@count" LoadData="@LoadData" TItem="{...}" AllowSorting="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"                 AllowFiltering="true" AllowMultiColumnSorting="true" FilterMode="FilterMode.Advanced"<EMAIL_ADDRESS>RowSelect="@NavigateToCoordinations" ShowMultiColumnSortingIndex="true" Culture="@(new CultureInfo("pl-PL"))"                 AllowVirtualization="true" Style="height:72vh" VirtualizationOverscanCount="20">
I also have a text filter, that should filter by all the columns:
<RadzenTextBox @bind-Value=@searchText Style="width: 50ch;" Change=@SearchChange />
Currently, my SearchChange function looks like this:
private async Task SearchChange()     {         await grid.Reload(); //to trigger LoadData         await InvokeAsync(StateHasChanged);     }
And my LoadData like this: (for debugging purposes, to simplify - the searchText only filters by Name column)
void LoadData(LoadDataArgs args)
    {
        var query = _projectsDataSource.AsQueryable();
        var filtersApplied = false;

        if (!string.IsNullOrEmpty(searchText.Trim()))
        {
            query = query.Where($"(Name == null ? \"\" : Name).ToLower().Contains(\"{searchText}\".ToLower())");
            filtersApplied = true;
        }

        if (!string.IsNullOrEmpty(args.Filter))
        {
            query = query.Where(args.Filter);
            filtersApplied = true;
        }

        if (filtersApplied)
        {
            count = query.Count();
        }
        else
        {
            count = _projectsDataSource.Count();
        }

        if (!string.IsNullOrEmpty(args.OrderBy))
        {
            query = query.OrderBy(args.OrderBy);
        }

        _projects = query.Skip(args.Skip.Value).Take(args.Top.Value).ToList();

        InvokeAsync(StateHasChanged);
    }

While debugging, the _projects and count have correct values when applying my custom filter - but the grid doesn't show any records (it shows an empty grid, with a scroll that would indicate the amount of items before filtering).
When I apply any change to the grid (for example sorting on the name column) the data appears correctly.
When I turn the virtualization off, the data also loads correctly, immediately.
How can I ensure, that the grid shows the correct data, instead of an empty grid?

Hey @PWyrostek,
It will be better to use our forum to search or post your questions:
https://forum.radzen.com/t/refresh-datagrid-with-virtualization-after-filter-with-external-searchbox/14061/4


Not all type of events are saved in Clickhouse

Actions before raising this issue

[X] I searched the existing issues and did not find anything similar.
[X] I read/searched the docs

Steps to Reproduce

CVAT deployed via helm in k8s
Turn on alnalytics by analytics.enabled=true

Expected Behavior
All type of events should be stored in Clickhouse via backend -> vector -> Clickhouse.
Possible Solution
No response
Context
When I turn on analytics, just few type of events are saving in Clickhouse (like create:job, update:task from server source), nothing more. Users activity, working time, create/delete project, delete task/job are not exist in Clickhouse.
By the way, looks like the server POST events:
2024-12-06 10:27:53,189 DEBG 'uvicorn-0' stderr output:
{"scope":"save:job","obj_name":null,"obj_id":null,"obj_val":null,"source":"client","timestamp":"1733480873.184401","count":null,"duration":2,"project_id":38,"task_id":257,"job_id":890,"user_id":68,"user_name":"user","user_email":"user@gmail.com","org_id":2,"org_slug":"org","payload":"{\"client_id\": \"889802\", \"is_active\": true, \"working_time\": 0, \"username\": \"user\"}"}

2024-12-06 10:27:53,190 DEBG 'uvicorn-0' stdout output:
INFO:     <IP_ADDRESS>:0 - "POST /api/events?org=org HTTP/1.0" 201 Created

But nothing in Vector logs and Clickhouse DB.
When I create a new task I see the logs in Vector and new row in DB, but just for this case.
I found one same issue: Am I the only one whose client events are not being saved in k8s? · Issue #8205 · cvat-ai/cvat
Any good idea?
Environment
Logs from `cvat-server`:
2024-12-06 10:27:53,189 DEBG 'uvicorn-0' stderr output:
{"scope":"save:job","obj_name":null,"obj_id":null,"obj_val":null,"source":"client","timestamp":"1733480873.184401","count":null,"duration":2,"project_id":38,"task_id":257,"job_id":890,"user_id":68,"user_name":"user","user_email":"user@gmail.com","org_id":2,"org_slug":"org","payload":"{\"client_id\": \"889802\", \"is_active\": true, \"working_time\": 0, \"username\": \"user\"}"}

2024-12-06 10:27:53,190 DEBG 'uvicorn-0' stdout output:
INFO:     <IP_ADDRESS>:0 - "POST /api/events?org=org HTTP/1.0" 201 Created

Used default values.yaml:
analytics:
  enabled: true
  clickhouseDb: cvat
  clickhouseUser: user
  clickhousePassword: user
  clickhouseHost: "{{ .Release.Name }}-clickhouse"

vector:
  envFrom:
    - secretRef:
        name: cvat-analytics-secret
  existingConfigMaps:
    - cvat-vector-config
  dataDir: "/vector-data-dir"
  containerPorts:
    - name: http
      containerPort: 80
      protocol: TCP
  service:
    ports:
      - name: http
        port: 80
        protocol: TCP
  image:
    tag: "0.26.0-alpine"

clickhouse:
  shards: 1
  replicaCount: 1
  extraEnvVarsSecret: cvat-analytics-secret
  initdbScriptsSecret: cvat-clickhouse-init
  auth:
    username: user
    existingSecret: cvat-analytics-secret
    existingSecretKey: CLICKHOUSE_PASSWORD
  # Consider enabling zookeeper if a distributed configuration is used
  zookeeper:
    enabled: false

The configuration looks mostly correct for enabling analytics, but the issue might lie in:
The Vector configuration, which might not be set up to capture all types of events.
The Clickhouse schema, which might need adjustments to store additional event types.
Connectivity or processing issues between Vector and Clickhouse.
You may need to check the Vector configuration for any missing event types and ensure Clickhouse is set up to store all event data. Additionally, reviewing the logs from both services (Vector and Clickhouse) can provide more insight into why some events are not being stored.

But I use default config for Vector and initial script for Clickhouse from this repo, for example Vector config:
[sources.http-events]
type = "http_server"
address = "<IP_ADDRESS>:80"
encoding = "json"

# Uncomment for debug
[sinks.console]
type = "console"
inputs = [ "http-events" ]
target = "stdout"

[sinks.console.encoding]
codec = "json"

[sinks.clickhouse]
inputs = [ "http-events" ]
type = "clickhouse"
database = "${CLICKHOUSE_DB}"
table = "events"
auth.strategy = "basic"
auth.user = "${CLICKHOUSE_USER}"
auth.password = "${CLICKHOUSE_PASSWORD}"
endpoint = "http://${CLICKHOUSE_HOST}:8123"
request.concurrency = "adaptive"
request.retry_attempts = 3
request.retry_backoff_secs = 1
encoding.only_fields = [
    "scope",
    "obj_name",
    "obj_id",
    "obj_val",
    "source",
    "timestamp",
    "count",
    "duration",
    "project_id",
    "task_id",
    "job_id",
    "user_id",
    "user_name",
    "user_email",
    "org_id",
    "org_slug",
    "payload",
]

There is nothing unusual in the logs either, I enabled error output in Vector, but there are no errors there.
It looks like the events are not reaching the Vector, but why does CVAT get code 200 in the response?
Could you tell me where exactly the message exchange between Vector and CVAT is configured?


README.md needs to be updated

There are a lot of resources that aren't included in the README.md:
-xIisFeatureDelegation
-xIisHandler
-xIisMimeTypeMapping
-xWebAppPoolDefaults
-xWebSiteDefaults

duplicate of #207


What the difference between Monitor alert section and the one in the log analytics alert section

I see that there are two different alert sections one in Monitor and one in log analytics.
What is the difference ??

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

ID: c310132b-22c6-8d12-8986-a11d470bb140
Version Independent ID: d77c28b5-7cb4-26c6-6a78-36a5aede6054
Content: Create, view and manage alerts Using Azure Monitor
Content Source: articles/monitoring-and-diagnostics/monitor-alerts-unified-usage.md
Service: azure-monitor
GitHub Login: @msvijayn
Microsoft Alias: vinagara

@akramwaseem Thanks for your feedback! We will investigate and update as appropriate.

@akramwaseem If  you are asking what the difference is between the Alert & Alert (classic) options as shown in the screenshot below? If not, please share a screenshot of the sections and I can investigate further.
Alert supports the new unified, near-realtime alert experience that allows you to manage alerts from multiple subscriptions and introduces alert states and smart groups.
Alert (classic) supports the old alert experience. e.g. create older classic metric alerts.

Better notification system: Unified alerts use action groups, which are named groups of notifications and actions that can be reused in multiple alerts.
Unified authoring experience - You can manage alerts and alert rules for metrics, logs and activity log across Azure Monitor, Log Analytics, and Application Insights in one place.
View fired Log Analytics alerts in Azure portal - View alerts from Log Analytics with other alerts from other sources in the Azure portal. Previously these were in a separate portal.
Separation of Fired alerts and Alert Rules - Alert rules are now distinguished from alerts. An alert rule is the definitions of a condition that triggers an alert. An alert is an instance of an alert rule firing.
Better workflow - The unified alert authoring experience guides you through the process of configuring an alert rule.

@akramwaseem We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Respond to Meg's comment about distinguishing study vs theoretic boundaries

That's a really good point about distinguishing between the boundaries of the study, and the theoretical boundaries. Part of my thinking here was that, future users might pick up a 'canned model' and use it in ecological contexts where the model cannot be safely extrapolated.
Originally posted by @egouldo in https://github.com/egouldo/EcoConsPreReg/pull/11

A comment:This section feels a bit too big and confusing from my perspective and I do think you might need to move some of it to a different section to reduce the risk of misinterpretation. I'm just thinking about how I might fill this out for an imagined study. The literal boundaries of the study are usually straightforward, but the theoretic boundaries are a different and also big thing to try to conceptualise in one section. You could have a section for the spatial/temporal boundaries of the study, and another section on how far the results can be extrapolated based on the study design. This makes sense to me in how I design experiments, if I have too many confounding variables and not enough spatial and environmental replication then I'm less likely to make any broad claims. However, if I have controlled or experimentally manipulated factors then I feel safer making bigger generalisations about results.

f753664e0919c0cb04295fbb02aa0bf0a9a4827f


[misc] Update arch type for 64bits support

Impacted tests(approved): new 0, update 0, delete 0
Unit test platform: Crosswalk Project for Android 17.45.424.0
Unit test result summary: pass 83, fail 0, block 0
https://crosswalk-project.org/jira/browse/XWALK-5557

LGTM


create init.py in tpv core test folder

Thanks @bgruening! I'm puzzled by how the tests are passing and these imports are working: https://github.com/galaxyproject/total-perspective-vortex/blob/66aeda80f3309772f69dcc15c81156e3667a7c37/tests/test_mapper_rules.py#L7
Shouldn't those fail for the same reason? Ping @natefoo

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.907%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
918

Relevant Lines:
941

💛  - Coveralls

__init__.py isn't required in Python 3 although from my brief reading it does seem to be the case that it should be included if you are not trying to create an implicit namespace package.

Didn't know that, but interestingly it looks like maybe find_packages doesn't bundle it if the __init__py is missing. @cat-bro found that the pypi package was missing the test folder altogether, and a new release with the fix above sorted it out.


Add support for CLI features options

First time here, your Github Action looks great and was exactly what I was looking for, except ...
What problem are you having?
When building docs, we often have to enable / disable different feature flags, especially in a workspace.
What do you expect to happen ?
Adding another CLI arg to pipe the features options, as per cargo doc: Command line features options would be a must ! 🙏
Thanks :)

I think you might have the wrong project.  We haven't touched this project in over 3 years and do not have any github actions.  This project is predates docs.rs and has basically been ignored since that became popular.

Oh ok my bad !


Add BCC and CC before sending the email

fix for issue #4472

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: vmasanas sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@vmasanas just a quick tip if you use some specific syntax when mentioning issues, it will auto-close the issue when the PR get's merged. Allowed syntax is here: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
We usually use Closes or Fixes


feature - add github action tests

feature - add github action tests

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@33b6fcb). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main       #44   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         1
  Lines           ?        43
  Branches        ?         0
========================================
  Hits            ?        43
  Misses          ?         0
  Partials        ?         0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33b6fcb...dfcf79d. Read the comment docs.


Q & A

Anything can be done for this
https://www.reddit.com/r/uBlockOrigin/comments/i13gkj/soralink_defuserbypass/
Most preferrably on many movies sites
A userscript or else?

Final destination link is not hard-coded, so not possible.
Instead of downloading torrents for such scummy sites, why don't you use torrentz2.is, the search engine itself ?
https://torrentz2.is/search?f=Cursed+s01+Dual+Audio


Windows

How do I make a bootable usb windows without booting it

Not the place for that use Google


[TASK] Use flowpack vendor instead of typo3 for jobqueue-beanstalkd

Vendor name for jobqueue-beanstalkd has changed from typo3 to flowpack

composer require typo3/jobqueue-beanstalkd
This package is abandoned and no longer maintained. The author suggests using the flowpack/jobqueue-beanstalkd package instead.

Version 2.0.2 now use the Flowpack/JobQueue packages
I close this PR.


Shareonfacebook

@omaressameldin @AndrewMagdy  @MohammedAnsary(databse :D ) @omarelhariry  @bassemmagdy

@mohabashraf this is the schema for how to document a piece of code
#Author: your name
#Date: when did you start implementing
#Description: a simple description for your code

Please Fix The Styling

@mohabashraf please resolve conflicts so you can be merged into master


Add 'mouseCursor' to TextFormField

Added 'mouseCursor' to TextFormField.
Related issue: https://github.com/flutter/flutter/issues/99770
Have tested it as well on my system.

@dkwingsmt, does this test seems fine? Or should I make some changes or improvements?

Also the style analyzer is complaining about an end-of-line space.


fix slack notification issue in case the trigger event is schedule | push | workflow_dispatch

Codecov Report

Merging #1650 (7473eee) into main (5efd718) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1650      +/-   ##
==========================================
+ Coverage   61.52%   61.54%   +0.02%
==========================================
  Files         133      133
  Lines       22573    22573
==========================================
+ Hits        13888    13893       +5
+ Misses       7125     7120       -5
  Partials     1560     1560

Impacted Files
Coverage Δ

pkg/vfs/writer.go
78.64% <0.00%> (-1.02%)
:arrow_down:

pkg/fs/fs.go
76.87% <0.00%> (-0.79%)
:arrow_down:

pkg/chunk/cached_store.go
78.19% <0.00%> (-0.52%)
:arrow_down:

pkg/chunk/disk_cache.go
80.19% <0.00%> (-0.49%)
:arrow_down:

pkg/meta/sql.go
67.18% <0.00%> (+0.10%)
:arrow_up:

pkg/vfs/reader.go
84.67% <0.00%> (+3.10%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5efd718...7473eee. Read the comment docs.


KeepAlive::Check() doesn't work as expected

The KeepAlive has a Check function, and it is documented as:

Check if the keep alive is still valid (invalid when there's an async exception).
Nothing will happen if valid and an exception will be rethrowed if invalid.

I have a test test like below:
etcd::Client client(etcd_url);

// create a lease with 30 seconds TTL
auto lease_keep_alive = client.leasekeepalive(30);
auto keep_alive = lease_keep_alive.get();
auto lease_id = keep_alive->Lease();

// revoke the lease before it reaches its TTL
client.leaserevoke(lease_id);
// retrieves its TTL again, and it is now -1
auto response = client.leasetimetolive(lease_id);
REQUIRE(response.get().value().ttl() == -1);

// I expect keep_alive->Check() to throw exception, but it does nothing, and the test case fails here
REQUIRE_THROWS(keep_alive->Check());

I thought if a lease is revoked, the corresponding keep alive this lease attached to will be invalid, so the Check() function should throw exception, but from what I observe, it is not the case. Probably my understanding here is not correct, could you please shed some light if this is a bug or an expected behavior? Thanks.

Fixed in #193.


Deploy to Bluemix fails

Tried to use the Deploy to Bluemix button in UK, US, Sidney, result:
Available
starting the application
Starting app watson-conversation-jps-1924 in org<EMAIL_ADDRESS>/ space dev as<EMAIL_ADDRESS>-----> Downloaded app package (336K)
-------> Buildpack version 1.5.5
-----> Installing python-2.7.9
DEPENDENCY MISSING IN MANIFEST: python 2.7.9
It looks like you're trying to use python 2.7.9.
Unfortunately, that version of python is not supported by this buildpack.
The versions of python supported in this buildpack are:
- 3.5.1
- 3.5.0
- 3.4.4
- 3.4.3
- 3.3.6
- 3.3.5
- 2.7.11
- 2.7.10
If you need further help, start by reading: http://github.com/cloudfoundry/python-buildpack/releases.
Staging failed: Buildpack compilation step failed

FAILED
BuildpackCompileFailed

TIP: use 'cf logs watson-conversation-jps-1924 --recent' for more information

Finished: FAILED

I'm having the same issue:
It looks like you're trying to use python 2.7.9.
Unfortunately, that version of python is not supported by this buildpack.


Provider evaluation of multiple objects from the datasource

Leaving a thread to continue to pull on. I believe a differentiator for Lula will be the capability to perform rich validation of many objects.
In Kubernetes for instance, I may want to collect pods, deployments, network policies, services and write a validation that has context for all of these resources in a single decision point.
Instead of the current design which concurrently validates all resources separately (which can still tell the same story), I believe Lula will need to be processing these as a collection.

Resource Validation
Currently the Lula Kubernetes Domain and OPA provider operate under the current execution:

The payload contains an array of ResourceRules
The Kubernetes domain retrieves each of the applicable items from the cluster for each resource rule
These items are collected into a single array of []unstructured.Unstructured
The OPA provider converts this array into an []map[string]interface{}

Meaning unstructured.Unstructured -> map[string]interface{}

The OPA provider then validates each item in the array against the rego policy

Constraints

This is an understood workflow - but it does not allow for the rich validation of many resources in a single validation.

IE In a single validation, I want to compare two resources to ensure the expected configuration matches
This could be done in two successive calls?

No, take for example the mapping of PeerAuthentications to Namespaces

We could have 1 -> N namespaces
For each namespace, we could have 1 -> N PeerAuthentications
if we wanted to validate that every applicable namespace has a PeerAuthentication AND every PeerAuthentication has mtls.mode set to STRICT

We need all namespaces
We need all PeerAuthentications
We need to ensure all namespaces have a PeerAuthentication
We need to ensure all PeerAuthentications have mtls.mode set to STRICT

This is a very simple workflow - but it does not allow for the rich validation of many resources in a single validation.

Multiple Resource Validation

The payload contains an array of Resources

Each Resource contains a name and an array of ResourceRules (Adds an additional layer)
This allows us to collect multiple resources into groups for validation

The Kubernetes domain retrieves each of the applicable items from the cluster for each resource rule
These are returned as groups of items per Resource
The OPA provider converts this array into an []map[string]interface{}

Meaning []unstructured.Unstructured -> map[string]interface{}
Notice how this is now a collection of objects unlike previously

The OPA provider then validates each item in the array against the rego policy

Completed in #124


fix(dev): dev server should use unused port

Description

Env:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Reproduce steps:

Use yarn create @vitejs/app to create two vanilla (no matter whatever this is) project and install it.

Set server.host in ONE of the project above.

import { defineConfig } from 'vite'

export default defineConfig({
  server: {
    host: 'localhost',
  },
})

Run yarn dev on both.

Expect: there should be two server be created: http://localhost:3000/ and http://localhost:3001/
Actual: both are http://localhost:3000/
Additional context

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

I can't reproduce this problem.
Env
<EMAIL_ADDRESS><EMAIL_ADDRESS>Windows 10
My steps

Cloned Vite
 cd ./packages/create-app/template-vanilla/
npm i
Added vite.config.js withimport { defineConfig } from 'vite'

export default defineConfig({
  server: {
    host: 'localhost',
  },
})

Runed npx vite -c ./vite.config.js twice in separated terminals.vite v2.1.3 dev server running at:

> Network:  http://<IP_ADDRESS>:3000/
> Local:    http://localhost:3000/
> Network:  http://<IP_ADDRESS>:3000/

ready in 189ms.

vite v2.1.3 dev server running at:

> Network:  http://<IP_ADDRESS>:3001/
> Local:    http://localhost:3001/
> Network:  http://<IP_ADDRESS>:3001/

ready in 183ms.

Everything works as expected. I was surprised by this PR, because this feature in the Vite has been for a long time. I even wrote some logic in my application based on it.

@iendeavor Could you provide a codesandbox-repro or repro-repo? 🙂

@cawa-93 @Shinigami92 Please try this repo: https://github.com/iendeavor/vite/tree/reproduce-2686

Set server.host in ONE of the project above.

Steps:

cd /packages/create-app/template-vanilla/

npm i

npx vite

cd /packages/create-app/template-vanilla-with-host-config/

npm i

Add vite.config.js with

import { defineConfig } from 'vite'

export default defineConfig({
  server: {
    host: 'localhost',
  },
})

npx vite -c ./vite.config.js

vite v2.1.3 dev server running at:

  > Local:    http://localhost:3000/
  > Network:  http://<IP_ADDRESS>:3000/

  ready in 145ms.

vite v2.1.3 dev server running at:

  > Local:    http://localhost:3000/
  > Network:  http://<IP_ADDRESS>:3000/

  ready in 233ms.

https://github.com/vitejs/vite/blob/eb66b4350c635fb4f2ef2e8a9eb50958cde73743/packages/vite/src/node/server/index.ts#L557
options.host may be undefined. So hostname must be used. It solve issue for me.

There are another issue same as this, but it cannot be fixed by explicitly set one host even:

open a terminal
yarn global add @vue/cli
vue create vue-cli-app # choose any app
cd vue-cli-app
yarn serve --port 3000
==================
open another terminal
yarn create @vitejs/app vite-app
cd vite-app
yarn install # choose any app
yarn dev # or explicity set --host localhost

@cawa-93 @Shinigami92 Please try this repo: https://github.com/iendeavor/vite/tree/reproduce-2686

So in the repro everythings to work fine :thinking:
Am I missing something?

@cawa-93 @Shinigami92 Please try this repo: https://github.com/iendeavor/vite/tree/reproduce-2686

So in the repro everythings to work fine 🤔
Am I missing something?

@Shinigami92 I think there is no different 🤔 , but I have noticed that there is no package-lock.json in the template-vanilla, I have committed it.

The package-lock.json was just generated by npm i

Closing as stalled


Add to document groups post ingestion

Ignore the document_groups_publications.py, its a hard-coded script for bulk ingesting Wiley articles.
I have modified the ingest.py file -> ingest_v2.py and deployed a new app on beam.


README reworked, Added alternatives deployments

Waiting for Secrets and Load Testing sections to adjusts links properly

Waiting for Secrets and Load Testing sections to adjusts links properly

Secretes Merged, only waiting for Load Testing


⚠ Bofrost.lu has degraded performance

In 4f87b5c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1691 ms

Resolved: Bofrost.lu performance has improved in 5757376 after 7 minutes.


Random search for parameter tuning

Background and Context
According to the highly cited Random Search for Hyper-Parameter Optimization, random search is a lot more efficient than grid search, specially as dimensionality of parameter grows (which typically is the case for complex models such as used in AmpliGraph).
Also, random search is a very strong baseline against much more complex tuning procedures using optimization methods, such as Bayesian optimization: http://www.argmin.net/2016/06/20/hypertuning/
Description
Adding a function similar select_best_model_ranking, but with two major differences:

Adding a budget limit that will constrain the search
Accepting functions (e.g. a normal distribution sampler) besides the fixed parameters in the param_grid

This function will create random combination of deterministic and probabilistic parameters and try them out until the budget is reached.
Optionally, add an example in the tutorial (besides the one in the docstrings).

Solved: https://github.com/Accenture/AmpliGraph/pull/108/


Expense - Currently opened expense report is not displayed in LHN after returning from Search

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.12-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Go to staging.new.expensify.com
Go to FAB > Submit expense > Manual
Submit a manual expense to user with no unsettled expense
Go to Search
Click on the expense submitted in Step 3
Return to Inbox

Expected Result:
The currently opened expense thread will be displayed in LHN
Actual Result:
The currently opened expense thread is not displayed in LHN
This issue only happens when there is only one expense in the report
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/user-attachments/assets/00c42d03-27b8-4569-a953-94c293f24c77
View all open jobs on GitHub

@trjExpensify  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Currently opened expense report is not displayed in LHN after returning from Search
What is the root cause of that problem?
When we open an iou report with one transaction we are opening the transactionThreadReport here
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
But there is a code here that returns falsey when the report is isOneTransactionThread to exclude it from lhn
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
What changes do you think we should make in order to solve the problem?

We need to remove
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
so that a one transaction threads should be included in lhn
or alternatively we should not open the transaction thread here when there is only one transaction in iou report
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
change it to
        let reportID = item.reportID;

What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Currently opened expense report is not displayed in LHN after returning from Search
What is the root cause of that problem?
we should not open the transaction thread here when there is only one transaction in iou report
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
change it to
        let reportID = item.reportID;

What alternative solutions did you explore? (Optional)
When we open an iou report with one transaction we are opening the transactionThreadReport here
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
But there is a code here that returns falsey when the report is isOneTransactionThread to exclude it from lhn
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
What changes do you think we should make in order to solve the problem?

We need to remove
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
so that a one transaction threads should be included in lhn

Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Currently opened expense report is not displayed in LHN after returning from Search
What is the root cause of that problem?
When we open an iou report with one transaction we are opening the transactionThreadReport here
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
But there is a code here that returns falsey when the report is isOneTransactionThread to exclude it from lhn
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
What alternative solutions did you explore? (Optional)
we should not open the transaction thread here when there is only one transaction in iou report
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
change it to
        let reportID = item.reportID;

What changes do you think we should make in order to solve the problem?

We need to remove
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
so that a one transaction threads should be included in lhn

Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Currently opened expense report is not displayed in LHN after returning from Search
What is the root cause of that problem?
When we have an iou report with one transaction the item in search is a transaction type and for transaction case we are opening the transactionThreadReport here
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
But there is a code here that returns falsey when the report is isOneTransactionThread to exclude it from lhn
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
What alternative solutions did you explore? (Optional)
we should not open the transaction thread here when the item is transaction type in here
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135
change it to
        let reportID = item.reportID;

What changes do you think we should make in order to solve the problem?

We need to remove
https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/libs/SidebarUtils.ts#L127-L129
so that a one transaction threads should be included in lhn

Proposal
Please re-state the problem that we are trying to solve in this issue.
The currently opened expense thread is not displayed in LHN
This issue only happens when there is only one expense in the report
What is the root cause of that problem?
When we open the report from the search, we open the transaction thread report. Then after we return from Search, this report is opened but we hide this in LHN if the expense report is the combine report
https://github.com/Expensify/App/blob/4adf0c540c31cebeb178df1f0f857a750b871eb6/src/libs/SidebarUtils.ts#L127
What changes do you think we should make in order to solve the problem?
We should remove this condition here
https://github.com/Expensify/App/blob/4adf0c540c31cebeb178df1f0f857a750b871eb6/src/libs/SidebarUtils.ts#L127
And in shouldReportBeInOptionList function we should move this condition below the condition here so the transaction thread report of the combine report will only display in LHN if it's opened.
What alternative solutions did you explore? (Optional)
For snapshot transaction item, BE should return an extra field isOneTransactionThread to know if it's one transaction thread or not, and then we will use this here to open the combined report in this case.
let reportID = SearchUtils.isTransactionListItemType(item) && !item.isOneTransactionThread ? item.transactionThreadReportID : item.reportID;

https://github.com/Expensify/App/blob/b0f810df06c3df866b7fdbed4959f8f1fef803ed/src/components/Search/index.tsx#L134-L135

Updated only to add more explanation to my first solution.

@lanitochka17, I really don't understand this bug report as written in the OP. @luacmartins does this make sense to you? 🤔

@trjExpensify Whenever you open a report it is included in LHN (even highlighted) but in this case if you create an expense where it is the only expense in iou report then when you open it from search the report will not be any lhn item corresponding to it (which was supposed to be the highlighted one in normal cases) 👍

Hmm I think this has the same root cause as https://github.com/Expensify/App/issues/45408. Because we are opening the transaction thread in the RHP, we record the last visited report as the thread. Then when we navigate to the LHN we don't see it because we hide the thread if it's a one expense report.

I think we can put this issue on hold for https://github.com/Expensify/App/issues/45408.

Makes sense!

This is on hold, Melv.

Oh, why is there a Reviewing label on this @luacmartins? Aren't we held on https://github.com/Expensify/App/issues/45408?

@trjExpensify I believe that I fixed https://github.com/Expensify/App/issues/45408 and this issue with this PR

Laveeeely! Looks fixed to me


Getting the following error: PlatformImageNotFound : The platform image 'xxx' is not available

I've tried with all versions which are in your pipelines by default. But neither Ubuntu (20.04/22.04) nor Windows (2019/2022) work.
They all give the same error.

I've checked the availability of the images using the Azure CLI. The sku's are available in my region.
az vm image list-skus --location westeurope --publisher MicrosoftWindowsServer --offer WindowsServer

The error happened during the Build VM step.

Could this possibly be your issue too? https://github.com/YannickRe/azuredevops-buildagents/issues/30#issuecomment-1516728423

Yes. That was it!
A bit strange though.  Packer's docs clearly state that for VHD builds ZRS is supported. https://developer.hashicorp.com/packer/plugins/builders/azure/arm#storage_account_type
When building managed images only LRS is supported according to the docs.
https://developer.hashicorp.com/packer/plugins/builders/azure/arm#managed_image_storage_account_type


Update async/await code to be available for iOS 13, etc.

Now that it is supported for iOS 13 instead of 15 starting with Xcode 13.2.1

This will bump our min Xcode version to Xcode 13.2.1 right?

Right.
Seems worth it for the next major release to get the broader async/await support and Xcode 13.2.1+ usage is already 63%

I wonder if we could use #if swift(>=5.5.2)` to check for it and set it to 13, otherwise set it to 15. May be a bit messy but could buy us a bit more time and we don't have that many instances of it.
The one caveat is 13.2.0 specifically would break I think, but if we were thinking of removing support anyways it's not a huge dela.

Testing this out now as there are only 7 non-test instances of these declarations.

This is fixed in #9540


Shiba Fame V2 logo

0x3ae881bbb8b7aefb095a43ef1c1fe1c65f91316f/trust wallet logo.png

please Update logo, we are a community of 18000+ people

https://bscscan.com/token/0x3AE881BBb8b7Aefb095a43Ef1c1FE1C65f91316F

https://coinmarketcap.com/currencies/shiba-fame/


[Bug]: Single hotspot in hex but transmit scale is altered

What happened?
A bug happened,
Saw some hotspots, including mine, that is solo in a hex, but has transmit scale lower than 1.
URL
https://explorer.helium.com/hotspots/112GeujPB2XNRKakNBEaBPmD8a7LSKBU8UcTBNDVqSh5zmbqRGBd
What browsers are you seeing the problem on?
Opera
Do you see the issue on Mobile or Desktop?
Mobile, Desktop
Relevant log output
No response

You res7 hex is overcrowded, which is why you are being scaled. As designed.

Didn't know that. My bad. Is there any tool to see this in function of location? Thankx.

Feel free to continue discussion on discord.


Removed several references to sig-pm

I deleted five references to sig-pm, which no longer exists (since April 2020).

@LappleApple Hi 😍
Could you please remove all changes to non-english content?
The localization teams have a script they run which shows them a diff of changes in their l18n vs. English. It's best to leave them to pick up the changes on their own.

/hold
Feel free to remove the hold when you've removed the non-english changes from this PR, Lauri. I just don't want anyone merging it preemptively.

Closing this to make a new PR with just the first change/commit included.


fix: updated cache ids

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


feat: add option to skip missing interpreters

Added an option to allow riot to ignore any missing requested Python
interpreters.

While this implementation looks ok, my hesitation is whether we should allow a switch like this to skip missing.
We've talked in the past about not failing to riot list if an interpreter is missing, but we should definitely fail hard if you try to riot run/riot generate/etc and an interpreter is missing.
Just whether we want to go with a single switch like yours that will ignore any missing, or we push people to be more explicit (e.g. only select the versions you have/want to run with).
@Kyle-Verhoog, @majorgreys, or @jd any thoughts on this?

We've talked in the past about not failing to riot list if an interpreter is missing, but we should definitely fail hard if you try to riot run/riot generate/etc and an interpreter is missing.

I totally agree on this. My thought was that riot already fails hard on missing interpreters by default. The switch is there for when one needs to run riot locally and not all the interpreters are available. This way you'd still be able to run tests against what's available on the host

I think it's fine to have a global like this for now. It's not a switch you'd use in a CI, but for a user it's fine.
We can still add a finer-grained switch if that is ever needed.

Changelog / Validate changelog (pull_request)  is not required in branch protection we might want to add this @brettlangdon
@P403n1x87 you might want to add a changelog entry for this 😄


Feature Request: Allow toggling between national and subnational view

The current mix of aggregation areas (i.e. mixing of countries and states/provinces) makes it difficult to compare information between countries. For example, visually the United States appears to be less prominent than European countries, because the US data is shown for individual states. It would be better if there was a toggle to switch between country-level and sub-national-level statistics.

The data from JHU comes very messy and changes every day (counties+cities, then cities, then state, etc. things did not add up). I hope they have fixed it yesterday, and then add:

Map of N per country
Map of N per country admin level 1 and 2
Map of N per country/population

But for every level, new raster tiles need to be generated, will see if I can get it working ... maybe use on-the-fly generation for the last day data, read and parse as JSON from GCS.
Maybe it makes sense to show a table as well, even there are plenty of dashboards developed already, e.g.: https://www.worldometers.info/coronavirus/.

This is an example of local data at admin level 1: https://gena.users.earthengine.app/view/corona-virus-nl, but I'm not sure where to find data at this level for all countries.


[WIP] Get suspect IPs from ES now checks IPs from cloud providers

Adding functionality in order to block IPs from specific providers and specific locations
Given this file
#ORG,CITY,COUNTRY,HOSTNAME
Google,Groningen,NL,bc.googleusercontent.com

blocker will check lasts N min IPs from Elastic and will order based on given frequency and will block the ones that match the above info.

I wouldn't really go for this approach, as it would block only IPs that are causing enough 429s AND belong to specific ORG.
Wouldn't it be best to improve the flexibility for the accepted query, and allow the user to play with that?
That way any user can craft the query/queries to their needs.
Do you see any inconvenient with such approach?

in fact there are 2 queries now, but it is a bit ugly maybe.
One query is the usual one ( 429..etc.)
and the other that queries everything in the lasts minutes, also configurable. It is below this second query that we are
applying the blocking depending on country/city/hostname and org
How would you integrate that in just 1 query or maybe something cleaner?

How about having a list of queries passed through with all needed params?
Something like this:
queries:
- query: "response.statusCode = 429"
  interval: 5m
  fields:
  - name: ip
    value: "geoip.ip"
- query: "geoip.Org = 'google' AND geoip.host = "myhost"
  interval: 25m
  fields:
  - name: ip
    value: "geoip.ip"

Of course this approach would not have the lookup for each IP (which could also be costly), and we should find a way to enrich this data in the database. Or we could think a way to inject some data enrichment at the IP blocker level.
What do you think?

How about having a list of queries passed through with all needed params? Something like this:
queries:
- query: "response.statusCode = 429"
  interval: 5m
  fields:
  - name: ip
    value: "geoip.ip"
- query: "geoip.Org = 'google' AND geoip.host = "myhost"
  interval: 25m
  fields:
  - name: ip
    value: "geoip.ip"

Of course this approach would not have the lookup for each IP (which could also be costly), and we should find a way to enrich this data in the database. Or we could think a way to inject some data enrichment at the IP blocker level. What do you think?

it is ok for me. Regarding the second query, this geoip.org data is not in ES.

@rccrdpccl @bvis
First approach ( csv input file ) is not valid anymore.


Allow Plyr.setup event listeners to be set up as separate event listeners

This allows the setup listeners to do things like
preventDefault()/stopImmediatePropagation() and have them work
Link to related issue (if applicable)
There is an issue comment
Sumary of proposed changes
Earlier, if a listener was specified during Plyr.setup(), we set up one event handler with both the provided listener (userListener) as well as the defaultListener.
Now, each of these is attached as a separate event listener (userListener being attached first).
This ensures that preventDefault()/stopImmediatePropagation() are handled correctly.
Task list

[ ] Tested on supported browsers
[ ] Gulp build completed

Cheers - will retrofit this to develop

Ported over to develop like this
// Trigger custom and default handlers
const handlerProxy = (event, customHandler, defaultHandler) => {
    // Execute custom handler
    if (utils.is.function(customHandler)) {
        customHandler.call(this, event);
    }

    // Only call default handler if not prevented in custom handler
    if (!event.defaultPrevented && utils.is.function(defaultHandler)) {
        defaultHandler.call(this, event);
    }
};

// Play
utils.proxy(this.elements.buttons.play, 'click', this.config.listeners.play, togglePlay);


Add std::hash specializations

It might be nice to add std::hash support for boost::json types to enable their use in associative containers as keys. Currently the library only provides std::hash support for boost::json::string. For the full support, std::hash specializations for other constructs should be added.
namespace std {

template <>
struct hash<boost::json::array> {
  size_t operator()(const boost::json::array& jv) const;
};

template <>
struct hash<boost::json::object> {
  size_t operator()(const boost::json::object& jv) const;
};

template <>
struct hash<boost::json::value> {
  size_t operator()(const boost::json::value& jv) const;
};

}  // namespace std

Then, in my implementation, I noticed that boost::json::object preserves the insertion order when iterating over key_value_pairs as my test case below failed initially.
TEST_CASE("Boost Json Object Hash") {
  auto r1 = std::hash<boost::json::value>{}(
      boost::json::value({{"a", 11}, {"b", 12}}));
  auto r2 = std::hash<boost::json::value>{}(
      boost::json::value({{"b", 12}, {"a", 11}}));
  CHECK_EQ(r1, r2);
}

Currently, when calculating hashes for boost::json::objects, I additionally sort pairs with respect to keys beforehand but wonder if this feature can be implemented better and added to the library.
Thank you!

hmm... std::hash is not defined for vector,  map, or unordered_map. However it is defined for variant.
As you noted, json::object is particularly interesting because it preserves order. An implementation of std::hash<json::object> would need to sort the keys every time it calculates the hash. We can't put this in the object itself because it would add overhead to everyone. There's no good choices here.
You can still use json containers in associative containers by defining your own hash function, as you noted.

Now I think of that a commutative hash function (e.g. simple xor'ing) would work for json::object.
I am not sure about the quality of hashing as I do not have much experience with hash functions.

Here is my implementation. Open to suggestions.
inline std::size_t combine(std::size_t seed, std::size_t h) {
  seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U);
  return seed;
}

inline std::size_t combine_comm(std::size_t x, std::size_t y) { return x ^ y; }

namespace std {

size_t hash<boost::json::array>::operator()(
    const boost::json::array& jv) const {
  auto seed =
      combine(static_cast<std::size_t>(boost::json::kind::array), jv.size());
  for (const auto& value : jv) {
    seed = combine(seed, std::hash<boost::json::value>{}(value));
  }
  return seed;
}

size_t hash<boost::json::object>::operator()(
    const boost::json::object& jv) const {
  auto seed =
      combine(static_cast<std::size_t>(boost::json::kind::object), jv.size());
  for (const auto& [key, value] : jv) {
    const auto k = std::hash<boost::json::string>{}(key);
    const auto kv = combine(k, std::hash<boost::json::value>{}(value));
    seed = combine_comm(seed, kv);
  }
  return seed;
}

size_t hash<boost::json::value>::operator()(
    const boost::json::value& jv) const {
  switch (jv.kind()) {
    default:
    case boost::json::kind::null:
    case boost::json::kind::bool_:
      return std::hash<bool>{}(jv.get_bool());
    case boost::json::kind::int64:
      return std::hash<std::int64_t>{}(jv.get_int64());
    case boost::json::kind::uint64:
      return std::hash<std::uint64_t>{}(jv.get_uint64());
    case boost::json::kind::double_:
      return std::hash<double>{}(jv.get_double());
    case boost::json::kind::string:
      return std::hash<boost::json::string>{}(jv.get_string());
    case boost::json::kind::array:
      return std::hash<boost::json::array>{}(jv.get_array());
    case boost::json::kind::object:
      return std::hash<boost::json::object>{}(jv.get_object());
  }
};

}  // namespace std

hmm yeah that's a good idea, it solves the problem of ordering. But I'm not yet convinced that the library should have an opinion on how array and object are hashed. @pdimov ?

Arrays are always hashed in the same way, pretty much as implemented in the above comment; the only difference is whether the size is hashed first (as most people do) or last (as in N3980.) I used to follow N3980 in Hash2, but will be switching to size first for performance reasons.
I prefer + instead of ^ for the commutative combine, but I suppose it doesn't really matter here.
I see no problem with the library having an opinion on how array and object are hashed, as there's no one else who can have such an opinion.
I think I would hash_combine jv.kind() first in hash<value>, instead of only combining it in the array and object cases. However this needs to match operator==, which currently requires an exact kind match for everything except int64 and uint64, so the easiest way to match it would be to combine int64 in the jv.kind() == uint64 case.
Also, the null case falls through to the bool case, which doesn't seem correct.

@doganulus I'm open to a pull request if you would like to submit it

#522 implemented this, right?


Arabic naming: dotlesskhahabove

06E1	khahdotlessabove	ARABIC SMALL HIGH DOTLESS HEAD OF KHAH
06E1	dotlesskhahabove	ARABIC SMALL HIGH DOTLESS HEAD OF KHAH

Fixed.


Implement fibers texture

The waves-texture-based pattern. And the fiber-course-based paterrn for very close-up.

Modeling and Rendering Fabrics at Micron-Resolution
http://www.cs.cornell.edu/projects/ctcloth/


[AMLII-2108] Manually set file mod time so scanIntialFiles detects them correctly

What does this PR do?
Updates TestSentLogExceedsTotalUsage to manually set the individual files' mod times so that the scanInitialFiles function can detect them deterministically. Previously, the files were created (and modified) with the exact same timestamp, so scanInitialFiles would detect them in a random order, leading to flakiness. This change guarantees that won't happen.
Motivation
Fixing flaky test.
Describe how to test/QA your changes
N/A
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Added SMA and EMA calculations

I have put the updated file where I have put the SMA and EMA calculations!
Added SMA and EMA calculations to the stock price prediction model
Implemented calculations for Simple moving average and exponential moving average to improve the model's predictive abilities..

The issue was #16
@rohitinu6
Please guide me what is the next step

@AnsharaFayazBeigh you created a new notebook?

Yes I did! @jvedsaqib

@rohitinu6 Please review It!

@AnsharaFayazBeigh can you do the changes on the actual notebook itself?
As new NB would create confusion.
Please star the repo if you haven't

@jvedsaqib Thanks for the feedback! I’ve been using Google Colab for the notebook, and I ended up having to create a new one to make everything work. Because of that, I can’t update the original notebook directly. Do you have any suggestions on how I can merge my changes, or what I should do next? I’d really appreciate any help! Thanks so much!
I did star the repo!

This PR addresses the issue #16
Can you also assign the labels to this PR ( hacktoberfest-accepted, gssoc-ext)?


RTCGQ02LM Timeout and Idle Time

Hi there,
Got it working now thanks but I had a question about the timeout and idle_time. What are these used for and are they configurable? I know this sensor doesn't send a motion cleared event so there needs to be a way to tell HA the sensor has reset just wondering how these two entities function.

In opposite to main sensor which can report their state immediately the timeout fires only when no motion detected as configured timeout in Mi Home app.
The idle_time additionally fires 2 times when no motion detected for a long time. It will report 0s at start motion, 120 when mo motion is 3 min ago and 300 when mo motion is 5 min ago.

so you can configure only timeout directly in Mi Home app.
idle_time is preconfigured in device firmware and at this moment I don't know how reconfigure it.

Brilliant, thank you. I would have never figured that out and was wondering why my 3 sensors were behaving differently.


Breeder > Tutorial Editor

The lycheeJS project needs an live hacking editor with a live update result view on the side.
e.g. for live editing some serialized JSON and see live updates on a timeline.

A cool idea would be to found a /lib/tutorial library that can be reused among different set of tutorials. It can be reused as a boilerplate for tutorials - wherein only single definitions need to be modified - so the simulator part is easy to implement and trace what kind of changes the editor made.
That could be pretty awesome if the code view of the live hacking editor highlights just a few lines of code and makes them modifiable. Might make sense to have something like toAPI() as a method on the lychee.Definition interface, so that it can be traced automatically.

hmmmm live editor, where is the damn upvote button on github?

This stuff is related to the Editor, as the Editor will have Entities (and libraries) that you can reuse for your project.

The tutorials are now integrated in the lychee.js Guide, so no dependency to the Editor here. As the Breeder can fork now, it can also be used to incrementally follow the Tutorials.


Develop

improved doc

Codecov Report

Merging #192 (435a772) into master (b38407e) will decrease coverage by 0.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
- Coverage   97.54%   97.53%   -0.02%
==========================================
  Files          63       63
  Lines        2652     2639      -13
==========================================
- Hits         2587     2574      -13
  Misses         65       65

Impacted Files
Coverage Δ

glasses/models/classification/densenet/__init__.py
100.00% <ø> (ø)

glasses/models/classification/fishnet/__init__.py
97.95% <ø> (ø)

...lasses/models/classification/mobilenet/__init__.py
100.00% <ø> (ø)

glasses/models/classification/regnet/__init__.py
80.95% <ø> (ø)

glasses/models/classification/resnet/__init__.py
98.68% <ø> (ø)

glasses/models/classification/resnetxt/__init__.py
92.85% <ø> (ø)

glasses/models/classification/vit/__init__.py
95.87% <ø> (ø)

...sses/models/classification/wide_resnet/__init__.py
100.00% <ø> (ø)

glasses/models/segmentation/fpn/__init__.py
91.75% <ø> (ø)

glasses/models/segmentation/unet/__init__.py
100.00% <ø> (ø)

... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b38407e...435a772. Read the comment docs.

Codecov Report

Merging #192 (435a772) into master (b38407e) will decrease coverage by 0.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
- Coverage   97.54%   97.53%   -0.02%
==========================================
  Files          63       63
  Lines        2652     2639      -13
==========================================
- Hits         2587     2574      -13
  Misses         65       65

Impacted Files
Coverage Δ

glasses/models/classification/densenet/__init__.py
100.00% <ø> (ø)

glasses/models/classification/fishnet/__init__.py
97.95% <ø> (ø)

...lasses/models/classification/mobilenet/__init__.py
100.00% <ø> (ø)

glasses/models/classification/regnet/__init__.py
80.95% <ø> (ø)

glasses/models/classification/resnet/__init__.py
98.68% <ø> (ø)

glasses/models/classification/resnetxt/__init__.py
92.85% <ø> (ø)

glasses/models/classification/vit/__init__.py
95.87% <ø> (ø)

...sses/models/classification/wide_resnet/__init__.py
100.00% <ø> (ø)

glasses/models/segmentation/fpn/__init__.py
91.75% <ø> (ø)

glasses/models/segmentation/unet/__init__.py
100.00% <ø> (ø)

... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b38407e...435a772. Read the comment docs.


Consider dropping support for Infectious

Tbh I think we can just remove support for infectious altogether
Originally posted by @musalbas in https://github.com/celestiaorg/rsmt2d/issues/149#issuecomment-1462773701

Repos we risk breaking by dropping support for Infectious: https://github.com/search?q=rsmt2d.RSGF8&type=code


Fixing up bot/meme_api/memgen.py

This file uses the requests library.
I'm changing things to where the bot initializes a aiohttp.ClientSession object at startup and then uses async with self.bot.session.get(url) as resp: or async with self.bot.session.post(url, data=data) as resp: to request/post from/to APIs.

The Meme cog is initialized twice, and I don't think it's necessary. This will be fixed.

This issue will be slightly going beyond the scope of just the memgen file, as best practices need to be enforced.


[SeaTunnel#1100]Add SkyWalking LICENSE

this closes #1100

@wu-sheng hi, please help to see, thanks

Thanks


What are the numbers after the data array?

normalise([0, 5], 2.5); // => Decimal 0.5
normalise([1, 2], 3); // => Decimal 2
normalise([-5, 1], -3); // => Decimal 1/3
What is 2.5, 3 and -3?

Those are the values to normalise to [0, 1]. The formula to normalise data to [0, 1] is
x' = (x - min) / (max - min)

With normalise:
normalise([min, max], x) // => x'

So, 2.5 in the range of [0, 5] is like 0.5 in the range of [0, 1].


Its a bit silly to run an awesome- list and list closed source projects.

Awesome- lists are supposed to link to repos, not closed source websites.
This is an anti-pattern, rather remove this repo or mark it private if you need the bookmarks.

@lanmower Could you be kind and point out which links are closed source so we can fix those?


[AutoPR compute/resource-manager] chore: jsonfmt compute

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6323

This PR has been merged into https://github.com/Azure/azure-sdk-for-js/pull/3855