text:
DatePicker is difficult/impossible to use with screen reader

Provide a general summary of the issue here
When navigating in the DatePicker with screen reader (here VoiceOver in Chrome), the calendar closes unexpectedly.
🤔 Expected Behavior?
I expect that the calendar will not close totally unexpected when using it with the screen reader.
😯 Current Behavior
As explained in the summary, the calendar closes while navigating in it with VoiceOver in Chrome. The same does not happen in Safari, however. A screen recording of this is attached below.
I also experience the same when using the useDatePicker. From what I have seen while debugging, this happens due to onFocus in the buttonProps  used in the CalendarCell. It seems that changing the focused date somehow triggers the state to close. When excluding onFocus from the buttonProps, it works fine, but the actual focus is then not moved of course.
Could someone tell me why this happens and if it can be solved?
https://github.com/adobe/react-spectrum/assets/15145686/47f2716b-3917-46af-9774-eebabaa88ae2
💁 Possible Solution
It would be great if the calendar was not so unpredictable and worked fine using VoiceOver.
🔦 Context
I am trying to implement an accessible DatePicker in React for a large group of users, and struggle doing so, which is a pity.
🖥 Steps to Reproduce

Open DatePicker in Chrome
Turn on VoiceOver
Open the calendar in the first example
Try to navigate in it with ctrl+option+arrows

Version
3.19.0 of DatePicker and 3.27.0 of useDatePicker
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

Thanks for the report. This is very strange indeed. It appears that VoiceOver/Chrome is focusing the correct cell at first, and then firing an extra blur event with relatedTarget: null, losing focus to the document body. This blur event causes the popover to close. https://github.com/adobe/react-spectrum/blob/09a258f098147f7e67a0430b593b08168220ec4a/packages/%40react-aria/overlays/src/usePopover.ts#L80
Still looking into why that extra blur event is happening and if there's anything we can do about it.

@LFDanLu and I spent a few hours debugging this. We traced it to a Chrome bug that appears to be a race condition depending on the amount of work done during an onFocus handler. This results in extraneous blur events being fired with relatedTarget of null. It is reproducible outside of DatePicker, on any button, and even without React. See https://codepen.io/devongovett/pen/vYvYOZg. We filed https://bugs.chromium.org/p/chromium/issues/detail?id=1473752 to hopefully get that fixed. In the meantime, #4931 should work around the issue by not closing popovers when relatedTarget is `null.

authors: devongovett heisand

repo: adobe/react-spectrum


text:
Docs: Add a ref to the third argument of useRadio

Closes
useRadio(props: RadioAriaProps, state: RadioGroupState, ref: RefObject<HTMLElement>): RadioAria
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[x] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Hi @matamatanot, thanks for the contribution! Can you please follow the instructions here to sign the CLA so we can review your PR? https://react-spectrum.adobe.com/contribute.html#contributor-license-agreement

@snowystinger
I've just signed CLA. I don't know how this account is connected to the CLA. I just entered @matamatanot in the [GitHub Login] field, is that okay?

source: gharchive/pull-request

authors: matamatanot snowystinger

license_type: permissive

license_source: github-api


text:
Add separate mode for triggering resizing manually via Enter

Closes
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:
RSP

Gonna merge this into the original aria table docs branch since we've decided on the path forward for the aria example. Will get rid of code changes once https://github.com/adobe/react-spectrum/pull/4077 is finalized


text:
Fieldlabel - create pull request from rsp v3

fieldlabel - changed to flex layout, added --positionSide, form changed
https://github.com/adobe/spectrum-css/wiki/RSP-V3-Reconciliation-Plan

https://github.com/adobe-private/react-spectrum-v3/tree/master/packages/%40adobe/spectrum-css-temp/components/fieldlabel

Create a Spectrum CSS branch off of rtl, copy in the component's CSS from RSP V3
Commit the changes
Change the author of the commit to whoever authored the changes (git commit --amend --author="Rob Snow <rsnow@adobe.com>")
If applicable, update all examples in .yml files to use the modified markup (the RSP V3 fork does not have .yml files with updated examples)
If applicable, add examples for any new modifiers/states included in the CSS
If applicable, add a migration guide for the breaking changes (similar table as we did for Typography http://spectrum-css-archives.s3-website.us-east-2.amazonaws.com/2.17.0/docs/typography.html#migratingfromdeprecatedtypography)
Send a PR against the rtl branch
Start reviewing it and ping the relevant authors is necessary.

evaluate browser support (i.e. new Dialog uses grids)
ensure design is correct or at least as broken as it was before (paste over XD files)
ensure any CSS changes conform to SUIT
ensure any CSS changes conform to existing naming conventions

#720

source: gharchive/issue

authors: GarthDB jianliao

repo: adobe/spectrum-css


text:
Unify treatment of "external" URLs

@asteed's namespace sweep (#179) has produced a couple of interesting findings:
On the one hand:
https://ns.adobe.com/external/angellist
https://ns.adobe.com/external/deviceatlas
https://ns.adobe.com/external/dnb
https://ns.adobe.com/external/isic4
https://ns.adobe.com/external/naics
https://ns.adobe.com/external/sic

on the other hand:
https://ns.adobe.com/xdm/external/activity-streams-2/activity
https://ns.adobe.com/xdm/external/activity-streams-2/collection
https://ns.adobe.com/xdm/external/activity-streams-2/collection-page
https://ns.adobe.com/xdm/external/activity-streams-2/context
https://ns.adobe.com/xdm/external/activity-streams-2/context#/definitions/expanded-term-definition
https://ns.adobe.com/xdm/external/activity-streams-2/context#/definitions/single-context
https://ns.adobe.com/xdm/external/activity-streams-2/document
https://ns.adobe.com/xdm/external/activity-streams-2/id
https://ns.adobe.com/xdm/external/activity-streams-2/image
https://ns.adobe.com/xdm/external/activity-streams-2/link
https://ns.adobe.com/xdm/external/activity-streams-2/object
https://ns.adobe.com/xdm/external/activity-streams-2/object#/definitions/mime-media-type
https://ns.adobe.com/xdm/external/activity-streams-2/rdf-langstring
https://ns.adobe.com/xdm/external/activity-streams-2/rdf-langstring#/definitions/tag
https://ns.adobe.com/xdm/external/activity-streams-2/type
https://ns.adobe.com/xdm/external/activity-streams-2/type#/definitions/type
https://ns.adobe.com/xdm/external/hal/link
https://ns.adobe.com/xdm/external/hal/resource
https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal
https://ns.adobe.com/xdm/external/repo/accesscontrolentry
https://ns.adobe.com/xdm/external/repo/accesscontrolentry#/definitions/acl
https://ns.adobe.com/xdm/external/repo/accesscontrolpolicy

I'd probably go with the second variant for consistency.

@trieloff can this issue be considered closed?

authors: asteed trieloff

repo: adobe/xdm


text:
changeBG on stage

Mergong changebg block on stage
Resolves: MWPW-NUMBER
Test URLs:

Before: https://main--cc--adobecom.hlx.page/?martech=off
After: https://--cc--adobecom.hlx.page/?martech=off

@suhjainadobe can we add hlx.live urls in PR description so that psi check can run?
Also I believe you had some unit tests too for ChangeBG, should we sync them also to stage branch?

As discussed... Will make the changes after testing with the original set.. Merging this change for initial validation.

repo: adobecom/cc


text:
External camel test failed with “pathspec master did not match” error

Testname: external/camel
jdk_impl: openj9
jdk_verison: 11
platform: xlinux
test_link: https://ci.adoptopenjdk.net/job/Grinder_camel/2/console
20:17:34       [exec] Step 20/22 : RUN git checkout $CAMEL_TAG
20:17:34       [exec]  ---> Running in 8b7703be1e8a
20:17:35       [exec] error: pathspec 'master' did not match any file(s) known to git
20:17:35       [exec] The command '/bin/sh -c git checkout $CAMEL_TAG' returned a non-zero code: 1
20:17:35       [exec]
20:17:35
20:17:35  BUILD FAILED
20:17:35  /home/jenkins/workspace/Grinder_camel/aqa-tests/TKG/scripts/build_test.xml:76: The following error occurred while executing this line:
20:17:35  /home/jenkins/workspace/Grinder_camel/aqa-tests/external/camel/build.xml:25: The following error occurred while executing this line:
20:17:35  /home/jenkins/workspace/Grinder_camel/aqa-tests/external/build.xml:87: exec returned: 1

Similar to https://github.com/adoptium/aqa-tests/issues/2900#issuecomment-928165860
$CAMEL_TAG wasn't parsed as master so git checkout $CAMEL_TAG failed.

authors: LongyuZhang sophia-guo

repo: adoptium/aqa-tests


text:
fix: cond.wait() not in for condition loop

Usually, cond.wait() needs to be placed in a loop because it is not possible to know whether the condition has been satisfied when the cond is awakened. This is also explained in the comments of cond.wait() in the official library.
Based on my test case, the following concurrency errors may occur if the code is not modified:

Reference:
https://pkg.go.dev/sync#Cond.Wait
https://www.reddit.com/r/golang/comments/s6tuq3/why_synccond_needs_a_condition_in_for_loop_why/

@adrianbrad

Good catch @haoheipi, indeed the cond.Wait() should be wrapped in a loop, I didn't know that until now, but it actually makes a lot of sense. I will merge and publish a new release.
Cheers!

authors: adrianbrad haoheipi

repo: adrianbrad/queue

license: MIT


text:
release v0.37.0

https://github.com/vmware-tanzu/carvel-ytt/releases/tag/v0.37.0
https://community.chocolatey.org/packages/ytt/0.37.0

Waiting for official tweet to announce release 👍

https://twitter.com/carvel_dev/status/1447588933899100167

https://twitter.com/rastadidi/status/1447746224057032705

repo: adriens/chocolatey-ytt


text:
image_types_ota.bbclass: pass -t ext4 to mke2fs

it doesn't automatically pass "-t ext4", because here we're calling
mke2fs as mkfs.ota-ext4 instead of mkfs.ext4
so the resulting was now ext2 instead of ext4
$ file image-raspberrypi4.rootfs.ota-ext4
image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext2 filesystem data, UUID=15862fcd-6204-486b-a4c6-fdf7b1710797, volume name "otaroot" (large files)
after this fix:
$ file image-raspberrypi4.rootfs.ota-ext4
image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext4 filesystem data, UUID=3709e65c-1d2b-4280-85d1-638f5f9c3cc0, volume name "otaroot" (extents) (64bit) (large files) (huge files)
that's why metadata_csum and other features enabled by default
in ext4 were now missing after
https://github.com/advancedtelematic/meta-updater/pull/787
we can drop 64bit feature as well, it's also enabled in default
recipe-sysroot-native/etc/mke2fs.conf
[defaults]
base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
default_mntopts = acl,user_xattr
enable_periodic_fsck = 0
blocksize = 4096
inode_size = 256
inode_ratio = 16384
[fs_types]
      ext3 = {
              features = has_journal
      }
      ext4 = {
              features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
              inode_size = 256
      }
...

Signed-off-by: Martin Jansa martin.jansa@lge.com
Signed-off-by: Martin Jansa Martin.Jansa@gmail.com

I don't have rpi with me and cannot test it in runtime, but I think only the first patch of https://github.com/advancedtelematic/meta-updater/pull/790 was problematic (I misread the intention of https://github.com/advancedtelematic/meta-updater/commit/13ced79d9be744e6d48e0044b454cdb171bbd5b0 which says "add mkfs option", but actually disables metadata_csum feature which probably got enabled because of using oe_mkext234fs while I was assuming it got disabled because of creating ext2 instead of ext4)

I don't have rpi with me and cannot test it in runtime, but I think only the first patch of https://github.com/advancedtelematic/meta-updater/pull/790 was problematic (I misread the intention of https://github.com/advancedtelematic/meta-updater/commit/13ced79d9be744e6d48e0044b454cdb171bbd5b0 which says "add mkfs option", but actually disables metadata_csum feature which probably got enabled because of using oe_mkext234fs while I was assuming it got disabled because of creating ext2 instead of ext4)

checked with CI. works https://main.gitlab.in.here.com/olp/edge/ota/connect/client/meta-updater/-/pipelines/1855293

checked with CI. works https://main.gitlab.in.here.com/olp/edge/ota/connect/client/meta-updater/-/pipelines/1855293

authors: aodukha shr-project

repo: advancedtelematic/meta-updater


text:
Cannot read property 'data' of undefined - results in the plugin no longer working

When using the plugin with data queries that results in no data, the plugin creates the warning
"Cannot read property 'data' of undefined"
First it would be nice if the plugin returned blank page with "no data" like other plugins.
If a query results in the "Cannot read property 'data' of undefined"  and I make a new query that returns data, the plugin continues to  show "Cannot read property 'data' of undefined". Only way to make the plugin work again is by refreshing the explore/chrome/edge.

I have the same issue!

The plugin really nice for me!!!! thank you! but seems to have some compatibility issues with Grafana, such as the slow loading of the plugin when first opened and crash when I choose a time range of series graph.

If choose absolute time range, it will have error "Cannot read property 'data' of undefined". and if choose relative time range, it's normal..

You can create a transformation -> merge for your query, then the data structure for the plugin works again

Confirm the problem is still present with Grafana 7.5.4. Although, I'm new and have no previous working example


text:
SQL Explorer

Add SQL Explorer feature so that we can directly run LINQ query on DB.
Similar feature in Linqpad

Thanks for the suggestion!
However, I must say this is a low priority for me, so unless someone contributes the code, it won't happen any time soon :)

I would suggest plugin api and make plugins like these, because someone wants SQL Explorer, I want NoSQL explorer

Yep, that's already been suggested, but a plugin API also requires a lot of effort (designing a stable API, a repository, etc.), and that's another low priority for me right now. Maybe some day :)

