isPressed is true on keyup

The event keyup is fired when a key is released (aka not pressed), so why is hotkeys.isPressed(key) still returning true for that key that fired that event?

@rakusan2 Are there any examples for me to test?

Here is a simplified example
hotkeys('1', { keyup: true }, function(event, handler) {
            if (event.repeat) return
            const key = hotkeys.isPressed('1')

            console.log({ type: event.type, key })
        })

Result
{type: "keydown", key: true}
{type: "keyup", key: true}

What I expect
{type: "keydown", key: true}
{type: "keyup", key: false}


chore: upgrade to dp3t android sdk version 0.2.6

upgrade dp3t android sdk to version 0.2.6

upgrade in build.gradle
blacklist bcprov lib having problems with jetfier
change actual org.dpppt.demo public key

Thanks ! And sorry for the delay.


Mujoco XML files for models

Hi,
Will you be releasing the XML files corresponding to the MJB binaries? Would really help if we want to tinker with the models, by adding on an exoskeleton or simulating sarcopenia.
If not, any suggestions on how to do these mods with just the binaries?

Hi @vighv , have you looked at MyoSuite? There you can find both how to example how to control models with an exoskeleton e.g. myoSarcElbowPose1D6MRandom-v0 (just sarcopenia) or myoSarcElbowPose1D6MRandom-v0 (exo + sarcopenia)
If you want to add new exoskeletons, you can contribute it along the lines of this example


[Bug]: Cannot initialize storage factory: unknown storage type grpc-plugin

What happened?
I am trying to connect clickhouse using grpc-plugin like here:
https://github.com/jaegertracing/jaeger-clickhouse/blob/main/guide-kubernetes.md
In the jaeger custom resource
if I set storage.type: grpc-plugin
then there is the following error in the jaeger pod log:
jaeger 2024/10/31 14:50:09 Cannot initialize storage factory: unknown storage type grpc-plugin. Valid types are [cassandra opensearch elasticsearch memory kafka badger blackhole grpc]

if I set storage.type: grpc
then there is the following error in the jaeger-operator pod log:
The provided storage type is unknown. Falling back to 'memory'   {"instance": "bm-jaeger", "namespace": "bm-dev-jaeger", "storage": "grpc", "known-options": ["memory","cassandra","elasticsearch","kafka","badger","grpc-plugin"]}

Steps to reproduce
Just install jaeger-operator helm chart to a kubernetes cluster.
Expected behavior
No errors.
Relevant log output
No response
Screenshot
No response
Additional context
No response
Jaeger backend version
No response
SDK
No response
Pipeline
No response
Stogage backend
clickhouse via grpc plugin
Operating system
No response
Deployment model
Kubernetes
Deployment configs
No response

Same here
2024/11/25 12:08:58 maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined
2024/11/25 12:08:58 Cannot initialize storage factory: unknown storage type grpc-plugin. Valid types are [cassandra opensearch elasticsearch memory kafka badger blackhole grpc]

The name grpc-plugin used to be supported in Jaeger, but was deprecated and is now called grpc. The operator needs to be updated to use that name.


Added More Tests

Description of Work
Fixes #142
Added more tests and got rid of redundant ones.
Will add the test suite for the scipy part of the code in a further pull request.
Testing Instructions
Check if the automatic tests pass. Additionally, you could check what passes and how by going to the travis page.

Pull Request Test Coverage Report for Build 316

43 of 375 (11.47%)  changed or added relevant lines in 21 files are covered.
20 unchanged lines in 2 files lost coverage.
Overall coverage increased (+4.2%) to 41.588%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

fitbenchmarking/utils/fitbm_problem.py
0
1
0.0%

fitbenchmarking/utils/fitbm_result.py
0
1
0.0%

fitbenchmarking/fitting/mantid/main.py
0
2
0.0%

fitbenchmarking/fitting/plotting/plots.py
0
2
0.0%

fitbenchmarking/utils/user_input.py
3
8
37.5%

fitbenchmarking/fitting/prerequisites.py
0
8
0.0%

fitbenchmarking/utils/misc.py
13
21
61.9%

fitbenchmarking/resproc/visual_pages.py
1
16
6.25%

fitbenchmarking/fitting/mantid/externals.py
0
17
0.0%

fitbenchmarking/fitting/mantid/func_def.py
0
19
0.0%

Files with Coverage Reduction
New Missed Lines
%

fitbenchmarking/resproc/visual_pages.py
2
19.67%

fitbenchmarking/fitting/plotting/plot_helper.py
18
0.0%

Totals

Change from base Build 288:
4.2%

Covered Lines:
487

Relevant Lines:
1171

💛  - Coveralls


has_severity is displayed incorrectly in genotype-genotype interactions

This is going quite wrong.  The FYPO_EXT term IDs shouldn't be visible, we have the same ID inside and outside the "()" and
here's a percent sign at the end.
I spotted this in an interaction but I'll check for other cases.
https://www.pombase.org/gene/SPCC1020.02
spc7  rescued by   bub1   mitotic spindle checkpoint kinase Bub1   Phenotypic Suppression

This might be related: parts of the extensions from Canto are getting lost.
Here is the Canto annotation for the first row in the screenshot from the website.
The double mutant is "normal protein localization to kinetochore during mitotic interphase" extension: "assayed_protein bub3 | assayed_protein mad3".  The assayed_protein extensions are missing on the website.
https://curation.pombase.org/pombe/curs/682113d8f12b3fe4/ro/

I've fixed the code so that
has severity FYPO_EXT:0000001(FYPO_EXT:0000001)%

will be:
has severity high

after tonight's load.
I'm still trying to work out why the assayed_protein extensions are missing.

I'm still trying to work out why the assayed_protein extensions are missing.

I forgot that we do that on purpose: pombase/pombase-chado#1114


Update 0138-copy-list-with-random-pointer.cpp

previous solution not removed, just commented
adds a new solution that removes unecessary line 116: Node* newNode = nodes[h];

File(s) Modified: 0138. Copy List with Random Pointer
Language(s) Used: C++
Submission URL: _https://leetcode.com/problems/copy-list-with-random-pointer/submissions/1187260135/_

@lbricio Good addition to the list of solutions. Thanks for your contributions 👍


Matching Scores with Selecting Location (All, Ha Noi, Ho Chi Minh)

Please review. I deployed to http://matchingscores.meteor.com/

@jackiekhuu-work great progress. Let's talk about it and try to wrap it up.


Support new enclave type "ArtificialEnclave"

There are more and more non hardware-assisted enclave forms to support. For this kind of enclave, we uniformity call it as "ArtificialEnclave".

Ready to test.


Added social sharing provider : addthis

I have added the configuration for addthis social sharing. I have modified the_config.yml with the addthis hash. I have also created a folder called sharing-providers under _includes.
I don't see a custom folder under includes to add my custom sharing which I worked on here.
Shall I go ahead and add it ?

Thanks @pradeep1288 I'll take a look at this.
The custom folder is meant for user-defined custom overrides. It's a way for the user to edit/customize the JB source without editing them directly. This makes for easier upgrading. So maybe we can think about including user contributed customization files in a separate repo. As far as JB goes, it shouldn't ship with customizations - I was thinking of which sharing providers to add into the "official" supported sharing-providers folder.

Sure @plusjade. I will look around for what other sharing providers we can think of.


Add implementation to get output attributes from store query

Purpose
Add implementation to get output attributes from store query
Resolves #756
Goals
Add implementation to get output attributes from store query
Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email<EMAIL_ADDRESS>to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories
NA
Release note
NA
Documentation
NA
Training
NA
Certification
NA
Marketing
NA
Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? yes
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Samples
NA
Related PRs
NA
Migrations (if applicable)
NA
Test environment
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Learning
NA

Improve version of this PR is sent #757


determinePreferredLanguage - Second Language

Second language with determinePreferredLanguage and useStaticFilesLoader
I'm trying to get the correct language with determinePreferredLanguage. If I set one of the languages of the registerAvailableLanguageKeys as a First Option, there are no problems.
I found the solution of adding this line '*': 'en' to fix if my first option is not on the list. so works fine if my first option is 'ca' for example.
But if I choose another language not in the list (like 'ca'), and the second one like 'es' (in the list), i'm getting the ID of the strings. And if I remove the slash comments, and add the line  '*': 'en' (with the comma), I get always english even I set my second option to Spanish due to my first option is not on the list.
I don't know if I'm missing something, but I can not find the way to get determinePreferredLanguage working with more than 1 language preference.
My environment

version of angular-translate v2.8.1
version of angular v1.5.5

Steps to reproduce
$translateProvider
  .useStaticFilesLoader({
      prefix: 'https://example.com/translations/',
      suffix: '.json'
  })
  .registerAvailableLanguageKeys(['da-DK', 'de', 'en', 'es', 'fr', 'nl', 'sk', 'sv'], {
    'da_*': 'da-DK',
    'de_*': 'de',
    'en_*': 'en',
    'es_*': 'es',
    'fr_*': 'fr',
    'nl_*': 'nl',
    'sk_*': 'sk',
    'sv_*': 'sv'
  //  '*': 'en'
  })
  .fallbackLanguage('en')
//  .preferredLanguage('en')
  .determinePreferredLanguage()
  .useLoaderCache(true);

Expected behaviour
I expect to get Spanish as a default Language
Actual behaviour
I get Id's or English language.

The question is: What browser are you using and what are the locale settings. Client side detection is not as stable as also written in the documentation. Are all language files as well in place?
And also try again with some latest angular-translate version.
For a better diagnosis, a Plnkr would be helpful.

Hello,
I'm closing this issue due inactivity. We have asked for additional details, but you could not helped us. Therefore we close this issue as not reproducible.
If you still have an issue, please create a new issue because we cannot be sure to track closed issues.


Is there any difference or attention on microbosh manifest between openstack-kvm-ubuntu and openstack-kvm-centos

Hi all,
I'm try to deploy micro bosh use bosh-stemcell-2881-openstack-kvm-centos-go_agent-raw, but i got some strange errors #788 ,  following is my microbosh.yml that i had used it deploy microbosh with stemcell bosh-stemcell-2881-openstack-kvm-ubuntu-go_agent-raw successfully.
microbosh.yml:
---
name: microbosh

