risc0-zkvm: add accelerator support

This is a first draft of patching the crate. There are some nuances that we may want to consider addressing before merging such as concurrent hashers. Placing this in draft for the time-being but early comments are welcome.

sorry about the noise - my intention was to target our fork


Use Path instead of String for files

cat, ls and pwd use Strings for files. It's better to use Path for file manipulation

fixed in 28b063d5dd0b5fc52d84ef2fdf26d78a730cf6be


Fix text color in profile header

JIRA: https://openedx.atlassian.net/browse/MA-2049

PR Cover Letter

[ ] A detailed description of the changes in the body of the PR
[ ] If available, a link to the relevant JIRA ticket in the body of the PR

[PROJ-XXXX](https://openedx.atlassian.net/browse/PROJ-XXXX)

Sandbox

[ ] Build a sandbox for your branch and add a link here

Testing

[ ] i18n
[ ] RTL
[ ] Unit, integration, acceptance tests as appropriate
[ ] Analytics
[ ] Performance
[ ] Database migrations are backwards-compatible

Reviewers
If you've been tagged for review, please check your corresponding box once you've given the :+1:.

[ ] Code review #1
[ ] Code review #2
[ ] UI strings/error msgs review
[ ] UX review
[ ] Accessibility review
[ ] Product review

DevOps assistance
If it's needed, or even if you suspect it might be needed, do any/all these things as early as possible. Don't surprise devops right before merging! For example, touching envs/aws.py or or envs/common.py are dead giveaways that you'll need assistance when pushing your changes out. Things that require devops attention include, but are not limited to:

configuration changes
feature flags
migrations
Ways to get devops attention, pick-and-choose whichever is most appropriate for your specific PR:
[ ] Tag devops on your PR (@edx/devops), either for review (more specific to devops = better) or just a general FYI
[ ] File a support ticket

FYI: Tag anyone who might be interested in this PR here.
Post-review

[ ] Squash commits

Before

After

@mikekatz please review

@mikekatz please review

Current coverage is 45.84%

Merging #663 into master will not affect coverage as of d605204

@@            master    #663   diff @@
======================================
  Files          418     418
  Stmts        30919   30919
  Branches         0       0
  Methods
======================================
  Hit          14174   14174
  Partial          0       0
  Missed       16745   16745

Review entire Coverage Diff as of d605204

Powered by Codecov. Updated on successful CI builds.

:+1:


TPDO Error: Object Dictionary entry 0x1a0002

Hi, I have faced with TPDO problem.
MCU: ESP32-C6
I`m trying to send TPDO like in a video example here (https://www.youtube.com/watch?v=R-r5qIOTjOo)

But there is some error in object Dictionary when CO_CANopenInitPDO is calling.
 err = CO_CANopenInitPDO(CO, CO->em, OD, activeNodeId, &errInfo);
        if (err != CO_ERROR_NO)
        {
            if (err == CO_ERROR_OD_PARAMETERS)
            {
                ESP_LOGE(TAG, "[CO_CANopenInitPDO]: Object Dictionary entry 0x%lx", errInfo);
            }
            else
            {
                ESP_LOGE(TAG, "PDO initialization failed: %d", err);
            }
        }

I (731) CO_ESP32: Initializing
I (735) CO_ESP32: main task running.
I (739) CO_ESP32: Allocated 6640 bytes for CANopen objects
I (745) CO_ESP32: CANopenNode - Reset communication
I (751) gpio: GPIO[10]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (760) gpio: GPIO[11]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (770) CO_driver: Driver installed
I (774) CO_driver: Driver started
I (778) CO_driver: Creating Tx Task
I (782) CO_driver: tx task running
I (786) CO_driver: Creating Rx Task
I (790) CO_driver: rx task running
E (795) CO_ESP32: [CO_CANopenInitPDO]: Object Dictionary entry 0x1a0002
I (801) CO_ESP32: creating periodic task
I (806) CO_ESP32: Periodic task running
I (811) CO_ESP32: periodic task created
I (815) CO_ESP32: CANopenNode is running

May be somebody could help me
It's an .xpd file but for an opportunity to upload it to github I added ".txt" in end
E_test.xpd.txt

Just clear "Count Label" parameter from all manufacturer and device profile parameters.
Count Label "TPDO" is allowed only on objects 0x1800-0x19FF.
For more information see https://github.com/CANopenNode/CANopenNode/blob/master/doc/objectDictionary.md#object-dictionary-requirements-by-canopennode

Your device is pre-operational (0x7F). To see PDOs, it must be operational (0x05).
Se also https://github.com/CANopenNode/CANopenDemo

@CANopenNode  Got it!
I tried to find reason why my node can't work on operational mode.
x1001_errorRegister shows me 16 as I understand it means communication error
 CO_ERR_REG_COMMUNICATION = 0x10U, /**< bit 4, communication error */

For reading  0x1003 I have written code
if (OD_RAM.x1001_errorRegister > 0)
            {
                OD_entry_t *errors_entry = OD_find(OD, 0x1003);

                uint8_t numbers_of_errors = 0;
                OD_get_u8(errors_entry, 0x00, &numbers_of_errors, false);

                if (numbers_of_errors > 0)
                {

                    printf("0x1003 ERROR DUMP:\n");

                    for (uint8_t i = 1; i <= numbers_of_errors; i++)
                    {
                        uint32_t error_dump = 0;
                        OD_get_u32(errors_entry, i, &error_dump, false);

                        printf("Error #%d: code: 0x%lx\n", i, error_dump);
                    }
                }
            }

It shows me :
0x1003 ERROR DUMP:
Error #1: code: 0x1a108200

bit 0-15 (0x8200) shows:
  /** 0x82xx, Protocol Error */
    CO_EMC_PROTOCOL_ERROR = 0x8200U,

What means bit 16-31 (0x1a10)?
How to interpretate it?
And hoe to fix this problem?

Ohhh... I fixed the error above but I have faced with new trouble.
TPDO messages is constantly zero.
I'm changing variable from OD.
 OD_RAM.x6000_test_1 = OD_RAM.x6000_test_1 + 5;
 printf("OD_RAM.x6000_test_1: 0x%lX\n", OD_RAM.x6000_test_1);

OD_RAM.x6000_test_1: 0x6
OD_RAM.x6000_test_1: 0xB
OD_RAM.x6000_test_1: 0x10
OD_RAM.x6000_test_1: 0x15
OD_RAM.x6000_test_1: 0x1A

This variable is mapped to TPDO

But PDO is constantly zero

How to solve it?


[Suggestion] Add an argument for more precise prints

I'm going to try to make it by myself, but I don't know if I can succeed so I'll still leave it here:
Basically, instead of having everything printed out, add an argument to shorten it (Only shows "Captured %POKEMON% [CP XXX]" or "Pokestop %NAME% visited, found %ITEMS%")

Need this +1

Implemented for Pokemon.  Will look into Pokestops/Items later.

Oh I see, then I'll close this, thanks for your help !


Missing libappimage.so

All apps installed with error
Integration failed: missing libappimage.so

Some applications (e.g. appimagehub:1297572) got desktop integration inside container, so I think this error is not critical.
OS: ElementaryOS Hera - 18.04.10Ubuntu Linux <IP_ADDRESS>-generic x86_64 (error appeared on different notebooks).
apt-file search libappimage.so - empty list 👨🔧.

Sorry for the late response, libappimage.so is provided by https://github.com/AppImage/libappimage
So you must install it before using appimage-manager.
Or use AppImage file from releases section, this already include it.

Sorry for the late response, libappimage.so is provided by https://github.com/AppImage/libappimage
So you must install it before using appimage-manager.
Or use AppImage file from releases section, this already include it.

Thank you!
squashfs-root/usr/lib/x86_64-linux-gnu/libappimage.so.1.0.2

Thank you!
squashfs-root/usr/lib/x86_64-linux-gnu/libappimage.so.1.0.2


Hide AssemblyInformation button on ApplicationPage for dotnet core projects

We have moved these properties to Package page as part of https://github.com/dotnet/roslyn-project-system/pull/950

@mavasani I have changes in flight to condition other stuff on .Net Core. I can add this check in there as well.

Thanks Raul.

@RaulPerez1 I have a fix for this, sending a PR soon.

https://github.com/dotnet/roslyn-project-system/pull/1023


Update to Helm3.1.1

The problem I'm trying to solve:
Update helm to 3.1.1

release v0.14.1 should now be at 3.1.1 for helm


Add release/ for convenience to Makefile

Summary
Allows you to specify only a specific image to release.
I also removed refresh-all from release-all because I think in most cases you already have the cache stored locally and pulling from docker hub usually takes longer.
How to test
Run make release/hub and you will see on hub being built, tagged, and pushed

Ty!!


[themes] keywords colorization should not include keyword.operator

VSCode Version: 1.23.1
OS Version: macOS

  "editor.tokenColorCustomizations": {
    "keywords": {
      "fontStyle": "italic",
    }
  },

It shouldn't italic equal sign (=), plus (+), minus (-), etc.
This is very cool setting instead of creating/editing existing theme I can just change tokenColorCustomizations, but it's weird it affects some types like equal sign, plus, minus, etc. which I believe should be as it's and don't care about fontStyle when applied via keywords in tokenColorCustomizations.

@aeschli @RMacfarlane this will be in the new release 1.25.0?

@svipben Yes, issues that are in the "June 2018" milestone will go into the 1.25.0 release

I updated VS Code and still this issue exists...
/cc @aeschli @RMacfarlane

Seems only this is italic.

I created separate issue for this: https://github.com/Microsoft/vscode/issues/53688


darwin.d3dmetal: init at 1.1

Description of changes
Package D3DMetal for use with Wine. Part of implementing https://github.com/NixOS/nixpkgs/issues/236414. Patches to Wine will follow once https://github.com/NixOS/nixpkgs/pull/287609 is merged.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Moving this to the by-name hierarchy instead of putting it in the darwin attrset.

I’m going to roll this in with the Wine patches to add D3DMetal support once I get some bandwidth to work on that again.

Superseded by https://github.com/NixOS/nixpkgs/pull/319212.


Add Rust program that converts feet to miles

Closes #393
What's being changed:
Add a Rust program that converts feet to miles

Hey @melko,
You are pushing the change from the master branch. Please create a branch for your change and refer to make changes if you needed.
Thank you!

Sure.
Seems it's not possible to switch the source branch of a PR on the fly, so I'm going to create a new one.


Does not work with current VS Code (1.64)

This repo is referenced from VS Code documentation as a sample showing how to implement debugging in a notebook. However it doesn't seem to have been updated to adopt significant changes to the notebook APIs, for example in 1.56 (April 2021) and 1.57 where APIs were finalized.
This lack of a functional debugging sample isn't good.

broken

pinging @rebornix


Bug: CORS info missing on invalid routes

Describe the bug
I'm not entirely sure if this is a problem. I'm working with some UI people for a frontend.
When visiting routes with CORS set up we get the access-control-allow-origin as part of the response. However when visiting an invalid route we don't receive this and apparently, it renders in the UI side as a CORS error. Is this expected behaviour? I've never really looked at CORS before
To Reproduce
from starlite import CORSConfig, Starlite, get

cors_config = CORSConfig(allow_origins=["http://<IP_ADDRESS>"])

@get("/")
def hello_world() -> dict[str, str]:
    """Keeping the tradition alive with hello world."""
    return {"hello": "world"}

app = Starlite(
    route_handlers=[hello_world],
    cors_config=cors_config,
)

And running a good route:
bash-3.2$ curl -v -H "Origin: http://<IP_ADDRESS>" http://<IP_ADDRESS>:1234/
*   Trying <IP_ADDRESS>:1234...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 1234 (#0)
> GET / HTTP/1.1
> Host: <IP_ADDRESS>:1234
> User-Agent: curl/7.79.1
> Accept: */*
> Origin: http://<IP_ADDRESS>
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Thu, 02 Feb 2023 19:26:50 GMT
< server: uvicorn
< content-type: application/json
< content-length: 17
< access-control-allow-origin: http://<IP_ADDRESS>        *** THIS BIT ***
< vary: Origin                          *** THIS BIT ***
<
* Connection #0 to host <IP_ADDRESS> left intact
{"hello":"world"}bash-3.2$

Compared to an invalid one:
bash-3.2$ curl -v -H "Origin: http://<IP_ADDRESS>" http://<IP_ADDRESS>:1234/hey
*   Trying <IP_ADDRESS>:1234...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 1234 (#0)
> GET /hey HTTP/1.1
> Host: <IP_ADDRESS>:1234
> User-Agent: curl/7.79.1
> Accept: */*
> Origin: http://<IP_ADDRESS>
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< date: Thu, 02 Feb 2023 19:27:43 GMT
< server: uvicorn
< content-type: application/json
< content-length: 40
<
* Connection #0 to host <IP_ADDRESS> left intact
{"status_code":404,"detail":"Not Found"}bash-3.2$

Additional context
Add any other context about the problem here.

Can you explain what it means it renders in the UI side as a CORS error. Is this expected behaviour? I've never really looked at CORS before?

Okay so I've talked to the UI person and got an example that I think is what they mean:
Setting "none" as an origin (Looks like that's the default from a local thing)
from starlite import CORSConfig, Starlite, get

cors_config = CORSConfig(allow_origins=["none"])

@get("/")
def hello_world() -> dict[str, str]:
    """Keeping the tradition alive with hello world."""
    return {"hello": "world"}

app = Starlite(
    route_handlers=[hello_world],
    cors_config=cors_config,
)

And, depending how you spin it up and the ports,
<script>
  fetch('http://<IP_ADDRESS>:1234/')
  .then((response) => response.json())
  .then((data) => console.log(data));

  fetch('http://<IP_ADDRESS>:1234/hmm')
  .then((response) => response.json())
  .then((data) => console.log(data));

</script>

running that from a browser and opening up the developer console gives you a CORS error on the second fetch, even though CORS is enabled. Is this expected/normal?

Ok, i understand the issue. Basically you're saying, you whitelist domain www.example.com, and sending a request to a non existent path, e.g.  www.example.com/x, results in a CORS error instead if a 404, correct?

I think that's it yes. I couldn't find where in starlite to try and add the access-control-allow-origin to the headers on a 404 to see if it got rid of the error...

This is tricky. I'll handle this ASAP.

No rush from my side! Still getting off the ground 😅 .


Contextify is breaking jsdom on node v0.12.0 and io v1.1.0

Appears to be the nan needs to be upgraded.  There is already a PR in the queue.
https://github.com/brianmcd/contextify/pull/154

Yes, this is a bug with contextify, not with jsdom.

Posted here as the module cannot be installed currently on 0.12 or io.
Breaks any stack relying on it. Indeed the problem exists with contextify,
but I would argue that jsdom is broken as long as this dep causes the stack
to explode
On Feb 8, 2015 8:35 PM, "Domenic Denicola"<EMAIL_ADDRESS>wrote:

Closed #1022 https://github.com/tmpvar/jsdom/issues/1022.
—
Reply to this email directly or view it on GitHub
https://github.com/tmpvar/jsdom/issues/1022#event-232239625.


Answer for non existing question

Answer a question API return success for non existing question_id.

changes are present in develop branch


pushy 0.4.3  may send a message twice [bug]

We are using pushy 0.4.3.
We met a strange problem : send ONE message to the pushManager but one app receive TWO SAME message.

If Notification A has a invalid token, Notification B is normal  after Notification A. Notification A of cause will be rejected by INVALID TOKEN. Is it possible  that the INVALID TOKEN  causes repeat message sending?

If so,  how to locate this problem caused by INVALID TOKEN?

thanks !

@aluenkinglee I'm not sure; I don't think we've heard of this one before. I hate to put all the burden on you, but can you see if you can come up with a minimal test case (i.e. a small app that actually sends Notification A and Notification B as described above)?
Thanks!

We've just merged HTTP/2 support into master (see #213). I strongly suspect the move to HTTP/2 will resolve this problem. I'm going to close this for now; please comment here if you see this happen again after updating Pushy.


Touch Move Lag

You seem to have place a setState() inside your touch move event.
this.setState({       displaySameSlide: false,       isDragging: true,       indexCurrent: index,     }, () => {       if (onSwitching) {         onSwitching(index, 'move');       }     });
This tends to cause some very laggy touch event, especially with large views. I haven't seen all the code but you could add a if(!this.state.isDragging) {...} so that it is only called once during the touch move events.

You seem to have place a setState() inside your touch move event.

We use that setState to update the view. That's a tradeoff use to simplify the implementation.
We could be more performance by using a data binding between the move events and the applied style.
Adding a pure logic in the slide view solve 80% of the performance issue. Try that first.
If that still not acceptable, try the virtualize Higer-order Component.
And if that still not good enough. A pull request is welcome 😄 .

@oliviertassinari I am beginning to run into this performance issue as well. I see you recommend using "pure logic" in the documentation as well, but I'm not certain what you mean by that. Would you consider adding an example?


retry unset a field does not exist infinitely and block the sync process

Hi, I met a problem as the title described when I sync data from mongodb to es2.
Error log as following:
2017-07-21 15:15:02,774 [ERROR] mongo_connector.oplog_manager:288 - Unable to process oplog document {u'b': True, u'h': -526593452711543270L, u'ts': Timestamp(1500621033, 582), u'o': {u'_id': ObjectId('58fb01b5e4b0c9303aeeafbe')}, u'v': 2, u'ns': u'auto-pipeline-monitor.ugc_video', u'op': u'd'}
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/oplog_manager.py", line 250, in run
entry['o']['_id'], ns, timestamp)
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/util.py", line 35, in wrapped
return f(*args, **kwargs)
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 441, in remove
self.index(action, meta_action)
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 473, in index
self.commit()
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 495, in commit
self.send_buffered_operations()
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 482, in send_buffered_operations
action_buffer = self.BulkBuffer.get_buffer()
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 693, in get_buffer
self.update_sources()
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/util.py", line 35, in wrapped
return f(*args, **kwargs)
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 648, in update_sources
updated = self.docman.apply_update(source, update_spec)
File "/data/elastic2-doc-manager-0.3.0/mongo_connector/doc_managers/elastic2_doc_manager.py", line 224, in apply_update
return super(DocManager, self).apply_update(doc, update_spec)
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/doc_managers/doc_manager_base.py", line 120, in apply_update
exc_tb)
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/doc_managers/doc_manager_base.py", line 114, in apply_update
_unset_field(doc, to_unset)
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/doc_managers/doc_manager_base.py", line 80, in _unset_field
where = _retrieve_path(doc, path[:-1])
File "/usr/lib/python2.6/site-packages/mongo_connector-2.5.1-py2.6.egg/mongo_connector/doc_managers/doc_manager_base.py", line 49, in _retrieve_path
looking_at = looking_at[part]
UpdateDoesNotApply: Cannot apply update {u'$set': {u'legoSendBitratesTask': 2, u'taskType': 0}, u'$unset': {u'bitrates.firstDistState': 1, u'bitrates.distState': 1, u'bitrates.transState': 1, u'bitrates.firstTransState': 1}} to {u'legoSendBitratesTask': 2, u'updateTime':<PHONE_NUMBER>L, u'uid':<PHONE_NUMBER>, u'ip': u'<IP_ADDRESS>', u'inputPipeline': 2, u'userType': 0, u'taskType': 0, u'duration': 21, u'size': 658326, u'uploadInfo': {u'state': 2}, u'uploadType': 0, u'province': u'\u5c71\u4e1c', u'repeatCheckResult': 2, u'appId': 4367, u'createTime':<PHONE_NUMBER>, u'fileId': u'6f6ad6ddff404e8f813b702235debb47', u'parseInfo': {u'cbState': 2, u'state': 2, u'notifyLego': 2}, u'archiveInfo': {u'state': 2}, u'isp': u'\u8054\u901a', u'legoSendAuditImgTask': 2, u'qipuId':<PHONE_NUMBER>L, u'auditImg': {u'transInfo': {u'cbState': 0, u'state': 1}}, u'legoEnqueue': 2}
Log file kept printing the same log message infinitely, and sync process was blocked.
I have checked the source code :
def _retrieve_path(container, path, create=False):             looking_at = container             for part in path:                 if isinstance(looking_at, dict):                     if create and not part in looking_at:                         looking_at[part] = {}                     looking_at = looking_at[part]
In _unset_field method, _retrieve_path method uses 'create' default value, so unset a field does not exist may lead an exception when looking_at[part] is null.
Actually, in mongodb, we can unset a field does not exist.

What version of MongoDB are your replicating from? If it's MongoDB >= 2.6 then I think a separate error caused that Elasticsearch document to become out of sync because MongoDB >= 2.6 does not record $unset on fields that do not exist. I recommend resyncing your data.
However, if you can reproduce this failure please post the sequence of MongoDB operations (inserts, updates, etc..) that causes it and we'll go form there.

My MongoDB version is 2.4.
I have tried many times to resync. All the old data are done successfully, but when syncing process goes to the real time data the "UpdateDoesNotApply" error occurs.
Yesterday, I had modified the source code.
I use create=True with _retrieve_path in _unset_field method, and set a check if index_or_key in where before del where[index_or_key].
Then I resynced my data. Finally it works. :)

It's definitely a bug that you're seeing this error on when replicating from 2.4. This part of the code is supposed to ignore $unset on missing fields and instead log a warning: https://github.com/mongodb-labs/mongo-connector/blob/master/mongo_connector/doc_managers/doc_manager_base.py#L92-L99
I'll try to reproduce this and get back to you.

Ran into this the other day. I modified doc_manager_base.py as per @nonight89's instructions:
def _unset_field(doc, to_unset):             try:                 if "." in to_unset:                     path = to_unset.split(".")                     where = _retrieve_path(doc, path[:-1], create=True)                     index_or_key = _convert_or_raise(where, path[-1])                     if isinstance(where, list):                         # Unset an array element sets it to null.                         where[index_or_key] = None                     else:                         if index_or_key in where:                             # Unset field removes it entirely.                             del where[index_or_key]                 else:                     del doc[to_unset]             except (KeyError, IndexError, ValueError):                 source_version = get_mininum_mongodb_version()                 if source_version is None or source_version.at_least(2, 6):                     raise                 # Ignore unset errors since MongoDB 2.4 records invalid                 # $unsets in the oplog.                 LOG.warning(                     "Could not unset field %r from document %r. "                     "This may be normal when replicating from "                     "MongoDB 2.4 or the destination could be out of "                     "sync." % (to_unset, doc)                 )
After updating, I restarted mongoconnector and re-ran the sync. It worked like a charm.


non-joint BPE and number of BPE operations

Hi,
how should one handle the case of different alphabets between source and target language, for instance English to an Asian language?
Should one replace this line in the preprocess.sh script
# train BPE
cat data/corpus.tc.$SRC data/corpus.tc.$TRG | $subword_nmt/learn_bpe.py -s $bpe_operations > model/$SRC$TRG.bpe

with two separate lines
cat data/corpus.tc.$SRC | $subword_nmt/learn_bpe.py -s $bpe_operations > model/$SRC.bpe
cat data/corpus.tc.$TRG | $subword_nmt/learn_bpe.py -s $bpe_operations > model/$TRG.bpe

?
Moreover, what about the $bpe_operations value? Actually, I don't understand how the following comment in the preprocess.sh file :
# number of merge operations. Network vocabulary should be slightly larger (to include characters),
# or smaller if the operations are learned on the joint vocabulary
bpe_operations=89500

relates to the
VOCAB_SIZE=90000
line in the config.py file.  Since in preprocess.sh the BPE is learned on the joint vocabulary (right?), I would expect VOCAB_SIZE to be slightly smaller than 89500, not larger. Could you please explain?
Thanks,
Vito

to your first question: yes, that's what I would recommend for non-joint BPE (of course, the lines with apply_bpe.py need to be adjusted accordingly)
to your second question: for non-joint BPE, the total vocabulary size is the number of BPE operations plus the initial character vocabulary, so the network vocabulary should be slightly larger. For joint BPE, the actual vocabulary can be smaller because of units that only occur in one of the two languages. Personally, I sometimes adjust the network vocabulary size based on the output of build_dictionary.py .

Got it, thank you


Use RTK queries for API requests

Tagging you as a reviewer to share my experience with RTK queries. Tbh, it looks really sweet and eliminates a lot of code 👾

And by this patch we basically have the app fully integrated into redux/toolkit 🥳

Tagging you as a reviewer to share my experience with RTK queries. Tbh, it looks really sweet and eliminates a lot of code 👾

Oh this is heckin neat! excited to see how it plays out...
i LOVE how all states are destructed from useGetClusterByIdQuery(match.params.clusterId); also the builtin refresh... does it take params that modify the previous call?

Tagging you as a reviewer to share my experience with RTK queries. Tbh, it looks really sweet and eliminates a lot of code space_invader

Oh this is heckin neat! excited to see how it plays out...
i LOVE how all states are destructed from useGetClusterByIdQuery(match.params.clusterId); also the builtin refresh... does it take params that modify the previous call?
OOOOOO ALSO THE isUninitialized PARAM now thats real tempting

hmm, it seems to be not supported. Docs aren't saying anything about this func, and in VSCode it's marked as () => void(). Also, I tried to intentionally call refetch again with the random string parameter, but the new request uses the initial ID given in useGetClusterByIdQuery.

LOOKS LIKE FUNNNN maybe i'll give it a whirl when implementing pathways

yeah, give it a try! I think this thing will get popular really quickly. I am only concerned about result bundle sizes... will once compare the before/after approaches in my free time


nit: remove connection hops check inChannelOpenTry

Description

Isn't this check redundant since the same check is already done in ValidateBasic of Channel when validating MsgChannelOpenTry?
closes: #XXXX
Commit Message / Changelog Entry
N/A

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[x] Targeted PR against correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[x] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Codecov Report

Merging #3620 (e8cbf7e) into main (5eb928d) will increase coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #3620      +/-   ##
==========================================
+ Coverage   78.80%   78.81%   +0.01%
==========================================
  Files         182      182
  Lines       12689    12686       -3
==========================================
  Hits         9999     9999
+ Misses       2258     2256       -2
+ Partials      432      431       -1

Impacted Files
Coverage Δ

modules/core/04-channel/keeper/handshake.go
90.39% <ø> (+0.88%)
:arrow_up:

I suppose the only concern is some module importing ibc and calling this method directly (bypassing ValidateBaisc) with empty or nil connection hops and causing a panic

True, I also thought about that possibility, but thought that if that was to happen then I guess we would need to validate also other things besides connectionHops...

It'd opt to leave this for now. I think we can spend some time removing redundant checks when we restructure our validation. I think the benefit of leaving this check is that it is easier to compare the handler against the spec. If there's strong desire to remove this now, a comment should be added indicating where the check is performed


Fixed broken handling of Sass changes when Grunt is running

Added grunt-sass to devDependencies in package.json so changes to Sass files in dev are handled by Grunt.
Previously when a Sass file changed, Grunt would notice the change to the file but fail to run Sass, generating
this warning: "Warning: Task "sass" not found. Use --force to continue."
The problem was caused by the yeoman template not including grunt-sass in the devDependencies.
Issue 99 is related

Adding Fixes issue #99 will automatically close that issue when this PR is merged btw. https://help.github.com/articles/closing-issues-via-commit-messages/#closing-an-issue-in-the-same-repository

Thanks @rpowens


Refactor of Blue/Green

Refactored blue/green strategy to allow for more readable and flexible code

Also there's failing tests


Change to with-no-violation if no-violation is preceded by the number

Ref: https://github.com/stolostron/console/pull/3731#discussion_r1715434401

/cc @mprahl @dhaiducek @JustinKuli


Difference with some other parsers

For JS-YAML, this
a: yes
b: "yes"

For pyaml,
yaml.safe_load("a: yes\nb: 'yes'")

Evaluates to {'a': True, 'b': 'yes'}
This causes issue when a yaml file which contains a value yes is used by multiple yaml parsers.
I'm for example using js-yaml to automatically upgrade docker containers in a docker-compose.yml. One of the containers containts an env var whhich is set to yes. When loading this in JS-YAML
value: "yes"

and re-exporting, it ets exported as
value: yes

When loading that with most other yaml parsers, these things are different. "yes" is a string, but yes is a boolean.
I'm not sure which parser is correct here.

http://nodeca.github.io/js-yaml/#yaml=YTogeWVzCmI6ICJ5ZXMi
This is yaml 1.2 parser. yes is true in 1.1. I strongly suggest to force python's package use 1.2, and not use yes in files (+ auto-convert old versions of those).
Difference between 1.1 & 1.2 - some garbage removed. In your case - multiple variants of Boolean representation.

Thank you! I wasn't aware of that change in the specM Sorry for the spam issue then


Ripple effect

Would be great to have ripple effects on buttons and other clickable items.

This is probably a nice case for implementing your own theme as you can customize just about all the styling via the components ui prop.
Check out how you can customize a component theme here.


Added new FAQ on README.md about Bookshelf usage

This PR originated from this question: #1051

Test failed for some reason - re-running.


updated gems and yarn dependencies

Ran Bundle update and yarn upgrade

I'm adding in an explicit disable of non-post omniauth methods, and letting bundle-audit ignore the CVE so the remaining tests can run, per the suggestions from Omniauth for mitigating:
https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284

Faker::StarWars was depricated and failing some tests so I've updated the call to Faker::Movies::StarWars
https://github.com/stympy/faker/blob/master/CHANGELOG.md#deprecation-2

Multiple issues with the tests regarding timeago.js,
Downgrading this to the version being used on development, 4.0.0.beta.1, from 4.0.0.beta.2
and re-running Travis


[stable/redis] Fixed typo in README

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:

Please add the chart name [stable/redis] to the PR title so it's easy to tell what the Pr is for.
You also need to sign the CNCF CLA before we can accept your PR.

@rendhalver thanks for the heads up! I have signed the CLA and amended the title.

/ok-to-test
/lgtm

Hi @harryleesan, because we merged this PR #6783 some minutes ago, you need to bump again the chart version.
The other PR as usual, bump the version to 3.7.1 so at this moment we've some failures in the test, you need to increase the version to 3.7.2.

/ok-to-test
/lgtm


rxqlite-win32.zip again reported as containing virus by Windows Defender

Would need to compile rxqlited yourself

Virus Total reports "No security vendors and no sandboxes flagged this file as malicious"

With latest update:
Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.409.193.0) ,
no virus is detected any more , so closing this issue for now.


WSL2 docs: Add better error handling support

Explicitly delete the lock files before starting wsld following the https://github.com/nbdd0121/wsld/commit/c3a2bb7ccab8c11710fa6b49cf10434a80a853dd commit.
WSL2 never deletes the tmp directory - https://github.com/microsoft/WSL/issues/6999

Why wasn't this implemented? Any problems with the approach?

There is a force option if your setup does not have /tmp cleaned (implemented in f758bd403cf54431cd7078e1e330c5b2da256ae9). I have added it to the doc.


Not lexing string literals properly

I stumbled upon an issue when trying to lex string literals with the pattern \".*\". Logos returns Token::Error for any string literal I've tried (including the empty string). The following is my token enum, the relevant callback and some basic driver code:
#[derive(Logos, Debug, PartialEq)]
pub enum Token {
    #[regex(r"[a-zA-Z]([a-zA-Z0-9]|'|_)*", ident)]
    Identifier(String),

    #[regex(r"[0-9]*", |lex| lex.slice().parse())]
    Integer(u64),

    #[regex(r"'.'", character)]
    Character(char),

    #[regex(r#"".*""#, string)]
    String(String),

    #[error]
    #[regex(r"[ \t\n\f]+", logos::skip)]
    Error,
}

fn string(lex: &mut LogosLexer<TokenType>) -> Option<String> {
    let slice = lex.slice();
    let s: String = slice.parse().ok()?;
    println!("{}", s);
    Some(s[1..s.len()-1].into())
}

fn main() {
    let lex = Token::lexer("\"this is a test\"");
    for token in lex {
        println!("{:?}", token);
    }
}

Notably the print is never executed within the string callback. Also, none of the other regex patterns accept a double quote as the first character. Am I missing something or is this a bug? I only discovered this crate last night so I would not rule out the possibility that I'm missing something haha.

Lexing in logos is greedy, so your string literal pattern will consume the entire input to the end once it reaches .*. This is, currently at least, by design. You can easily fix it with: r#""[^"]*""# (note that this will not handle escapes if you need them).
Sidenote: you don't need to parse a string slice to a String, so this can be simpler:
fn string(lex: &mut LogosLexer<TokenType>) -> Option<String> {
    let slice = lex.slice();
    Some(slice[1..slice.len()-1].into())
}

It would be even simpler and faster still if you swap all Strings for &strs in the token definitons to avoid allocations.

Ah gotcha, that makes sense. Thank you for the quick reply and happy holidays!

Happy holidays :)


Use Record instead of index signatures

Description
This change makes it so that @typescript-eslint/consistent-indexed-object-style uses the default config for error, aka use a Record and not in index signature.

/snapit


Add @Consume(content-type) to all REST services class or methods

All Central Dogma APIs use JSON (Patch) to exchange data. A Central Dogma server can't handle other types such as XML or YAML.
Currently, the request content-type is not specified in some API methods.
https://github.com/line/centraldogma/blob/24603eb149d3945fde2cc1ced71a9efdcbc231fe/server/src/main/java/com/linecorp/centraldogma/server/internal/api/ContentServiceV1.java#L187-L191
That results in generating a converter not found error message if content-type is missing.
For example, a commit is sent without content-type, No suitable request converter is returned form which users don't know what is wrong.
$ curl -XPOST "http://<IP_ADDRESS>:36462/api/v1/projects/foo/repos/bar/contents" \
 -H "Authorization: Bearer appToken-***" \
 -d '{
    "commitMessage" : {
        "summary": "hello",
        "detail": "a",
        "markup": "MARKDOWN"
    },
    "changes" : [
        {
            "path" : "/foo0.json",
            "type" : "UPSERT_JSON",
            "content" : {"a": "bar2"}
        }
    ]
 }'
{"exception":"java.lang.IllegalArgumentException","message":"No suitable request converter found for a @RequestObject 'CommitMessageDto'"}%

If @ConsumeJson is added to the method, 405 Method Not Allowed is returned which would make it easier to identify the cause.

@ikhoon nim, i want to take this task!
Could you assign this task to me?

Sure. Thanks for your interest!

#999 didn't handle all API. For example, we still need to specify @Consume to the below.
https://github.com/line/centraldogma/blob/a4e58931ac98e8b6e9e470033ba04ee60180b135/server/src/main/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1.java#L137-L141

https://github.com/line/centraldogma/blob/a4e58931ac98e8b6e9e470033ba04ee60180b135/server/src/main/java/com/linecorp/centraldogma/server/internal/api/converter/CreateApiResponseConverter.java#L53-L66
Sorry, i missed it.
May i create new PR to fix it?

@ikhoon nim,
https://github.com/line/centraldogma/pull/999 didn't handle all API. For example, we still need to specify @Consume to the below.
It seems that this code you mentioned is not about @ConsumesJson. 🤔
Since in this code, @ResponseConverter(not @RequestConverter) is used.
Thus, i think it is only related to @Produces.
https://github.com/line/centraldogma/blob/a4e58931ac98e8b6e9e470033ba04ee60180b135/server/src/main/java/com/linecorp/centraldogma/server/internal/api/ProjectServiceV1.java#L137-L141
By the way, i took a look at more, i found this code.(@RequestConverter(CommitMessageRequestConverter.class).)
From this code, should we assume that all API in ContentServiceV1 require Content-type: json?
https://github.com/line/centraldogma/blob/e78a569541f6e010ad6e5f985679687cfe50bbfc/server/src/main/java/com/linecorp/centraldogma/server/internal/api/ContentServiceV1.java#L101-L104

Central Dogma only uses JSON in REST APIs for the content-type.
CreateProjectRequest will be converted by the global JacksonRequestConverterFunction.
https://github.com/line/centraldogma/blob/534f6bf8e6e9918d2fcf878612518bd4f25aeee7/server/src/main/java/com/linecorp/centraldogma/server/CentralDogma.java#L775
If a content-type is not specified, JacksonRequestConverterFunction won't convert the body into CreateProjectRequest.


[c:api]: wandb.Api().flush() is not working as expected

Current Behavior
I am using the wandb api to try to do something like a custom sweep (so that I can do distributed training across machines, this is not related to the Wandb sweep, FYI), by using a run group, but I think this context is not that relevant to the issue.
So, essentially I have the following loop -
wandb_api = wandb.Api()
for idx, run in enumerate(wandb_api.runs(path = os.path.join(project_name), filters={"group": run_group_name})):
    if run.config["dist_launch_state"] == "started":
         print("some other process has started this run, hence moving to the next run")
   else:
          run.config["dist_launch_state"] == "started"
          run.update()
          do_some_stuff(run.config) here using the run's config
          run.config["dist_launch_state"] = "finished"
          run.update()
    wandb_api.flush()

So what I want to do is that I want to run this loop, which essentially executes the do_some_stuff() function, and I want to the run this loop in parallel and distributed fashion, potentially across different machines. So what I do is that I run this code snipped in parallel using say python snippet.py where snippet.py contains the above for loop snippet. Ideally, what should happen is when I run the jobs in parallel, say the first job has finished running do_some_stuff() say 10 times, and hence the dist_launch_state of 10 runs has been updated to finished (one of the run, i.e. the last one could be in a started dist_launch_state, i.e the 11th run could be in a started dist_launch_state since there might be some latency in me running the next python snippet.py and since the first job is continuously running it could have started the 11th run, but that is not important to this right now).
So, now what happens is the second run of the snippet.py is that it correctly prints out "some other process has started this run, hence moving to the next run" 10 or 11 times (depending on the exact run states), which is completely expected since the "dist_launch_state" of the run group of those 10 or 11 runs, lets just say 10 for simplicity of notation for now, is either the string started or finished.
But what happens after this is completely strange and unexpected, now lets say p2 (the second process which is running snippet.py) starts the 12th run, it starts the 12th run since the 11th run is started by p1 this runs well and fine. Now, we would expect that p1 (the first process which is running snippet.py) will not run the 12th run but will print  "some other process has started this run, hence moving to the next run", since p2 has started this, but this does not happen, rather it runs the 12th run also, and from this point on both the p1 and p2 run all the runs till the end of the run group - say if the run group has 100 runs, p2 will run 100 - 12 runs and p1 will run all 100 runs since it was started first obviously.
I have further tested this issue by running p3 (same notation as above), and it starts at max(runs(p1), runs(p2)) where runs(p_i) is the number of runs run by the process p_i, and from that point on runs all the runs i.e. p3 will run 100 - max(runs(p1), runs(p2)) runs.
This is not expected at all since it is expected that the runs "see" the centralized wandb server and run only runs for whose dist_launch_state  keys are not started or  finished.
I think what is happening is that only initially when the processes p1, p2, or p3 start the wandb is getting the run dist_launch_state and there after it is just using that copy of the run dist_launch_state and running the runs, despite me using the flush() function, which according to the api docs here - https://docs.wandb.ai/ref/python/public-api/api#flush - must clear the local cache and get the latest state of the runs.
Environment
OS:
Static hostname: u124281
Icon name: computer-server
Chassis: server
Machine ID: 1a347b1c907c42bb81d003b8876d5b8b
Boot ID: 432d800d10b54b43af360314e1145c46
Operating System: Ubuntu 20.04.4 LTS
Kernel: Linux 5.4.0-117-generic
Architecture: x86-64
Browsers:
Safari - this is not relevant imo.
Version:
wandb, version 0.13.10
PS - apologies for the long and verbose issue, but I just want to be clear in what I am saying, thanks!

You can't change the state of a run directly via the public api, you can only query it.  You can .stop() a running run, which should transition it to finished or crashed.  The only way to transition a run from finished to running is by resuming it.
Can you share a brief description of what you're trying to accomplish?

Thanks - sorry I think I was ambiguous in the original post. So, I am not trying to change the state of the run, I am just adding a key called, more specifically, "dist_launch_state" to the config dict of the run, via run.config["dist_launch_state"] = "started" or run.config["dist_launch_state"] = "finished".
The basic thing that I am trying to accomplish is the following -

I have a run group whichI have already set and it is set in a specific project of wandb, each of the run in this run group has a different config file.
What I want to do is, I want to use this run group and using the config files of each of this run in this run group I want to do some model training, so essentially I pass the config dict of each run of this run group by querying the api in a python script a locally run a python script by passing this config dict.
But I want to do point number 2 in a distributed fashion across machines, so what I do is I run a python script which loops thru the runs of the run group and gets the config of each of the run using run.config, and since I want to do stuff in a distributed fashion I need some way for the other processes to know if the run has been started or not so I just put a flag in the run.config of this run in the run group which has been started in the loop, this flag is in the form of the string that I have mentioned above "dist_launch_state".
Please do let me know if anything is unclear here.

btw- just to add some further information - I want to access the wandb api multiple times, potentially many 100 of times from the same python script, and each time I access it it must give me the fresh and latest information about the runs, i.e. the latest information stored in a run, say it could be it's config for example. I thought api_object.flush() does this but it is not helping in my case.

Hi @meghbhalerao, could you try moving wandb_api = wandb.Api() inside of your for loop? I'm not sure why the flush() is not working here but reinstantiating the Api should get you the latest data.

Hi @meghbhalerao, I wanted to follow up and see if that worked for getting the latest data?

Hi @nate-wandb - thank you for following up. I have put the line wandb_api = wandb.Api() inside the loop, but still it is not getting the latest state of the run. However, as I mentioned earlier, if I run the same script another time, it gets the latest state of the runs. Is it something to do with the wandb process which gets started within the python process such that I can get the state of the runs only once in a single wandb process?

Hi @meghbhalerao, could you share your updated code. I think I misunderstood your code and didn't realize you are iterating over a value (wandb_api.runs) that you get from the wandb.Api(). I think you will need to grab the run each time in the loop after reinstantiating the Api() object.

Hi @meghbhalerao, do you see the run config getting updated in the app when you run this? I think the issue may be that you need to use run.config.update() instead of run.update() to update the config on the runs.

Hi @meghbhalerao, I just wanted to see if you had a chance to try that out and if you were seeing the config changes reflected in the UI?
Thank you,
Nate


How to limit characters length?

Hello, everyone.
I am trying to set a max number of characters by using the HTML attribute maxLength, but the mask seems to disable it. Is there a workaround?

I've just tested and it works. can you provide more details? which browser, what version are you using(maybe try with the last version?)?

#155


Update password-policy-recommendations.md

Updated the minimum character length recommendation as per the latest update from https://www.microsoft.com/en-us/research/wp-content/uploads/2016/06/Microsoft_Password_Guidance-1.pdf from Robyn Hicock<EMAIL_ADDRESS>[Microsoft Identity Protection Team]
fixes#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/10432

@JohanFreelancer9 Please copy review

Learn Build status updates of commit da5d6cd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/admin/misc/password-policy-recommendations.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@kwekuako Please merge this PR. Thanks

Learn Build status updates of commit f1f1cc5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/admin/misc/password-policy-recommendations.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


export ObserverOptions interface

Just export interface for typing reasons

Thank you for the pull request @juanespinola05, I will go ahead and merge this, and it should be available soon.


generic type is not working properly when compared to nil

What version of Go are you using (go version)?

$ go version

1.18.4

Does this issue reproduce with the latest release?
code that works:
package gspec

type nilMatcher[T any] struct{}

func (it nilMatcher[T]) Match(value T, path string) error {
	if it.isNil(value) {
		return nil
	}

	return fmt.Errorf("%s should be nil [%s]", ReferValue(value), path)
}

func (it nilMatcher[T]) isNil(value any) bool {
	return value == nil
}

Code that should work, as T is any just like the argument
package gspec

type nilMatcher[T any] struct{}

func (it nilMatcher[T]) Match(value T, path string) error {
        // Error comparing T with nil. But in the previous case, using any as the argument type directly worked.
	if value == nil {
		return nil
	}

	return fmt.Errorf("%s should be nil [%s]", ReferValue(value), path)
}

The code I'm trying to write is in this open source package: https://github.com/krakenland/gspec

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

See the discussion at https://go.dev/doc/faq#nil_error.


"CoreMethods" is null when manually setting Binding context to a FreshMvvm ViewModel

I have a Page that contains a custom view that I created with it's own ViewModel. In order for the ViewModel to be used for this View, it seems that I needed to manually set the binding context in the view.
From my View I am setting the binding context to the ViewModel manually like below:
view.BindingContext = new MyViewModel(FreshIOC.Container.Resolve<IMyApiService>(), FreshIOC.Container.Resolve<App>());
The dependencies are being propagated as expected, but for some reason when I try to call a CoreMethods.PushPageModel() I am recieving a Null reference exception. For some reason "CoreMethods" is 'null' in this ViewModel. Any idea what could be causing this?

I'm not entirely sure since I haven't looked into the FreshMVVM code enough yet but because it prefers convention over configuration it doesn't treat the custom view as a whole nother page and therefore probably doesn't populate the base viewmodel methods correctly. If I were you I'd set up messaging to tell the main page to navigate when the custom view is interacted with. I'm assuming you have a button in the custom view or something that you'd like to initiate the navigation from.

Thank you @WiteCastle . I am still new to Xamarin Forms, so of course I am still discovering what it has to offer. I ended up doing something with Event Handlers.. but this messaging way seems much cleaner.. Will probably switch to that ASAP :).

@jbowmanp1107 (cc: @WiteCastle & @rid00z ) - Did you find a solution to your issue above?
I believe I am attempting to do something very similar, here is my situation:
I have a Xamarin.Forms ContentPage (MyPage) with a corresponding model (MyPageModel).
In the MyPage xaml markup I have a custom ContentView (MyView) which I created a corresponding model for (MyViewModel).  I am unfortunately having to create the MyViewModel manually in the code behind of MyView.xaml.cs and explicitly assign the BindingContext to a new instance of MyViewModel.  In the MyViewModel I want to use FreshMvvm's CoreMethods to push a new page model on the stack, however CoreMethods is null.
Any ideas?  Or is this just an odd and/or not recommended approach to this issue?
Thank you in advance!


PaperHive

[ Project Lead ] @lmatthia
[ GitHub Repo ] https://github.com/paperhive
[ Track ] Citizen Science: you're looking for participants in your citizen science project
[ Level ] Intermediate
[ Timezone ]
Description
PaperHive is the coworking hub for researchers. Our goal is to simplify research communication and transform reading into an active process of productive collaboration.
We just launched our beta, so our next step is to encourage the creation of virtual reading clubs and reach out to already existing ones. Reading groups facilitate open communication among researchers independent of their discipline and location and foster the exchange of knowledge and ideas among experts. Also, a process of peer review education takes place, because readers are encouraged to analyze and discuss in even greater depth findings, opinions, and procedures. The reading groups are an important part of the self-improving research landscape.
We would love to get together and share thoughts on how to best encourage the establishment of virtual reading clubs, and how to reach researchers most effectively.

Want to Contribute?
Join us at the Global Sprint June 2-3. Leave a comment in this issue to let the project lead know you're interested in contributing during #mozsprint 2016!

Note to the Project Lead
Congrats, @lmatthia! This is your official project listing for the Mozilla Science Global Sprint 2016. To confirm your submission, please complete the following:

[x] Provide a GitHub repository for work and discussion on your project
[x] Confirm in a comment that at least one person will be available to review and answer questions on this project from 9-5 in their timezone on both June 2 & 3.

Do you want to become a featured project? :tada:
Here are some exercises that will help your project be more inviting to new contributors. We hope you'll try to complete some of these as you prepare for #mozsprint.
If you complete all the exercises, your project will be eligible to be featured in our collection of open source science projects! Once you've finished this list, contact @acabunoc to submit your project for review.

[ ] README.md:
[ ] LICENSE:
[ ] CONTRIBUTING.md:
[ ] Roadmap or an Issue Tracker (with tasks to complete):
[ ] Data Reuse Plan (if applicable):
[ ] Code of Conduct:
[ ] Personas:

Hey @acabunoc !
Our GitHub Rep is:  https://github.com/paperhive
And I will be available to answer questions on both days :)

Hey there, it's André from @paperhive. I just wanted to let you know that I'm in Vancouver on June 2/3 and I'm also available for anything related to PaperHive. I'd love to join the local sprint in the evening. Let me know if you're around or if you're interested!

Hey @andrenarchy - @joeyklee is hosting the Vancouver site for the sprint. If you haven't synced up already, he might be able to help you get involved at that site!

hey @andrenarchy! if you're in Vancouver, do sign up here https://ti.to/mozilla-science/gs2016-vancouver and come on down to the Mozilla Vancouver space, downtown. We've got a nice big room :)

I'll be at the sprint in Toronto and would love to contribute!

Hey @joeyklee! I'm at the SSP conference today and tomorrow but maybe I can come around for saying hi. When will you be at the Mozilla office? I couldn't find anything on the website.
Great, @Monsauce! @lmatthia should be in touch with you. Let me know if I can help! :)

Hi @andrenarchy ! We're here from 9am to 5pm today (june2) and tomorrow! Come on by! You can ring 209 on the buzzer downstairs :)
https://www.google.ca/maps/place/Mozilla/@49.2824658,-123.1091908,15z/data=!4m2!3m1!1s0x0:0x2372f60e83d7f88d?sa=X&ved=0ahUKEwjr87C6o4rNAhUMElIKHRjxBC0Q_BIIdTAK

Perfect! Hopefully I'll find a slice of time for coming around tomorrow. :)

looking forward to it @andrenarchy - just holler when you arrive!


Next 13.2 new route handler bug

Verify latest release

[X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

[X] I verify that the ChatGPT webapp is working properly for this account.

Environment details
NodeJS v19.0.1
Browser: Irrelevant
OS: Windows 11
Describe the Bug
Console throws this. My route handler is just an instance of ChatGPTAPI (official API) sending the text of a sendMessage() call.

@brunoocal what keyv and keyv adaptor(s) are you using?
This was a known bug in keyv awhile back, but it should've been fixed in https://github.com/jaredwray/keyv/pull/119

None

Okay; let me investigate a bit..

@brunoocal just to try and repro, are you using appDir? and which package manager?

Yes, It's in the appDir new route handler in Next 13.2 with latest npm version. I just tried the same code in pages/api and works perfectly

Yeah; I'm able to repro it using next 13.2 w/ a route handler.
My suggestion for now would be to:

Open a bug report on the next.js repo, since keyv is a pretty common NPM module, and their route handlers should support it without errors
Use a pages/api handler for now until Next.js 13's beta features are more stable

If you end up creating an issue on the next.js repo, please link it to here so we can track progress.
Thanks!

Thank you!


Modelfactsheets like eGoDP can't be fully described by the ontology yet

Description of the issue
This is a list of things missing to describe the eGoDP Modelfactsheet (found under examples) in ttl with the ontology.
Checked means it has an own issue or got solved or is not needed

[x] property has_acronym (or has_identifier?): not needed bc we have the annotation properties alternative term and unique individual identifier
[x] author specifications: institution, working field, active time period (#486)
[x] property has_primary_purpose: same as has function?
[x] property has_primary_output
[x] property uses_framework: not needed bc we have uses and software framework
[x] property documentation_quality (#526)
[ ] properties is_open_source, data_provied, cooperative_programming
[ ] github specifications: github organisation and contributions graph
[x] property uses_external_optimizer: not needed bc we have uses and external optimizer
[x] property has_GUI
[ ] property has_mathematical_properties?
[x] has_typical_computation_time and has_typical_computation_hardware (#527)
[x] properties for file formats: has_model_file_format, has_input_data_file_format, has_output_data_file_format: not needed bc the objects like model or input data can just get related to data format without having specific properties for them all
[x] integration with/ of other models

Is this still to discuss? Or have all factsheet related topics been transferred to single issues?

@stap-m is a mathematical property needed? I'm not sure what that's used for


Strict log levels

If I create a transporter with level 'info', i just want it to log messages of level 'info', not 'error' or 'warn', how can I do that?

I believe you should set level on logger instance, not on console transform.
https://github.com/winstonjs/winston/issues/614#issuecomment-405015322 here is how it can be managed. This issue has couple of solutions that you can try to implement. I didn't try it, but I hope it will help you.

@gLenczuk Thanks!


Pin the "getting started with gcloud" snippet at the top of every page

We do this on gcloud-node and it's awesome (http://googlecloudplatform.github.io/gcloud-node/#/docs/v0.12.0/datastore/transaction)
Can we make this happen on the docs for gcloud-python too ?

The reasons why the 'Getting Started' is not pinned in python is that we have the demos, so when I did the docs I decided to pin the 'API x in 10 seconds' sections to the top level module (datastore and storage), because they are more specific to each API.
To avoid having too much pinning going around, I avoided adding the 'Getting Started' as well.

Ah - I see this on http://googlecloudplatform.github.io/gcloud-python/storage-api.html
Can we pin it to the sub-sections? ie http://googlecloudplatform.github.io/gcloud-python/storage-buckets.html ?

We can pin it to the sub-sections, but do you still want the 'Getting Started' as well? If not, I guess we should close #554.

Looks like the fix (#554) got vetoed, closing this out.


Implement seeking for ChaCha20 and Salsa20

ChaCha20 and Salsa20 are capable of efficiently moving to any point in
their output, but that functionality was not being exposed. This patch
introduces a new trait, SeekableStreamCipher, with implementations for
those two ciphers.
This exposed a bug in Salsa20: overflow in the least-significant block
counter word was not correctly detected. This made all streams wrong after
256 GiB, and an unlucky 1 out of 2^32 streams wrong after 64 bytes.
Issue #156 is related to this.

This exposed a bug in Salsa20: overflow in the least-significant block
counter word was not correctly detected.

Do you have a test vector for this (preferably one of the shorter ones)?


Pin Twine to a good version

Python SDK publishing broke with the latest version of importlib. See https://github.com/pulumi/pulumi-pulumiservice/actions/runs/9670567679/job/26679789077#step:21:216
See https://github.com/pulumi/ci-mgmt/pull/999/files

Opened https://github.com/pulumi/pulumi-pulumiservice/issues/338 to add this repo to ci-mgmt so we don't have to maintain these workflows ourselves


RegisterIndicator does not process composite indicator in python algorithms

Expected Behavior
All types of indicators can be registered to automatic updates
Actual Behavior
Composite indicators are not being registered in python algorithms
Potential Solution
Add CompositeIndicator case for RegisterIndicator(Symbol, PyObject, IDataConsolidator, PyObject)
Reproducing the Problem
class BasicTemplateAlgorithm(QCAlgorithm):
    def Initialize(self):
        self.spy = self.AddEquity("SPY").Symbol
        sma = SimpleMovingAverage(30)
        delay = Delay(1)
        delayedSma = IndicatorExtensions.Of(delay, sma)
        self.RegisterIndicator(self.spy, delayedSma)
        self.PlotIndicator("DelayedSma", delayedSma)

System Information
N/A
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues
[x] I have provided detailed steps to reproduce the issue

Closed by #1641


Bower install not working

The bower install instructions you provide in the docs don't seem to work:
bower EHTTP         Status code of 500

Also, trying to install directly from the Github repo:
bower install --save git://github.com/WickyNilliams/headroom.js.git

Doesn't work and produces:
bower invalid-meta  The "main" field cannot contain minified files
bower invalid-meta  The "main" field has to contain only 1 file per filetype; found multiple .js files: ["dist/headroom.js","dist/headroom.min.js","dist/jQuery.headroom.js","dist/jQuery.headroom.min.js","dist/angular.headroom.js","dist/angular.headroom.min.js"]

Can you please check both things and fix them? Btw, wouldn't it be easier simply publishing a standard Bower package?
Thx!

<EMAIL_ADDRESS>Server error: ENOENT: no such file or directory, lstat '/tmp/npm-http-server-headroom.js<EMAIL_ADDRESS>

It's working fine for me. Wonder if it was a temporary issue with npmcdn?

I don't use the regular bower registry because it (unwisely IMO) forces you to commit build artefacts, which causes endless confusion with PRs, making contributions more difficult.

The warnings can safely be ignored. I think I will eventually remove the minified files though


Run Issue

Type: Bug
Auto-generated text from notebook cell performance. The duration for the renderer, VS Code Builtin Notebook Output Renderer, is slower than expected.
Execution Time: 42.9s
Renderer Duration: 25ms
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx   (8 x 2096)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
5.88GB (1.52GB free)

Process Argv
C:\Users\Rohit\Downloads\Require code and data\Require code and data --crash-reporter-id 752ad1bc-4d0c-40d7-b95d-e992e0cdffe4

Screen Reader
no

VM
0%

Extensions (27)

Extension
Author (truncated)
Version

blackbox
Bla
1.2.61

vscode-javac
geo
0.2.46

vsc-python-indent
Kev
1.18.0

rainbow-csv
mec
3.11.0

debugpy
ms-
2024.0.0

isort
ms-
2023.10.1

python
ms-
2024.0.1

vscode-pylance
ms-
2024.2.2

jupyter
ms-
2023.10.1100000000

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

cmake-tools
ms-
1.17.16

cpptools
ms-
1.19.3

cpptools-extension-pack
ms-
1.3.0

java
red
1.28.1

LiveServer
rit
5.7.9

pdf
tom
1.2.2

cmake
twx
0.0.17

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.56.1

vscode-java-dependency
vsc
0.23.4

vscode-java-pack
vsc
0.25.15

vscode-java-test
vsc
0.40.1

vscode-maven
vsc
0.44.0

(2 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
pythonfmttext:30731395
f8hc8238:30694864
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30886110
dsvsc017:30886112
dsvsc018:30886114
aa_t_chat:30882232

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.86.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

@rs990807 may I ask does it happen all the time or only for some of the cell executions?

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Show only 1 or 2 elements

If I have elements with the same ID the popover appear as many id I have.. is possible to limit the amounts of popover to show.
Thank You
https://cl.ly/2T301m0z1Y31

First, you shouldn't have several elements with the same ID. IDs are meant to be unique. You should use classes instead.
However, you can use element: 'my-id:eq(index)' with index being your element's index (starting from 0).
https://api.jquery.com/eq-selector/

Thank You it works for me.


1% -> 5% in comment

The download reports every 5% not every 1%.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

I signed it!

I signed it!

Thanks @mbasilyan!

Thanks @mbasilyan!


datastore: refactor patch retesting functionality

Refactor patch testing functionality.
Instead of creating patch testing jobs per cron, create them on demand
during pollJob(). This allows to only create jobs for managers that do
support jobs and also simplifies further changes that are related to
patch testing.
As there are too many bugs and poll period is quite small, don't query
all the database each time. Consider a random subset of bugs each time,
this should be enough given high poll rate.

Thanks :) I think it's easier to keep it as is. If we ever start to poll jobs for a huge number of managers at the same time, we can consider more lightweight ways of throttling.


rpm/debian packages

Hi,
I have started creating packages for zsh-users projects on OpenSUSE build service: https://build.opensuse.org/project/subprojects/shells:zsh-users
It is an easy way to build, maintain and distribute packages for many distributions at once (Debian and derivatives/RHEL and derivatives/Fedora/SUSE...). The packaging quality is very low (just puts files in /usr/share), but I guess it can still be useful to users, and we can improve it later if experienced packagers step in.
The package for this project is here, and users can download it from here.
Maybe you could add a mention in your README like I did in zsh-completions ?

👍 Thanks! I'll get to this when I can. If you have time to submit a PR it'd be greatly appreciated.


SDL2.dll not found

Upon updating a previous version using TortoiseSVN (as have always done), this error code came up whenever attempting to launch umodel.exe. Deleting the files and re-downloading does not solve the issue.
Using the older version off the "Gildor's Homepage" does not receive this issue.
Using the commit eb2fbd459ab16cb495370713cdce011dc7555aea does not receive this issue.
Exact error code is as follows:
umodel.exe - System Error
The code execution cannot proceed because SDL2.dll was not found. Reinstalling the program may fix this problem.

Exact URL used for TortoiseSVN is as follows:
https://github.com/gildor2/UModel.git/trunk

I've put sdl2.dll to libs/sdl2/[x86|x64]. When you're running build.sh, it will copy 32 or 64 bit dll (depending on build command) next to umodel.exe.


like_debugger appears to not be tagged correctly

Describe the bug
It appears like on a clean build of like-dbg, the like_debugger docker image isn't being tagged sometimes, manually forcing the tag seems to break the the gdb script to the vm-linux.
To Reproduce
Steps to reproduce the behavior:

latest

./start_kgdb.py
Standard

Expected behavior
The script deploys and builds everything however often the docker image for the debugger isnt tagged, maybe a way to force the tagging to prevent this type of issues?
Screenshots

Desktop (please complete the following information):
Fill me in on the specs of your environment:

Operating system (e.g.: cat /etc/os-release) -

Python version (python --version) - python 3.10.4

Python packages (in your virtualenv: pip freeze)

Docker version (docker --version)

Additional context
Tried it on multiple different systems, and virtual machines and appears to always be the same issue.

@R3zk0n thanks for reporting this! I’ll take a look asap. I’m in the middle of moving so I hope I get around to fixing this soon. PRs welcome :)

All good, will do my best to try to fix and then submit a PR, seems like the issue might be in the docker_runner.py

OK! I am back so i think ive worked out the issue,
it appears that the like_debugger isnt being tagged, and isnt installing gef correctly which cause it not be able to continue and use the remote debugging due gef-remote not being installed which makes sense, demostrated below

But mainly forcing the tagging of the container then installing gef, seems to make it work fine,

Not exactly where to make the edit to force the gef to be installed, since in theory it should already be done but i guess doing a execute to confirm gef is installed in the container if not bail out would be useful, trying to find where to add it but once i do ill do a commit! :)

The GEF "installation" happens in the .dockerfile_dbg: https://github.com/0xricksanchez/like-dbg/blob/main/.dockerfile_dbg#L44. There are no sanity checks if the command did not crash 😬

Tried to use a bash script to replace the build but for some reason it runs in the wrong context, still working on it. :D

#171 Hopefully this should be fixed now.


How to build reflex-todomvc and use it as a template?

I am newbie to reflex (and nix/nixos). I would like to use this reflex-todomvc app as a template to start modifiying, refactoring and learn by doing.
How could I build it as a standalone app in the local directory?
$ git clone https://github.com/ryantrinkle/reflex-todomvc.git
$ cd reflex-todomvc
$ ???

Thanx for your help.

I am curious about this as well. I'd like to build the application from inside the try-reflex environment?

To build the demo with stack instead of nix: https://github.com/jbgi/reflex-todomvc/tree/ghcjs-improved-base
(slightly adapted from: https://github.com/luigy/try-stack-reflex)

You can install the latest GHCJS for use with stack using this turtle script. With slight modification, you could have it install older an older version as well. Essentially it formats the sdist archive differently and places it in the right place so that stack will know how to boot it.

@3noch really handy! thanks!


Closes #31 | Add Fleurs loader

Closes #31.
Checkbox

[x] Confirm that this PR is linked to the dataset issue.
[x] Create the dataloader script seacrowd/sea_datasets/my_dataset/my_dataset.py (please use only lowercase and underscore for dataset naming).
[x] Provide values for the _CITATION, _DATASETNAME, _DESCRIPTION, _HOMEPAGE, _LICENSE, _URLs, _SUPPORTED_TASKS, _SOURCE_VERSION, and _SEACROWD_VERSION variables.
[x] Implement _info(), _split_generators() and _generate_examples() in dataloader script.
[x] Make sure that the BUILDER_CONFIGS class attribute is a list with at least one SEACrowdConfig for the source schema and one for a seacrowd schema.
[x] Confirm dataloader script works with datasets.load_dataset function.
[x] Confirm that your dataloader script passes the test suite run with python -m tests.test_seacrowd seacrowd/sea_datasets/<my_dataset>/<my_dataset>.py.
[ ] If my dataset is local, I have provided an output of the unit-tests in the PR (please copy paste). This is OPTIONAL for public datasets, as we can test these without access to the data files.

Thanks for the review, @holylovenia
Here's my comment to your initial inquiries:

For fleurs_seacrowd_sptext it will load only the first lang, to conform the schema to the sptext, else the schema will be extended to cater language identifier for ASR tasks. We may take this out, but I'd suggest to implement it for consistency across all SEACrowd Dataloaders.
For fleurs_source and fleurs_seacrowd, it's to represent the default task of ASR (see L91-92). We can take this out if necessary, but I'm implementing it for the sake of behavior consistency, again. However if that doesn't make sense in Multi-task Fashion, we can remove it and document this behavior in README. Fyi this behavior is similar to the SEA Wiki Dataloader

Hello, don't we agree that we don't specifically need the fleurs_seacrowd_sptext  and fleurs_source (the one that combine all the subsets) based on the last discussion? If we agree, then we can remove both of them from here.
cc @holylovenia  @sabilmakbar

Hi, I just realized the two tasks in this dataloader behave differently in different tasks.

For the ASR Task, it doesn't make sense to concat it for all languages, hindering the implementation of fleurs_source and fleurs_seacrowd_sptext (SPText is a schema for ASR). However, it's still test-able using this test command (python -m tests.test_seacrowd seacrowd/sea_datasets/fleurs/fleurs.py --subset_id fleurs_jav --schema SPTEXT).

The SPEECH LID Task is a merged version of all SEA Langs available in this Fleurs dataset since it doesn't make sense to split it based on languages. However, this will lead the config naming to fleurs_seacrowd_speech (or fleurs_all_seacrowd_speech), which its source schema is not implemented and leads to failure in test-suites.

The qn is, is it okay to allow "weird" configuration like this or should we implement some of additional schema somehow? I've prepared the datasets.load_dataset check for this dataset, for the sake of reproducibility of verification

@sabilmakbar, @holylovenia :

The qn is, is it okay to allow "weird" configuration like this or should we implement some of additional schema somehow?
I think for it should be ok if it couldn't pass the test script given this condition, as long as we can ensure that the ASR and LID tasks are implemented correctly, and there is at least on source schema to load the original dataset in case our schema doesn't cover all the information on the original dataset.

Okay then, according to the most recent dataloader implementation, here's the list of config names for the reviewers to test:
All schema: ['fleurs_mya_source', 'fleurs_ceb_source', 'fleurs_fil_source', 'fleurs_ind_source', 'fleurs_jav_source',
'fleurs_khm_source', 'fleurs_lao_source', 'fleurs_zlm_source', 'fleurs_tha_source', 'fleurs_vie_source',
'fleurs_mya_seacrowd_sptext', 'fleurs_ceb_seacrowd_sptext', 'fleurs_fil_seacrowd_sptext', 'fleurs_ind_seacrowd_sptext',
'fleurs_jav_seacrowd_sptext', 'fleurs_khm_seacrowd_sptext', 'fleurs_lao_seacrowd_sptext', 'fleurs_zlm_seacrowd_sptext',
'fleurs_tha_seacrowd_sptext', 'fleurs_vie_seacrowd_sptext', 'fleurs_all_seacrowd_speech']

How to generate this:
from datasets import load_dataset
from seacrowd.sea_datasets.fleurs.fleurs import Fleurs

# can put any config name, this is because a `DEFAULT_CONFIG_NAME` isn't implemented
dset_class = Fleurs(config_name="fleurs_mya_source")

print(f"All schema: {list(dset_class.builder_configs.keys())}")

@sabilmakbar : I agree with @holylovenia for fleurs_seacrowd_speech , but I don't think the fleurs_source  is necessary. as *_source schema is provided there for the sake of having the unaltered data from the original data source.

gotcha

I recently revisited this dataloader. Amazed that you managed to make it work, @sabilmakbar. 😂  Adding the bonus due to the implementation complexity.


Add support for Python 3.11-3.12, drop EOL 3.7

[x] I'm acknowledging that my submission is free of all known copyright in at least
the United States. (In general, works of the federal government should satisfy
this criteria.)

Also update pre-commit and GitHub Actions.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2f3d436) 57.42% compared to head (9b19f03) 57.42%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##           gh-pages     #219   +/-   ##
=========================================
  Coverage     57.42%   57.42%
=========================================
  Files             2        2
  Lines           101      101
=========================================
  Hits             58       58
  Misses           43       43

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


Using "baseUrl" in tsconfig, with absolute imports, breaks build.prod

I'm submitting a ...  (check one with "x")
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

Edit tsconfig.json, and add "baseUrl": "." in the compilerOptions section.
Now add an absolute import somewhere, e.g.: import { CoreModule } from 'app/core/core.module';.
Dev build works perfectly, however, building prod results in an error (in build.bundles.app):
Error on fetch for app/core/core.module.js at file:///C:/data/myproject/node_modules/app/core/core.module.js
Expected behavior

No problems building for prod.
Minimal reproduction of the problem with instructions

See current behaviour
What is the motivation / use case for changing the behavior?

Easier imports (without all the ../../../../)
Please tell us about your environment:

Windows, PHPStorm

Angular Seed Version: aaaaf75

Node: node --version =
v6.2.1

For this purpose you will have to update the production build files. Will be happy to merge a PR addressing this issue.

I'm relatively new to web/Angular, but learning fast ;-) Though I have my doubts that I will be able to make a PR for this to be honest... The whole build system eludes me a.t.m. ;-)
Any pointers at where changes would need to be made?

@michelcve sorry for the delayed response. Lets close this issue for now. It's nice to heave but it may break existing projects.

Okay, if you would think that it would break existing projects, then I understand.


Audit logs - Identity field shown as empty image for host registration entries and for actions done using API keys.

Server version - Build from master
Create API key for Default environment.
Use this key to create services from rancher-compose.
Audit logs for the entries relating to actions from rancher-compose have Identity field shown as empty image.
Identity field shown as empty image for host registration entries as well.

This is not an error this is how the api is designed. If you want something different that we need to discuss an api change.

Can we show the Environment name in this case ?

I believe Environment Is shown... @westlywright Is that the case?

The environment field shows the name. The problem with the identity field is that identity is returning a 404 when we try to get it from the API. At least that's the error im seeing in the console. Perhaps we need to add some more error checking into the identity helper that displays that information. @vincent99 what do you think?

@westlywright can you work with @hibooboo2 to determine the best way so it doesn't look like an error on the UI?

Closing due to inactivity, please reopen if you think this is still relevant to current releases & important.


ADD My project with the corresponding Dockerfile

Remove the empty Docker file from the docker directory.

Also, create a branch for your changes. Do NOT make changes in the main branch.


HOP-2409:update License headers

Following this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed
for the change (usually before you start working on it).  Trivial changes like typos do not
require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [HOP-XXX] - Fixes bug in SessionManager,
where you replace HOP-XXX with the appropriate JIRA issue. Best practice
is to use the JIRA issue title in the pull request title and in the first line of the commit message.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.

Trivial changes like typos do not require a JIRA issue (javadoc, comments...).
In this case, just format the pull request title like (DOC) - Add javadoc in SessionManager.
If this is your first contribution, you have to read the Contribution Guidelines
If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement
if you are unsure please ask on the developers list.
To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

[ ] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
[ ] In any other case, please file an Apache Individual Contributor License Agreement.

Thanks for reviewing! @mxm , @mattcasters

Thanks for reviewing! @mxm , @mattcasters


"Finta" is listed in the drop-down menu

Description:
"Finta" is listed in the drop-down menu alongside its corresponding county according to the law
Precondition:
The website is up an running.

Step 1
Type "Finta" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Finta, DÂMBOVIȚA".


HIVE-28065: Upgrade Bouncy castle to bcprov-jdk18on 1.77

What changes were proposed in this pull request?

Upgrade Bouncy Castle to 1.77
Why are the changes needed?

Bouncy Castle for java before 1.68(excluding) is found with a potential LDAP injection:
https://nvd.nist.gov/vuln/detail/CVE-2023-33201
Does this PR introduce any user-facing change?

No
Is the change a dependency upgrade?

Yes
bcprovTree.txt
How was this patch tested?

Manually

the title says "Upgrade Bouncy castle", how is this a "No"?, there are some steps mentioned in case of dependency upgade:
https://github.com/apache/hive/blob/master/.github/pull_request_template.md?plain=1#L40-L44

the title says "Upgrade Bouncy castle", how is this a "No"?, there are some steps mentioned in case of dependency upgade: https://github.com/apache/hive/blob/master/.github/pull_request_template.md?plain=1#L40-L44

Hello, I have made the required changes, and added the dependency tree for the reference too. Thank for reviewing my PR

Ouch, I didn't hit the approve button before merging :-)
Changes LGTM


Connecting to a wallet RPC: Method not found

I'm trying to connect Monero wallet RPC (for tests to an open node) based on docs and tests and haven't succeeded yet. I've described several attempts at stackexchange and here I'll focus on one approach.
I've generated a valid mnemonic (here), generated keys and address offline and have send some test tokens to the address via the faucet. I'm trying to connect to wallet RPC using a node (currently https://testnet.xmr.ditatompel.com) taken from the list of public nodes (with this node, I've successfully called get_block_count JSON RPC method and get_transactions PRC method of Daemon RPC, so it works at least with those). However, I'm not sure if each node supporting Daemon RPC also supports Wallet RPC (please help me clarify that).
Now, here's my attempt in the nutshell:
const walletRpc = await monerojs.connectToWalletRpc({
    uri: nodeUri, // actually, I've tested all the 4 currently available nodes for testnet, the result is the same for each one
    username: "rpc_user", // not sure how these are managed; tested without username/password as well, same result
    password: "abc123",
});
// console.log(walletRpc) shows MoneroWalletRpc with the provided config details and MoneroRpcConnection details
// console.log(walletRpc.createWallet) and console.log(walletRpc.openWallet) show [AsyncFunction: createWallet] and [AsyncFunction: openWallet] respectively

// this failes with "Method not found"
const result = await walletRpc.createWallet({
    // networkType: moneroNetwork,
    mnemonic,
});

Why createWallet fails? Is it supposed to only work with a local node? If there is a way to create a wallet/connect to it using a public node, please help me figure what's wrong with this attempt.
I've also tried
const res = await walletRpc.openWallet({
    // networkType: moneroNetwork,
    mnemonic,
});

which fails "Must provide name of wallet to open", so I guess I do have to create the wallet first.

await monerojs.connectToWalletRpc() expects to connect to a monero-wallet-rpc server which is different from a Monero node / daemon.
Typically people host their own monero-wallet-rpc server which connects to a Monero node to provide self-hosted wallet functionality.

Closing as resolved. Please feel free to ask if you have further questions.

Does this mean that monerojs.createWalletFull() command also needs to connect to a rpc node not just a public daemon in order to function? And does that mean that all functions that handle specific wallet info needs to connect to a rpc node also?


IndexOutOfRangeException when no command line argument is provided.

At the very first line of the main function, it can be seen that when no command line argument is provided, the program crashes throwing
an unhandled IndexOutOfRangeException instead of handling it.
private static void Main(string[] args)
{
    string projectDirectory = DirectoryDetails(args[0]);
    // ...
}

At the very first line of the main function, it can be seen that when no command line argument is provided, the program crashes throwing an unhandled IndexOutOfRangeException instead of handling it.
private static void Main(string[] args)
{
    string projectDirectory = DirectoryDetails(args[0]);
    // ...
}

If you are running it through an IDE, you'll want to replace the bit that says args[0], with the directory you want to run it in, for example:
string projectDirectory = DirectoryDetails(@"/Users/figurantpp/Projects");

string projectDirectory = DirectoryDetails(@"C:\Users\figurantpp\source");

OFFICIAL
This is a low-priority issue, and thus will not be implemented in release for the moment as the issue is already mentioned in the README file in the packages. However, the code has been updated in the repository if you would like to build it yourself.
Alternative to updating the value of the projectDirectory string, you can add the code below and build it yourself:
if (args.Length == 0)
{
    Console.WriteLine("Please supply a directory to clean.\nThe program will now exit.");
    return;
}


Inaccurate detection of "code is unreachable" by pylance v2024.3.1.

Environment data

VSCode Version: 1.87.2 (Universal)
OS and version: macOS Sonoma 14.1.2
Python version: 3.11 installed from the official python website
Pylance version: v2024.3.1

Code Snippet
import pandas as pd
import numpy as np

df_A = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD'))
df_B = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD'))

pd.concat([df_A, df_B])
# All next lines are grayed out due to "Code is unreachable Pylance".
# I have seen different areas. One of them that causes it is the above line of code.
a = 3
b = 2
# etc.

Expected behavior
Being unreachable should not occur when it is in fact reachable.
Actual behavior
After the last update, Pylance grays out many reachable areas, which includes, but not limited to, the lines after pd.concat([]).
A temporary fix was to switch to the pre-release version of pylance extension (v2024.3.101 (pre-release)).
Logs
Enabled "python.analysis.logLevel": "Trace" in the vscode settings, but couldn't find any logs in the output window.

This is a duplicate of #5630. The underlying issue was in pandas-stubs. They have fixed it and their fix shipped in our 2024.3.101 prerelease build.
Our wiki has instructions on how to switch to prerelease if you need them: https://github.com/microsoft/pylance-release/wiki/FAQ#how-to-switch-pylance-builds

There's also a workaround here if you for some reason can't switch to prerelease: https://github.com/microsoft/pylance-release/issues/5630#issuecomment-1994616891

This issue is also fixed in our most recent stable release -- 2024.3.2


Where are the arrows being generated?

I'm curious where in the code the arrows are created.  I can't seem to find anything that specifies how they are drawn.

They are rendered with CSS using Bootstrap Glyphicons
.timecontrol-play.pause:before {
    content: "\e073";
}

Hi, I was just looking into this more, and I'm wondering if you are referring to the arrow used for the "Play" button?  I was wondering about the directional arrows on the map.  The only way I've found to do arrows in leaflet is to create them out of lines, which is a very computation intensive process.

Yes I was talking about player button because that the only thing rendered by the plugin itself.
Arrows on the map as seen in demo (https://apps.socib.es/Leaflet.TimeDimension/examples/example3.html) are rendered by a map tile server as image tiles (sample). Check Thredds, geoserver, mapserver or equivalent.
The purpose of this plugin in mainly to control the time parameter of the layer. Everything else is handled by leaflet.

Thanks for your time, I appreciate the info!


Label mismatch

Labels from the voting app don't match the results. While the voting app appears to use variables, the results are statically defined (cats vs dogs - java vs .net)

Yes, you have to change them


conda packages identified as pypi packages

What happened:
conda packages are identified as pypi packages and purl for conda package is created under pypi spec.
What you expected to happen:
conda package to have a conda purl
Steps to reproduce the issue:
Anything else we need to know?:
Environment:

Output of syft version:
OS (e.g: cat /etc/os-release or similar):

Hi @vchhasatia -- it would be a lot easier to understand what's going on with some steps to reproduce the issue; could you provide a bit more information such as a public repo or image to scan and expected output?

@vchhasatia thanks for filing the issue - I know we met at all things open and Keith has responded above. If you have time this week can you throw up a link to an image or repository we can all work from as the same sheet of music to make sure we're updating the behavior correctly

@spiffcs and @kzantow, Thank you for quick response. I am trying to find a docker-file/image that I can use to recreate this issue and share.


[operator] helm recreates certs repetededly

Hello Team.
I use the opentelemetry-operator chart as a sub-chart and I've faced the issue where during helm upgrade I get an error:
cannot patch "opentelemetry" with kind OpenTelemetryCollector:
Internal error occurred: failed calling webhook "mopentelemetrycollector.kb.io":
failed to call webhook: Post "https://opentelemetry-operator-webhook.test.svc:443/mutate-opentelemetry-io-v1alpha1-opentelemetrycollector?timeout=10s":
x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "opentelemetry-operator-operator-ca")

It looks like a certificate generated by Helm (certManager.enabled=False) is always replaced and the operator needs some time to reload it, during this time is not possible to update OpenTelemetryCollector's (the webhook has the previous cert). Could the chart use the old Secret if exists or maybe this regeneration is intentional?
I can prepare a PR for it.
Thanks!

Hey @tomplus , sorry , I just saw this issue . Is the offer still available? :)
We did not reproduce it as we're using cert-manager for the most part.

Thanks for verifying it. Yeah, the offer is still available :) I'll work on it :+1:


Tags invisible

For a number of recent releases, my existing tag list has become invisible. Tags exist however and can be selected by trial and error working up & down the list; this means that when you look at an existing item you can see it's assigned tags. The issue is at the assigning stage.
Anyone else affected by this?
Phone: Samsung Galaxy S2 & Android version 4.0.4

This is still an issue, Samsung S3 on Android 4.3

Same issue on Galaxy S2, Asus Transformer, Galaxy A5
List of markers when filtering

List of markers when choosing for a book


Use pkg:lints and pkg:flutter_lints re-build

Re-manufacturing #706, because reasons.
fixes: https://github.com/dart-lang/dart-pad/issues/1881

I landed my PR, so the diff here is now much smaller.

Blocked on https://github.com/flutter/codelabs/pull/134 and https://github.com/flutter/samples/pull/804

@RedBrogdon What else is required for this PR to land?

@RedBrogdon @domesticmouse can we merge this now?

@RedBrogdon @domesticmouse can we merge this now?

Hey @mit-mit, we are going to land this early next week. There will be some samples in various places that will have analysis warnings we this lands, and we want @RedBrogdon at the ready to push updates to the docs as required.

Landing this on master now. I'll switch over the servers tomorrow.