I would be more incline to use RoslynPad if it had some way to connect to SQL Server DB.  Is there a plugin at least for it?

I'm just one developer doing this on my free time, so I have to prioritize, and unfortunately this is a feature not many have asked for, nor one I personally need.
I've not tried it, but you may be able to use EF Core's scaffolding tools to generate a DbContext and just #load it in RoslynPad.

authors: SlowLogicBoy aelij arosas meetjaydeep

repo: aelij/RoslynPad


text:
dgoss race condition on sercvice boot

As linked in https://github.com/aelsabbahy/goss/issues/324 and https://github.com/aelsabbahy/goss/issues/323 I am building a Docker image that would validate the automation. The goal is to use the same test suite for Docker and for real installs ad-hoc basis.
So I have my own docker image that installs and sets up RabbitMQ. The only difference there is on real system it runs through systemd and on Docker its:
CMD ["rabbitmq-server"]

I've noticed a difference in behaviour when running dgoss run and edit.
dgoss run
dgoss run rabbitmq-docker-image
INFO: Starting docker container
INFO: Container ID: <ID>
INFO: Sleeping for 0.2
INFO: Running Tests
User: rabbitmq: exists: matches expectation: [true]
Port: tcp6:5672: listening:
Expected
    <bool>: false
to equal
    <bool>: true
Package: rabbitmq-server: installed: matches expectation: [true]
Package: rabbitmq-server: version: matches expectation: [["3.5.0n"]]

dgoss edit
dgoss edit rabbitmq-docker-image
INFO: Starting docker container
INFO: Container ID: <ID>
INFO: Run goss add/autoadd to add resources
sh-4.2# goss validate
....

Total Duration: 0.054s
Count: 4, Failed: 0, Skipped: 0

RTFM applies to this. Setting GOSS_SLEEP sorted it out. I guess it would be nice to apply this in a smarter way such as waiting for port listen or file appearing rather than expanding all the test runs by a set amount of time representing the worst case scenario or otherwise being flaky.
Example test for this is simple bash script:
timeout 120 bash -c 'until echo > /dev/tcp/${IP}/9042; do sleep 1; done

where IP is the IP to be monitored.

Take a look at goss_wait and the related options.
Here's an example:
https://github.com/aelsabbahy/dgoss-examples/tree/master/vote
Feel free to reopen if that doesn't meet your needs.

Looks exactly like what I need. I'll test it tomorrow.

So it does work, however, is there a timeout to that? If I understand, I should pass something like that through "GOSS_WAIT_OPTS", but there is no information for what it refers to or what it accepts or not that I can find.

authors: JackLeo aelsabbahy

repo: aelsabbahy/goss

license_source: bigquery


text:
Why goss? :)

This is a trivial question that you can choose to ignore if you wish. But, purely out of curiosity...why is goss named goss? :)

Going to guess 'go server spec' :8ball:

Yup, 'go serverspec' because I'm not creative :)
But the name is misleading, since I don't intent for Goss to be a fully-featured serverspec.
Honestly, this started as a pet project to learn go, then it became useful, so I opensourced it. The goal was to have something simple, light and fast for server validation.

authors: aelsabbahy stephanbuys stuckj


text:
Saving a large section leads to stalled task when using Preparse for image transforms.

The plugin's idea is wonderful, but I'm having trouble adding it retroactively to a site.

I've added a preparse field, which generates 3 transforms for an entry's asset field:

{% if entry.photos|length > 0 %}
    {% for photo in entry.photos %}
        {{ photo.url('thumb') }}
        {{ photo.url('lqip') }}
        {{ photo.url('square') }}
    {% endfor %}
{% endif %}

When saving a section's settings, Craft re-saves all the elements in that section (SectionsService:L717 via a background task ResaveElementsTask).
Doing this in a section with a decent number of entries (>250) the task hits the PHP memory limit and stalls, leaving the site with half-updated section entries.

I understand that adding overhead to a save by transforming an elements images is hard on a server. But this seems like a pretty common use case for preparse (images) and scenario (the dev needs to update a Section's setting), so I'm wondering if anyone has experienced this and has any ideas before I dig into preparse' code.

Perhaps indirectly related to #27

This doesn't really have anything to do with Preparse Field. Of course, parsing that twig on save, resulting in the server having to do multiple image resizes, saving transforms to the database, etc – in addition to the fact that Preparse makes the element save twice as stated in #27 (although, on the second pass, the transforms would already be created so it'll be a much faster save) – doesn't help. But the underlying problem is 1) that Craft re-saves elements when you update a section, and 2) that the task system in Craft is really prone to dying.
There's really not much to do other than either leave things as they are, or up the memory and execution limits on the server enough that it doesn't time out.

authors: aelvan janson

repo: aelvan/Preparse-Field-Craft

license: mit


text:
fixed footer for landing pages

Fix #429
Test URLs:

Before: https://main--sling--aemsites.aem.page/

After: https://429-footerfix--sling--aemsites.aem.page/

Before: https://main--sling--aemsites.aem.page/programming/sports

After: https://429-footerfix--sling--aemsites.aem.page/programming/sports

Before: https://main--sling--aemsites.aem.page/programming/sports/pro-football

After: https://429-footerfix--sling--aemsites.aem.page/programming/sports/pro-football

Still WIP

repo: aemsites/sling


text:
Filenames with no encoding cause problems with database and cli printing

Hashdex version: 0.6.0
Python version: Python 3.7.3
Operating System: FreeBSD 11.2-STABLE

Description
This is a class of bugs for the unicode related problems when encoding of filenames is not specified.
What I Did
File with name of "'Calexico - Feast of Wire - 13 - G\udcfcero Canelo.mp3" exists.
hashdex chokes on

inserting the name into sqlite raises exception
click's progressbar throws exception when printing to screen

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

When python does a readdir/equivalent its getting the filenames as binary data, then encoding them to utf-8 for non-machine/human purposes.
Therefore, fix should hold reversible translation for machines, and irreversible for human readability when the prior is not feasilbe.
The fix here seems to be:

when reading file names from filesystem or database, encode/decode them with surrogate escape
when printing them, use 'replace', since printed filename is not expected to reflect the binary equivalent (in the case of surrogate chars)

That way filename will be addressed by hashdex as binary representation for all purposes, except when having to print for user's convenience.

Example:
>>> fname
'Calexico - Feast of Wire - 13 - G\udcfcero Canelo.mp3'
>>> os.path.exists(fname)
True
>>> print(fname)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcfc' in position 33: surrogates not allowed

Straight up printing fails
Encoding them, preserves filesystem functionality (open/read/close syscalls)