logging:
  # If needed increase the default logging level to trace REST traffic with IaaS providers. Default is info
  level: debug
  # Default location is <deployment_dir>/bosh_micro_deploy.log
  # file :

network:
  type: manual
  vip: <IP_ADDRESS>  #float IP you apply for micro bosh
  ip: <IP_ADDRESS>
  cloud_properties:
    net_id: bd60312e-246b-40eb-b3b9-b91d27a921de  #net_id of your VM
resources:
  persistent_disk: 20480 #it is very important,the volume size  connect to VM
  cloud_properties:
    instance_type: m1.medium
    availability_zone: szxts01-az

cloud:
  plugin: openstack
  properties:
    openstack:
      auth_url: http://<IP_ADDRESS>:5000/v2.0   #change it with your openstack ip
      username: lvguanglin   #openstack username
      api_key: lvguanglin   #openstack password
      tenant: CloudFoundry01     #the project of openstack
#      region: RegionOne
      default_security_groups: ["default", "default"]
      default_key_name: lv_microbosh
      private_key: /root/.ssh/lv_microbosh.pem   #change it with your keypair route.
      ignore_server_availability_zone: true

apply_spec:
  properties:
    director:
      max_threads: 3
    hm:
      resurrector_enabled: true
    ntp:
      - 0.north-america.pool.ntp.org
      - 1.north-america.pool.ntp.org

Is there any more configuration for bosh-stemcell-2881-openstack-kvm-centos-go_agent-raw ?
thanks.

As I mentioned in the last ticket "You either have to configure ephemeral disk on used flavor or increase root disk to such that Agent can partition it for swap and ephemeral data."
That configuration should be done in the OpenStack itself and not the manifest, since OpenStack holds the information about flavor sizing.

hi @cppforlife
thanks for your answer,i have config openstack falvor ephemeral disk size,and deploy microbosh successfully.
thanks.


FAQ link on token dumper page broken

Hey there,
The link on /tokendumper that goes to the FAQ with the text Read more about token dumper in our FAQ section doesn't work.
Currently, it points towards relative faq/#tokendumper per the href, which actually goes to https://steamdb.info/tokendumper/faq/#tokendumper, a non-existent page. I believe it should actually be /faq/#tokendumper, which points towards the token dumper section of the FAQ page.
Thanks,
Elliott

Fixed, thanks.


fix(build): main migration release

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


Documentation Effort

[ ] Docs need their own directory
[x] CLI
[ ] Env variables
[ ] Metrics
[ ] Lora support
[ ] Runbooks -- e.g, what to do at 2 AM when Pager Duty alerts and you're half asleep

https://github.com/helium/router/issues/507

Adding to this list:

[ ] Runbooks -- e.g, what to do at 2 AM when Pager Duty alerts and you're half asleep

In the short term, I'll add instructions based upon extraction of shell history from various production servers with any sensitive information elided, of course.  Most of this could go within each repo's docs subdirectory: router, packet-purchaser, etc. but open to suggestions.
Examples:

start/stop runtime via docker or docker-compose, etc.
create a snapshot
load from a snapshot
interrogate health of the system via some of the aliases; e.g., pp sc list for summary of State Channels
etc.

Draft PR for new router runbook: https://github.com/helium/router/pull/667


Dog status codes

Description
A command such as .http dogs would be implemented to visually show what different status codes are, with dogs.
Reasoning
Another fun way to learn status codes or refer them. And for non-cat people and dog lover ❤ .
Proposed Implementation

Make a group named http which would contain cat and dog nested commands.
Since dogs have some comes missing, we will use aiohttp and regex to get the status codes using commands.task which will run every 2 hours probably.
This would implemented in a similar way like .http_cat.

Would you like to implement this yourself?

[x] I'd like to implement this feature myself
[ ] Anyone can implement this feature

Since dogs have some comes missing, we will use aiohttp and regex to get the status codes using commands.task which will run every 2 hours probably.

Not sure how necessary this is since we can use the http module to see if the codes exist.
Besides that, I'd like to see this get implemented.

Since dogs have some comes missing, we will use aiohttp and regex to get the status codes using commands.task which will run every 2 hours probably.

Not sure how necessary this is since we can use the http module to see if the codes exist.
Besides that, I'd like to see this get implemented.


Added missing subdomain property to PostOrder Error Type

Added missing 'subdomain' property to Post Order Error class.

Cheers.


Is it possible to get job I'd after creating a job?

I want to have multiple users schedule jobs but I can't have them interfere with each other's jobs so could you get job IDs after creating a job? This is so users can cancel jobs and re add them again

By reading the code, it seems that enqueue_at returns a job object

can’t you use a custom id for the job?

Yes, a job object is returned when scheduler.schedule() is called.


Craig 762: Update forms needed to implement cluster opaque secrets

Updated forms needed to implement Cluster Opaque Ingress Secrets as needed in this CRAIG issue. The new version of CRAIG in issue 762 needs this version of react assets to run. @jvallexm

@jvallexm @Chris-Springstead @Pseusco Updated corresponding PR in icse-react-assets here

@terechc since you're making changes to the forms you need to make changes to the storybook


Implement DirtyFlag as naked AtomicBool