print(fname.encode('utf-8', 'surrogateescape'))
b'Calexico - Feast of Wire - 13 - G\xfcero Canelo.mp3'
os.path.exists(fname.encode('utf-8', 'surrogateescape'))
True
os.path.exists(fname.encode('utf-8', 'surrogateescape').decode('utf-8', 'surrogateescape'))
True

When printing is needed, it can be decoded to replace troublesome chars

print(fname.encode('utf-8', 'surrogateescape').decode('utf-8', 'replace'))
Calexico - Feast of Wire - 13 - G�ero Canelo.mp3

repo: aenygma/hashdex


text:
Out of gold fix

Added ability for ItemFinder UIManager and PickIt to use passed in Config and allowed config to be init'd with runtime changes....
All to fix out of gold/unable to repair loop/bug. Overkill? Yes. Completely unnecessary ? Probably. Useful? Maybe...

Overall, one of the things I was wondering about is why almost all classes create their own instances of config.
I guess part of my idea is that the other classes can share a config so if, in the future, we want to add config logic that alters the config based on some parameter we set, we just only have to change one object.


text:
Disable Selenium session timeout during request processing

This allows to easily diagnose e.g. firewall issues with loading pages.

Fixed in aerokube/moon-src#421

repo: aerokube/moon


text:
Feature Request/Question: Possible to run Selenoid w/o auto-scaler?

Apologies if this is not the correct place for asking this -
Is it possible to run Selenoid with a fixed number of nodes, similar to traditional Selenium grid if the auto-scaling is not desired?

@esaari Selenoid is a static service allowing to run as many browsers as 1 host or VM allows. If you need to have several hosts - you have to use our load balancer called Ggr.