This is an attempt at fixing the Arc<AtomicBool> work I did earlier. I believe this is more in-line with what @Ralith had in mind (see https://github.com/not-fl3/good-web-game/pull/23). The idea is that each thread would have its own dirty_filter rather than copying a reference counter to a single dirty_filter.
I took implementation hints from this rust-lang thread:
https://users.rust-lang.org/t/struct-with-atomic-fields-still-require-arc-and-clones/21348/2

This looks good, I'm merging it now. If we decide to remove the dirty flag entirely it probably doesn't matter much what it looks like and from what I've read this seems to be an improvement for now.


debounce text input slightly

By debouncing the text input we give chrome a bit more time to do it's rendering, it feels a lot better in chrome and the impact is minimal in firefox.

nice trick, goes from unusable to frustrating but usable


Footnote numbering problem

When I start to create my second footnote, no matter what it is called (highlighting dummy words and create the hyperlink with code), e.g. #fnote_b or #fnote_second, it fails with error message named: "TypeError: details is not iterable"
However, my first footnote with hyperlink code #fnote_a and with reference #fno_a both work with no probelm
May I ask what happened and how can it be solved?
thank you in advanced

Hi @yecko111, thanks for the feedback. Would you be happy to share this document with me or, if not, maybe share another document that reproduces the same problem? (email: davidrowthorn_at_gmail)

https://docs.google.com/document/d/1MQYZaFEVtQm2n8acdNEk6vrDqDiFNekrgb_mXcIF8lY/edit
Here is the image from my screen when I would like to footnote the (b) part
https://imgur.com/a/HWrAPnQ#cTfEfaW
Thanks

This was a confusion between labels and references.


Submit from Button

I think we had this "issue" several times (e.g., #351). Forms can be submitted, however, the standard submit is also the standard API submit - and not the usual "user-submit", which is invoked, e.g., via clicking a button.
Nevertheless, the specification states that button names will only be submitted if the button was pressed. This makes sense and it provides the possibility for applications to find out what lead to the current action. However, some websites may use this to perform some logic or protect against web scraping.
Currently, it is possible to "simulate" a button click by invoking the "DoClick" action. However, as this is a standard DOM action it has several drawbacks

It is only available (for forms) on some elements (e.g.,  IHtmlButtonElement)
It does not return a Task
We do not know that it actually triggers a form submission

The idea is to provide another extension method that invokes the form from arbitrary buttons. If the form is not in any relation to the button then nothing will be returned. The button will be handed over from its ID (or should it be a selector string?) or directly as an element.
As all the other form submission extension methods the result will be a Task<IDocument>.

See PR #376.


debugging and logging not work at MainActivity.java

Steps to Reproduce
I try platform specific code with method channel.
I run the app at debug mode.
I put breakpoints to MainActivity.java, to onCreate, onResume, onPause, onNewIntent, or my invoked method, no one is matching.
But actually I could get correct response to my methodChannel.invokeMethod call, so android platform specific code side is actually working. Also my logs are seen at debug console. But I cannot debug android side. Why debug is not working?
c:\ozel\flutter\flutter>flutter doctor -v
[√] Flutter (Channel master, v0.4.3-pre.70, on Microsoft Windows [Version 10.0.16299.402], locale en-US)
    • Flutter version 0.4.3-pre.70 at c:\ozel\flutter\flutter
    • Framework revision<PHONE_NUMBER> (5 hours ago), 2018-05-09 19:30:17 -0700
    • Engine revision 11d6da3cd9
    • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at c:\Users\guyulmaz\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = c:\Users\guyulmaz\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1
    • Flutter plugin version 24.1.2
    • Dart plugin version 181.4668.60

[√] Connected devices (2 available)
    • HUAWEI VNS L31            • 4TE7N16A28005855 • android-arm64 • Android 7.0 (API 24)
    • Android SDK built for x86 • emulator-5554    • android-x86   • Android 8.1.0 (API 27) (emulator)

• No issues found!

Same issue here, using vscode.
[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.0 at /home/{user}/dev/flutter
    • Framework revision 5391447fae (4 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /home/{user}/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /snap/android-studio/69/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 3.2)
    • Android Studio at /snap/android-studio/69/android-studio
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)


Update Tailwind CSS

I know "html" is deprecated but it's the only way to make this thing work. If we can do this with "dom" tag, please let me know.


[e2e]: maven workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7394022574
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: schedule
Branch: main
Date: Wed Jan  3 06:05:15 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7406103782
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: schedule
Branch: main
Date: Thu Jan  4 06:05:04 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7418580614
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Jan  5 06:11:24 UTC 2024
Tests are passing now. Closing this issue.


Do not install isal automatically on aarch64

Decompressing is slower than native zlib with ISA-L.
I tested this on an aarch64 machine with ARM Cortex-A53 cores. (Allwinner A64 olimex olinuxino board).
Compression is 2x faster. But decompression was about 30% slower. That is not a clear win. Unlike x86_64 where it decompresses 2x faster and compresses 5x faster.

Thanks for testing this, LGTM!


Help with using multiple pages

Hi, and thanks for the great work with esphome-display-panel!
I use it a lot, and find it very easy to use.
Now I am experimenting with display pages, and as a starting point I used the following example code you have provided in tft-office. I think I understand how to use the int pageNumber to do what I want, but I fail to add the panels I want to use in the following vector:
std::vector<std::vector<DisplayPanel*>> pages = {     {         // Page 0. The only page at the moment.         &contDownPanel,         &datePanel,         &dayPanel,         &contUpPanel,         &timePanel,         &insideTempPanel,         &insideLabelPanel,         &outdoorLabelPanel,         &outdoorTempPanel,         &butterflyPanel     } };
As I understand it, the objects above is stored in the vector pages[0].
How would the code look to insert another list of panels inte the next available position pages[1]?
My C++ is at a beginner level and I don´t understand the vector created here...
I would really appreciate your help with this.

A part of this video https://www.youtube.com/watch?v=VQ3LSnCgpeE ResinChem Tech used multiple pages in one of his projects. See his his .h file within
https://github.com/Resinchem/Arylic-Amp-MQTT/tree/main/sirius-tft-touch-add-on
Hopefully that helps.
Kevin

Thanks!
That got me in the right direction.
Now, I can do even more with my displays. Great, and once again, thanks!


feat: define Descriptive.Tree

Define trees in the sense of descriptive set theory. Deduce SetLike from a more general instance about complete sublattices of power set lattices.
Taken from https://github.com/sven-manthe/A-formalization-of-Borel-determinacy-in-Lean

I didn't provide more API yet to keep the PR short for review, but could change this of course. I don't want to create too many dependent branches (in theory, the code using this definition is public in the mentioned repository)

I see. At the moment, you have basically no API for the new definition. I think that probably errs on the side of "too little". Is there a modest amount of API you can sensibly add? If not, can you provide some pointers to where this is used? If I am to review this PR, looking through several thousand lines of code is not so nice.

I'll try to add some API later. About pointers: The basic API is in the file https://github.com/sven-manthe/A-formalization-of-Borel-determinacy-in-Lean/blob/master/BorelDet/Tree/trees.lean


when building with WHAT=pkg/virtctl binary permissions are wrong

"x" flag is not set:
$ ll _out/cmd/virtctl/*
lrwxrwxrwx. 1 ylifshit ylifshit    39 Apr 25 10:18 _out/cmd/virtctl/virtctl -> virtctl-v0.4.1-15-g95d0d6e7-linux-amd64
-rw-r--r--. 1 ylifshit ylifshit 47956 Apr 25 10:18 _out/cmd/virtctl/virtctl-v0.4.1-15-g95d0d6e7-darwin-amd64
-rw-r--r--. 1 ylifshit ylifshit 47990 Apr 25 10:18 _out/cmd/virtctl/virtctl-v0.4.1-15-g95d0d6e7-linux-amd64
-rw-r--r--. 1 ylifshit ylifshit 49402 Apr 25 10:18 _out/cmd/virtctl/virtctl-v0.4.1-15-g95d0d6e7-windows-amd64.exe

You will have to use WHAT=cmd/virtctl, so pkg and not cmd. Note that the dockerized builder is pretty agressive right now to provide consistency. So if you call WHAT=cmd/virtctl, you will have the virtctl binaries in _out.
We did not invest more, since the plan is to switch to bazel, which will make that more efficient.

Closing this according to the previous comment.


Add VNC server to CALIBRATION dockerfile

Camera calibration module has a gui. It would be easiest to vnc into the container, to use it.

Or this would work :
https://github.com/balena-io-examples/jetson-nano-x11


Bugfix to Access_Request_Generator method _prepare_targets used in from_list_of_tuples for IPv6

SecureChange 17.1 API expects cidr in address an no netmask for ipv6 networks
Tufin might fix it in the API some time. Then this fix will rather be a bug. But as the API is not versioned this results in unknown behaviour.
Example
<destinations>
    <destination type="IP">
        <id/>
        <ip_address>2a03:1e80:a01::</ip_address>
        <netmask>96</netmask>

Leads to
?xml version="1.0" encoding="UTF-8" standalone="yes"?>FIELD_VALIDATION_ERRORInvalid value for field: Required Access:  (Invalid IP network 2a03:1e80:a01::/96)

Hi Mario. Thanks for the PR. We are currently working on a more robust solution to this issue.


angular 2.0.0-beta.12

I'm using angular2 version 2.0.0-beta.12
In this version the module 'angular2/angular2' is not exists, and handsontabe.ts is trying to get stuff from that module and fail
import {OnInit, OnDestroy, Directive, EventEmitter, ElementRef} from 'angular2/angular2';
should change to
import {OnInit, OnDestroy, Directive, EventEmitter, ElementRef} from 'angular2/core;

Everything should be working with<EMAIL_ADDRESS>now.


Make lvgl tick more accurate.

Hi @embeddedt,
I am still using v6.1, so I am not sure this PR is suitable for latest version. I can rebase this to master branch if you think the latest code needs this PR.
(delta - one_ms) is the error we missed before, I add 1ms to lv_tick_inc() when the sum of error exceeds 1ms.

I am still using v6.1

Any plans to move to v7 (or v8 when it's ready)?
We don't really update the v6 branches any more with new features and fixes, so you are probably missing a few things.

Hi @amirgon,
We may move to v8 later, but no plan for v7.
I have rebase this PR to master #130 .

Closing in favor of #130


What's with the on prefix?

This library looks very promising! Can you explain why you prefix all your optics with on in all the docs and examples? This confused me (and others) at first, suggesting it was a handler of some kind.

Yes that's exactly it @blasterpistol .
Both event handlers and optics prefix their names with on, but for handlers it's followed by a verb (click, blur, select, submit, ...), while for optics it is followed by a noun (user, preferences, age, ...).
It is only a convention, you could name them something like userOptic, but it's important that the name carries this inflection to avoid having to put it on the name of the focused value.
const user = onUser.get();
// good

const userValue = user.get();
// ugly imo

Not sure I fully understand the reasoning. Adding an on prefix to a handler makes sense because grammatically it reads like "on click do such and such". That doesn't really follow for nouns... "on user do something", does it?

For event handlers, just like you said it means "on event do something" while for optics it means "focused on something".
If it's followed by a noun you know it's the latter, if it's a verb you know it's the former.
I agree it is confusing since we have the same prefix but with a different meaning depending on if it's an optic or an event handler.
I don't have strong opinions on this naming convention, I'm open to suggestions.

Imho, the **onSomething convention is already well-settled for event handlers and the library should pick a different one. I'd personally use the suffix Optic like it was suggested above.

I've updated the docs to exclusively use the Optic suffix, it's a bit longer but more explicit !


Upgrade to Vite 4 + Rollup 3

Hi there,
Just started playing with this boilerplate and tried to update to vite 4. Looks like there are some configuration changes that break.

Related to https://github.com/vitejs/vite/pull/9485?

When I tried using vite 4, I ran into this: Vite4 build does not respect the assets path #11424


Outreachy Applicant

Hi,
My name is Mohamed Hassan, an outreachy applicant.
I am interested in the project and would like to be assigned an issue or task.
Regards.

Thanks for reaching out, @M0Hassan. Let's keep all the general chat communication on gitter at https://gitter.im/zarr-developers/outreachy-contributors-dec-2022. Welcome to Zarr & Outreachy!


Data Dump Ordering

The rake civic:dump task needs to start respecting foreign key ordering on table copy statements.

Done. 29d3403a14d61fbc3e85ce98d8e42710bf809b03

This didn't actually quite work, there were some permissions issues when we went to deploy - reopening.


Create Card.js Tests

This includes tests for the components under Thing.js, like thingheader and thingfooter.

This was refactored to Card.js

The card itself doesn't really need tests


v0.1.1

:robot: I have created a release beep boop
0.1.1 (2024-10-24)
Dependency updates

bump sentry/node (29e6e02)
upgrade @sentry/node & dev deps, move log4js to peerDeps (9eefef7)

Documentation

add diagram (eee88ed)

Maintenance

add manuall publish dispatch (11d707e)
bump packages, workflows & configs (98d3ac3)
chore: update job source name (8ee188d)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.1.1
:sunflower:


In the paper size customization, the unit is still in inches

Changed from View > Unit to Millimeter
There are still parts that are displayed in inches
There was talk about this a long time ago, but I think it's still the same
Is there any update plan for this fix?

Yes, this is very annoying

See 24.4.6.


ORC-1191: Updated TLC Taxi Benchmark Dataset

What changes were proposed in this pull request?
Update to new NYC TLC Yellow Taxi dataset

https://www1.nyc.gov/assets/tlc/downloads/pdf/data_dictionary_trip_records_yellow.pdf
replace non-existent CSV URLs with new Parquet URLs
update file format in referencing benchmarks
change util that converted from CSV string -> decimal to convert from parquet double -> decimal

Why are the changes needed?
As of 2022-05-13, NYC TLC switched from CSVs to Parquet files. They also changed their schema slightly. Now the CSVs are no longer publicly available, so to have a replicable benchmark suite, we should refer to the new version.
How was this patch tested?
This does not change functionality or tests (except for the updated taxi dataset).
java -jar hive/target/orc-benchmarks-hive-1.9.0-SNAPSHOT-uber.jar decimal data
...
# Run progress: 50.00% complete, ETA 00:00:02
# Fork: 1 of 1
# Warmup Iteration   1: [WARN ] Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
122173.181 us/op
# Warmup Iteration   2: 116629.135 us/op
Iteration   1: 118590.860 us/op
Iteration   2: 116885.746 us/op
Iteration   3: 117235.593 us/op
...

BTW, I saw your comment on JIRA which is not a part of this PR description.

NYC Taxi dataset used in benchmarks no longer exists as CSV's; has been replaced with Parquet

Actually, I used the downloaded one. So I didn't realized that. In that case, I agree with you to download Parquet data.

Shall we spin off the following at least as another PR? I can help you by merging it first.

Minor git and docs changes: java/bench/data and README.md
A typo fix in help message: convert -> generate

Please add the following example in your new PR description.
$ java -jar core/target/orc-benchmarks-core-*-uber.jar generate data --help
usage: convert <root>
 -c,--compress <arg>   List of compression
 -d,--data <arg>       List of data sets
 -f,--format <arg>     List of formats
 -h,--help             Provide help
 -s,--sales <arg>      Number of records for sales

Please rebase and use different JIRA ID because https://github.com/apache/orc/pull/1142 is merged as ORC-1189 already.

#1143 is merged.

@dongjoon-hyun this is ready for review when you get a chance

Thank you. Could you update the PR title, @mwlon ?

@dongjoon-hyun done.

I'll resume the verification now.

Merged to main/1.8/1.7.

Here is the PR for orc.none-related failure.

https://github.com/apache/orc/pull/1144


OpenTelemetry exporter use out-dated attribute keys

In what area(s)?

/area runtime
What version of Dapr?
All versions up to 0.11
Expected Behavior
OpenTelemetry exporter uses updated attribute keys.
Actual Behavior
We observed in https://github.com/dapr/docs/pull/870 that Dapr uses attribute keys from older OpenTelemetry spec. Samples of a few mismatches:

db.type is now db.system
db.url is now db.connection_string
db.instance is now db.name
There may be more

See latest OpenTelemetry spec .
See current attribute keys in Dapr
Steps to Reproduce the Problem
Go through the documentation in https://github.com/dapr/docs/pull/870 and see that the statestore calls are not showing correctly.
Release Note

RELEASE NOTE: FIX Update OpenTelemetry attribute keys to the latest spec

cc @youngbupark @yaron2

@msfussell @yaron2 I marked this issue as P1. we should fix it to use OTEL collector.

I'm working on fixing this to unblock #1080


Can not add native-base to CRNA and expo project (UnableToResolveError undefined, The development server returned response error code: 500)

hey everyone. i wrote reply to this issue but i guess nobody care with this issue because of it looks like solved. So i am creating new issue. Sorry if i am wrong.
#746
I created app via create-react-native-app.. I installed exactly 2.1.0 version of native-base. I will share my package.json... Everything is ok. But when i import nativebase, the app crashes. The error is: "UnableToResolveError undefined". It is enough just calling native-base for crashing.
here is my package.json:
`{
  "name": "movies",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "~18.0.0",
    "react-native-scripts": "0.0.50",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js --watch"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^5.0.0",
    "expo": "^18.0.3",
    "native-base": "2.1.0",
    "react": "16.0.0-alpha.12",
    "react-native": "^0.45.1"
  }
}`

here is my app.js:
`import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import {
  Button,
  Icon,
} from 'native-base';

export default class App extends React.Component {
  async componentWillMount() {
        await Expo.Font.loadAsync({
          'Roboto': require('native-base/Fonts/Roboto.ttf'),
          'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
        });
    }
  render() {
    return (
      <View style={styles.container}>
        <Text>Opennasdas up App.js to start working on your app!</Text>
        <Text>Changes you make will automatically reload.</Text>
        <Text>Shake your phone to open the developer menu.</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});`

and screenshot of error:

and when i restart my project on expo/xde, the error is:

@escalepion Please do check the compatibility here


Add default value to optional handshake request field

Why
Before https://github.com/replit/river/pull/131, we used to cast undefined fields to null over the wire (in msgpack). Pydantic throws if there's an Optional field without a default value and not specified in the data dict.
Hopefully this Repl explains what's going on<EMAIL_ADDRESS>What changed
Set default value for ControlMessageHandshakeRequest['metadata'].
I think this fix is better than reverting https://github.com/replit/river/pull/131, it's also a fix forward for existing clients. That said we should think about this a little more deeply, because in python-land we have the same problem where Optional fields can end up being null over the wire.
Test plan
See repl above.

I think this fix is better than reverting https://github.com/replit/river/pull/131, it's also a fix forward for existing clients. That said we should think about this a little more deeply, because in python-land we have the same problem where Optional fields can end up being null over the wire.

So turns out we have exclude_none=True on our dump https://github.com/replit/river-python/blob/beaf4a725e07b8ca3a28d055adced62c30e55c54/replit_river/messages.py#L47. While we're in a better spot than i expected, there's one edge case where this is problematic, when a type (in json schema) is a union of string (or any other type) and null, we'll omit the field in the python implementation :cry:

Maybe the answer is to ban null from the schemas


'client.presence.subscribe' get other clients' uid

client.getUid()

client.presence.subscribe((username, isLoggedIn) => {
  // handle new user
})

any possible to get other clients' uid? after client is connected and disconnected?

I’m sorry I don’t understand the question. Client.getUid is just a UID generator, it doesn’t have anything to do with the client session or presence.


Remove travis

Just be aware there are more travis files in the repo, so this pull request shouldn't close the #10 issue.

Just be aware there are more travis files in the repo, so this pull request shouldn't close the #10 issue.

Your right but these .travis.yml files are in all cores/ which looks to me like purely copy and paste of the emulators which I didn't want to mess with


main.jsbundle does not exist. This must be a bug with "react-native": "0.63.4"

I figured out main.jsbundle does not exist. This must be a bug with issue after upgrading react native from 0.63.3 to 0.63.4 and it was solved,
but now when I tried to Archive a build the same error appears.
when I tried to see the main.jsbundle file from the path generated using archive build using cmd to see if it's exist, the path is true, but the file doesn't exist.
I thought that I did a wrong thing in my project, by adding a wrong code or something else in Xcode, then I created a new react-native project and tried to Archive a build, but the same error appears.
here is the system info:
    OS: macOS 11.2.1
    CPU: (8) arm64 Apple M1
    Memory: 126.23 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.7.0 - /opt/homebrew/bin/node
    Yarn: 1.22.10 - /opt/homebrew/bin/yarn
    npm: 7.4.3 - /opt/homebrew/bin/npm
    Watchman: 4.9.0 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 23, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>42882
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_275 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.4 => 0.63.4
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

thanks 🙏

May you try with this?
#29351 (comment)

@teamzz111, yes I tried it, the same error

@teamzz111, same for me too tried #29351 (comment) too still no change :(

Are you using TS?
May you check your Bundle Config in Xcode -> BuildPhases - Bundle React Native Code

@teamzz111 no I am using JS

We have the same issue. A regular build works, an archive build fails.

same here. regular build works, archive fails !
main.jsbundle does not exist. This must be a bug with'
Please help : )

I ran into this in a mono-repo setting. The solution I found is here https://github.com/react-native-community/cli/issues/656#issuecomment-601097688

See https://github.com/facebook/react-native/issues/31094#issuecomment-796743154

any update goes same thinks


No rumble after MGBA Update

Hi,
i installed the latest update yesterday in hope Pokémon Pinball on GBA will work flawless with it. But in Emustation i choosed Auto Core ore Rumble MGBA but that have no effect. The option in game is outgreyed. My Device is RG351P
Thank you, and thank your for your great work.

I was able to play this game with rumble working without issue on my end.  Did you do any updates via retroarch after you did the ArkOS update?

I was able to play this game with rumble working without issue on my end.  Did you do any updates via retroarch after you did the ArkOS update?

Hallo, no only the updates with the arkos Update script.

Hallo, no only the updates with the arkos Update script.

Okay after fresh install no rumble option in mgba. Pokémon Pinball on gbc let me set the strentgh of rumble but no rumble exists.

Okay after fresh install no rumble option in mgba. Pokémon Pinball on gbc let me set the strentgh of rumble but no rumble exists.

I had tried Pokemon Pinball on GBA.  I just tested Pokemon Pinball on GBC and it rumbles for me when I select the MGBA_Rumble core.  Did you make sure to select this core as it's not the default core for GB/GBC.

I had tried Pokemon Pinball on GBA.  I just tested Pokemon Pinball on GBC and it rumbles for me when I select the MGBA_Rumble core.  Did you make sure to select this core as it's not the default core for GB/GBC.

I set mgba rumble for Pokémon Pinball on gbc and rumble work. But on gba the rumble option is still outgreyed.

I set mgba rumble for Pokémon Pinball on gbc and rumble work. But on gba the rumble option is still outgreyed.

What version of Pokemon Pinball are you trying for GBA?  The USA version of Pokemon Pinball rumbles fine for me.

What version of Pokemon Pinball are you trying for GBA?  The USA version of Pokemon Pinball rumbles fine for me.

Its the european Version and the rumble works while installing 1.4 mid december. But Sound was stuttering and fps are bad.

Its the european Version and the rumble works while installing 1.4 mid december. But Sound was stuttering and fps are bad.

Ok the US rom have outgreyed rumble options too,

Ok the US rom have outgreyed rumble options too,

Have updated the new install yet?

Have updated the new install yet?

I think I found your issue.  Go to the retroarch menu by hitting select+x while in game, then scroll down to options, hit A.  Then scroll to the bottom to Enable Game Boy Player Rumble and make sure it’s on.  If it wasn’t on, click a on it to turn it on, then hit b.  Then hit select+start twice to exit, then go back into the game and check to see if it rumbles now.

I think I found your issue.  Go to the retroarch menu by hitting select+x while in game, then scroll down to options, hit A.  Then scroll to the bottom to Enable Game Boy Player Rumble and make sure it’s on.  If it wasn’t on, click a on it to turn it on, then hit b.  Then hit select+start twice to exit, then go back into the game and check to see if it rumbles now.

Yes i have updated after Reinstall. And yes now the Rumble works but the Music stutters and the rumble is not exact. Some framedrops exists too.

Yes i have updated after Reinstall. And yes now the Rumble works but the Music stutters and the rumble is not exact. Some framedrops exists too.

I don't seem to have these issues on my end.  Make sure you don't have Frameskip enabled in the options menu while in game.

I don't seem to have these issues on my end.  Make sure you don't have Frameskip enabled in the options menu while in game.

Frameskip is disabled and everything is stock. I have changed only the rumble feature. You can close this here. My problem was solved and the other problems are only with pokemon pinball gba.

Frameskip is disabled and everything is stock. I have changed only the rumble feature. You can close this here. My problem was solved and the other problems are only with pokemon pinball gba.


about timingPhases.tcp

Summary

Simplest Example to Reproduce

//request.js Source code
The TCP time in the source code is  ‘tcp: self.timings.connect - self.timings.lookup’，
but The TCP time in the document is ‘tcp: self.timings.connect - self.timings.socket’

source code：
941  response.timingPhases = {
942        wait: self.timings.socket,
943        dns: self.timings.lookup - self.timings.socket,
944        tcp: self.timings.connect - self.timings.lookup,
945        firstByte: self.timings.response - self.timings.connect,
946        download: self.timings.end - self.timings.response,
947        total: self.timings.end,
948      }

API document:
timingPhases Contains the durations of each request phase. If there were redirects, the properties reflect the timings of the final request in the redirect chain:
wait: Duration of socket initialization (timings.socket)
dns: Duration of DNS lookup (timings.lookup - timings.socket)
tcp: Duration of TCP connection (timings.connect - timings.socket)
firstByte: Duration of HTTP server response (timings.response - timings.connect)
download: Duration of HTTP download (timings.end - timings.response)
total: Duration entire HTTP round-trip (timings.end)

Expected Behavior

Current Behavior

Possible Solution

Context

Your Environment

software
version

request

node

npm

Operating System

|``

I want to know which one is right.


Improve UI build performance

It is taking too much time to build image locally. UI build script does not cache npm dependencies, so make ui-image takes few minutes on every run. We should use docker builder pattern to improve it.

Done.


Model Reference Data Types not showing

The Data Type field is blank when a model reference type is displayed - see screenshot for one that points at a Terminology

The JSON coming through is:
            "dataType": {
                "id": "802daee3-3a30-41b0-8651-53d90cff2207",
                "domainType": "ModelDataType",
                "label": "Admission Method",
                "model": "6e1d4447-cafc-40e3-9ace-940ee529866a",
                "breadcrumbs": [
                    {
                        ...
                    }
                ],
                "modelResourceId": "15ec0990-6fea-4f05-8c86-137f8c15f82e",
                "modelResourceDomainType": "uk.ac.ox.softeng.maurodatamapper.terminology.Terminology"
            }

@olliefreeman should modelResourceDomainType just be Terminology?

@jamesrwelch I don't have an example of a ModelDataType type and can't see how I can create one in the UI. Do you have an example or a way for me to replicate?

@pjmonks Create a new data element, while doing that, create a new data type that points at a terminology, codeset or reference data model - they're all implemented in the same way - as a ModelDataType

@jamesrwelch I'm having trouble replicating these steps, I can't seem to create a Terminology/Code Set/Reference Data type. This is my request:
http://localhost:8080/api/dataModels/451f5897-ee55-41ac-97b9-49ed25b45bef/dataTypes

{
    "label": "Test Type",
    "description": "",
    "organisation": "",
    "domainType": "TerminologyType",
    "referenceDataType": {
        "id": ""
    },
    "referenceClass": {
        "id": ""
    },
    "terminology": {
        "id": "62ff5306-7aef-4a81-ad15-338db7cc1165"
    },
    "classifiers": [],
    "enumerationValues": [],
    "metadata": []
}

But I get a 422 response back:
{
    "total": 1,
    "errors": [
        {
            "message": "Cannot bind DataType with unknown domainType [TerminologyType]"
        }
    ]
}

Ok, it looks like this has been updated, and the JSON should now look like:

organisation was never needed.
and yes this was updated ages back when we introduced it,
as to the original question yes it should just be Terminology .. i'll need to check why you're getting the FQDN

it should def only be the simple name,
also you cant create ModelDataTypes to other DataModels at the moment...i cant remember why we made this choice

i dont actally know where you got the FQDN from i cant see it being set like that anywheere in the code

Ok, confirmed that the FQDN was the fault of my importer.  I've fixed that, so yes, modelResourceDomainType is coming back as Terminology and modelResourceId is needed too.


DW added a sample using CIMRasterStretchColorizer

Adds a new sample showing how to create a CIMRasterStretchColorizer.
Updated the readme to add extra example and screenshot.

Thanks much for your contribution, I added your sample code.


Duplicate rule names in at-rule-no-unknown message

Hi there,
I found a bug that there are duplicate rule names in the message of the at-rule-no-unknown rule.
Reproduction
Run the following commands on your shell:
# Install the packages
echo {} > package.json
npm i stylelint stylelint-scss
npm ls --depth 0
#=> /tmp/reproduction
#=> ├──<EMAIL_ADDRESS>#=> └──<EMAIL_ADDRESS>
# Prepare the config file
cat <<EOF >.stylelintrc.yml
plugins:
  - stylelint-scss

rules:
  at-rule-no-unknown: null
  scss/at-rule-no-unknown: true
EOF

# Preare the test file
echo '@unknown {}' > test.scss

# Run
npx stylelint test.scss
#=>
#=> test.scss
#=>  1:1  ✖  Unexpected unknown at-rule "@unknown" (at-rule-no-unknown)   scss/at-rule-no-unknown

# Run with JSON format
npx stylelint test.scss -f json
#=> [{"source":"/Users/masafumi.koba/tmp/foo2/test.scss","deprecations":[],"invalidOptionWarnings":[],"parseErrors":[],"errored":true,"warnings":[{"line":1,"column":1,"rule":"scss/at-rule-no-unknown","severity":"error","text":"Unexpected unknown at-rule \"@unknown\" (at-rule-no-unknown) (scss/at-rule-no-unknown)"}]}]

Here are the incorrect messages:
# In text format
Unexpected unknown at-rule "@unknown" (at-rule-no-unknown)

# In JSON format
Unexpected unknown at-rule "@unknown" (at-rule-no-unknown) (scss/at-rule-no-unknown)

I think we expect no  (at-rule-no-unknown).
Environment
$ npm version
{
  npm: '6.14.5',
  ares: '1.16.0',
  brotli: '1.0.7',
  cldr: '37.0',
  icu: '67.1',
  llhttp: '2.0.4',
  modules: '83',
  napi: '6',
  nghttp2: '1.40.0',
  node: '14.3.0',
  openssl: '1.1.1g',
  tz: '2019c',
  unicode: '13.0',
  uv: '1.37.0',
  v8: '8.1.307.31-node.33',
  zlib: '1.2.11'
}

Related code
https://github.com/kristerkari/stylelint-scss/blob/f54d9861e35891312bda98afe2404a993a4262e0/src/rules/at-rule-no-unknown/index.js#L32-L34
https://github.com/stylelint/stylelint/blob/a8042e7192cad993081cf982901948dbd5004048/lib/utils/ruleMessages.js#L23-L29
https://github.com/stylelint/stylelint/blob/a8042e7192cad993081cf982901948dbd5004048/lib/rules/at-rule-no-unknown/index.js#L16-L18

This is an easy fix, so I've opened a PR #481.

@kristerkari Thank you! 😊


forgejo: add pyrox0 as maintainer, nixos/forgejo: fix builtin ssh conditional, replace GITEA_ prefix in env with FORGEJO_

New attempt of #306457 (in coordination with @pyrox0):

environment variable cleanup (GITEA_ -> FORGEJO_)
fixes/closes #306205 (ssh conditional)
@pyrox0 as maintainer

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Ah yes, of course there is a nixfmt merge conflict because the HEAD of this PR is a few days behind.
One moment please^^

@ofborg build forgejo.tests forgejo-lts.tests


Allow Style/WordArray to match words with non-whitespace characters

Allow Style/WordArray cop to match words that include non-whitespace characters. Before this change, words could only include letters, digits, underscores, and hyphens. After this change, words can include any non-whitespace characters. The word regex now uses the \P{Z} character class, which matches any non-whitespace character.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

I'm OK with the proposed change, but I'm wondering if we shouldn't make this configurable as it will result in quite a few new offenses for our end users. @rubocop/rubocop-core Any thoughts?

Yeah, I'm also primarily concerned about the impact on users. Moreover, the name of this Cop is Style/WordArray, which includes the word "Word"' not "Element"' I'm not confident whether it’s appropriate to consider something like Department/Cop (units containing /) as a "Word" in this context.

I actually started this PR exactly because some string containing slashes were not matched by Style/WordArray. While this change may result in a number of offenses on existing code, they should not have any further impact, as it's only about syntax.
Perhaps we could introduce a configuration or even a separate cop for "extended" word arrays?

Yeah, I think at the bare minimum we need a configuration whether to consider spaces in words or not. But a new cop is also an option, as I'd be wary to add nuances to something as simple as "word".

So, what are we doing here - config option or a new cop? @rubocop/rubocop-core Your opinion on the topic would be welcome!

My concern here is that we may end up with situations where users configure the "wrong" one of WordRegexp and ExtendedWordRegexp without realizing the use of it. It'd be best to only have a single configuration but I'm not exactly sure how we can do this. @bbatsov any thoughts?

Yeah, I share your concerns and that's why I haven't pulled the trigger on this PR yet. I've been thinking that perhaps all we need is a bit of documentation for people to update the existing regexp accordingly if they need to use extended words.
We can even have it commenting out in the default config or something like this.


abs path in Makefile

Hi @ckkashyap
I try to build project under Mac, and found errors,
in kernel/Makefile there are some abs path:
libcore.rlib:
        rustc --crate-type lib --target $(SOURCE_ROOT)/x86_64-avery-kernel.json /Users/kashyap/Documents/rust-nightly/src/libcore/lib.rs --crate-name core

``shell
RUST_ROOT=$(HOME)/Documents/RUST
we'd better remove this from Makefile also,
since we have this in Makefile,
```shell
LD=$(LINKEDITOR)
AR=$(ARCHIVE)

done


Setting dry-run as default action.

Also add --delete flag to clearly ask for deletion

Thanks, but I'm not going to change the default behavior. Too many systems already depend on it to just run as is. Besides that I don't think dry-run should be the default action. It would be like rm file would require an additional parameter to actually delete a file or docker rm container to require an additional parameter to delete a container.

Thank you for your answer.
Yes based on the fact that many system already use it as is , it do not seems to be a good idea to change it :)
By the way rm filedoes require an additional parameters to actually delete a file ;)
Anyway , thank you for the great script !


Mojo::IOLoop::Subprocess deadlock

Mojolicious version: 7.13
Perl version: 5.22.2
Operating system: Slackware Linux 14.2 64-bit

I am trying to use Mojo::IOLoop::Subprocess in a Mojolicious application to serve certain long running requests that would otherwise block the event loop. While this seems to work fine at first, concurrent requests quickly lead to stuck subprocesses and a complete lock up of the web app.
The reason for this seems to be that Mojo::IOLoop::Subprocess will run into a deadlock when two or more subprocesses are started at the same time and run for more than 15 seconds. The following example reliably reproduces the deadlock on my system, with the subprocesses being stuck in write and the parent process being stuck in waitpid:
#!/usr/bin/perl

use Mojo::Base -strict;
use Mojo::IOLoop;

# long running worker, returning 1MB data
sub worker {
    say "subprocess sleeping 20 seconds, causing a timeout";
    sleep 20;
    say "done sleeping";
    return 'M' x 1048576;
}

# start concurrent workers
Mojo::IOLoop->delay(
    sub {
    	my ($delay) = @_;
    	Mojo::IOLoop->subprocess(sub {worker;}, $delay->begin);
    	Mojo::IOLoop->subprocess(sub {worker;}, $delay->begin);
    },
    sub {
    	say "unexpectedly, this actually worked";
    }
)->wait;

Besides not ending up in a deadlock, it would be nice if the subprocesses had an adjustable timeout instead of the Mojo::IOLoop::Stream 15 seconds default.

Thank you for this excellent report, the problem should be fixed now.


Integration broken

Add-on stopped working, getting 200 response OK with the HTML source code returned back. Any ideas?

I see you closed it, but it’s still broken for me. Is there an update or were you able to fix it?

I ended up logging into the adt web portal and updating my cookie value in hassio


Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.

Hello there. I'm trying to use redux-saga in my project from example, but every second iteration redux throws an exception
condition from redux.js:72:11 triggered like: true && true || true && false
Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.
at createStore (/path-to-project/node_modules/redux/lib/redux.js:72:11)
at configureStore (/path-to-project/.next/server/static/development/pages/_app.js:959:74)
at createStore (/path-to-project/node_modules/next-redux-wrapper/lib/index.js:95:20)
at initStore (/path-to-project/node_modules/next-redux-wrapper/lib/index.js:98:20)
at new WrappedApp (/path-to-project/node_modules/next-redux-wrapper/lib/index.js:112:31)
at processChild (/path-to-project/node_modules/react-dom/cjs/react-dom-server.node.development.js:3048:14)
at resolve (/path-to-project/node_modules/react-dom/cjs/react-dom-server.node.development.js:3013:5)
at ReactDOMServerRenderer.render (/path-to-project/node_modules/react-dom/cjs/react-dom-server.node.development.js:3436:22)
at ReactDOMServerRenderer.read (/path-to-project/node_modules/react-dom/cjs/react-dom-server.node.development.js:3395:29)
at renderToString (/path-to-project/node_modules/react-dom/cjs/react-dom-server.node.development.js:3954:27)
at render (/path-to-project/node_modules/next-server/dist/server/render.js:80:16)
at renderPage (/path-to-project/node_modules/next-server/dist/server/render.js:237:20)
at /path-to-project/.next/server/static/development/pages/_document.js:437:17
at Generator.next ()
at asyncGeneratorStep (/path-to-project/.next/server/static/development/pages/_document.js:206:24)
at _next (/path-to-project/.next/server/static/development/pages/_document.js:228:9)

Hi @ElijahKaftanov
I need a bit of code in order to help you.. at least the configureStore.js. Or a link to your repo would work as well.
Br, Timon

found it out: my fault was I passed into the initial state createReducer function instead of calling it :expressionless:

@ElijahKaftanov glad you made it. issue resolved.


Continue with Github should be "Continue with GitHub"

Bug Report

Describe the bug

To Reproduce

Go to https://ossinsight.io/explore/
Type any questions in "Questions about GitHub repos, users, orgs, languages..."
Unless users are logged in, the prompt appears to sign in.

Expected behavior
"Continue with Github" should be "Continue with GitHub" H as uppercase.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS] macOS Ventura 13.2.1
Browser [e.g. chrome, safari] Safari
Version [e.g. 22] Version 16.3 (186<IP_ADDRESS>.6)

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Actually, I do not know if this screen is provided by this repository or other 3rd party one though.

@shczhen Could you mind take a look at this issue?

Done.

Confirmed it is fixed. Thanks for the quick response and fix.


Baroclinic - Initial condition

(@WPringle  @pvelissariou1 @cblakely97 )
implementation options

Spin up from zero
Initial the fields:
[ ] WL
[ ] CUR

Since GRTOFS does not have tides we need to super impose tides
Global:

bodyforce

Follow up here: https://github.com/noaa-ocs-modeling/CoastalApp/discussions/151#discussioncomment-4471658


Convert arguments in VersionInfo ctor

It just happened to me to use VersionInfo(3, 2, 1, 1) which later failed due to the prerelease not being a string which the comparison assumed.
I propose to either

Convert arguments in ctor of VersionInfo to their correct types (int/string)
Assert the correct type

@Flamefire Maybe you wanna try my patch? :wink:


Flickering effect when showing new Window on top of WebView

I was able to load a url in the webview (inside a Window) and implement js bridge using the SNAPSHOT version. Now I'm facing a different issue. When I got a message from the web app I need to show a popup view with a button for the user to authorize some actions.
I first tried showing the AUTHORIZE view on top of the webview in the same window, and then I tried showing it in a new window. On both cases the webview starts to flicker as shown in the video.
Any ideas what might be causing this?
https://github.com/KevinnZou/compose-webview-multiplatform/assets/2242281/8bc5d2ad-3915-449d-83e0-f11ed30f119b

@tomastiminskas Hi, thanks for your feedback! Can you please provide a minimal code example that can reproduce the issue?

@KevinnZou thanks for the quick response.
Here you can find the code I was trying: https://github.com/stakwork/sphinx-kotlin-ui/blob/tt/feature/js-bridge/common/src/desktopMain/kotlin/chat/sphinx/common/components/WebAppUI.kt
In the fun WebAppUI() I'm initializing and showing the webview which loads without issues. If after a few seconds I run the code on fun AuthorizeViewUI() in the same file, then the new window will show over the webview window and the webview will start to flicker as mentioned in the issue.
Let me know if you need any additional information, thanks in advance

@tomastiminskas Thanks for your information!
Are you using the Window API from compose.desktop.components.splitPane? Could you please just provide a simple code block that doesn't depend on other libraries and can directly reproduce the problem you are facing?

@KevinnZou Thanks again for the response. I will work on an example and provide a code block for you as soon as possible

@KevinnZou here is a sample of code to reproduce the issue
Main.kt
import androidx.compose.runtime.*
import androidx.compose.ui.window.application
import chat.sphinx.common.components.AuthorizeViewUI
import chat.sphinx.common.components.WebAppUI
import chat.sphinx.common.state.AuthorizeViewState
import chat.sphinx.common.viewmodel.WebAppViewModel
import dev.datlag.kcef.KCEF
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.File

fun main() = application {

    var downloadProgress by remember { mutableStateOf(-1F) }
    var initialized by remember { mutableStateOf(false) } // if true, KCEF can be used to create clients, browsers etc
    val bundleLocation = System.getProperty("compose.application.resources.dir")?.let { File(it) } ?: File(".")

    LaunchedEffect(Unit) {
        withContext(Dispatchers.IO) { // IO scope recommended but not required
            KCEF.init(
                builder = {
                    installDir(File(bundleLocation, "kcef-bundle")) // recommended, but not necessary

                    progress {
                        onDownloading {
                            downloadProgress = it
                            // use this if you want to display a download progress for example
                        }
                        onInitialized {
                            initialized = true
                        }
                    }
                },
                onError = {
                    println("Error ${it?.localizedMessage ?: ""}")
                    // error during initialization
                },
                onRestartRequired = {
                    // all required CEF packages downloaded but the application needs a restart to load them (unlikely to happen)
                }
            )
        }
    }

    val webAppViewModel = remember { WebAppViewModel() }
    WebAppUI(webAppViewModel)

    val authorizeView by webAppViewModel.authorizeViewStateFlow.collectAsState()
    (authorizeView as?
    ) {
        CoroutineScope(SupervisorJob()).launch {
            delay(1000L)

            toggleWebViewWindow(url)
        }
    }

    private fun toggleAuthorizeView() {
        _webViewStateFlow?.value?.let { url ->
            _authorizeViewStateFlow.value = AuthorizeViewState.Opened(url, false)
        }
    }

    fun closeAuthorizeView() {
        _authorizeViewStateFlow.value = AuthorizeViewState.Closed()
    }

    private fun toggleWebViewWindow(url: String?) {
        url?.let { nnUrl ->
            _webViewStateFlow.value = nnUrl
        }

        CoroutineScope(SupervisorJob()).launch {
            openAuthorize()
        }
    }

    private suspend fun openAuthorize() {
        delay(60000L)

        toggleAuthorizeView()
    }
}

WebAppUI.kt
package chat.sphinx.common.components

import Roboto
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.sp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.WindowPosition
import androidx.compose.ui.window.WindowState
import chat.sphinx.common.viewmodel.WebAppViewModel
import chat.sphinx.utils.getPreferredWindowSize
import com.multiplatform.webview.web.WebView
import com.multiplatform.webview.web.WebViewState
import com.multiplatform.webview.web.rememberWebViewNavigator
import com.multiplatform.webview.web.rememberWebViewState

@Composable
fun WebAppUI(
    webAppViewModel: WebAppViewModel
) {
    var isOpen by remember { mutableStateOf(true) }

    webAppViewModel.toggleWebAppWindow("https://google.com.ar")

    if (isOpen) {
        Window(
            onCloseRequest = {
                webAppViewModel.toggleWebAppWindow(null)
            },
            title = "Web App",
            state = WindowState(
                position = WindowPosition.Aligned(Alignment.Center),
                size = getPreferredWindowSize(1200, 800)
            )
        ) {
            Box(
                modifier = Modifier.fillMaxSize()
            ) {
                Text(
                    text = "Loading. Please wait...",
                    maxLines = 1,
                    fontSize = 14.sp,
                    fontFamily = Roboto,
                    modifier = Modifier.align(Alignment.Center)
                )

                Column(
                    modifier = Modifier.fillMaxSize(),
                    verticalArrangement = Arrangement.Center,
                    horizontalAlignment = Alignment.CenterHorizontally
                ) {
                    val webViewState by webAppViewModel.webViewStateFlow.collectAsState()
                    webViewState?.let { url ->
                        MaterialTheme {
                            val webViewState = rememberWebViewState(url)
                            val webViewNavigator = rememberWebViewNavigator()

                            initWebView(webViewState)

                            Column(Modifier.fillMaxSize()) {
                                WebView(
                                    state = webViewState,
                                    modifier = Modifier.fillMaxSize(),
                                    navigator = webViewNavigator
                                )
                            }
                        }
                    }
                }
            }
        }
    }
}

@Composable
fun AuthorizeViewUI(
    webAppViewModel: WebAppViewModel,
    budgetField: Boolean
) {
    var isOpen by remember { mutableStateOf(true) }

    if (isOpen) {
        Window(
            onCloseRequest = { webAppViewModel.closeAuthorizeView() },
            title = if (budgetField) "Set Budget" else "Authorize",
            state = WindowState(
                position = WindowPosition.Aligned(Alignment.Center),
                size = getPreferredWindowSize(200, 200)
            ),
            alwaysOnTop = false,
            resizable = true,
            focusable = true,
        ) {
//            Box(
//                modifier = Modifier.fillMaxSize()
//                    .background(androidx.compose.material3.MaterialTheme.colorScheme.background),
//            ) {
//
//            }
        }
    }
}

fun initWebView(webViewState: WebViewState) {
    webViewState.webSettings.apply {
        zoomLevel = 1.0
        isJavaScriptEnabled = true
        customUserAgentString = "Sphinx"
        androidWebSettings.apply {
            isAlgorithmicDarkeningAllowed = true
            safeBrowsingEnabled = true
            allowFileAccess = true
        }
    }
}

In this example I'm loading google webpage in a webview inside the main window of the app.
The issue only happens when the second window opens after the web page finished loading, so I added a 60 second delay before showing the second Window (since the library usually takes around 50 seconds to load after launch). You can modify that value if needed.
You will see that google page loads successfully and when the second window is presented over the main window it starts to flick and google page content becomes invisible.
Let me know if this example works or you need something else from me
Thanks in advance

@tomastiminskas Thank you for the information. The code you shared is too complex for us to reproduce. However, I have written a simplified version and tested it locally. I have discovered an issue with the implementation of the desktop side, specifically a problem with backward writing which results in infinite recomposition. I will fix this issue in the next version. It is important to note that this issue only occurs if a recompose is triggered after the webview has loaded. This is why it works well in normal cases.
However, the backward write issue should not be the cause of your problem. Displaying an authentication window should not trigger the WebView window to recompose. Even if the backward write issue is resolved, the page will still refresh. The test code below opens a new window without recomposing the original window. Therefore, there must be an issue with your structure that is causing the unnecessary recomposition of the WebView window. If you can identify and fix this issue, the flickering effect will disappear without having to wait for the new version.
fun main() = application {
    Window(onCloseRequest = ::exitApplication) {
        var restartRequired by remember { mutableStateOf(false) }
        var downloading by remember { mutableStateOf(0F) }
        var initialized by remember { mutableStateOf(false) }

        LaunchedEffect(Unit) {
            withContext(Dispatchers.IO) {
                KCEF.init(builder = {
                    installDir(File("kcef-bundle"))
                    progress {
                        onDownloading {
                            downloading = it
                        }
                        onInitialized {
                            initialized = true
                        }
                    }
                    settings {
                        cachePath = File("cache").absolutePath
                    }
                }, onError = {
                    it?.printStackTrace()
                }, onRestartRequired = {
                    restartRequired = true
                })
            }
        }

        if (restartRequired) {
            Text(text = "Restart required.")
        } else {
            if (initialized) {
                WindowTestView()
            } else {
                Text(text = "Downloading $downloading%")
            }
        }

        DisposableEffect(Unit) {
            onDispose {
                KCEF.disposeBlocking()
            }
        }
    }
}

@Composable
fun WindowTestView() {
    var showAuth by remember { mutableStateOf(false) }
    LaunchedEffect(Unit) {
        withContext(Dispatchers.IO){
            delay(5000)
            showAuth = true
        }
    }

    WebViewWindow()

    if (showAuth) {
        AuthWindow()
    }
}

@Composable
fun WebViewWindow() {
    println("WebViewWindow recompose")
    Window(
        onCloseRequest = {  },
        title = "WebView",
        state = WindowState(
            position = WindowPosition.Aligned(Alignment.Center),
            size = DpSize(1200.dp, 800.dp)
        ),
        alwaysOnTop = false,
        resizable = true,
        focusable = true,
    ) {
        Box(
            modifier = Modifier
                .fillMaxSize()
                .background(Color.White),
        ) {
            SimpleWebView()
        }
    }
}

@Composable
fun SimpleWebView() {
    val state = rememberWebViewState("https://kotlinlang.org/")
    state.webSettings.logSeverity = KLogSeverity.Debug
    WebView(state = state, modifier = Modifier.fillMaxSize())
}

@Composable
fun AuthWindow() {
    var isOpen by remember { mutableStateOf(true) }
    if (isOpen) {
        Window(
            onCloseRequest = { isOpen = false },
            title = "Authorize",
            state = WindowState(
                position = WindowPosition.Aligned(Alignment.Center)
            ),
            alwaysOnTop = false,
            resizable = true,
            focusable = true,
        ) {
            Box(
                modifier = Modifier
                    .fillMaxSize()
                    .background(Color.Blue),
            ) {

            }
        }
    }

}


test

Looks like everything's working! I'm not going to merge since we don't need this in the repository, but I think we're fine to move ahead!


Update dependencies

This updates most of the dependencies to latest, except for bevy_egui, which is updated to 0.26.0 because rapier_testbed* is still on a old version.

👏🏻 Maintainers pls review.

Rapier version changed to 0.21 now.

I'm looking at it to test/update it to rapier 0.21 :)


Full update of the chain-registry entries

The chain-registry is supposed to contain updated informations about chains.
But, with the time, the original peers and some community provided ressources are stopped or moved.
It's time to cleanup the registry and say goodbye to the non up to date info.
I made some chains by hand then wrote a script to do it automatically.
script source: https://gist.github.com/Galadrin/1f017c81d32514f6f8938f3a19fd6c41

The seeds and peers are tested for connection and handshakes reception, not for peer-id and chain-id
The HTTP endpoints have 2 seconds to accept connection and 2 more seconds to send the request result.
it's only very simple requests that must be answered very fast.
The gRPC endpoints are check for readyness, not for methods availability.

Would be interesting if we could use this script behind a GH action to produce warnings about node liveness.

agree, but maybe in a second time, the script will need to be modified to take only the modified json in consideration.


Sbt does not resolve dependencies with classifiers.

There are multiple problems here. First of all, having "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion" should be enough to download all the artifacts. But it does not work.
Having failed that, manually putting all the artifact as a dependencies also fails, because only one of those is downloaded and the rest is ignored. The choise appears to be arbitrary.
Surpisingly listing only one artifact works.
Here is the build:
import sbt._
import Keys._
object MyBuild extends Build {
val lwjglVersion = "2.8.2"
lazy val broken = Project(
id = "broken",
base = file("."),
settings = Defaults.defaultSettings ++ Seq(
scalaVersion := "2.9.1",
target := new File("target/broken"),
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-windows",
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-linux",
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-osx"
)
)
lazy val working = Project(
id = "working",
base = file("."),
settings = Defaults.defaultSettings ++ Seq(
scalaVersion := "2.9.1",
target := new File("target/working"),
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-linux"
)
)
}

Although Ivy (and thus SBT) doesn't prevent you from doing this in the DSL, AFAIK having multiple classifier for a dependency is incorrect according to Maven. Thus in this case, Ivy is just retaining one of the libraries in the dependency list and discarding the others. In the second case, everything works perfectly because there is no ambiguity to resolve.

Here is the pom in question, it seems to be using multiple classifiers:
http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl/2.8.2/lwjgl-2.8.2.pom
I do not have much experience with maven, so I am wondering if the pom is incorrect. If so, why does maven allow to publish it.

Maven doesn't allow multiple classifier in one dependency. Thus you cannot have two <classifier/> elements within one <dependency> ... ... </dependency> block. But it is fine to have multiple dependencies having everything same except the <classifier/> block (since classifier is part of resolution). In Ivy, I suspect, the first part is honored, but not the second part.

Indeed, ivy is to blame. It allows multiple dependency elements with artifacts that have different classifiers. However it does not resolve them properly. Here is a sample ivy config that fails to retrieve all the dependencies:

My workaround was to create multiple projects that have one dependency with classifier.
I am guessing the only way to patch this at the SBT level would be to make Ivy do several resolution runs, one for each dependency with a classifier. Not a clean approach to say the least.

While you're testing an Ivy file, what happens if you put all of the artifact definitions under a single  element?

Good catch, it works as expected! Maybe there is a way to fix this properly, after all. Here is the working Ivy.xml:
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
    <info organisation="test" module="test"/>
    <dependencies>
        <dependency org="org.lwjgl.lwjgl" name="lwjgl-platform" rev="2.8.2">
            <artifact name="lwjgl-platform" type="jar" ext="jar" m:classifier="natives-windows"/>
            <artifact name="lwjgl-platform" type="jar" ext="jar" m:classifier="natives-linux"/>
            <artifact name="lwjgl-platform" type="jar" ext="jar" m:classifier="natives-osx"/>
        </dependency>
    </dependencies>
</ivy-module>

Ok, the equivalent inline syntax is:
libraryDependencies +=
  "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-windows" classifier "natives-linux" classifier "natives-osx"

If this works, I propose that the solution to this issue is to mention this in the documentation.

libraryDependencies +=  "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-windows" classifier "natives-inux" classifier "natives-osx"
It works. Having the documentation mention it would definitly solve the issue.

Alright, fixed.


Ship scaffold generator that uses a nice Tailwind design

The default Rails scaffold is plain to a fault. Let's ship some scaffold templates with this gem that uses Tailwind to demonstrate it.

Okay just to get the discussion started I think we first need to agree on a few things:

Do we want to use table or div under the hood?
Divs make it easier to adjust to mobile and also for turbo-rails to substitute responses if I remember correctly.
Tables are more structured and offer some kind of easy to add sortability (for example https://datatables.net or https://www.w3schools.com/w3js/w3js_sort.asp or whatever).

Do we want to show all properties by default or say only the first 4 (or whatever number)?
If we show all tables might really be the wrong approach given they are a pain on mobile.
Giving it a thought definition lists might be a feasible approach. Any opinion on that?

What about the actions per item?
Do we want to show all actions on every item or do we want to make an item clickable and show the edit or delete functionality only on the details page? This would provide less visual clutter.

Do we want to add javascript functionality out of the box?
Not sure if we want to use dropdowns with additional actions like edit or delete. I would say no but let me know what you think.

Do we have any color preferences?
Rails uses a lot of red but for example a create item button is in western color usage more of a dangerous thing.

I played around a little and came up with this. It is still not nearly refined but uses definition list under the hood as an idea.

Tailwind UI gave me the idea of stacked lists BUT how to choose what to show or not, when there are many items?
See screenshot:

Okay just to get the discussion started I think we first need to agree on a few things:

Do we want to use table or div under the hood?
Divs make it easier to adjust to mobile and also for turbo-rails to substitute responses if I remember correctly.
Tables are more structured and offer some kind of easy to add sortability (for example https://datatables.net or https://www.w3schools.com/w3js/w3js_sort.asp or whatever).

Do we want to show all properties by default or say only the first 4 (or whatever number)?
If we show all tables might really be the wrong approach given they are a pain on mobile.
Giving it a thought definition lists might be a feasible approach. Any opinion on that?

What about the actions per item?
Do we want to show all actions on every item or do we want to make an item clickable and show the edit or delete functionality only on the details page? This would provide less visual clutter.

Do we want to add javascript functionality out of the box?
Not sure if we want to use dropdowns with additional actions like edit or delete. I would say no but let me know what you think.

Do we have any color preferences?
Rails uses a lot of red but for example a create item button is in western color usage more of a dangerous thing.

I played around a little and came up with this. It is still not nearly refined but uses definition list under the hood as an idea.

Tailwind UI gave me the idea of stacked lists BUT how to choose what to show or not, when there are many items?
See screenshot:

@gobijan maybe worth creating a PR that adds the scaffolds and the basic styles then the discussion can happen on the PR?
We should be showing all the records by default and perhaps skip the colours in the initial PR (links commonly have blue so that should be good?)

@gobijan maybe worth creating a PR that adds the scaffolds and the basic styles then the discussion can happen on the PR?
We should be showing all the records by default and perhaps skip the colours in the initial PR (links commonly have blue so that should be good?)

@dhh you want this scaffold generator to override default rails generator(bin/rails g scaffold), or with different name such as bin/rails g tailwind_scaffold ...?

I'd like to see it overridden. If you have tailwind installed, you want tailwind scaffolds.

Alright! I'm on it 😄

Would be cool to see a pairing between @adamwathan and @dhh like the one made for Tuple,
https://www.youtube.com/watch?v=SK27unk2UuI&ab_channel=AdamWathan
@dhh Maybe someone should consult Steve Schoger @sschoger on this one as well. He has really good eye for design, he would easily bring the design for rails scaffold to the next level

@guledali  I've already contacted Adam and Tailwind team to help with this. Adam and the team are 👍🏼 to help shaping scaffold wit their official touch :)

I hope this becomes the default in Rails 7

Is anyone still actively working on this one?

@afomera We are! Check out the PR.

Great, thanks @BakiVernes! I'll leave it for now :)

Hello, I am very new to open source I've been looking to create a default scaffolding views for Tailwind for quiet some time and I would like to help work on this project . Where should I get started?

Already done in https://github.com/rails/tailwindcss-rails/pull/71 👍 Just need to find some time to review and I'll merge.

@dhh you want this scaffold generator to override default(bin/rails g scaffold), or with the different name such as bin/rails g tailwind_scaffold ...?

if you are using tailwind, but do not want to use the provided tailwind scaffold templates, you can manually set the template engine like this:
# config/application.rb
    config.generators.template_engine = :erb


Is it possible to get the subscriber's session id when he posts?

Here is how I attempt to get  subscriber's session id but I can't.
    // 1) subscribe to a topic
    $onevent = function ($args) {
        echo $args[0]->session;
    };
    $session->subscribe('com.myapp.hello', $onevent);

Thanks. I am about to give up with Thruway. No manual, no documentation. Anybody can help me?

I completely abandoned the library. Nobody knows nothing. Even if it works or not. Unfortunately I had to go with nodejs / socket.io solution which by far can not be compared with Thruway. nodejs / socket.io is simple complete and functional compare to the miserably complex and probably buggy and abandoned Thruway,
Sorry guys. I have really spent a lot of my valuable time with your undocumented and abandoned code. Thanks god that other solutions were there for me !

We're in the middle of a worldwide pandemic and you're upset that people aren't dropping everything they're doing to teach you how to use a free open source library?  That speaks volumes about the type of person you are.
Abandoned?  Before falsely accusing the people who made this library for FREE, you should spend 5 minutes of research.  There was a commit less than 24 hours ago.
You're clearly a leech who doesn't have the slightest idea of how open source works.

FYI, to get the auth or session id of the client that has published, use the disclose_publisher option when subscribing and you'll get the authid and pusblisher session id in the details.
https://github.com/voryx/Thruway/blob/7039e871bfedc319bcadf5445ac30e0fc0eb52be/tests/WAMP/DisclosePublisherTest.php#L64


support 4-digit

#15

:thought_balloon: but node's semver is also same behavior
https://github.com/npm/node-semver/blob/acb44ddf2aef5855a1eb77fedc6b2e2c0868f7c8/semver.js#L325


Components inside a modal

Hi guys,
I'm facing kinda strange issue. I use Slick (http://kenwheeler.github.io/slick/) and when I put some slides inside my modal window, Slick does not init itself properly. To by more specific, since closed modal is display: none it can't calculate it's dimensions.
I've made a quick research and I've found this https://github.com/kenwheeler/slick/issues/619
Similar issue on Bootstrap. Second comment from the bottom says it all.
So you think guys it would be possible to switch from display CSS property to some positioning?
P.S. I'm sorry but I think this could be quite easily done with a change inside Materialize instead of trying to figure out some dimension calculating hacks inside Slick. If not...yea, I'm sorry guys.

This is just an idea, but did you try something like this in the Modal 'ready' property?
$('.your-element').slick('reInit');

My workaround is I initialize the Slick when the modal is opened.

@grafa can you show the code solution?


Update snapshots.md

Description & motivation
I ran into this opaque error message when trying to set up snapshotting in my project the first time:
Compilation Error in model scorecard_history (models/snapshots/scorecard_history.sql)
  Encountered unknown tag 'snapshot'.

It turns out I needed to enable snapshots in my dbt_project.yml but this was not at all obvious to me when reading these docs! I imagine someone less familiar with dbt would find this even more bewildering. I wanted to note at least somewhere on this page that that configuration is required and include the error message so that it's searchable on the page if someone else runs into it.
Pre-release docs
Is this change related to an unreleased version of dbt?

[ ] Yes: please update the base branch to next
[X] No: please ensure the base branch is current
[ ] Unsure: we'll let you know!

huh, is this so?
My reading of this line made me think that there was a default value here!
I'll test it out tomorrow – if you're right we'll need to update this doc too

I might have deleted that line when I was first setting up the project 😬
Regardless, I think it's useful to have this part of the docs call out that that's where the path is defined in case someone ends up in this same state or wants to adjust that path.

Oh wait, I see what has happened. So the way to fix this error it to move your file from:
models/snapshots/scorecard_history.sql

to:
snapshots/scorecard_history.sql

Then it will work regardless of whether you have the snapshot-paths config or not:
 $ cat dbt_project.yml # note snapshot-paths is commented out

name: 'jaffle_shop'
version: '1.0.0'
config-version: 2

profile: 'jaffle_shop'

source-paths: ["models"]
analysis-paths: ["analysis"]
test-paths: ["tests"]
data-paths: ["data"]
macro-paths: ["macros"]
# snapshot-paths: ["snapshots"]

target-path: "target"  # directory which will store compiled SQL files
clean-targets:         # directories to be removed by `dbt clean`
    - "target"
    - "dbt_modules"

$ dbt snapshot
Running with dbt=0.18.0-b2
Found 5 models, 24 tests, 1 snapshot, 0 analyses, 140 macros, 0 operations, 0 seed files, 3 sources

11:30:02 | Concurrency: 1 threads (target='learn')
11:30:02 |
11:30:02 | 1 of 1 START snapshot dbt_snapshots.test_snapshot.................... [RUN]
11:30:06 | 1 of 1 OK snapshotted dbt_snapshots.test_snapshot.................... [SUCCESS 0 in 4.21s]
11:30:07 |
11:30:07 | Finished running 1 snapshot in 10.74s.

Completed successfully

Done. PASS=1 WARN=0 ERROR=0 SKIP=0 TOTAL=1

🤦

Ouch. Okay that makes sense! We could change the line about "generally found in the snapshots/ directory" to "generally found in the snapshots/ directory (not the models/snapshots/ directory)"
But we could also just close this because I'm an idiot.

hehe yes we absolutely can!

I'm going to close this PR in the meantime


Do we want to support iterators for data loading?

What?
If we want to chunk over data, a natural way to do that is via an iterator.
Example: Enable "input" functions to be iterators
def my_loading_funct(...) -> Iterator[pd.Series]:
     ...
     yield some_chunk

This is fraught with some edge cases. But could be a more natural way to chunk over large data sets? This perhaps requires a new driver -- as we'd want some next() type semantic logic on the output of execute...
Originally posted by @skrawcz in https://github.com/stitchfix/hamilton/issues/43#issuecomment-1030961335
Things to think through whether this is something useful to have:

Where would we allow this? Only on "input" nodes?
How would we exercise them in a deterministic fashion? i.e. does execute() care? and we iterate over them until they're exhausted? Or does execute() only do one iteration?
How do we coordinate multiple inputs that are iterators? What if they're of different lengths?
How would we ensure people don't create a mess that's hard to debug?
Would this work for the distributed graph adapters?

Yeah I'd need to see more of a workflow/motivating example for this TBH. E.G. a graphadapter that chunks up data and iterates in a streaming sense could be high-value as well...

We are moving repositories! Please see the new version of this issue at https://github.com/DAGWorks-Inc/hamilton/issues/19. Also, please give us a star/update any of your internal links.