To rephrase my question, would it be possible, on a single host, to attach a fixed number of browser nodes to the Selenoid hub and not have them tear down after test execution? Similar to how Selenium Grid 3 starts with a fixed number of nodes and they may remain up all the time.
(Also while I have you - does this Safari image work with Selenium Grid or will it only work with Selenoid? https://hub.docker.com/r/browsers/safari/tags?page=1&ordering=last_updated)

@vania-pooh you can start several Selenoid instances on different network ports using -listen flag. Our browser images don't have grid registration support, so they will not be able to self-register to hub.

@vania-pooh would there be an issue if I tried extending your image to add that support?

@esaari no, we consider grid registration an overkill and intentionally removed it. But you can do anything you wish in your fork.

@vania-pooh Thank you very much, this info was super helpful.

authors: esaari vania-pooh

repo: aerokube/selenoid


text:
[Snyk] Security upgrade golang from 1.13 to 1.21.7

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

src/vendor/github.com/gabemarshall/pty/Dockerfile.riscv

We recommend upgrading to golang:1.21.7, as this image has only 84 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

433
Link Following SNYK-DEBIAN10-GIT-1083853
No Known Exploit

433
Link Following SNYK-DEBIAN10-GIT-1083853
No Known Exploit

561
Resource Exhaustion SNYK-DEBIAN10-NGHTTP2-5953390
Mature

375
CVE-2023-26604 SNYK-DEBIAN10-SYSTEMD-3339153
Mature

375
CVE-2023-26604 SNYK-DEBIAN10-SYSTEMD-3339153
Mature

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Resource Exhaustion

No, this is a vendor dependency file.

authors: pvinh-spike robertglonek

repo: aerospike/aerolab


text:
[alphanumeric_viewer] Keep terminal alive

ROS2 Version
humble
Version
main
What happened?
Should have a launcher, that launch node on a new gnome. When kill terminal where launch was launch, show close gnome terminal whith the node
Relevant log output
No response

Hi @javilinos, what is the status of this?


text:
feat: Transaction stats 2

Description
Resolves #447
Demo

Checklist:

[x] I have read and followed the Contributing Guide
[x] add transactions stats

It seems that TRANSACTIONS IN LAST 24H is not updating at all

Interesting, I cannot confirm the same issue. Maybe there was some downtime at the moment you were reviewing it. If it appears repeatedly, I will investigate and report it.

It seems that TRANSACTIONS IN LAST 24H is not updating at all

Interesting, I cannot confirm the same issue. Maybe there was some downtime at the moment you were reviewing it. If it appears repeatedly, I will investigate and report it.

@janmichek still not working for me, I've tried in different browsers. Also no visible issues in console.

@Liubov-crypto could you check again?

improvement followup, noticed after the merge https://github.com/aeternity/aescan/issues/646

authors: Liubov-crypto janmichek michele-franchi

repo: aeternity/aescan

license: ISC


text:
Choose between two strings about the same state

One of them is not used right now
https://github.com/aeternity/superhero-ui/blob/bd8494f705c1e9928e580f12ed2b7da6d6918109/src/locales/en.json#L270
https://github.com/aeternity/superhero-ui/blob/bd8494f705c1e9928e580f12ed2b7da6d6918109/src/locales/en.json#L276

I think these two messages should have the same path, not depending on a view name.

There are no comments at the moment.  should be used. Thanks!

authors: CedrikNikita davidyuk paolomolo

repo: aeternity/superhero-ui


text:
Index buffer specialization (Bevy PR #568)

Bevy PR #568 reworked mesh indices, this PR introduces a fix to deal with that.
There's one thing I don't like of my implementation, because we would now have the same code twice and that's a big no no.
The other option is to use something like this above the for index in indices.chunks(3) loop:
let indices: Vec<usize> = match indices {
                        Indices::U16(vector) => {
                            vector.iter().map(|index| *index as usize).collect()
                        }
                        Indices::U32(vector) => {
                            vector.iter().map(|index| *index as usize).collect()
                        }
                    };

But as far as I know this would make a copy of the whole indices vector, and that doesn't seem right either.
Any ideas on how to do this in a more idiomatic way I'm not seeing?

Thanks for the fix!

But as far as I know this would make a copy of the whole indices vector, and that doesn't seem right either.
Any ideas on how to do this in a more idiomatic way I'm not seeing?

Perhaps the entirety of world_triangle construction could be put into a function that accepts any Vec<T> where T: Into<usize>?
Then the code might look something like:
pick_intersection = match indices {
    Indices::U16(vector) => ray_mesh_intersection(&pick_ray, &vector),
    Indices::U32(vector) => ray_mesh_intersection(&pick_ray, &vector),
}

Then, regardless of index type, it can be converted into a usize when building the triangle:
for i in 0..3 {
    world_vertices[i] = mesh_to_world.transform_point3(Vec3::from(
        vertex_positions[index[i] as usize],
    ));
}

The other benefit of this is we could more easily write some unit tests for this function!

Looking at this code again, I think we could make another improvement (while you're at it!). Every group of three indices is being bounds checked if index.len() != 3 { break; }. Instead, I think a better solution would just check that the input vector is divisible by 3: vector.len() % 3 == 0

Sounds good!
Just one thing, we can't use as usize inside the function, because index[i] is T, which isn't a primitive and rust doesn't let us use as. So instead I used try_into(), because usize doesn't implement From<u32>, it only implements TryFrom<u32>.
Also, I'm unwrapping the try_into() with unwrap_or_default(), because the Error doesn't implement Debug so we can't use unwrap(). What are your thoughts on using default? I don't know if panicking would be better instead of defaulting, since it would make the error more obvious.

Just one thing, we can't use as usize inside the function, because index[i] is T, which isn't a primitive and rust doesn't let us use as. So instead I used try_into(), because usize doesn't implement From<u32>, it only implements TryFrom<u32>.

Okay!

What are your thoughts on using default? I don't know if panicking would be better instead of defaulting, since it would make the error more obvious.

I think panicking would be better. I'd prefer we crash the plugin instead of sending bad data into the picking algorithm, it will be much easier to debug if it ever fails to convert. As far as I can tell, this will only happen on 16-bit architectures where usize is not large enough to hold a u32.

Great, changed!

authors: aevyrie guimcaballero


text:
Fix/addon support

This resolves #105 #96
This may help #83

LGTM, @stefanpenner does this seem reasonable to you?

Oh, and thanks!

What about @dukex, are you able to confirm this PR?

Thanks @runspired, LGTM!

Published v5.3.0

Thanks!

authors: aexmachina dukex runspired

repo: aexmachina/ember-cli-sass


text:
Stuck in "Lookup Rollup Calculate Job"

On a new rollup I created, I click "Calculate", and it just seems to hang out in "Lookup Rollup Calculate Job" forever... not calculating, nothing rolling up, nothing happening. It just stays there forever, until I delete it and try again. Any idea why that would be? Screenshot of my rollup is here:

The next rollup I created did the same thing - it was a very different rollup, on different object....
They are both just stuck eternally in "jobs"...

Can you send a screenshot of your jobs screen? What status are they showing? Sometimes Salesforce will pause jobs under certain conditions. It usually rectifies itself. This gives a bit more background as to the reasons.

Here is one of the Jobs - but I don't know what you mean about a status? Should I be looking somewhere else?

Aha, I think you meant Apex Jobs, sorry. Looks like I've got a bunch in there with a status of "holding." One idea I had is to abort these jobs, then change the type of all my rollups to "Scheduled" instead of "realtime" and then try again to see if my new ones will calculate... or perhaps wait till tomorrow if my usage for the day has hit a limit...?

Yes give it some time and if not call Salesforce support or raise a case. Calculate is designed to either be a full one off recalc (to update existing records) prior to enabling Realtime. Or you can enable Schedule mode on the rollup, then schedule the RollupJob class via APex Classes under Setup and it will processes records that need recalc each day. Final option is to use Schedule Calculate button on the rollup to run a full recalc at different times

Yep, that's all it was, was waiting 24 hours for a backed up jobs list to process through! Sorry to bother you with that - I just had not run into it before! But I guess we were having a busy day in that org.... Good to know for the future... Thanks as always!

authors: StephanieKing afawcett


text:
Permission Enum doesn't contain all permissions.

Please consider making a Pull Request if you are capable of doing so.
May I pull a request to add more permission to Permission enum?
What module does this apply to?
Core
Description what you'd like to happen:
I need to use MODIFY_AUDIO_SETTINGS permission, but I wonder why it's not in the permission enum. So, would it be okay if I pull a request to add that along with a bunch of other permission?
Describe alternatives you've considered:
I couldn't find a workaround on this besides adding more permissions to the permission enum.

I was wrong.

repo: afollestad/assent


text:
System Dialog

Sorry, that I writing there like a issue.
My question is there any option to show this dialog like a system alert dialog?

The same way you'd do it with a regular dialog, MaterialDialog is just an android.app.Dialog.

authors: Sirelon afollestad

repo: afollestad/material-dialogs


text:
Stick navbar to top

Issue Template
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed
[x] I'm reporting the issue to the correct repository (for multi-repository projects)

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Firmware Version: F240000
Operating System: windows
SDK version:
Toolchain version: gcc (Rev10, Built by MSYS2 project) 11.2.0

Expected Behavior
navbar should stick to top
Current Behavior
navbar is moving along with the content
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

scroll to any section
you get it...

Failure Logs
Please include any relevant log snippets or files here.

Sure @An525ish


text:
Improve SQL data types and fix parallel issue

Improvements:

improve SQL data types in func:create_redshift_table

in currently release, all columns sql data type will mapping to varchar(256)
when column_data_types parameter not specify, i have update the
column_data_types mappings:
def pd_dtype_to_redshift_dtype(dtype):
    if dtype.startswith('int'):
        return 'INTEGER'
    elif dtype.startswith('float'):
        return 'REAL'
    elif dtype.startswith('datetime'):
        return 'TIMESTAMP'
    elif dtype=='bool':
        return 'BOOLEAN'
    else:
        return 'VARCHAR(256)'

Fix: Parallel run pandas_to_redshift load same s3 file issue
PEP8 code style.

Please release a new version to PyPI.  Thanks @agawronski .

Hi Eric. The code looks good but I have only had a chance to skim through. I will run a few tests tomorrow and should have master released to PyPi this weekend. Thanks!

authors: agawronski lxneng


text:
Module cannot be initialized

Hey,
I've found an issue where after addition of packages.config with just Cake.BuildSystems.Module to ./tools/Modules is breaking the Cake build process.
packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
    <package id="Cake.BuildSystems.Module" version="0.3.0" />
</packages>

Error with Diagnostic output:
Preparing to run build script...
Running build script...
Verifying assembly 'Cake.MyGet.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TeamCity.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TFBuild.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TravisCI.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.MyGet.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TeamCity.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TFBuild.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Verifying assembly 'Cake.TravisCI.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Registering module Cake.MyGet.Module.MyGetModule...
Registering module Cake.TeamCity.Module.TeamCityModule...
Registering module Cake.TFBuild.Module.TFBuildModule...
Registering module Cake.TravisCI.Module.TravisCIModule...
Registering module Cake.MyGet.Module.MyGetModule...
Registering module Cake.TeamCity.Module.TeamCityModule...
Registering module Cake.TFBuild.Module.TFBuildModule...
Registering module Cake.TravisCI.Module.TravisCIModule...
Error: System.TypeLoadException: Method 'RunTargetAsync' in type 'Cake.MyGet.Module.MyGetEngine' from assembly 'Cake.MyGet.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at Cake.MyGet.Module.MyGetModule.Register(ICakeContainerRegistrar registrar)
   at Cake.Composition.ModuleLoader.LoadModules(IContainer container, CakeOptions options)
   at Cake.Program.Main()

The problem with module exists in Cake 0.29.0 only. The module is working fine with Cake 0.28.1 or older.

I think that's because in 0.29, they changed the interface ICakeEngine (see https://github.com/cake-build/cake/issues/2094)

@SheGe : As @flcdrg correctly pointed out, that was a change introduced in a later version of Cake than the module was built for. If you upgrade to Cake 0.30.0 and the module to 0.3.1 you should not get this error anymore.

@agc93 thanks, after updating to Cake 0.30.0 and module to 0.3.1 everything is working as expected.

authors: SheGe agc93 flcdrg


text:
Switch to sql for Wu realnames, fix #329.

realname is now fetched from the Wu sql database, which should preferred over LDAP since it is easier and more frequently edited, and the LDAP is not synced against it.

[x] Run the tests and see them pass
[x] Rebase your branch on top of develop
[x] Include tests for features you introduced / bugs you fixed

This fixes issue #329.

@lukasjuhrich: I hope I addressed the formatting issue, please have another look.

Awesome, thanks! I'm gonna merge&deploy tomorrow if I have time.

authors: lukasjuhrich toothstone

repo: agdsn/sipa


text:
[Proposal]: List of public addons for Cockpit?

As the title suggests, I'm seeing a few 'issues' hint towards addons that have been made.
It might be ideal to include such a list or atleast refer to it, in your readme.md

Honestly, I believe that Cockpit can grow a lot, mostly if it gets more people contributing, with issues, patches, and add-ons. Like on other CMS's (e.g. Drupal, Wordpress) having a contributed section that lists all existing add-ons is a good starting point.

@TechnicallyJoe @pauloamgomes already in the making 👍🏻

list: https://github.com/muoto/CockpitCMSAddons

@muoto I love the work, but shouldn't we try to place this as a separate page in the documentation?
It's possible to add them here: https://github.com/agentejo/cockpit-docs
I'm willing to include them, but since you started it, let me know if you'd like to add it.

Is there any news on this? I came to this topic when searching for information about SDKs or libraries made to consume the cockpit API. I am thinking of something like this:

A cockpit NodeJS library
A cockpit PHP library
A cockpit  ruby library
...

Do you intend to put these inside your docs too?

authors: TechnicallyJoe aheinze muoto pauloamgomes remluben woutervddn

repo: agentejo/cockpit


text:
Chapter 14: Over 92% test accuracy on Fashion MNST?

Thanks for a great book.
I'm preparing an assignment for a DL course where the objective is to get at least 90% test accuracy on Fashion MNIST using a CNN of our own.
On page 461 the book show a Fashion MNIST model with the following comment (page 462):
This CNN reaches over 92% accuracy on the test set. It's not state of the art, but it is pretty good,
and clearly much better than what we achieved with dense networks in Chapter 10.
This sounds interesting so I planned to use that network as a baseline to beat - or at least compare - with my quite smaller CNN (which almost always reach a little over 92% test accuracy).  You don't write the specifics of the training parameters, so I wonder how you get 92% test accuracy.
When I run the network using Adam/NAdam and which early stopping (patience=20), I only get about 90% and tops 91.4% test accuracy using tf.keras with TF 2.
The training/test results that's shown in the current version of the chapter notebook (https://github.com/ageron/handson-ml2/blob/master/14_deep_computer_vision_with_cnns.ipynb ) just get 0.8983 test accuracy. However, it just run for exactly 10 epochs so it's probably not the proper model.
Would you mind showing the CNN model + the training parameters that give over 92% test accuracy?
Best regards,
Hakan

I think there is no problem, recently I also done this assignment. And I did get 92.04% test accuracy on this CNN network on books at some epoches(The final accuracy will fluctuate a little)

Thanks for your comment.
Did you run the training as it was in the book's notebook to get > 92%, or did you used some other training setup?

Hi @hakank,
Thanks for your question! Perfect reproducibility is tricky when dealing with Neural Networks (and many other ML models). First, the training algorithm (stochastic gradient descent) relies on randomness. This makes reproducibility harder, but not impossible: we can theoretically just set the random seed. Unfortunately the pseudo-random number generators may vary across version or even platforms. In particular, the logic changed between TF 1.x and TF 2.0. In fact, it changed as I was writing the second edition, which means that you may get slightly different results. They should be in the same ballpark, though.
For example, in TF 2.0:
import tensorflow as tf
tf.random.set_seed(42)
print(tf.random.uniform([5]))
# outputs [0.6645621  0.44100678 0.3528825  0.46448255 0.03366041]

And in TF 1.15:
import tensorflow as tf
tf.set_random_seed(42)
rnd = tf.random_uniform([5])
with tf.Session() as sess:
    print(rnd.eval())
# outputs [0.63789964 0.16047871 0.19355309 0.25280082 0.31931257]

Moreover, the random number logic is going to change again soon, see this issue. Hopefully, it will remain stable for a long time after that! :)
But TensorFlow's random seeds are not the only difficulty. You need to set NumPy's random seed, Python's random seed, and even the random seed used by Python to generate hashes for sets and dicts. You also need to be careful with multithreading, in particular when using a GPU. I did a video on the topic of reproducibility, in case you're interested.
In short, perfect reproducibility is hard to achieve and comes with severe constraints, so it might be preferable to tolerate some variability. If you're writing tests (or a book or a blog post) where you really absolutely need perfect reproducibility, then watch my video. Or just run the program 10 times and compute the mean, and check that it falls within a reasonable range.
I hope this helps!

Hi @ageron .
Thanks, your answer helps somewhat. I'm quite aware about the problem regarding reproducibility and how unreliable it is to just use the values of a single run. You video about reproducibility in TensorFlow was interesting - I didn't realize that it was that hard to get deterministic results in TF - but I was not really after that precise reproduction of the test accuracy.
My main question was more about the details how you trained the model, and I would then see what result I would get (given that we probably use different versions of TF, Python etc).
Here's how I trained your network, using early stopping, validation_split which surely influences the exact results (and randomness):
geron_model = keras.models.Sequential([
    keras.layers.Conv2D(64, 7, activation="relu", padding="same",
                        input_shape=[28, 28, 1]),
    keras.layers.MaxPooling2D(2),
    keras.layers.Conv2D(128, 3, activation="relu", padding="same"),
    keras.layers.Conv2D(128, 3, activation="relu", padding="same"),
    keras.layers.MaxPooling2D(2),
    keras.layers.Conv2D(256, 3, activation="relu", padding="same"),
    keras.layers.Conv2D(256, 3, activation="relu", padding="same"),
    keras.layers.MaxPooling2D(2),
    keras.layers.Flatten(),
    keras.layers.Dense(128, activation="relu"),
    keras.layers.Dropout(0.5),
    keras.layers.Dense(64, activation="relu"),
    keras.layers.Dropout(0.5),
    keras.layers.Dense(10, activation="softmax")
])

geron_model.compile(optimizer='nadam',
                       loss='sparse_categorical_crossentropy',
                       metrics=['accuracy'])

early_stopping_cb = keras.callbacks.EarlyStopping(monitor="val_loss", patience=20, restore_best_weights=True)

geron_history = geron_model.fit(train_images,
                                train_labels,
                                epochs=200,
                                validation_split=0.2,
                                callbacks=[early_stopping_cb]
                                )

geron_test_loss, geron_test_acc = geron_model.evaluate(test_images,  test_labels, verbose=2)

In TF 2 I ran the model a couple of times and got the following test accuracy:
  0.9082 0.9144 0.9113 0.9098 0.9058 0.9096 0.9149 0.9091 0.9103 0.9070 0.9075

with an average of 0.91. Testing with TF 1.15 (Colab's default TF) instead, didn't change much:
0.9105 0.9046 0.9084
with an average of 0.907, i.e. about the same.
Best regards,
Hakan

The code I ran is the code in the notebook, section "Tackling Fashion MNIST With a CNN". Indeed, the last times I ran it, the performance did not reach 92%, so perhaps I got a bit lucky the first time I ran it. It's more like 90.5% to 91.5%, in general.

@ageron Thanks, that answered my question.

authors: ageron hakank klyuhang9


text:
datetime.date is not JSON serializable

Trying to create a graph using a date on one of the axis generates a TypeError, as the date object is not serializable in JSON.
Full traceback:
Template error:
In template /usr/local/lib/python2.7/dist-packages/graphos/templates/graphos/flot.html, error at line 6
   datetime.date(2015, 1, 13) is not JSON serializable
   1 :

   2 :

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/www/myDjangoProject/views.py" in viewDailyList
  22.         return render(request, 'myTemplates/viewDailyList.html', {'DataChart':chart,})
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts.py" in render
  48.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
  178.         return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  148.             return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/test/utils.py" in instrumented_test_render
  88.     return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
  126.         return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/test/utils.py" in instrumented_test_render
  88.     return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
  65.                 result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render
  90.             output = self.filter_expression.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
  596.                 obj = self.var.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
  734.             value = self._resolve_lookup(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _resolve_lookup
  788.                             current = current()
File "/usr/local/lib/python2.7/dist-packages/graphos/renderers/base.py" in as_html
  43.         return render_to_string(self.get_template(), context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
  172.         return t.render(Context(dictionary))
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  148.             return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/test/utils.py" in instrumented_test_render
  88.     return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
  844.                 bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
  80.             return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render
  90.             output = self.filter_expression.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
  596.                 obj = self.var.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in resolve
  734.             value = self._resolve_lookup(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _resolve_lookup
  788.                             current = current()
File "/usr/local/lib/python2.7/dist-packages/graphos/renderers/flot.py" in get_series_objects_json
  31.         return json.dumps(self.get_series_objects())
File "/usr/lib/python2.7/json/__init__.py" in dumps
  231.         return _default_encoder.encode(obj)
File "/usr/lib/python2.7/json/encoder.py" in encode
  200.         chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py" in iterencode
  263.         return _iterencode(o, 0)
File "/usr/lib/python2.7/json/encoder.py" in default
  177.         raise TypeError(repr(o) + " is not JSON serializable")

Exception Type: TypeError at /viewGraph/
Exception Value: datetime.date(2015, 1, 13) is not JSON serializable

This appears to be similar to pgollakota/django-chartit/issues/2

So has anyone fixed this or come up with a workaround?

Any update here?

In your project settings, set SESSION_SERIALIZER to 'django.core.serializers.json.DateTimeAwareJSONEncoder'
see https://docs.djangoproject.com/en/1.8/topics/http/sessions/

Any workaround?

The reason for this is because they zip the items somewhere in flot.py (line 16). Try to change it from
current_series = zip(first_column, current_column)
to
current_series = list(zip(first_column, current_column))

@cyberjacob @thetylerhayes @Asinox @bobbyjayblack @timothyleung This issue is similar to https://github.com/agiliq/django-graphos/issues/35. See the second to last and last comment
To workaround this, you have to create a new class subclassing an existing class. I have already provided code snippet on how to do this in a comment of https://github.com/agiliq/django-graphos/issues/35
So closing this ticket now, feel free to open if the solution doesn't seem satisfactory.

authors: Asinox LeGast00n akshar-raaj bobbyjayblack cyberjacob thetylerhayes timothyleung

repo: agiliq/django-graphos


text:
Enable parallel runs of 64-bit XUnit

This change enables us to run tests in parallel using new xunit2 64-bit runners.
The runner has to be 64-bit because otherwise we OOM. The new runtime with parallel enabled is ~12 minutes.
Some of the tests didn't support 64-bit running or parallel running for one reason or another. Where the fix was simple I did it myself. Otherwise, I filed a bug and disabled the test/assembly.

This is currently a PR into your own fork.  Did you mean to do a PR into dotnet/roslyn instead?

Unfortunately, this repo is a fork of your old git repo, so it doesn't recognize it as a fork of dotnet/roslyn. I just realized this myself :) I will delete this repository and restart on a fork.

authors: agocke jaredpar

repo: agocke/roslyn


text:
Custom payload function is overwritten in RequestError & InternalError instances

Not sure if this is intended by design or not, but currently, it's not possible to handle these types of errors in the FETCH_ERROR, payload function.
It gets overwritten, here for example https://github.com/agraboso/redux-api-middleware/blob/2263853010708a75ac94af4878847068ea122b53/src/middleware.js#L185
Don't think this should be the case

I think this is intended by design. This happens when your fetch is something custom and throws an explicit error.
Server error is handled here
https://github.com/agraboso/redux-api-middleware/blob/2263853010708a75ac94af4878847068ea122b53/src/middleware.js#L214

I think this is intended by design. This happens when your fetch is something custom and throws an explicit error.
Server error is handled here
https://github.com/agraboso/redux-api-middleware/blob/2263853010708a75ac94af4878847068ea122b53/src/middleware.js#L214

Well, it does make little sense in network failure (lost internet connection or any other exception fetch throws) to dispatch the same action type of failure, but do not respect payload function in these cases. Feels like a mistake, as the API basically is inconsistent and is prone to unhandled cases.
This is exactly how i discovered this 😄

Well, it does make little sense in network failure (lost internet connection or any other exception fetch throws) to dispatch the same action type of failure, but do not respect payload function in these cases. Feels like a mistake, as the API basically is inconsistent and is prone to unhandled cases.
This is exactly how i discovered this 😄

Hmm, maybe I don't understand exactly your use case.
But any network failure or lost connection, you don't have any payload.
For handling server response error, is checked by options.ok
In case when your server responds with a 200 for every response, you can use a custom fetch like this one bellow to change request
async function doFetch(input: RequestInfo, init?: RequestInit): Promise<Response> {
  const _res = await fetch(input, init)
  const contentType = _res.headers.get('Content-Type')
  if (_res.ok && contentType && contentType.indexOf('json') !== -1) {
    const res = _res.clone()
    const json = await _res.json()
    if (json.status === 'ERROR') {
      // all `Response` properties are readonly,
      // so we need `Object.defineProperty` to override them
      Object.defineProperty(res, 'statusText', { value: 'Internal Server Error' })
      Object.defineProperty(res, 'status', { value: 500 })
      Object.defineProperty(res, 'ok', { value: false })
    }
    return res
  }
  return _res
}

Hmm, maybe I don't understand exactly your use case.
But any network failure or lost connection, you don't have any payload.
For handling server response error, is checked by options.ok
In case when your server responds with a 200 for every response, you can use a custom fetch like this one bellow to change request
async function doFetch(input: RequestInfo, init?: RequestInit): Promise<Response> {
  const _res = await fetch(input, init)
  const contentType = _res.headers.get('Content-Type')
  if (_res.ok && contentType && contentType.indexOf('json') !== -1) {
    const res = _res.clone()
    const json = await _res.json()
    if (json.status === 'ERROR') {
      // all `Response` properties are readonly,
      // so we need `Object.defineProperty` to override them
      Object.defineProperty(res, 'statusText', { value: 'Internal Server Error' })
      Object.defineProperty(res, 'status', { value: 500 })
      Object.defineProperty(res, 'ok', { value: false })
    }
    return res
  }
  return _res
}

Yes, you are correct, but how could i handle what is inserted in the store in such cases? I could, of course do some hacking in the fetch implementation, as you given in the example above, but i don't find this the best solution in such a situation. Even in a network error case, the payload error is inserted in the store.
I create a custom shape for the data, so this basically breaks, as i have no possibility to edit the data that is stored, unless i wrote a middleware (overkill) or something.

Yes, you are correct, but how could i handle what is inserted in the store in such cases? I could, of course do some hacking in the fetch implementation, as you given in the example above, but i don't find this the best solution in such a situation. Even in a network error case, the payload error is inserted in the store.
I create a custom shape for the data, so this basically breaks, as i have no possibility to edit the data that is stored, unless i wrote a middleware (overkill) or something.

I have a slightly different use case for this.
I need my bailout function to throw an error and I need errors to trigger a *_FAIL action.
export const login = ({ login: username, password }) =>
  createAction({
    endpoint: `${apiBase}/v2/oauth/token`,
    method,
    headers,
    bailout: () => {
      if (FORBIDDEN_USERNAMES.includes(username.toLowerCase())) {
        console.debug('username forbidden', username)
        throw new Error('Disallowed Username')
      }
      return true
    },
    body: `username=${username}&password=${password}&grant_type=password`,
    types: ['LOGIN', 'LOGIN_SUCCESS', 'LOGIN_FAIL']
  })

It would be ideal to be able to report this error rather than simply logging it.  Alas when the bailout throws it simply gives me the RequestError '[RSAA].bailout function failed' which is not very helpful.  Maybe RequestError could add an optional cause prop that lets e get passed into the RequestError along with the message.
FYI I worked around the issue of errors not triggering *_FAIL responses by writing the following middleware function which runs after the api middleware
failOnError.js
export const failOnError = ({ dispatch }) => next => async action => {
  const { type, error } = action

  if (!error || !type.endsWith('_SUCCESS')) return next(action)

  const failType = type.replace('_SUCCESS', '_FAIL')

  dispatch({
    ...action,
    type: failType
  })
}

authors: davesag essensx iamandrewluca

repo: agraboso/redux-api-middleware


text:
Uploaded code for Circular queue implementation in java

Assigned Issue Number ?
#Issue_Number 1588
Location of the file(s) ?
Data-Structures => Queue => Circular-Queue => circular_queue.java
Checklist

[* ] I've followed the contributing guidelines
[ *] The content added isn't directly copied from any sources like gfg, tutorialpoint, etc.
[ *] Input has been taken dynamically.
[ *] I've referred the correct issue number.
[ *] Comments have been added
[ *] I've  synced-up my forked repo.
[ *] Ain't pushing from the main branch.

Okk. I woll make the required changes and submit the updated code
On Mon, 4 Oct 2021, 9:59 am Priyanshu Tiwari, @.***>
wrote:

@.**** requested changes on this pull request.
Hi @naman7898 https://github.com/naman7898, please don't push from the
main branch and take the input dynamically.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ahampriyanshu/algo_ds_101/pull/1770#pullrequestreview-769855313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN6Y3UO6KXQE4XQHRLALYSLUFEURFANCNFSM5FH5VWOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


text:
[BUG]

Willingness to contribute
Yes. I can contribute a fix for this bug independently.
System information

Have I written custom code (as opposed to using a stock example script provided in MLflow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
MLflow installed from (source or binary):
MLflow version (run mlflow --version):
Python version:
npm version, if running the dev UI:

Describe the problem
bug
Tracking information
No response
Code to reproduce issue
test

Other info / logs
No response
What component(s) does this bug affect?

[X] area/artifacts: Artifact stores and artifact logging
[ ] area/build: Build and test infrastructure for MLflow
[ ] area/docs: MLflow documentation pages
[ ] area/examples: Example code
[ ] area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
[ ] area/models: MLmodel format, model serialization/deserialization, flavors
[ ] area/projects: MLproject format, project running backends
[ ] area/scoring: MLflow Model server, model deployment tools, Spark UDFs
[ ] area/server-infra: MLflow Tracking server backend
[ ] area/tracking: Tracking Service, tracking client APIs, autologging

What interface(s) does this bug affect?

[ ] area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
[ ] area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
[ ] area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
[ ] area/windows: Windows support

What language(s) does this bug affect?

[ ] language/r: R APIs and clients
[ ] language/java: Java APIs and clients
[X] language/new: Proposals for new client languages

What integration(s) does this bug affect?

[ ] integrations/azure: Azure and Azure ML integrations
[X] integrations/sagemaker: SageMaker integrations
[ ] integrations/databricks: Databricks integrations

Nice!

authors: ahlag harupy

repo: ahlag/mlflow


text:
New: Adding in options to change colours for various elements.

Adding a new pull request to take over from #102 to provide cleaner commits.

Old Pull

repo: ahmedkaludi/Accelerated-Mobile-Pages


text:
Help with fbm_...;  fbsr_=...

I couldn't find these values inside the cookie.

I couldn't find these values inside the cookie.

Sometimes not all of the cookie values are there, I think it depends on the browser, just copy all the ones that appear to you and you should be able to get the data

How many URLs can you scrape before Instagram logout the account?

Can you access the videos posts? The videos URLs are inside a string, and there are more than one URL by post. But when I try to open the URLs, I receive a message inside instagram webpage, even not connected: "URL signature expired"

I don't know how long it takes for instagram to log out of the account, as my experience it takes something about a little more than 1 month but sometimes about 2 weeks, after that I have to renew the cookie I'm using.
It is normal that there are several urls per post but it is weird that you cannot open them, currently I can open them without problem.

authors: ahmedrangel danielklk

repo: ahmedrangel/instagram-media-scraper


text:
Colored output does not work in Windows

Hello,
I'm happy there is a release for windows. But I think there is a small bug with how the escape sequences for color codes are done.
When I execute kubens I get the following output when it tries to tell me which namespace I'm in.
✔ Active namespace is XXXX

(Because github somehow automatically creates a check mark from these symbols I've also included screenshot).

I've tested this both with the command prompt (CMD) and Powershell and the issue happens in both. It happens everywhere where I would expect colors to be.
Given the 32 there I think it outputs the escape sequence for green on Linux consoles. But I think on Windows this works slightly differently. Or that the escape character is incorrect or mangled somehow.. If I copy paste these sequences I do see colored text: https://gist.githubusercontent.com/mlocati/fdabcaeb8071d5c75a2d51712db24011/raw/b710612d6320df7e146508094e84b92b34c77d48/win10colors.cmd
Oh btw this was using

kubectx_v0.9.0_windows_x86_64.zip
kubens_v0.9.0_windows_x86_64.zip

Tested on Windows 10 v1809 and Windows Server 2019 v1809

Thanks I think we just fixed it on #220.

That sounds exactly right, awesome! I look forward to the next release :)

authors: ahmetb roy-t

repo: ahmetb/kubectx


text:
Modify preserveOutliers GraphQL API

Desc
change response in preserveOutliers api

Result<usize> -> Result<Vec<PreserveOutlierOutput>>

Reference
Close #50

Result<usize> -> Result<Vec<PreserveOutlierOutput>>

Could you follow the rule how to use backticks in our policy?

With backticks, I suggest this title:
Modify the preserveOutliers GraphQL API

repo: aicers/review-web


text:
Chore: update appveyor

(ref: https://github.com/appveyor/ci/issues/2921#issuecomment-501016533)

Coverage remained the same at 86.154% when pulling 209d57b937f966ceef2f49ed557912a2d31adc34 on JPeer264:chore/update-appveyor into 816526581e3b9bec0949fb4425018af3d55ee6bf on aichbauer:master.

We should drop Node v4 and v6 and support only Node v10 and v12. Then appveyor should go green

That sounds right. Don't forget to change the node versions for the travis build as well.

@aichbauer appveyor works now with jest, but the coverage is just more strict than before (imports are not included in the coverage), that's why coveralls is now dropping 2.5%

No problem.
Send from GitHub Android App 😱

authors: JPeer264 aichbauer coveralls

repo: aichbauer/node-git-commit-range


text:
chore(main): release 1.3.6

:robot: I have created a release beep boop
1.3.6 (2023-09-18)
Bug Fixes

append required reset to zshrc post brew install (#41) (1205b51)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aidanaden/canvas-sync/releases/tag/v1.3.6 :sunflower:

repo: aidanaden/canvas-sync


text:
7.1.2.155 Exception in server tick loop

Using Mekanism 7.1.2.155 and Fastcraft 1.16.
Someone placed a Mekanism generator in flowing lava on our server which produced the following error:
java.lang.NoSuchFieldError: enableAmbientLighting
	at mekanism.generators.common.block.BlockGenerator.getLightValue(BlockGenerator.java:139)
	at fastcraft.a.e.a(Unknown Source)
	at fastcraft.a.e.a(Unknown Source)
	at fastcraft.a.e.a(Unknown Source)
	at fastcraft.d.a(Unknown Source)
	at fastcraft.Hooks.d(Unknown Source)
	at net.minecraft.world.World.func_147465_d(World.java:460)
	at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:206)
	at mekanism.generators.common.item.ItemBlockGenerator.placeBlockAt(ItemBlockGenerator.java:166)
	at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
	at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:505)
	at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:128)
	at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:389)
	at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:556)
	at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
	at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
	at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
	at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

Crash-report: http://paste2.org/4msJKcEX
Not sure if it's a Mekanism or Fastcraft issue so posting it here just in case it might be useful. Also posted on IC2 forum here: http://forum.industrial-craft.net/index.php?page=Thread&postID=178897#post178897

This is fixed in the latest build, try out 7.1.2.157. That should fix your problem :-)

Thanks!

authors: InsaneJ halvors

repo: aidancbrady/Mekanism


text:
Implement Static Topologies

The project aims to enable decentralized collaboration including p2p communication graphs. However, currently we only have support for three topologies -- 1) ring, 2) grid, and 3) torus. Therefore, to make our library support a versatile set of communication topologies.
Here is what chatGPT recommends for making our topology suite more versatile -

You can consider implementing the following types of graphs, each offering distinct advantages in terms of fault tolerance, communication efficiency, and scalability:

Fully Connected (Clique): Every node is connected to every other node, ensuring minimal communication hops but at a higher communication cost.

Star Topology: One central node connects to all others. It's simple and efficient for small networks, but the central node becomes a single point of failure.

Tree Topology: Nodes are connected in a hierarchical, parent-child structure, which can be useful for distributed data aggregation. Variations like binary trees, k-ary trees, and spanning trees are also valuable.

Mesh Topology: Each node can connect to multiple others, providing redundancy and better fault tolerance. There can be a partial or full mesh, depending on the desired redundancy.

Hypercube: Nodes are arranged in an n-dimensional cube, with each node connected to other nodes that differ in exactly one bit in their binary representation. This topology provides logarithmic diameter scaling, making it highly efficient for large systems.

Small-World Network: Similar to real-world social networks, small-world networks have short path lengths but are not uniformly connected. They offer efficient communication even in large networks with a degree of randomness.

Scale-Free Network: Some nodes (hubs) have a significantly higher number of connections, while most have fewer. These networks are highly resilient to random failures but vulnerable to targeted attacks on hubs.

Expander Graph: A sparse graph with strong connectivity properties, ensuring that the system remains robust while reducing the number of edges (communication links).

Butterfly Network: A hierarchical network used in parallel processing systems, where nodes are arranged in levels, making it suitable for data dissemination and aggregation.

Merged already

repo: aidecentralized/sonar


text:
Assembly file contains multiple entries of the same contig. Assembly file does not match cprops file. Exiting!

Hello，
I extracted some fragements to re-run 3D-DNA pipeline with defalut parameter. The total size of the fragments is 1.7Mb, and the merge_nodups.txt file is 9M. I noticed the FINAL.fasta is about two fold of my initial fragment size and this change happens on the polished step, because the fragments are shown in double in the .asm file.
raw fragments:
Gap(N) (bp):	199
Total length (bp):	1787750
FINAL fasta:
Gap(N) (bp):	14398
Total length (bp):	3589500
By the way, bash version is >= 4 , and running without parallel has no effect on results.
Here is my command:
bash ~/software/3d-dna/run-asm-pipeline.sh 00.data/genome.fasta 00.data/gm_W_mnd.txt
:( Assembly file contains multiple entries of the same contig. Exiting! :( Assembly file contains multiple entries of the same contig. Exiting! :( Assembly file does not match cprops file. Exiting! :( Assembly file does not match cprops file. Exiting! Picked up JAVA_TOOL_OPTIONS: -Djava.io.tmpdir=~/04.W_hic/tmp/ -XX:ParallelGCThreads=1 temp.genome.polished.split.asm_mnd.txt does not exist or does not contain any reads. mv: cannot stat 'genome.polished.split.hic': No such file or directory :| Warning: no explicit bundle size was listed. Will use the same one as listed for false positive size threshold: this is the most typical scenario. :| WARNING: GNU Parallel version 20150322 or later not installed. We highly recommend to install it to increase performance. Starting pipeline without parallelization! :| Warning: No input for label1 was provided. Default for label1 is ":::fragment_" :| Warning: No input for label2 was provided. Default for label2 is ":::debris" Picked up JAVA_TOOL_OPTIONS: -Djava.io.tmpdir=~/04.W_hic/tmp/ -XX:ParallelGCThreads=1 :| Warning: No input for label1 was provided. Default for label1 is ":::fragment_" :| Warning: No input for label2 was provided. Default for label2 is ":::debris" tail: invalid number of bytes: '+'
Thanks
Li

Hi Li,
I've missed this, sorry.
This is not some standard complaint: looks like something specific to your input. It seems to be unhappy with your fasta, suggesting that you have duplicated sequences there. What does your .0.cprops file look like? Does it have repeat entries?
Olga


text:
Logic notebook update

[x] Added brief notebook section for KB_AgentProgram
[x] Added brief notebook section for subst
[x] Added doctests for logic.py
[x] Minor formatting fixes and rerun.
[x] Updated README.md

Sure @norvig , I'll move the unnecessary doctests to actual unit tests in the next update.

repo: aimacode/aima-python


text:
Use array-based radix child map in radix node

Change summary:

Replace native-map-based radix child map with array-based radix child map

Related issues: https://github.com/ainblockchain/ain-blockchain/issues/519

Comments addressed. PTAL~ @liayoo

repo: ainblockchain/ain-blockchain


text:
Garbage-collect old receipts per block

Updated to garage-collect receipts per block instead of per transaction for performance.

Addressed all comments, PTAL @platfowner


text:
Update all secret:  values in .travis.yml

Do like this:
REPO_NAME={{ YOUR_REPO_NAME }}
travis encrypt -r "aio-libs/${REPO_NAME}" --api-endpoint 'https://api.travis-ci.com/'

Ref: https://github.com/orgs/aio-libs/teams/admins/discussions/9

user: aio-libs-bot
secure: "KYsCUtNsximII/Z7lMOOZWAeN/Ujrs053W68WL8dmlCK2VxVayLn01mdPWkDK3Zf/B7aB9LcKZg7FWaWTYB45vCJE89ek1GP5E35+C22eN+98VKvf6TBT4Bn/oUuhyn603wHNXuPSR//U0pk5g3gvZHGLRjkPY3arjln2PvqutZbypo1/A2N4RhXCTt1H0TS6w+HYTzozb1gYZPcL0lvRF1P98RxJ2DoFaXE6qE16/sEXrufe73PlJlSj5emyROry/HM4rBAUMcr68p+XAVgCeCTk816TW3aY9SzMd7Qtx+1IwA41XaqeuWH9uudXRH23ycMWzZ+IjVQZ/DS2hD/dKWtAZmDTOuPmLqJ5h9EvOsRMMmJzTmGpycw7EZxY1TKqmj6irdiN499BPGBIQJpfumAy0CeY+Ip7G7xm3mIaE+uTr97ZGYMtlJloB7xx/rLdHJLKAuB8sX7EyoVceT279ad12pedcTucc7ueyLlnVtHlFIYBkdwmXbFILHwpXEkwKFWCNuDAsf16Ir/JZpzjgZ8J9zZCYTeqxg/vQ5ekwRDWW6+xI7UVa6T0QjJywPIV3iE7u3/v995/X4oINxVgTESBYJV0HUPILB1LE/fSsI2Y4D2u+HjzWG+NGzwn75nq+ZFD0GNBmzG7xVrgiUT60ZWbnH4FA821fJzEyk9pa4="

repo: aio-libs/night-watch


text:
How save versions before save record?

Guys,
I need to save versions before save record, any thoughts?
This is a example that I need save.
has_paper_trail :meta => { :object => :prepare_version }

def prepare_version

    {
      object: {
        id: self.id,
        title: self.title
      },
      classrooms: self.classrooms.pluck(:id)
    }

end

Thanks for your interest in PaperTrail! Our volunteers' time is limited, so we
can only respond on GitHub to bug reports and feature requests. Please ask
usage questions on StackOverflow (https://stackoverflow.com/tags/paper-trail-gem)
so that the whole community has a chance to answer your question.
Please use our template
(https://github.com/airblade/paper_trail/blob/master/doc/bug_report_template.rb)
when reporting bugs.
For other questions, please see our contributing guide.
(https://github.com/airblade/paper_trail/blob/master/.github/CONTRIBUTING.MD)
Thanks for your contribution!

authors: carlosalan jaredbeck


text:
Need for a periodic DagBag cleansing on web servers.

Hi,
What is the preferred procedure for removing a dag? If it is removed from the dags dir (with the scheduler running) it still shows in the webUI just without the scheduling history. Refreshing the webUI (#116) makes no difference and "airflow clear <dag_id>"  returns an error because the dag_id does not exist. Restarting the webserver solves the problem. Should the webserver always run in debug mode or is there another way of picking up when dags are removed?

+1

Would also like to know the answer to this!

Oh, yeah, here the web servers get restarted every time I push new code in production, which is pretty much everyday. I'll keep this open until I get to it...

+1

authors: kevinmandich mistercrunch pedrorjbr r39132 storpipfugl

repo: airbnb/airflow


text:
Fix Russian Logic & added LocalId for russian

After talking to our translator, found a bug in the russian logic.

It's related to https://github.com/airbnb/polyglot.js/pull/113 since Serbian and Bosnian actually share the same form as Russian.  Depending how you want to merge the PR, that one can just end up being adding the additional test and new language/localeId.
I created a separate PR just for the Russian fix.

@ljharb Did you separate russia and craotia eventhough they have the same plural form?

@darewreck54 i did; i think the clarity of having a separate function is better than avoiding the code repetition. We can always extract the common forms out to a helper function if needed.


text:
Symbols instances override issues

Hello guys!!
| -------------------------------------------------------------------------------------------------

Requesting support

I managed to create a set of Symbols using makeSymbol method. My goal is to share such symbols across Pages but I'm encountering several issues or probably I'm missing something in what to expect:

On each symbol instance, values override doesn't persist across changes made on the React Component even if I use the same name to make the symbol.
Is expected, on each symbol instance to render accordingly to the values I'm overriding? E.g. a View containing a text value (override) that goes on multiple lines, should resize accordingly in the specific symbol instance? If such view contains dynamic content should it react accordingly to the fact I'm overriding values on its symbol instance?

Thanks
Sketch version: 54.1
react-sketch-app version: 3.0.0-beta.3

up!^

Can you provide a code example? I'm struggling to visualise

@mathieudutour Thank you for the response !
below all the details
this is the code of the Component
`export interface MessageBannerProps {
title: string;
subtitle?: string;
}
export class MessageBanner extends React.Component {
render() {
const { title, subtitle } = this.props;
return (

{title}
{subtitle && {subtitle}}

);
}
}
const styles = StyleSheet.create({
container: {
borderRadius: AppDimensions.spacing5x,
backgroundColor: Colors.cyanBlue,
flexDirection: 'column',
width: 200,
alignItems: 'center',
},
title: {
color: Colors.grayDarker,
fontSize: 12,
margin: AppDimensions.spacing2x,
},
subtitle: {
color: Colors.grayDarker,
fontSize: 12,
marginBottom: AppDimensions.spacing2x,
},
});`
this is the symbol I'm making (it is not rendered in a particular page, but it's inside the Symbols page)
const messageBanner = () => <MessageBanner title={'Banner title'} subtitle={'Banner subtitle'} />; makeSymbol(messageBanner, 'banners/message');
and that's how it looks like in the Symbols page

if, in a such symbol instance on a new Page, I override values like this

and I change anything in the Component code, even just a style, making the symbol with the same name "'banners/message'", when the Symbol instance is re-rendered inside the Page the overridden values are present in the Inspector view but are not correctly rendered in the Symbol instance

Is it something expected/unexpected?
What I also expect is to get dynamic rendering of the symbol instance accordingly to the overridden values: for example, given the previous code, if I put an empty overridden value for the subtitle field what I expect on the symbol instance is to render accordingly (like React does), so adjust the height of the banner due to the fact the subtitle is not present.
Last question: how can I force the re-rendering of each symbol instances on all the pages I've in a Document without re-opening each Page?
Do I misunderstand something?
Sorry for the long comment, thanks in advance 🙃

So I think all of those questions can be answered by "that's how Sketch works".
What I'd recommend is to use a separate document to render your react components and then use that document as a Sketch library. Then in another document you can create symbol instances and it should work fine.

Thanks @mathieudutour !

Hi, @mathieudutour just one final thing: I followed your suggestion but I get the same issue once the library is updated: all the symbol instances overrides are defaulted once I perform a sync with the library itself. I googled and I guess it's a Sketch problem, do you have any clue on it?

So I've been thinking a bit more about it and I think I was wrong:
the issue is that, while the symbol keeps the same ID (good), its layers don't. So when you re-render your component, Sketch sees the same symbol but with completely different layers, and so different overrides. That's why Sketch seems like it's resetting them. It's not actually a reset tho, it's just using the new overrides which do not have a value yet.
I'll try to think how it can be fixed

Thank you @mathieudutour,
I'm new in Sketch and I'm trying to build up a design system starting from react-primitives based Component. I'm not experienced about design systems, but what I imagine is to have a library that contains a set of symbols representing the source of truth of my design. From such library I'd like to instantiate symbol instances, which can be vary for values (component props), such variation can also drive component behaviours in terms of rendering. From the design system what I expect is to manage  master Symbols and keep instances updated with respect to its modifications (by keeping overrides if present).
Since I'm very new about this topic, am I the only one with such needs? 🙃

I think react-sketchapp@3.0.0-beta.9 should be much smarter at trying to preserve IDs. Can you give it a try?

Sure thing! please let me know!

let you know what? I'd rather have you letting me know if your issue is fixed 😄

Didn't notice beta.9 😅
It works as expected!! thank you so much! 🙌

authors: mathieudutour mpatafio

repo: airbnb/react-sketchapp


text:
[tf] quick fix for a AccessDeniedException introduced by AWS

to @austinbyers
cc @airbnb/streamalert-maintainers
Change

Include AWS Lambda function qualifier in InvokeFunction permission to resolve AccessDeniedExceptions seen in CloudWatch when invoking a function without its qualifier.

@austinbyers please add additional context about how you discovered and triaged this issue.

Coverage remained the same at 95.21% when pulling b41eaffa8ee97ee50e83066334b323b408afa366 on ryandeivert-policy-perm-fix into abdbd24f3048e8835139b21470b3f3b26298e592 on master.

authors: coveralls ryandeivert

repo: airbnb/streamalert


text:
Put filters in an array instead of flt strings

Done:

get rid of flt_ strings, migrate old slice flt params to list of filters, backend filters are lists, frontend filters are arrays
delete empty filters in old slices during migration
make having_filters and filters separate fields
replace old input in filters with freeform react-select (having filters still use input)

After:

needs-review @mistercrunch

Oh also I was wondering whether we quote/not quote based on the target column?

@mistercrunch One thing that's not working is that React-select will create an option once ',' is typed, so we can't have filter values containing comma...still haven't found a way to get around this

@vera-liu that's not a big deal to me, I'd like to move forward with this regardless

Merging into my branch now

authors: mistercrunch vera-liu

repo: airbnb/superset


text:
Trouble opening NETCDF dataset

Hello Thomas,
I am trying to open a netcdf dataset (Sentinel 5P).
gdalinfo NETCDF:"/home/thomascoquet/product.nc":/PRODUCT/methane_mixing_ratio_bias_corrected -> works perfectly.
Using godal:
func TestOpen(t *testing.T) {
	godal.RegisterRaster(godal.GTiff)
	ds, err := godal.Open("/home/thomascoquet/test.tif")
	assert.Nil(t, err)
	ds.Close()
}
// OK, not a problem of file access

func TestGeoloc(t *testing.T) {
	godal.RegisterRaster(
		//godal.DriverName("KEA"),
		//godal.DriverName("BAG"),
		//godal.DriverName("HDF5"),
		//godal.DriverName("HDF5Image"),
		//godal.DriverName("HDF4"),
		//godal.DriverName("HDF4Image"),
		godal.DriverName("GMT"),
		godal.DriverName("netCDF"),
	)
	ds, err := godal.Open(`NETCDF:"/home/thomascoquet/product.nc":/PRODUCT/methane_mixing_ratio_bias_corrected`)
	assert.Nil(t, err)
}

--- FAIL: TestGeoloc (0.00s)
    .../read_test.go:23:
        	Error Trace:	read_test.go:23
        	Error:      	Expected nil, but got: &errors.errorString{s:"NETCDF:\"/home/thomascoquet/product.nc\":/PRODUCT/methane_mixing_ratio_bias_corrected: No such file or directory"}
        	Test:       	TestGeoloc

What is the right syntax to open a subdataset? Reading the doc:

name may be a filename or any supported string supported by gdal (e.g. a /vsixxx path,
the xml string representing a vrt dataset, etc...)

I was expecting it to work.
An example file:
wget --content-disposition --continue --user=s5pguest --password=s5pguest "https://s5phub.copernicus.eu/dhus/odata/v1/Products('3fcea3d2-daab-4fa0-a09d-91b52f20ba10')/\$value" -O product.nc
Thanks!

What happens if you open:
ds, err := godal.Open(`NETCDF:/home/thomascoquet/product.nc:/PRODUCT/methane_mixing_ratio_bias_corrected`)

i.e. without the "

Ok, found the culprit. I had left in my code all the driver registrations for HDF4 and 5 (I commented it in the issue to make everything clearer).
It appears that I need to follow exactly the order of https://github.com/OSGeo/gdal/blob/master/gdal/frmts/gdalallregister.cpp
	godal.RegisterRaster(
		godal.DriverName("GMT"),
		godal.DriverName("netCDF"),
		godal.DriverName("HDF4"),
		godal.DriverName("HDF4Image"),
		godal.DriverName("KEA"),
		godal.DriverName("BAG"),
		godal.DriverName("HDF5"),
		godal.DriverName("HDF5Image"),
	)

In particular:
	godal.RegisterRaster(
		godal.DriverName("KEA"),
		godal.DriverName("GMT"),
		godal.DriverName("netCDF"),
	) // -> does not work
	godal.RegisterRaster(
		godal.DriverName("GMT"),
		godal.DriverName("netCDF"),
		godal.DriverName("KEA"),
	) // -> works

authors: tbonfort thomascoquet

repo: airbusgeo/godal


text:
VQA finetuning training time

In this section of the readme, it says that fine-tuning should only take 2 hours per epoch:
'''
If no bug came out, then the model is ready to be trained on the whole VQA corpus:
bash run/vqa_finetune.bash 0 vqa_lxr955
It takes around 8 hours (2 hours per epoch * 4 epochs) to converge. The logs and model snapshots will be saved under folder snap/vqa/vqa_lxr955. The validation result after training will be around 69.7% to 70.2%.
'''
Is this with 4 GPUs? Because on my system with a single Titan XP, it is reporting 300+ hours/epoch

Is this an issue with my system or with the code? Because it seems even with 4 GPUs, we would still need 75 hours/epoch
Thanks

The time is estimated under a single GPU...
If the original code is used, it seems like a system issue. Some possible reasons:

Is the GPU shared with other processes?
Does the machine have enough memory? Otherwise, the features would be swapped to disk thus slowdown.

Ahh, it is my workstation's GPU, so it is unshared. But the workstation only has 16GB memory, while the GPU has 12 GB memory. The MSCOCO image features are larger than 16 GB, but surely we aren't storing the entire dataset in memory all the time?

Actually I stored it in memory for code simplicity. A possible solution might be sequentially loading the data here:
https://github.com/airsplay/lxmert/blob/9b8f0ffd56dba5490f37af9c14f3c112cc10358c/src/tasks/vqa.py#L36
by changing it to `shuffle=False'.

Oh wow, you had access to a lot more memory than me :P
I will try that, thanks for the quick reply!
(I can also send it to a cluster, but I am just trying to do some quick prototyping right now)

Cool. Great to know that!

repo: airsplay/lxmert


text:
scroller上拉加载两次

用scroller首次进入数据都请求到了，但是上拉查看的时候只能看一屏然后就触发了上拉事件，重新加载的还是第一页的数据，所以我的第一页的数据就加载了2次，再上拉滚动就没问题了。。

现在项目紧，大神看看是哪里的问题，如果实在改不了的话我就得改用插件了

scroller 组件不再维护，所以不再处理相关 issue了。
加载同一页这个问题看起来是你实现逻辑的问题并不是组件的问题。

@airyland scroller 组件是很常用的组件，请问为什么不维护了呢？

@gantoday 我不确定用户会在 scroller 里放什么，放列表当然没问题，但是大多数用户当成 div 来用了，里面各种手势控件，无法一一适配，焦头烂额，决定放弃。

authors: airyland eric1121 gantoday

repo: airyland/vux


text:
[Bug Report] popup-picker 组件异步请求数据，不渲染

VUX version
2.9.2
OS/Browsers version
Windows Google浏览器
Vue version
2.5.2
Code
文件index.vue
<template>
<group class="rf-28 citys" label-width="4.5rem" label-margin-right="1em" label-align="right">
        <popup-picker
          :title="cityTitle"
          :data="citysList"
          v-model="cityValue"
          value-text-align="left">
        </popup-picker>
      </group>
</template>
export default {
data(){
    return{
      cityTitle: '18-07-08',
      cityValue:[],
      citysList: [],
    }
  },
 methods:{
    /**
     * parentId: 父级id，默认为0
     * type: 子节点类型 省：province 市：city 区：district
     */
    getChildCitys(id,type){
      this.$api.get(this.$interface.apiurl.getChildCitys,{
        parentId: id,
        type: type
      },res=>{
        console.log(res);
        if(type === 'province'){
          this.nowProvince = res.data;
          this.citysList[0] = [];
          this.getChildCitys(res.data[0].id,"city");
          this.$nextTick(()=>{
            for (let i = 0; i < res.data.length; i  ) {
              this.citysList[0].push(res.data[i].name);
            }
          })
        }else if(type === 'city'){
          this.citysList[1] = [];
         this.$nextTick(()=>{
            for (let i = 0; i < res.data.length; i  ) {
                this.citysList[1].push(res.data[i].name);
             }
          })
        }
      })
    }

  },
activated() {
    this.getChildCitys(0,'province');
  },
}

Steps to reproduce
进入页面，点击popup-picker
What is Expected?
数据正常渲染
What is actually happening?
数据不正常渲染

获取数据图片


text:
x-input中min和max属性类型错误bug

x-input(
            :value.sync="inputValue",
            min=2,
            max=11,
            show-clear=true,
            is-type="{{checkType}}")

min=2 和max=11
会报：Invalid prop: type check failed for prop "max". Expected Number, got String. (found in component: <x-input>)
是不是在判断的时候弄错了？

:min=2
:max=11

谢谢。    is-type  验证不通过的时候， 怎么获取验证结果？

authors: airyland kevinlvhsl


text:
fix #3164

Please makes sure the items are checked before submitting your PR, thank you!

[x] Rebase before creating a PR to keep commit history clear.
[x] Only One commit
[x] No eslint errors

Codecov Report

Merging #3257 into v2 will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##               v2    #3257      +/-   ##
==========================================
+ Coverage   19.41%   19.43%   +0.02%
==========================================
  Files         226      226
  Lines        5603     5602       -1
  Branches      710      710
==========================================
+ Hits         1088     1089       +1
+ Misses       4396     4394       -2
  Partials      119      119

Impacted Files
Coverage Δ

src/components/picker/scroller.js
3.37% <ø> (-0.37%)
:arrow_down:

src/components/selector/index.vue
18.6% <0%> (+4.65%)
:arrow_up:

Continue to review full report at Codecov.

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

closed as it has been fixed.

authors: Haixing-Hu airyland codecov-io


text:
⚠ Turnos 24x7 has degraded performance

In f36db57, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1176 ms

Resolved: Turnos 24x7 performance has improved in 14a6707.

repo: aisa-status/status-upptime-dev