cant run run-multiple parallel with ---profile

What are you trying to achieve?
trying to call run-multiple parallel with ---profile
What do you get instead?
looks like when running it parallel the codeceptjs ignore this param

CodeceptJS version:
<EMAIL_ADDRESS>

Could you share your config?

the issue that I want to be able to pass parameters on start with flag profile it is working on codeceotjs run and should also work on parallel. what I am passing is user and pass.

My current workaround here is to avoid usage of --profile and instead use a separate config file with -c configs/…

Should be fixed with newest release 2.6 - use process.env.profile instead of process.profile.

I am using codeceptjs 2.6.6 and still seeing an issue with this. It looks like one codeceptjs instance is using the profile, but the second is undefined.
Test run output:
 npx codeceptjs run-multiple parallel --profile dev {   // printing our config urls } profile dev // console.log(process.env.profile) {  // printing our config urls } profile undefined // console.log(process.env.profile)

I am using codeptjs 2.6.7 and process.env.profile is not parsed even when using chunks: 1

Looks like --profile is not passed to child processes using run-multiple.
For example, I want to pass a test URL as an argument: --profile env="https://test.com". I have a function to retrieve this by looking at the process.argv and returning when it matches. @pablopaul any suggestions on how to get this working?

I made a workaround function to get the config passed to the child processes, parse it and get the URL from there.

@paulcredmond can you please share us that function? It would benefit others.

Sure @idxn
This very much tailored for my needs which is to pass a string (URL) for Webdriver to use as the URL to be tested.
So it would look like: npm run e2e --profile env=https://URL.com
// Profile is passed to the first process and the config is passed to child processes, but --profile is not
// This function will search for the config in the process.argv, parse the JSON and find the URL

getEnvObject: (argsArray) => {
    let url = null;
    const env = argsArray.filter((el) => el.includes('WebDriver'));
    const obj = env[0] || null;
    if (obj) {
      const parsedObj = JSON.parse(obj);
      url = parsedObj.helpers.WebDriver.url || null;
    }
    return url;
  },

let testUrl = 'http://localhost:3000/'; // default if no env= argument
const envObject = getEnvObject(process.argv);

// env= URL passed through config to child processes (run-multiple)
if (envObject) {
  testUrl = envObject;
}

module.exports = {
  testsFolder: './../tests/*_test.js',
  testUrl: testUrl,
  ...rest of config


bump to 5.2 and fix a check that always returns null

Closes #1

Despite what the annotations on newer versions of Bukkit say, I am fairly sure there is still a possibility that the method could return null.
Perhaps if (player == null || !player.hasPlayedBefore()) {...}would be better?

(happy to be proven wrong on that of course! I might've remembered incorrectly)

Despite what the annotations on newer versions of Bukkit say, I am fairly sure there is still a possibility that the method could return null.
Perhaps if (player == null || !player.hasPlayedBefore()) {...}would be better?

I've done that. Anything else that should be changed?

Thanks!


Add Tracer after refactoring in https://github.com/opensearch-project/OpenSearch/pull/9415

Description
Added traceer after
https://github.com/opensearch-project/OpenSearch/pull/9415 refactoring
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

closing it .. it was fixed already


Releases/hadoop 18202 docker git branch 3.3.3

Description of PR
pr #4188 against the branch-3.3.3 release branch
How was this patch tested?
For code changes:

[X] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

closing; was against the wrong branch


update package and disable warning message

officially the warning messages will be removed on v6. For now, we can only disable from configuration.

@adamjanin
ada error ni time npm install
'Log files:
/Users/rohaizan/.npm/_logs/2024-04-30T19_40_36_841Z-debug-0.log

# npm resolution error report

While resolving<EMAIL_ADDRESS>Found<EMAIL_ADDRESS>node_modules/react
<EMAIL_ADDRESS>from the root project
  peer react@">=17" from<EMAIL_ADDRESS>  node_modules/@coreui/icons-react
<EMAIL_ADDRESS>from the root project
  peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>  node_modules/react-dom
<EMAIL_ADDRESS>from the root project
    peer react-dom@">=17" from<EMAIL_ADDRESS>    node_modules/@coreui/icons-react
<EMAIL_ADDRESS>from the root project
    peer react-dom@">=17" from<EMAIL_ADDRESS>    node_modules/@coreui/react
<EMAIL_ADDRESS>from the root project
    peer react-dom@">=17" from<EMAIL_ADDRESS>    node_modules/@coreui/react-chartjs
<EMAIL_ADDRESS>from the root project
    peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>    node_modules/react-colorful
<EMAIL_ADDRESS>from the root project
    peer react-dom@">= 16.8.0" from<EMAIL_ADDRESS>    node_modules/styled-components
<EMAIL_ADDRESS>from the root project
      peer styled-components@">= 5.0.0" from<EMAIL_ADDRESS>      node_modules/react-data-table-component
<EMAIL_ADDRESS>from the root project
    peer<EMAIL_ADDRESS>|| ^17 || ^18" from<EMAIL_ADDRESS>    node_modules/react-datepicker
<EMAIL_ADDRESS>from the root project
  peer react@">=17" from<EMAIL_ADDRESS>  node_modules/@coreui/react
<EMAIL_ADDRESS>from the root project
  peer react@">=17" from<EMAIL_ADDRESS>  node_modules/@coreui/react-chartjs
<EMAIL_ADDRESS>from the root project
  peer react@"*" from<EMAIL_ADDRESS>  node_modules/react-color
<EMAIL_ADDRESS>from the root project
  peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>  node_modules/react-colorful
<EMAIL_ADDRESS>from the root project
  peer react@">= 16.8.3" from<EMAIL_ADDRESS>  node_modules/react-data-table-component
<EMAIL_ADDRESS>from the root project
  peer react@">= 16.8.0" from<EMAIL_ADDRESS>  node_modules/styled-components
<EMAIL_ADDRESS>from the root project
    peer styled-components@">= 5.0.0" from<EMAIL_ADDRESS>    node_modules/react-data-table-component
<EMAIL_ADDRESS>from the root project
  peer<EMAIL_ADDRESS>|| ^17 || ^18" from<EMAIL_ADDRESS>  node_modules/react-datepicker
<EMAIL_ADDRESS>from the root project
  peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>  node_modules/react-imask
<EMAIL_ADDRESS>from the root project

Could not resolve dependency:
<EMAIL_ADDRESS>from the root project

Conflicting peer dependency<EMAIL_ADDRESS>node_modules/react
  peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>  node_modules/react-native
    peer react-native@"*" from<EMAIL_ADDRESS>    node_modules/react-native-svg
      peerOptional react-native-svg@"*" from<EMAIL_ADDRESS>      node_modules/react-qr-code
<EMAIL_ADDRESS>from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

verify jap

@rohaizanr , boleh tahu ke kalau run command "sh run-dev.sh" masih ada error juga?

Ya, sama

rasanya ada masalah dgn npm cache ni
boleh cuba command ni npm cache clean --force
so far run dekat docker-compose ok ja.

@adamjanin  .... hmmmm sama gak. Mac punya issue ke ni

@adamjanin https://github.com/hisyamnasir/e-masjid.my/tree/vite-ts-dashboard dah push. error ni dah takde. rasanya boleh cancel PR ni


Add alternative mechanism for sending ops in load tests

Add support for all the clients sending and receiving ops concurrently, in load tests. Previously, we supported only a staggered read-write mechanism where only half the clients would be sending ops at any given time.
The primary motivation for having this additional mechanism is that the previous mechanism does not allow us to send ops at certain rates.
For instance, it was not possible to send ops at an effective rate of 6 ops/min/client with the staggered read-write mechanism. Priyam has run some tests to verify this, and documented the effective rates observed in the client metrics - we observe that the effective rate of ops sent does not match 6 ops/min/client.

@microsoft-github-policy-service agree

@tylerbutler How do I get past this CLA test? Looks like the command I'm giving through the comment is not being accepted by the bot :")


Updating the openssl-uwp package to 1.0.2q

OpenSSL has just release the fix for ECDSA and DSA issues.
Removing the extra patch as it has been integrated into our repo.

Looks like the warnings settings are different. Need to make a quick fix.

Closing PR because it looks like another PR must have updated it already.  If there are changes in this PR that you think should still be applied then please create another one.  Thank!


Enable Spiram on TizenRT

enable spiram
apply simple mechanism to malloc on spiram, and use IRAM for kmm_malloc/kumm_malloc
enable heapinfo debug and check heapinfo on spiram

this seems a rough experimental version.
Let's get SPI-SRAM working and then refine it later


😿 Something went wrong. Check the JS console for more details.

File
speedscope file
Chrome Console:
speedscope.44364064.js:194 speedscope v1.12.1
DevTools failed to load SourceMap: Could not load content for https://www.speedscope.app/reset.8c46b7a1.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.speedscope.app/speedscope.44364064.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
speedscope.44364064.js:114 WebGL initialized. renderer: AMD Radeon Pro 555X OpenGL Engine, vendor: ATI Technologies Inc., version: WebGL 1.0 (OpenGL ES 2.0 Chromium)
DevTools failed to load SourceMap: Could not load content for https://www.speedscope.app/import.cf0fa83f.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.speedscope.app/source-map.438fa06b.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for https://www.speedscope.app/demangle-cpp.1768f4cc.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for chrome-extension://gccfnphpieojibjmnodiiobdapckkkfb/vendors/index.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
import.cf0fa83f.js:113 Importing as speedscope json file
speedscope.44364064.js:190 Failed to load format Error: Tried to leave frame "System.Private.CoreLib!System.Threading.ExecutionContext.RunInternal(class System.Threading.ExecutionContext,class System.Threading.ContextCallback,class System.Object)" while frame "System.Collections.Concurrent!System.Collections.Concurrent.ConcurrentDictionary`2[System.__Canon,Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher+ChangeTokenInfo].TryRemove(!0,!1&)" was at the top at 69.62325402281952
at h._leaveFrame (speedscope.44364064.js:174)
at h.leaveFrame (speedscope.44364064.js:174)
at speedscope.44364064.js:180
at a (speedscope.44364064.js:180)
at speedscope.44364064.js:180
at Array.map ()
at s (speedscope.44364064.js:180)
at import.cf0fa83f.js:113
at Generator.next ()
at s (import.cf0fa83f.js:113)

Hi @mholec !
This looks like it was probably a file generated by an old version of PerfView which had a buggy implementation of speedscope export.
See https://github.com/microsoft/perfview/issues/1178. If you update perfview, the problem should go away.


Change Confirmed/Unconfirmed labels into statuses

To me, the "Confirmed" and "Unconfirmed" labels represent the two possible statuses of a bug, not a standalone kind of issue.
That's why I propose to change them into "Status: Confirmed" and "Status: Unconfirmed", assignable only on "Bug" labelled issues.
More, I would like to see "Status: Unconfirmed" automatically assigned at the same time of the "Bug" one when creating an issue and don't see the "Status : Reviewed/Needs review" labels anymore for these very same issues (Bug).
For bugs we are talking about confirmation, not review, labels are already in place.
For proposals/feature requests, talking of review doesn't feel adapted but we could still use it (for all issues that aren't bug reports).
WDYT?

Let me summarize:

For bugs, stop auto-assigning "Status: Needs Review" and instead auto-assign "Status: Unconfirmed"

Introduce 2 new statuses (only allowed on issues with a "Bug" label): "Unconfirmed" and "Confirmed"

If this is accurate, it makes good sense to me. Let's see a PR!

See https://github.com/carsonbot/carsonbot/pull/45#issuecomment-267759131


[Import] Adds ability to import the trace configs from datadog.conf

What does this PR do?
Adds in the ability to import the trace config options from datadog.conf into the new datadog.yaml format
Motivation
Fully utilize datadog.yaml for all config options. Additional note from here - https://github.com/DataDog/datadog-agent/pull/1230
Additional Notes
Tested by generating the datadog.yaml from the default datadog.conf (with all fields uncommented) and ran with the master build of the Trace Agent.

Added an extra commit fixing some bugs, extending the support to the full set of supported options. Got tested on this exhaustive test case https://github.com/DataDog/datadog-trace-agent/blob/70f08dc50630b59af34bc1c721ed2c22db1b5259/config/test_cases/full.ini


Issue-89 - Add support for arrays in query parameters

Possible solution if I got the meaning right.

That's really cool test failure:
expected: beers[]=stout&beers[]=ale&liquors[]=vodka&liquors[]=whiskey
got: liquors[]=vodka&liquors[]=whiskey&beers[]=stout&beers[]=ale
(Different ordering in NSDictionary)
Test passes on my machine though :)

@wessmith @chrismaddern Hey guys, wanted to ask for your feedback.
Is it the right direction or I missed something important here? Thanks!

Hi @pantuspavel this is looking good :smile: but I haven't had a chance to fully go through it.

Hey @wessmith,
That definitely makes sense! I'll make this happen.
Thanks and sorry for pushing, was very curious to get your feedback! :smile:

@pantuspavel If you want to tackle #15 I'd love to hear your thoughts on how to approach it before you get too far into it :)

@wessmith sure,
I'm thinking to sort parameters first and then serialize them in:
[NSString DPL_queryStringWithParameters:(NSDictionary *)parameters];

This way we always get the same order in the output string.

That works. Then we can tackle #15 later.

@wessmith ooh, I just got what #15 is about.
Yeah, you're right. We'll need more info here.
I'll think about solution, but first will commit the consistent ordering.

What do you think of using some kind of ordered dictionary(e.g. M13OrderedDictionary - not sure about this one though. Last commit - Oct. 2015)

We don't want to add any dependencies. Perhaps we pass in an NSArray or NSOrderedSet of sorted keys to an overloaded [NSString DPL_queryStringWithParameters:sortedKeys:]

Yeah, that was my second thought -- dependencies.
Your solution sounds good to me.
Thanks for the idea.
On Friday, April 8, 2016, Wes Smith<EMAIL_ADDRESS>wrote:

We don't want to add any dependencies. Perhaps we pass in an NSArray or
NSOrderedSet of sorted keys to an overloaded [NSString
DPL_queryStringWithParameters:sortedKeys:]
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/button/DeepLinkKit/pull/98#issuecomment-207576845

--
Best regards,
Pavel Pantus

Hey guys, any plan to merge this?

@wessmith @pantuspavel what's the action here? Would love to get this merged!

@pantuspavel can you have a look at this and make sure its up to date and all comments are resolved


dixie-react-hooks

Where can I actually find the github code for the dixie-react-hooks ??
The npm page for dixie-react-hooks just directs to this page and I don't see to be able to find the code that generates that actual NPM module

You can find the code here and there are further links to the documentation.


GRO-465: Empty WorksByArtistYouFollow Rail in Curatorial Rails when following no artists

This is to add in a zero state for the curatorial rails.
Current Behavior:

New Behavior:

Mobile View of New Behavior:

@damassi  I updated the unit tests to account for Zero State. But I honestly do not see the worth in creating a zero state component for these (as they contain only 5 lines of code), other than to cut down on a light duplication. But I am leaning towards duplication as opposed to a component bloat.
If we were adding in complex logic or designs I might feel differently 🤷♀

But I do not see the worth in creating a zero state component for these

See comment here.


dashboard: support bug labels

See more details in individual commits.
Fixes https://github.com/google/syzkaller/issues/608

Support multiple commands per single email.
Support setting arbitrary (as well as specified - e.g. for subsystem) labels to bugs via #syz [un]set [group :] [label1 [, label2 ...]].
Support setting labels to individual bugs in a bug list.
Display labels on the main page and on the bug page. Enable per-label filtering.

TODO:

[x] Add a no-reminder label to opt off individual bugs from monthly reminders.
[x] Update docs/.
[x] Add command examples at the bottom of bug/bug list reports.

@dvyukov PTAL
I've updated the PR to only support the specified set of labels.

PTAL


Electric chest cannot be accessed by OPerators

Unfortunately I am unable to monitor these chests when they are passworded. I would like to be able to view these contents to monitor for contraband.

And it seems one of the admin's just destroyed the chest in question by accident.

Just added an "OpsBypassRestrictions" entry to the config, this allows for operators to access locked chests when enabled.

Thank you!


net/tcp/sendfile: retransmit only one the earliest not acknowledged segment

Summary
The existing TCP sendfile implementation does a full rewind from the most recent sent segment back to the earliest not acknowledged one, thus many TCP segments are re-sent every time when TCP retrasmission timeout occurs.
According to RFC 6298 (5.4) only one the earliest not acknowledged segment should be retransmitted instead.
This PR implements TCP retrasmission according to RFC 6298 (5.4).
It is the same issue as it was in tcp_send_unbuffered.c (PR #4659).
Impact
TCP
Testing
Activate emulating packet loss on Linux host:
$ sudo iptables -A INPUT -p tcp --dport 31337 -m statistic --mode random --probability 0.01 -j DROP
Build NuttX:
$ ./tools/configure.sh -l sim:tcpblaster
$ make menuconfig
(enable CONFIG_NETUTILS_NETCAT_SENDFILE,
disable CONFIG_NET_TCP_WRITE_BUFFERS)
$ make

Enable TUN/TAP on Linux host:
$ sudo setcap cap_net_admin+ep ./nuttx
$ sudo ./tools/simhostroute.sh wlan0 on

Run netcat server on Linux host:
$ netcat -l -p 31337
Run NuttX on Linux host:
$ ./nuttx
NuttShell (NSH) NuttX-10.2.0
nsh> ifconfig eth0 <IP_ADDRESS>
nsh> ifup eth0
ifup eth0...OK

Start Wireshark (or tcpdump) and capture appeared tap0 interface.
Run in NuttX:
nsh> dd if=/dev/zero of=/tmp/test.bin count=1000
nsh> netcat LINUX_HOST_IP_ADDRESS 31337 /tmp/test.bin

Observe packet loss -> TCP retransmissions in TCP dump.
Shutdown NuttX:
nsh> poweroff
Disable TUN/TAP on Linux host:
$ sudo ./tools/simhostroute.sh wlan0 off
Deactivate emulating packet loss on Linux host:
$ sudo iptables -D INPUT -p tcp --dport 31337 -m statistic --mode random --probability 0.01 -j DROP

@a-lunev your Testing was so nice that I think you could transform it on a guide at https://nuttx.apache.org/docs/latest/guides/index.html to explain how to simulate package lost. What do you think?

@acassis I created PR #5285. Please, check.

LGTM. @a-lunev Seems the TCP stack adds too much of sendfile handling, I do not think this is a good trend, since tcp is inherently streaming, the stack should not need to know if a file is being to sent, could we try to hide these details in the tcp_sendfile.c?

If you mean the introduced conn->sendfile variable in #5239, unfortunately NET_TCP_WRITE_BUFFERS and NET_SENDFILE modes were totally inconsistent to each other (some part of tcp_sendfile relied on NET_TCP_WRITE_BUFFERS=n functionality and the other part of tcp_sendfile relied on NET_TCP_WRITE_BUFFERS=y functionality, however it is a nonsense).
I have analyzed NuttX git repo history and concluded that these two simultaneously enabled options have never worked in NuttX (never supported by design), however some of the boards (sama5 and sim based) has these two options simultaneously enabled. That means tcp_sendfile was broken for those boards and could not work for any other board if these two options got enabled in the same config.
In #5239 I supported the possibility to use NET_SENDFILE option if NET_TCP_WRITE_BUFFERS=y, and introducing conn->sendfile variable was a required measure to do that.
On another hand, I am going to rework tcp_send_buffered.c as well, or at least to do a mutual unification of all 3 parts: tcp_send_buffered.c, tcp_send_unbuffered.c and tcp_sendfile.c. As a result of the intended unification I expect that the conn->sendfile variable may be removed at a later step.

Great! Thanks for taking time to unify the code path.


Add a transaction view

Should group coins together into transactions (maybe simply by block height), with the inputs and outputs described as well as the from and to address.

Removing the ui label since this requires much deeper backend work to implement. This is why it's not been done yet.

This has been added, was simpler than expected.


Turbo.navigator.submitForm inside from, submits without the header

When submitting a form that is in a frame with Turbo.navigator.submitForm() the Turbo-Frame header is not in the request.
This is a problem when you need to do some processing before you actually send the form.

@jbonnier Turbo.navigator.submitForm() isn't intended to be used outside of the package. Could you share more about your use case?
Have you tried HTMLFormElement.requestSubmit instead?

I have a form inside a turbo-frame which has a data-controller="form-submit" and a data-action="submit->form-submit#submitForm". I want to validate that the user is not a robot with recaptcha upon submit, so I preventDefault() do some processing and then I want to be able to submit the form.
If I do a event.target.submit() the entire page reloads. So I'm looking for a way to submit the form, but at the same time let "Turbo intercept the request" and do its thing.
Here's my stimulus controller.
import {Controller} from '@hotwired/stimulus';
import recaptchaInit from '../components/recaptcha-init.js';
import {flash} from '../components/utilities.js';

/* stimulusFetch: 'lazy' */
export default class extends Controller {
  static values = {
    captchaInitFailure: String,
    unknownFailure: String,
    formReady: Boolean,
  };

  // async submitStart(event) {
  async submitForm(event) {
    console.log('submit form')
    if (!this.formReadyValue) {
      event.preventDefault();
      event = await this.prepareForm(event);
      // event.target.submit();
      Turbo.navigator.submitForm(event.target)
    }
  }

  async prepareForm(event) {
    this.element.classList.add('loading');

    if (document.querySelector('body')
      .getAttribute('data-not-a-robot') !== 'true'
    ) {
      const recaptchaSiteKey = document.getElementsByTagName('body')[0]
        .getAttribute('data-recaptcha-site-key');

      try {
        await recaptchaInit();
      } catch (_) {
        flash(this.captchaInitFailureValue, ['alert', 'alert-danger']);
      }

      if (typeof grecaptcha === 'object') {
        await grecaptcha.ready(async () => {
          try {
            await grecaptcha.execute(recaptchaSiteKey).then(token => {
              const action = this.element.action;
              const url = new URL(action);
              url.searchParams.set('reCaptchaToken', token);
              event.target.setAttribute('action', url.toString());
            });
          } catch (_) {
            flash(this.unknownFailureValue, ['alert', 'alert-danger']);
          }
        });
      }
    }
    this.formReadyValue = true;

    return event;
  }
}

Calling HTMLFormElement.submit() won't fire events, which is what Turbo hooks into.
Have you tried calling HTMLFormElement.submit instead of Turbo.navigator.submitForm(event.target)?
event.target.requestSubmit()

For some reason event.target.requestSubmit() does nothing, or at least, it doesn't submit nor it triggers back my submitForm() function.

Nevermind, the problem was somewhere else in the code, thanks for your replies though.


Issue: Messages not delivered when subscribing to a topic

Issue
I'm experiencing an issue where messages are not being delivered when subscribing to a specific topic in system.
Steps Taken:

Subscribed to the topic.
Waited for messages to be delivered when events occur related to that topic.
Publish messages to the topic.

Observed Behavior:

I'm not receiving any messages when events occur in the topic I subscribed to.
However, it's worth noting that retained messages work as expected, and there are no issues with them.

Environment

VerneMQ Version: gojektech/vernemq:latest
OS: Ubuntu 22
Erlang/OTP version (if building from source):
VerneMQ configuration (vernemq.conf) or the changes from the default
Cluster size/standalone:

Docker Compose
version: '3.8'
services:
  vernemqgojek:
    image: gojektech/vernemq
    container_name: vmq-gojek
    environment:
      DOCKER_VERNEMQ_ALLOW_ANONYMOUS: 'off'
      DOCKER_VERNEMQ_PLUGINS__VMQ_ACL: 'off'
      DOCKER_VERNEMQ_PLUGINS__VMQ_PASSWD: 'off'
      DOCKER_VERNEMQ_PLUGINS__VMQ_DIVERSITY: 'on'
      DOCKER_VERNEMQ_LOG__CONSOLE__LEVEL: debug
      #      DOCKER_VERNEMQ_ALLOW_REGISTER_DURING_NETSPLIT: true

      DOCKER_VERNEMQ_PLUGINS__VMQ_ENHANCED_AUTH: 'on'
      DOCKER_VERNEMQ_VMQ_ENHANCED_AUTH__ENABLE_JWT_AUTH: true
      DOCKER_VERNEMQ_VMQ_ENHANCED_AUTH__SECRET_KEY: 'key'
      DOCKER_VERNEMQ_VMQ_ENHANCED_AUTH__ENABLE_ACL_HOOKS: true

      DOCKER_VERNEMQ_REDIS_SENTINEL_ENDPOINTS: '[{"redis-sentinel-1", 26379},{"redis-sentinel-2", 26379},{"redis-sentinel-3", 26379}]'
      DOCKER_VERNEMQ_MSG_QUEUE_REDIS_SHARDS_CONNECT_OPTIONS: '[[{host,"redis-master"},{port,6379},{database,1}]]'
      DOCKER_VERNEMQ_MAIN_QUEUE_WORKERS_PER_REDIS_SHARD: 1
      DOCKER_VERNEMQ_REDIS_QUEUE_SLEEP_INTERVAL: 0
    ports:
      - "1884:1883"
      - "8081:8080"
      - "8889:8888"

Hi, could you please share the subscribed topic?

i, could you please share the subscribed topic?

i subscibed to "loc/abc/mes" with configuration vmq.acl
token loc/%(u, :, 2)/+ label loc_user_read

I didn't encounter any errors with code 128 when subscribing to the mentioned topics.
However, I have followed your instructions and added the complex topics to be whitelisted to the vmq.trie file. Despite this, I'm still unable to receive messages.
Thank you for your assistance in addressing this matter.

Which client are you using?

I'm using postman

Can you try using MQTTX client? https://mqttx.app/
I am not sure if postman is correctly capturing the response codes.

I have tried using mqttx.app, there are no problems when I try to subscribe to topics that I allow in vmq.acl & vmq.trie.
vmq.acl
topic bar label topic_bar
vmq.trie
bar

Is there something wrong with the above configuration?

Please check the logs.

Here are the logs:
06:47:31.477 [debug] loading modules: [vmq_enhanced_auth,vmq_enhanced_auth_app,vmq_enhanced_auth_cli,vmq_enhanced_auth_reloader,vmq_enhanced_auth_sup]
2024-04-26T06:47:36.248642085Z 06:47:36.248 [debug] transition from offline --> online because of add_session
2024-04-26T06:48:15.669283246Z 06:48:15.669 [debug] transition from offline --> online because of add_session
2024-04-26T08:11:30.624620082Z 08:11:30.623 [info] alarm_handler: {clear,system_memory_high_watermark}
2024-04-26T08:12:30.625799791Z 08:12:30.625 [info] alarm_handler: {set,{system_memory_high_watermark,[]}}

Please connect with me on linkedin and setup a quick debugging call.

Thank you, this issue has been resolved after a quick debugging call


google analytics tracking

We have all the info we want in cloudflare. Even more now with the business paln

#854

Analytics might slow down our website and we already have cloudfare based analytics

closing this considering we don't want the site to slow down. .

not needed more analytics as we have cloudflare. If needed IMHO we can go with Opensource Piwik to avoid leaking out any personal data. Closing considering - performance impact and privacy impact and because of low priority.


Fix issue 422

Fix tab not working for all the commands
Signed-off-by: Mike Robinson<EMAIL_ADDRESS>

Currently extending the fix to include auto completion for all the command options as well.

Updated the diff to include completion for all the command options as well.

Updated the diff to re-order the completion script command lists to match the help output.


Pipeline editor for no mouse users

Describe the issue
I'm quadriplegic, and I can't use a mouse while interacting with the computer. To overcome this issue, I use the keyboard Sticky Keys available in most OS and the web browser's Vimium plugin.
The first enables me to holds some special keys like SHIFT and ALT simultaneously with any other keyboard key. As a consequence, I can use most shortcuts.
Meanwhile, the second one emulates the mouse click event by mapping all clickable items on the current page with a label. When I type the label on the keyboard, it clicks on the associated item.
Given that, I'm facing a few problems:

Node addition - You have to drag a file and drop it inside the pipeline editor to create a node.
Node connection - You have to drag the first node's dot (or connector) and drop it in the second node's dot to add a connection between nodes.

Both actions require mouse usage, which I can't handle. I did try to edit the pipeline file in raw mode (JSON), but it did not work. As far as I went, it has too many variables and internal references. Every time I changed one thing, It breaks somewhere.
Suggestion
It would be nice to create the pipeline file manually with the nodes and their attributes, a simplified version.

@tomlyn should this issue be transferred to canvas?

@ptitzler
Well there are two things here. There is the general requirement for accessibility (using the keyboard) which we have requirements for -- and we are working on -- so we could transfer this to canvas as an extra reminder about that work.
However, Bruno's suggestion of being able to create a simplified pipeline flow file and then feed that into canvas could be implemented by the Elyra team. You could decide on a simple format and then write a conversion algorithm that reads in the new simplified format and writes out a valid pipeline flow document which is then fed to canvas.


Skip asset precomp on non-preview heroku envs

Following a nice suggestion from PK here on skipping redoing asset precompilation on staging and prod heroku environments without needing to add dummy manifest files, and still run precompilation for preview environments.
@blueapron/devops @blueapron/consumer

Should reserve some herb server and configure it to use this branch to build and deploy

The move to AWS is so close to happening, I'm just abandoning this entirely


[conda] Fixed wrong variable name

This pull request addresses #1781.

Thanks for reviewing @paulmelnikow & @RedSparr0w!


Exposed Quill

There is no way to access Quill directly, and having this possibility allows for unlimited modifications/adding modules to editor. react-quill API doesn't allow to ex. create new module, and this can be a solution (for now at least).
var ReactQuill = require('react-quill');

ReactQuill.Quill.registerModule('my-image-tooltip', function (quill, options) {
    // ...
});

Uh, what a glaring omission!
Thanks a lot for this PR!

@zenoamaro Could you publish a new package with this important change as 0.3.1?

+1


Fancy operations and how to implement them

The more I use binarylang the more I like it, there's no way back now :)
I have to deal with fields that are not supported out of the box by binarylang and requires further processing after decoding, so I'm ending up writing some operations, like reading strings containing hex encoded bytes in little-endian order into integers
for example for uint8 and uint16
func fromLeHexInt8*(leInt: uint8): string =
  result = leInt.toHex
  assert result.len == 2

func toLeHexInt8*(s: string): uint8 =
  assert s.len == 2
  s.parseHexInt().uint8

func fromLeHexInt16*(leInt: uint16): string =
  let buffer = 0u16
  bigEndian16(buffer.addr, leInt.addr)
  result = buffer.toHex
  assert result.len == 4

func toLeHexInt16*(s: string): uint16 =
  assert s.len == 4
  let leInt = s.parseHexInt().uint16
  bigEndian16(result.addr, leInt.addr)

# -------------------------------

template leHex8Get*(parse, parsed, output: untyped) =
  parse
  output = toLeHexInt8(parsed)

template leHex8Put*(encode, encoded, output: untyped) =
  output = fromLeHexInt8(encoded)
  encode

template leHex16Get*(parse, parsed, output: untyped) =
  parse
  output = toLeHexInt16(parsed)

template leHex16Put*(encode, encoded, output: untyped) =
  output = fromLeHexInt16(encoded)
  encode

in binarylang open for contributions in this direction, to cover more common cases like this, or is it intended to stay lean and clean and let users provide their own ops?
thanks

Hello @arkanoid87!
Thank you for using binarylang! The answer to your question is "both". You should make an MR with your template definitions. They will become part of the binarylang template library.


Update data-collection-rule-create-edit.md

The PowerShell script in this doc returned the following error.
(error 1)
Line |
10 |  -RuleFile $RuleFile `
|  ~~~~~~~~~
| A parameter cannot be found that matches parameter name 'RuleFile'.
(error 2)
Line |
6 |  New-AzDataCollectionRule `
|  ~~~~~~~~~~~~~~~~~~~~~~~~~~
| Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be
| used together or an insufficient number of parameters were provided.
Referencing https://learn.microsoft.com/ja-jp/powershell/module/az.monitor/new-azdatacollectionrule?view=azps-12.0.0#syntax , it seems that this script needs those modification to work properly.
• -RuleFile ->  -JsonFilePath
• -RuleName -> -Name に変更
• delete -Location
•  delete -Description

Thanks for your dedication to our documentation. This suggestion has been triaged and approved. The new PR is 283664. #please-close


[Bug]: QS stops running

Before submitting your bug report, please confirm you have completed the following steps

[X] Searched the issue is not already listed in the Issue List (I've searched it)
[X] Searched in the Quicksilver Users' Group for questions relating to tech support.
[X] Downloaded the latest version of Quicksilver for your system and confirmed the issue still persists.

Bug description
QS stops running multiple times every day. I'm not sure that it's crashing, there's nothing in the system console log. After restarting it runs for a few hours and then silently quits.
Steps to reproduce

Start QS
Wait a few hours

Expected behavior
QS keeps running.
MacOS Version
macOS 12
Quicksilver Version
2.4.0
Relevant Plugins
No response
Crash Logs or Spindump
No response
Screenshots
No response
Additional info
M1 Mac mini, Monterey 12.6

Does QS report that it crashed whenever you restart it? (In which case it will usually offer to mail in a crash log.)
If not, I wonder if this might not be a Quicksilver issue, since there are no other indicators that it's crashing. Could something else be closing it?

Could there be something in there which doesn’t like Quicksilver running?

It's hard to say.
Have you tried temporarily disabling your plugins to see if the behavior is any different?
Can you try running the binary directly from Terminal.app (and leave it running until this happens) to see what kind of output you get?
Should be able to

Quit Quicksilver
open Terminal.app
paste in /Applications/Quicksilver.app/Contents/MacOS/Quicksilver and hit return
It should launch, might give you the request for permissions

Whenever you notice that QS has died, go back to that Terminal window and:

type echo $? return as the very first thing after the command above
paste any output you find from both commands

I haven't gotten a reply, so I'm closing this as dead. Please feel free to let me know if I should re-open.


[UBS_Tariffs] UI elements overlap each other when the user zoom 'Tariffs' page on 150% and 175%

**Environment:**Windows 10 Home (Version 22H2)
Chrome version 108.0.5359.71
MacOS version 12.6.1 (21G217)
Chromе version 107.0.5304.110Chromе version 107.0.5304.110
Reproducible: always.
Build found: 12/12/2022
Preconditions
Pre-conditions:

Go to https://www.testgreencity.ga/GreenCityClient/#/ubs
Sign in as Super admin
Go to page "Тарифи" and click on "gear" pictogram

Steps to reproduce

Click on the additional pictogram "Додати" and choose point "Кур'єр"
Change zoom of page from 75% to 150% (e.g. 75%, 85%, 90%, 100%, 110%, 120%, 130%, 140%,150%)

Actual result
UI elements overlap each other when the user zoom 'Tariffs' page on 150% and 175%
Expected result
The content of the page is adapted to set zoom option
User story and test case links
E.g.: "User story #3849
Test case"
Labels to be added
"Bug", Priority ("pri: low"), Severity ("severity: Major "), Type ("UI, "Functional")
https://user-images.githubusercontent.com/110603507/207097057-6c6c0ad6-8a16-489f-95f1-f68eabbec47b.mp4

Done


[QUERY] Storage: Query queue runtime properties

Library name and version
Azure.Storage.Queues latest
Query/Question
Hello
I have a requirement to create some functionality for some queues that resembles the Azure Service Bus' "Auto Delete When Idle".
Is there a possibility in the Sdk to retrieve Storage Queue metadata, more precisely when it was last used/accessed, or when was the last message posted or retrieved or deleted? So I can determine since when the queue was idle.
Thanks
Herald
Environment
No response

Hi @hgjura.   Thank you for reaching out and we regret that you're experiencing difficulties.    The Service Bus client library has a ServiceBusAdministrationClient which allows you to manage entities for the namespace, including reading their runtime properties.
For your scenario, the GetQueueRuntimeProperties method would allow you to view the QueueRuntimeProperties, which includes the timestamp that the service believes it was last accessed.  There is also a GetQueuesRuntimePropertiesAsync method that would allow you to inspect all queues for the namespace in a single call.
I'm going to mark this as addressed, but please feel free to use the "/unresolve" command if you'd like to continue the discussion.

/unresolve
Hello,
The question was not about Azure Service Bus, but rather if there was something similar in the Azure.Storage.Queues library. Something in the metadata which spots when the (Azure Storage) queue was used last.
Thanks
Herald

Apologies; that's my error.   I misread.   Redirecting.

Hi @hgjura,
You can retrieve queue metadata with QueueClient.GetProperties() or .GetPropertiesAsync(), which calls the REST API Get Queue Metadata.
Unfortunately, the only metadata stored for each queue is the approximant message count and user-settable metadata.  Last used/accessed and last message posted or retrieved or deleted are not properties that are tracked by the queue service.
-Sean


Memory leak?

After fixing a memory leak involved with gesture applying extensions in #72 there are still one or more potential memory leaks, as described in the ticket:
"In the beginning, the memory consumption is about 30 MB, but after changing the keyboard type several times, especially after scrolled through emojis in the collection view, the memory consumption keeps increasing significantly. In the end, it reached 103.2 MB."
For me, in a simulator, the memory consumption is stable and I do not see any huge increases in memory consumption as I change keyboards both globally and within the demo.
I have however adjusted the code in how StandardKeyboardActionHandler returns actions, where I have added weak self. I see no difference before and after doing this, but still think it's correct to have weak self there.
You can try these changes in the memory-leaks branch.

When digging into this, I also notice that just going forth and back in the menu causes memory to leak...if only a little. This is strange, since the demo app is basically just a storyboard with a text view outlet. It has no reference to the keyboard extension at all.

Hi @danielsaidi, I use the iPhone 6s for the simulator. I don't know if it makes differences or not.
Also, how about scrolling through emojis is the collection view? It increases memory usage significantly on my simulator. However, it seems other people also experienced high memory usage when tried to display emojis in collection view
I come across these SO posts related to showing emojis in keyboard extension:
https://stackoverflow.com/questions/34317729/high-memory-usage-in-uicollectionview
https://stackoverflow.com/questions/31151027/how-to-clear-font-cache-filled-with-emoji-characters

Also, I just want to make sure. Did you attach the debugger to keyboard process or host app process? Because I always build and run using KeyboardKitDemoKeyboard instead of KeyboardKit scheme, thus the debugger automatically attach to keyboard process, like this one:

Indeed, when I tried to build and run using KeyboardKit scheme, the memory consumption is stable around 62 MB. However, if we do this, I think the memory consumption displayed in debugger is for the host app process, not the keyboard extension process. Could you please confirm? and also please correct me if I'm wrong

The top one is host app process
The bottom one is keyboard extension process
Hope it will help you figure out the issue.

I was naturally looking at the app's memory footprint, not the extension's 🙃
I can reproduce the error now, thank you so much.

You need to delete all gestures not before creating a button, but before deleting.

I added this code to the removeArrangedSubviews method to remove all gestures before removing them from the superview.
       for row in subviews {
            if row is KeyboardButtonRow {
                let subr = row as! KeyboardButtonRow
                    for sub in subr.buttonStackView.arrangedSubviews {
                        for gesture in sub.gestureRecognizers ?? []{
                            sub.removeGestureRecognizer(gesture)
                        }
                }
            }
        }

I have tried what @fullhousetihon suggests, and it seems to "minimize" the memory leak when changing keyboard type or shiftstate. However, it's not solved memory leak when scrolling through emoji in collection view. I guess it's a different issue since other people also experience high memory usage when displaying a bunch of emojis in collection view (see my earlier comments)

The problem is similar. Each time they scroll through the emoji they create a new view and because of gesture the old ones remain in memory.

I was naturally looking at the app's memory footprint, not the extension's 🙃 I can reproduce the error now, thank you so much.
I adjusted the button action logic to only allow me to switch to emojis, with no other action logic being performed:
// button.gestureRecognizers?.forEach { button.removeGestureRecognizer($0) }
// if button.action == .switchKeyboard { return addSwitchKeyboardGesture(to: button) }
if button.action == .switchToKeyboard(.emojis) {
    addStandardKeyboardGestures(to: button)
}

However, this has no effect. The memory leak still occurs and I also see that the process keep running even when I shut down.

AFAIK when we close the keyboard, the process keeps alive in the memory so next time we open the keyboard it will be much faster. I guess it's how iOS system handle keyboard process. I have read an SO post that suggest us to call exit(0) when viewDidDissapear in KeyboardViewController, but in reality it will kill the keyboard process once we close the keyboard and next time we trigger action that will show the keyboard, there'll be lag

The problem is similar. Each time they scroll through the emoji they create a new view and because of gesture the old ones remain in memory.

If we remove gestures when we call removeArrangedSubviews, it won't remove gestures when collection view reusable cell being dequeued when we scroll through emojis. On the contrary, the gesture keep being added to the newly queued reusable cell (the ones that being displayed) CMIIW

I don’t know how much, but it holds the RepeatingGestureRecognizer object.

When you delete this line, everything becomes normal

After using @fullhousetihon code in removeArrangedSubviews function and commented out textLabel?.text = action.buttonText in DemoButton.swift to hide emojis temporarily, the memory usage stable around 43 - 44 MB, even when scrolling through emojis in collection view. It seems displaying emojis causing high memory usage just like the SO post said

@fullhousetihon This is the code for setting up the repeating gesture:
func addRepeatingGesture(to button: KeyboardButton) {
    let gesture = RepeatingGestureRecognizer { [weak self] in
        self?.handle(.repeatPress, on: button)
    }
    button.addGestureRecognizer(gesture)
}

So the gesture itself has no strong reference to the input view controller. I'll check the code for the gesture to see if some leak happens within it.

I haven't looked at this more in the UIKit demo. Can anyone of you check if you can recreate the memory leak in the new 3.0 beta SwiftUI app?

Hi @danielsaidi, will check it later in my spare time

I added more [weak self] a while back. Hopefully they solved the memory leaks. If not, feel free to reopen this ticket.


Virtual Scroll- Combination of Scrolling and Filtering Results in Empty Nodes

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x] 4.x
I'm submitting a ...  (check one with "x")
[ x] bug report
[ ] feature request
Current behavior:
Combination of scrolling and filtering results in empty nodes when using the virtual scroll component.
Expected behavior:
Combination of scrolling and filtering should not result in empty nodes when using the virtual scroll component.
Steps to reproduce:
Please follow the following steps using the sample app on Github, https://github.com/bparvizi/virtual-scroll-render-bug.  Recording of the issue can also be viewed on YouTube, https://youtu.be/q50TSKBhBxE

Start app.
Scroll all the way down to item 100.
Make sure scrolling is at a complete stop.
Click on the segment tab, “Filter 5”, in the footer to filter the virtual scroll list down to 5 items.
Make sure scrolling is at a complete stop.
Click on the segment tab, “All 100”, in the footer to filter the virtual scroll back to 100 items.
Notice nodes display empty.  This is reproducible both on iOS and in Chrome on the desktop,

Examined the markup and the nodes are present when the virtual scroll displays blank, however, the y position does not get updated and remains to be set to values way down the list.  For example, the style tag that sets the transform property will have large y values (2394px):
style="transform: translate3d(0px, 2394px, 0px);"
The nodes are not updated to reflect new y values set to the top like 0px, 126px, etc until the user manually scrolls again.  Our app uses cell heights of 80px which appears to really show the issue as seen here.
Related code:
Sample app made available on Github, https://github.com/bparvizi/virtual-scroll-render-bug

I can confirm this behavior.

@masimplo Can you take a look at this? After your great improvements on VirtualScroll by #12917, may be it is a simple fix for you.

My recommendation is to stay away from virtual scroll.  When your users start to experience blank screens from doing innocent operations like filtering and scrolling it's simply not production quality.  Something that should be so simple, but excruciatingly painful with no workaround.  Tried to auto scroll using a reference to the content, but iOS doesn’t seem to process the scroll events reliably and throws exceptions making the matter even worse.  Working with this component has been the biggest time drain and nightmare.  Completely worthless.

I just encountered this issue too.
When the user scroll, an offset is maintained here: https://github.com/ionic-team/ionic/blob/v3/src/components/virtual-scroll/virtual-scroll.ts#L720
This value is used to move the cells at the right place:
https://github.com/ionic-team/ionic/blob/v3/src/components/virtual-scroll/virtual-util.ts#L317
But when the scroll offset is changed by a filter, the virtual-scroll is not informed about it.
In my case, I always scroll to top when I use a filter, so I could solved this issue calling calling this.virtualScroll.scrollUpdate({ scrollTop: 0 } as any)
page.html
<ion-content>
    <ion-list #virtualScroll [...]>
            // cells
    </ion-list>
</ion-content>

page.ts
@ViewChild(Content) content: Content;
@ViewChild('virtualScroll', { read: VirtualScroll }) virtualScroll: VirtualScroll;

protected async myUpdateFunction() {
    await this.content.scrollTo(0, 0, 0);
    this.virtualScroll.scrollUpdate({ scrollTop: 0 } as any);
    // data loading
}

I encountered this issue as well and I tried the solution provided by @ericdesa, but it did not work for me.
So instead of using the VirtualScroll component provided by the ionic team I used this one:
https://github.com/rintoj/ngx-virtual-scroller
The performance are not exceptional when a user is scrolling very quickly, but at least it works!

I just encountered this issue too.
When the user scroll, an offset is maintained here: https://github.com/ionic-team/ionic/blob/v3/src/components/virtual-scroll/virtual-scroll.ts#L720
This value is used to move the cells at the right place:
https://github.com/ionic-team/ionic/blob/v3/src/components/virtual-scroll/virtual-util.ts#L317
But when the scroll offset is changed by a filter, the virtual-scroll is not informed about it.
In my case, I always scroll to top when I use a filter, so I was able to solve this issue by calling this.virtualScroll.scrollUpdate({ scrollTop: 0 } as any)
page.html
<ion-content>
    <ion-list #virtualScroll [...]>
            // cells
    </ion-list>
</ion-content>

page.ts
@ViewChild(Content) content: Content;
@ViewChild('virtualScroll', { read: VirtualScroll }) virtualScroll: VirtualScroll;

protected async myUpdateFunction() {
    await this.content.scrollTo(0, 0, 0);
    this.virtualScroll.scrollUpdate({ scrollTop: 0 } as any);
    // data loading
}

This worked for me, too - since scrolling up is alright for me when the filter changes. Just make sure the ViewChild is inside the controller class and you import the correct modules (import {Component, ViewChild} from '@angular/core'; import {…, VirtualScroll} from 'ionic-angular';) at the top of the file.

Hey @flowli ,
how this function getting executed ?
protected async myUpdateFuntion() {
} ?
i have paste the same code in my app but it is not working as expected.

@indraraj26 you run this function whenever you filter or generally change the data bound to the referenced VirtualScroll element.

Hey @flowli ,
When i bind function to (input) of ion-input i get this error;
Uncaught TypeError: Cannot read property 'height' of undefined
    at adjustRendered (virtual-util.js:406)
    at virtual-scroll.js:481

Thank you


Enhance the user interface of the login page by adjusting the layout of the social media login buttons.

Improvements Made:
Horizontal Alignment of Social Media Buttons:
Changed the layout of the social media login buttons from a vertical stack to a horizontal line.
This improves accessibility and user experience by making it easier for users to find and click on their preferred login method.
Increased Visual Cohesion:
The new layout provides a cleaner and more organized look, allowing users to quickly scan options without the distraction of stacked buttons.
Consistent Spacing:
Maintained equal spacing between buttons for a balanced appearance, ensuring that the interface remains visually appealing and functional.

I have made changes and drop the pull request please merge it.


🐞 Bug:footer in case of about is unresponsive for small screen

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
in the about section there is unresposiveness in the footer due to extra space more the screen size taken by buttons like email
.As seen in the ss the screen size is 280 but width of button is 290 which increase html size so there addsup a scroll horizonally
Steps To Reproduce
.
Expected Behavior
.
Screenshots
.

Device Information [optional]
- OS:
- Browser:
- version:

Additional context
No response
Are you working on this issue?
Yes

I would like to work on this issue.

it have'nt approved yet so wait for it

Ok

@VaibhavUpreti @vedant-jain03 @tanmoysrt  please assign this issue to me. My approach will changing the width of footer in the responsive mode

Ok

as iam not working on this one so you will be assigning with the issue on its approvement from maintainers

@tanmoysrt @vedant-jain03 @VaibhavUpreti please review the issue

@tanmoysrt can i work on this issue please

@tanmoysrt can i work on this issue please

Issue verified!
You can work the issue !

Actually I asked earlier, can I work on this issue?

Actually I asked earlier, can I work on this issue?

Sorry missed the message.
Can you please check another one, if anyone free or not any activity for longer time ?

@tanmoysrt this issue is stale for a while if @ravi1718 is not working on this shall I take this up ?

@DhairyaMajmudar Actually i have solved the issue and my exams are going on so i am not able to raise a PR please search any other issue

I see , no worries for that I will look for an another issue : )

Thank you !!


Need method to find Theoretical Price of option

May be method to calculate theoretical price will be good.

It was available here .


Allow right arrow on a collapsed cell to expanded

Testing #103887
I tested with multiple collapsed cells using the keyboard to navigate between them. I automatically pressed the right arrow key on a cell to expand it, like I would an item in the tree view. Maybe we should make that keybinding work as well  for collapsed cells?

It actually should work, the question is why it didn't. Can you try again?

Oh sorry I was thinking about folding

I don't want to do this because of the way it confuses these keybindings with folding.


Added GoveeDiscovery

More info:
https://github.com/galadril/Domoticz-Govee-Plugin

Thanks for this plugin

Thank you!


[requires.io] dependency update on master branch

Coverage remained the same at 100.0% when pulling d3e90f718848d5ddadd173460ab8831757069347 on requires-io-master into 1294ffe0e2a494a6c21d355434e90badec5f87d0 on master.


Chromecast doesn't accept stream selections (specifically Audio and Subtitles)

To recreate:
Load demo Angel One w/ Subtitles.
Enable Subs, View/test on browser player. (WebVTT is included in manifest)
Choose various audio languages, perhaps cycle tracks
Cast to Chromecast, there are no subtitles and the audio will only be the default 'en' track.

The current demo app does not support that yet.  You may notice that those controls are disabled as soon as you cast.
Please note that casting is done completely outside the library and in the application.  So you can already use the full range of Shaka features with the Chromecast in your own application, even though you can't see it in the demo.
With Shaka 2, we will organize the demo app in a way that shows all functionality both locally and on the Chromecast.

In addition to showing Cast support in the demo app, we've decided to bring Cast support in-library for v2.  We hope this makes it easier for users to build Cast receiver apps.

This is mostly done.  What we have so far will be in v2.0.0-beta3.  What's not done yet, which we hope to finish in the final v2.0.0:

Support for casting from the Cast button built into latest Chrome, as opposed to the Cast button on the video controls
CSS3 animated buffering spinner appears to perform poorly on Chromecast

Split the CSS3 animation performance issue to #505, which will be deferred until after v2.0.0.


How to use and mean SecurityLevel into OAuthClient?

How to use and mean SecurityLevel into OAuthClient?

I'm not sure what you mean, can you explain a bit more what you are trying to achieve?

I wish only to say what mean SecurityLevel.

AuthU doesn't have a OAuthClient class so I think you may be using some other library and getting confused?

No. The field is into the db table OAuthClient

Ahh, sorry, yes. This is to signify if the client is Insecure "0" such as JS, where saving your client secret would be bad, or Secure "1" if you client is compiled and so embedding the client secret is ok. If the client is "secure" then when you make a request using that client app the client secret is validated making sure requests only come from your client.

Ah ok. So in "secure" mode, I can call the webapi only from that clientID. Is't right?

that is correct yes. So say you developed a mobile app, you don't want just anyone using your api's, so this lets you restrict it to your application only. Where as for an insecure app, such as a web client, you'd probably have to secure it via the allowed origin header to only accept requests from your domain.


Dev reload of Morphia Entities (related to JPA reload)

I whipped up a quick demonstration of an issue I'm having with rapidoid-web 5.1.8 in developer mode. The capability of reloading on code change causing issues with Morphia's mapped entities.
In some instances the app detects code change, restarts and a ClassCastExceptions is thrown while using the Morphia Entity classes... other times ObjectId issues creep up (shown in the following project)
https://github.com/shoon/Rapidoid-Morphia-Dev_Issue

Thanks for the PoC, I am investigating the problem...

Thank you - release 5.1.9 has resolved our reloading issue with morphia.


How do I select the toolbar elements I want for my editor?

Hello, I feel really dumb to ask this question, but after re-reading about 15 times your documentation, I still can't manage to understand how to add some more elements to the toolbar, such as the images or the code.
I can't find a list of every available toolbar element anywhere, nor how to set a custom toolbar in place with React and ES6
The best I could do so far was the following, but I have no clue of what to REALLY do:
class ArticleNew extends React.Component {

// ... Here are the constructor, some functions, etc

    render() {
        let toolbarOptions = {
            ['bold', 'italic', 'underline', 'strike'],        // toggled buttons
            ['blockquote', 'code-block'],

            [{ 'header': 1 }, { 'header': 2 }],               // custom button values
            [{ 'list': 'ordered'}, { 'list': 'bullet' }],
            [{ 'script': 'sub'}, { 'script': 'super' }],      // superscript/subscript
            [{ 'indent': '-1'}, { 'indent': '+1' }],          // outdent/indent
            [{ 'direction': 'rtl' }],                         // text direction

            [{ 'size': ['small', false, 'large', 'huge'] }],  // custom dropdown
            [{ 'header': [1, 2, 3, 4, 5, 6, false] }],

            [{ 'color': [] }, { 'background': [] }],          // dropdown with defaults from theme
            [{ 'font': [] }],
            [{ 'align': [] }],

            ['clean']                                         // remove formatting button
        };

        return (
            <ReactQuill
                value={this.state.text}
                onChange={this.handleChange.bind(this)}
                toolbar={toolbarOptions}
            />
    )
}

However, with this kind of code, I get some obvious syntax errors. So... What can I do to get the full list of the available toolbar items and how to put them in my toolbar?
Thank you in advance

See the Quill docs for complete options: https://quilljs.com/docs/formats/


FIX: Pass boolean use_syn_sdc to find_estimators

Alternative to #2681. I think the reason we were hitting this edge case is that there was a type change.

This gets past the workflow building stage, so I'd say my fix was correct. Going to merge to get other PRs working.


add reserving actual hint hooks to pre modifier

pre modifier accept actual hint hooks.
It reserve actual hint via matcher result

:tada: This issue has been resolved in version 1.0.0-beta.76 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


DBZ-2315 fix BIT VARYING handling in Postgres connector

removed little endian padding for BIT VARYING types in PostgresValueConverter
removed legacy format handling fot BIT related types in JdbcValueConverters#convertBits which were maybe leftovers from PR #1408?
removed unnecessary zero-ing of a newly created byte array to improve performance for huge byte arrays

fixes https://issues.redhat.com/browse/DBZ-2315

I removed padding completely for BIT types. BIT types handling from JdbcValueConverters is only used for Postgres.

for BIT type Postgres only allows storing all bits. So we always get all bits in the bit-string, all bits are in the data and there's no need to pad the data
for BIT VARYING type Postgres only replicates provided data. When retrieving or working with data, PG automatically right-pad with zeros to the set number of bits or MAX INTEGER when not precision is specified. e.g. when someone enters "101" in a BIT VARYING (2000) field PG will replicate "101". When retrieving that field it will automatically right-pad with 1997 zeros (in order to add up to 2000 bits). Debezium will replicate that behaviour now by sending a byte array with the specified input ("101" in the example) and the precision as schema.parameters.length (2000 in that example).

IMHO the code was not written in a way to imitate MySQL behaviour but brings its own - see https://issues.redhat.com/browse/DBZ-123

@rk3rn3r, thx for the update! Added some more comments/questions; I think it's good to go once the test for BIT is added.

Applied. Thanks, @rk3rn3r! Still curious why it worked with the old version, but no blocker.


[CT-3129] Ability to test the incremental behavior of models using incremental strategy that requires partitioning

Description
Ability to test the incremental behavior of models using an incremental strategy that requires partitioning (insert_overwrite or delete+insert). See #8422.

If I have an incremental model that uses a strategy that uses "partitioning":
{{
  config(
    materialized='incremental',
    unique_key='date_day',
    incremental_strategy='insert_overwrite',
    ...
  )
}}

select
    date_trunc('day', event_at) as date_day,
    count(distinct user_id) as daily_active_users

from {{ ref('events') }}

{% if is_incremental() %}

  -- this filter will only be applied on an incremental run
  -- (uses >= to include records arriving later on the same day as the last run of this model)
  where date_day >= (select max(date_day) from {{ this }})

{% endif %}

group by 1

I should be able to add a unit test to this model and have it work as expected.

unit_tests:
  - name: my_favorite_unit_test
    model: my_incremental_model
    given:
      - input: ref('events')
        format: csv
        fixture: my_events_input_fixture
      - input: this
        format: csv
        fixture: my_incremental_model_this_fixture
    expect:
      format: csv
      fixture: my_incremental_model_output_fixture
    overrides:
      macros:
        is_incremental: true

Acceptance Criteria
Unit testing of incremental models with insert_overwrite or delete+insert strategy.
Impact to Other Teams
None
Will backports be required?
No
Context

blocked on #8499

Hi @graciegoheen @gshank. I see this issue is blocked. Was wondering if there's any development going on to make this happen and if so, if you have any (super broad) timelines? Or has this been deprioritised for the moment? Thanks in advance!

I'm also wondering if this is in the works still!


[Bug] Llama model not running properly in Android app

🐛 Bug

To Reproduce
Steps to reproduce the behavior:

Follow the guide at https://llm.mlc.ai/docs/deploy/android.html

Expected behavior

The model should be able to hold a conversation.
Environment

Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA):Android
Operating system (e.g. Ubuntu/Windows/MacOS/...):Windows
Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...): Samsung Z Flip3
How you installed MLC-LLM (conda, source):  source
How you installed TVM-Unity (pip, source): pip
Python version (e.g. 3.10): 3.11
GPU driver version (if applicable):
CUDA/cuDNN version (if applicable):
TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models):
Any other relevant information:

Additional context

The model was initialized and ready to chat but upon inputting "hi". The below error was given
MLCChat failed

Stack trace:

org.apache.tvm.Base$TVMError: [23:32:03] C:/Users/yeoph/mlc-llm/3rdparty/tvm/src/runtime/relax_vm/builtin.cc:241: Check failed: (ptr->dl_tensor.ndim == ndim) is false: ValueError: ErrorContext(fn=prefill, loc=param[0], param=input_ids, annotation=R.Tensor((1, seq_len), dtype="int32"))  expect Tensor with ndim 2 but get 3

Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time.

	at org.apache.tvm.Base.checkCall(Base.java:173)	at org.apache.tvm.Function.invoke(Function.java:130)

	at ai.mlc.mlcllm.ChatModule.prefill(ChatModule.java:54)

	at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$1.invoke(AppViewModel.kt:666)

	at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$1.invoke(AppViewModel.kt:666)

	at ai.mlc.mlcchat.AppViewModel$ChatState.callBackend(AppViewModel.kt:548)

	at ai.mlc.mlcchat.AppViewModel$ChatState.requestGenerate$lambda$4(AppViewModel.kt:666)

	at ai.mlc.mlcchat.AppViewModel$ChatState.$r8$lambda$lluIrcsPALEW5nCb2tohZYadhTY(Unknown Source:0)

	at ai.mlc.mlcchat.AppViewModel$ChatState$$ExternalSyntheticLambda3.run(Unknown Source:6)

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)

	at java.util.concurrent.FutureTask.run(FutureTask.java:264)

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)

	at java.lang.Thread.run(Thread.java:1012)

Error message:

[23:32:03] C:/Users/yeoph/mlc-llm/3rdparty/tvm/src/runtime/relax_vm/builtin.cc:241: Check failed: (ptr->dl_tensor.ndim == ndim) is false: ValueError: ErrorContext(fn=prefill, loc=param[0], param=input_ids, annotation=R.Tensor((1, seq_len), dtype="int32"))  expect Tensor with ndim 2 but get 3

Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time.

Did you compile the library yourself or use the prebuilt ones here

@Kartik14 I used the prebuilt

same issue

Did you compile the library yourself or use the prebuilt ones here
@Kartik14
I use prebuilt libs, I simply placed the Llama-2-7b-chat-hf-q4f16_1-android.tar file from binary-mlc-llm-libs  into the dist/libs directory, and then proceeded with the following steps: running ./prepare_libs.sh, followed by ./gradlew assembleDebug. Is this the correct process?
I put the model file like mv /data/local/tmp/Llama-2-7b-chat-hf-q4f16_1 /storage/emulated/0/Android/data/ai.mlc.mlcchat/files/ it can not find the model files when use app in Android phone. Why? Thanks a lot!

Unfortunately I am unable to reproduce it on my end. It seems like you might be using an older version of the library. Recently the function signatures were updated to handle batched input (hence getting the 3 dim input). Can you try fetching the latest libs from https://github.com/mlc-ai/binary-mlc-llm-libs and build again? If that doesn't work, maybe try compiling the model libraries yourself. You can find the instructions here

Hi, Ideally both should work the same. If compiling by yourself is not working, then you probably need to download the latest wheels or build again from source. Also you should update the tvm wheel(mlc-ai) as well

I tried redoing and there's a new error
MLCChat failed

Stack trace:

org.apache.tvm.Base$TVMError: [14:05:37] C:/Users/yeoph/mlc-llm/3rdparty/tvm/src/runtime/opencl/opencl_module.cc:90: InternalError: Check failed: (e == CL_SUCCESS) is false: OpenCL Error, code=-54: CL_INVALID_WORK_GROUP_SIZE

Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time.

	at org.apache.tvm.Base.checkCall(Base.java:173)	at org.apache.tvm.Function.invoke(Function.java:130)

	at ai.mlc.mlcllm.ChatModule.decode(ChatModule.java:74)

	at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$2.invoke(AppViewModel.kt:669)

	at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$2.invoke(AppViewModel.kt:668)

	at ai.mlc.mlcchat.AppViewModel$ChatState.callBackend(AppViewModel.kt:548)

	at ai.mlc.mlcchat.AppViewModel$ChatState.requestGenerate$lambda$4(AppViewModel.kt:668)

	at ai.mlc.mlcchat.AppViewModel$ChatState.$r8$lambda$lluIrcsPALEW5nCb2tohZYadhTY(Unknown Source:0)

	at ai.mlc.mlcchat.AppViewModel$ChatState$$ExternalSyntheticLambda3.run(Unknown Source:6)

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)

	at java.util.concurrent.FutureTask.run(FutureTask.java:264)

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)

	at java.lang.Thread.run(Thread.java:1012)

Error message:

[14:05:37] C:/Users/yeoph/mlc-llm/3rdparty/tvm/src/runtime/opencl/opencl_module.cc:90: InternalError: Check failed: (e == CL_SUCCESS) is false: OpenCL Error, code=-54: CL_INVALID_WORK_GROUP_SIZE

Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time.

identified the issue, same as #1923


Add possibility to generate Doc HTML from pure text without connection to Enso AST

Pull Request Description
Enables IDE to generate doc string without Enso Code
Important Notes

Checklist
Please include the following checklist in your PR:

[ ] The documentation has been updated if necessary.
[ ] All code conforms to the Scala, Java, and Rust style guides.
[ ] All code has been tested where possible.

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


The duration of routing for hiking / pedestrian doesn't make any distinction between ascent and descent

Hi!
GraphHopper adds the elevation data since a few years and that's fantastic. Having the elevation for each of the points of the route is really a wonderful data very appreciated when calculating hiking routes.
However, it doesn't seem to take into account the elevation data when calculating the time / duration of the Path or Instruction. I realized about this, when I wanted to calculate the reversed path of a given route with 2000m of ascent, and 500m of descent. When calculating the reversed route (which has 500m of ascent and 2000m of descent), I saw that the time estimate was exactly the same.
At the beginning I thought that there was a bug in the time calculation process, and that it didn't show the correct time for reversed routes. But after doing some more tests, I can see that a 5km route, with barely no elevation, has the same time (60min) than a route with 300m or 400m of ascent.
I see that in the config.yml, there's a comment saying the following:

bike2 takes elevation data into account (like up-hill is slower than down-hill) and requires enabling graph.elevation.provider below

Perhaps it would be great to allow the customization of the config.yml to implement that in the hiking profile. Or even better, since knowing more accurate information, like the estimated walking time, is something that probably everyone wants to know, it could be implemented by default.
Would it be possible to implement this easily? I could do it myself with some hints / guidance. Or at least I could help with this.

This is partly done in https://github.com/graphhopper/graphhopper/pull/1750 (still no difference between downhill vs. uphill as this would require two weights per edge)

Relevant methods are the DAV (DIN-Norm 33466) and SAC
https://www.bergfreunde.de/gehzeit-rechner/#Gehzeit-Berechnung
https://de.m.wikipedia.org/wiki/Marschzeitberechnung

Currently, the duration suggested by the hiking profile is good for trails that monotonously go down. The reverse trail is off from signposted estimates by a quite linear factor of around 1:1.6 or 1:1.7, which coincidentally maps to 500/300 - the DAV recommended elevation overheads.
Sample routes in the other thread, at the end - https://github.com/graphhopper/graphhopper/issues/1679

Currently, the duration suggested by the hiking profile is good for trails that monotonously go down. The reverse trail is off from signposted estimates by a quite linear factor of around 1:1.6 or 1:1.7, which coincidentally maps to 500/300 - the DAV recommended elevation overheads.
Sample routes in the other thread, at the end - https://github.com/graphhopper/graphhopper/issues/1679


Classification: apply an existing (already vetted) ML classification algorithm

For example, use the braai architecture from ZTF
See the paper

Note:  in sprint 2 planning, we decided that this is low priority.   We want to focus first on doing the new thing, i.e.,  classification into "multiply-imaged candidate" or "not that" rather than "single transient candidate" vs "not real" (which is what braai does).     Resolving this issue in the future, however, will allow us to feed the braai results into the multiply-imaged classification algorithm to see if we get different / better results compared to a naive threshold-based feeder function

Note:  in sprint 2 planning, we decided that this is low priority.   We want to focus first on doing the new thing, i.e.,  classification into "multiply-imaged candidate" or "not that" rather than "single transient candidate" vs "not real" (which is what braai does).     Resolving this issue in the future, however, will allow us to feed the braai results into the multiply-imaged classification algorithm to see if we get different / better results compared to a naive threshold-based feeder function


Data type issue on Enumerable.Sum(TSource) method

Environment: EF-Core 1.1, VS2015, Windows 10 (updated from Windows 7)
I'm getting the following error on LINQ Query shown below:
Unable to cast object of type 'System.Double' to type 'System.Nullable1[System.Single]'`
LINQ:
var totalFreight =     (from cust in db.Customers        join ord in db.Orders on cust.ordID equals ord.OrdID       select ord.Freight).Sum();
NOTES:

I'm trying to follow these MSDN examples: 1 and 2

I've verified that Freight column in Orders table is of type float?.  In VS2015, I've hover over ord.Freight in the above query to confirm the type of Freight column - that's is showing as float?

I've tried changing var to float? and double? and decimal?. But still the EXACT SAME error message as shown above.

@maumar

dupe of #7136 which is fixed in 1.1.2


Base URL for Swagger UI behind a load balancer/proxy

We have started moving our public API to the Swagger framework and decided to use NSwag to do that. There is one issue with our Swagger UI though. As the public API always lives behind a proxy, the base url is always wrong (it always points to localhost instead of the public url), which means that the UI can only be used as documentation and not as an actually interactive service where you can try out requests.
Is there a way to set the base url for UI only?
This is how we define (and start) the swagger UI:
  app.UseMvc();
  var swaggerUiSettings = new SwaggerUiSettings
  {
    DefaultPropertyNameHandling = NJsonSchema.PropertyNameHandling.CamelCase,
    DefaultEnumHandling = NJsonSchema.EnumHandling.String,
    IsAspNetCore = true,
    Title = "API",
    Version = "v1",
    SwaggerUiRoute = ""
  };

  app.UseSwaggerUi(typeof(Startup).Assembly, swaggerUiSettings);

You can change the host, scheme, etc. with the PostProcess callback of the SwaggerUiSettings

Thanks, adding this solved the issue
    PostProcess = document =>
    {
      document.Host = "my.public.address";
      document.Schemes = new System.Collections.Generic.List<SwaggerSchema> { SwaggerSchema.Https };
    }


Update version to 1.0.0-alpha

Purpose

Update the version to 1.0.0-alpha

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


Question!

Hi Ryan,
First, thank you for this amazing app. I am trying to adopt it to an iOS app and do you think this is possible: After authenticating the user, sending a url to the server like this http://localhost:3000/payment?buyer_id=...&seller_id=...&amount=...&fee=... with the buyer, seller id and the amount and the server would make the payment with stripe and return the other parameters.  This would remove a lot of steps.
Thank you!

Hey, glad you're finding this project useful! I don't see any problem with the approach you're suggesting. I might try to keep the amount and fee calculation on the server (by using a product or order ID of some kind), and maybe also add a shared secret or API key-like value to the parameters (eg http://localhost:3000/payment?buyer_id=...&seller_id=...&order=...&token=SHAREDSTRING). Also in production of course you'd want that to be an https URL. But besides that, sounds good to me!
If you want to discuss this further you could shoot me an email about it -- http://ryanfunduk.com/contact


docs: add structure to the feature list

move the list of devkit features to a partial, and update it in both the home page and general introduction in docs to add an additional level of structure following Milan's feedback

@noelmace one minor suggestion. Feel free to merge after having reviewd it.


Lights with radius overlapping with mesh result in sharp specular cutoff

Bevy version Main dcb8a13b223fbc9425f7af01b3941dd80a229384, 0.13
This isn't a new issue. I checked and the same issue occurs in bevy 0.6.
When the radius of a point or spot light intersects with a mesh, it creates a sharp cutoff in the specular reflection. This sharp cutoff is also not aligned with the intersection between the mesh and the light radius.
Point light with radius of 3 at Y=2: (Example code below)

Sphere with same radius and location as point light

The same scene in Blender (4.1 eevee):

With sphere:

Blender also has a "Soft Falloff" setting that is enabled by default for point/spot lights:

use bevy::prelude::*;
fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run();
}
fn setup(
    mut commands: Commands,
    mut meshes: ResMut<Assets<Mesh>>,
    mut materials: ResMut<Assets<StandardMaterial>>,
) {
    commands.spawn(PbrBundle {
        mesh: meshes.add(Plane3d::default().mesh().size(100.0, 100.0)),
        material: materials.add(Color::BLACK),
        ..default()
    });
    commands.spawn(PointLightBundle {
        point_light: PointLight {
            radius: 3.0,
            ..default()
        },
        transform: Transform::from_xyz(0.0, 2.0, 0.0),
        ..default()
    });
    commands.spawn(Camera3dBundle {
        transform: Transform::from_xyz(-2.5, 2.5, 9.0).looking_at(Vec3::ZERO, Vec3::Y),
        ..default()
    });
}

The faulty calculations are in https://github.com/bevyengine/bevy/blob/ee6dfd35c9fd44c1d1984319e1134f15b87abc7a/crates/bevy_pbr/src/render/pbr_lighting.wgsl#L194
It is based on this:
http://blog.selfshadow.com/publications/s2013-shading-course/karis/s2013_pbs_epic_notes_v2.pdf Page 14-16
It contains the following section:
"Irradiance for a sphere light is equivalent to a point light if the sphere is above the horizon. Al-
though counter-intuitive, this means we only need to address specular lighting if we accept inaccuracies
when the sphere dips below the horizon."
So, I assume it is a shortcoming of the algorithm and should be documented.


Improve performance of add_row_number

Pull Request Description
Fixes #8055
Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[ ] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

Comparing the added benchmark before switching to the Java implementation:

Benchmark
Old impl (Enso)
New impl (Java)

Simple
0.098 ms
0.059

Grouped
3221.116 ms
3.329 ms

Ordered
2050.130 ms
36.468 ms

Grouped+Ordered
1672.881 ms
19.377 ms

Sort_Table
8.658 ms
4.722 ms

Group and sort
8.987 ms
8.407 ms

Explanation:

Simple means an add_row_number without any grouping or ordering - here the implementation did not really change.
Sort_Table is a baseline comparison of table.order_by
Group_And_Sort is a baseline comparison of table.aggregate [Group_By "X", First "Y" order_by=["Y"]]which causes a grouping and sorting similar toadd_row_number group_by="X" order_by="Y"`.

Summary:
We can see that the old implementation was magnitudes slower than the 'baseline' table sort or table aggregation. The new implementation is +- on par with the baseline.

Benchmark data
Before:
Label,Phase,"Invocations count","Average time (ms)"
"Add_Row_Number_50000.Simple","Warmup",8865,0.451
"Add_Row_Number_50000.Simple","Measurement",61183,0.098
"Add_Row_Number_50000.Grouped","Warmup",1,4738.558
"Add_Row_Number_50000.Grouped","Measurement",2,3221.116
"Add_Row_Number_50000.Ordered","Warmup",1,6120.888
"Add_Row_Number_50000.Ordered","Measurement",3,2050.13
"Add_Row_Number_50000.Grouped_And_Ordered","Warmup",3,1856.407
"Add_Row_Number_50000.Grouped_And_Ordered","Measurement",4,1672.881
"Add_Row_Number_50000.Sort_Table","Warmup",422,9.491
"Add_Row_Number_50000.Sort_Table","Measurement",694,8.658
"Add_Row_Number_50000.Group_And_Sort","Warmup",352,11.372
"Add_Row_Number_50000.Group_And_Sort","Measurement",668,8.987

After:
Label,Phase,"Invocations count","Average time (ms)"
"Add_Row_Number_50000.Simple","Warmup",26577,0.151
"Add_Row_Number_50000.Simple","Measurement",100861,0.059
"Add_Row_Number_50000.Grouped","Warmup",949,4.217
"Add_Row_Number_50000.Grouped","Measurement",1803,3.329
"Add_Row_Number_50000.Ordered","Warmup",99,40.556
"Add_Row_Number_50000.Ordered","Measurement",165,36.468
"Add_Row_Number_50000.Grouped_And_Ordered","Warmup",168,23.852
"Add_Row_Number_50000.Grouped_And_Ordered","Measurement",310,19.377
"Add_Row_Number_50000.Sort_Table","Warmup",712,5.628
"Add_Row_Number_50000.Sort_Table","Measurement",1272,4.722
"Add_Row_Number_50000.Group_And_Sort","Warmup",320,12.512
"Add_Row_Number_50000.Group_And_Sort","Measurement",714,8.407


Error (0x01) - Line: xx Col xx - File to import not found or unreadable

Hi,
I've installed the latest Scout app (WIN_Scout-App_2.6.8) and am having problems getting it to work.  I never had a problem with the old Scout app (0.7.1) that used Adobe Air and Java, but as I'm starting out on a new computer build I don't want to install Java this time around bearing in mind all the security concerns it causes.
So I've added my current project that I'd backed up before rebuilding my computer.
Within my project I've the sub-folders:-
/library/scss
and
/library/css
within scss I have, as example, two scss files:-
style.scss
and
_base.scss
When I try to amend content in _base.scss I get an error in Scout:-
Error (0x01) - Line:32 Col: 1
File to import not found or unreadable: base
Parent style sheet:
style.scss
31: // styles in base.scss
32: @import "base";

I've searched for similar errors, tried (for the sake of argument) changing line 32 to @import "_base" or "_base.scss", and then tried deleting the .sass-cache folder hoping that it might have been causing the problem due to it caching (possibly) the old folder structure to which this project was within before I had to wipe my computer.
I cannot seem to figure this out, am I missing something obvious please?

I am unable to reproduce this issue. I assume that you have a syntax error in your code somewhere and that the error it's giving is unrelated. This error is generated by Node-Sass, Scout-App just surfaces it and makes it easier to parse.

If this isn't an accurate reproduction of your issue, please upload a version that allows me to reproduce your bug..

I have this error. I found that I had to use the full path starting from C:/ ... / ... / all the way to the file.
Is this an issue or does the scout app support relative paths?
The old scout app accepted paths starting from the Input folder but this ones doesn't seem too.
Also on windows installation. Downloaded it today.

@lad33 @leewaring

Scout-App 2 fully supports relative and direct links.
We have some Testing folders in the repo that we use to make sure it works correctly before doing a release.
Again, this is likely a syntax error in your code that is causing this. If you can give me a project that causes this issue so I can reproduce it locally, I can verify if this is an error in your code, or if there is a legitimate bug in Scout-App that needs fixed for the next release.

My project is set up like this:
Website (output folder)

_SCSS (Input folder)
-- Global
--- base.scss
-- css
--- _functions
---- colours.scss
---- fonts.scss
---- mixins.scss
---- functions-all.scss
--- _modules
--- etc...
css (outputted CSS files)
Global (outputted CSS files)

My base.scss file looks like this
/* ==== Import all functions */
@import 'css/_functions/functions-all';
/* ==== Import code modules */
@import 'css/_modules/core/normalise';
@import 'css/_modules/core/fonts';
@import 'css/_modules/core/core-element-styles';
@import 'css/_modules/core/helper-classes';
@import 'css/_modules/core/typesetting';
@import 'css/_modules/core/links';
@import 'css/_modules/core/layout';
@import 'css/_modules/core/sitefinity-layout-overwrites';
@import 'css/_modules/core/mobile-menu-button';
@import 'css/_modules/core/common-element-styles';
@import 'css/_modules/core/cookie-bar';
@import 'css/_modules/core/header-footer';
@import 'css/_modules/core/buttons';
@import 'css/_modules/core/print';
Does this help?

@leewaring
I made a video to help explain what's going on:

https://youtu.be/FD6G2Yveigs

Thanks for the video! Cleared up a few things which have been bugging me.
So it seems on the version of Scout that I was running the path to imported files could be either relative, direct or relative to the input folder (kind of like setting a HTML base tag as a reference point).
In all of my scss files I could use @import 'css/_functions/functions-all'; and it would import the functions-all scss file no matter how far down the document tree the file was saved as it would start at the Input folder and work from there.
I liked this feature as I didn't have to worry about changing the path or if I moved the scss file to another folder up or down the document tree I wouldn't have to change the import path to the functions file.
I agree my project is set up rather strange however in the CMS I am using (Sitefinity) the _SCSS folder is located in the root of the template folder. The template folder requires a Global folder (with capital G) of which any css files placed within will be loaded onto all pages. I then created a css folder in the root to house the page specific css files. It's rather a large site with over 100 style sheets so far so I'm keen on keeping order and making files easy to find. That said I have only been using scss for 6-8 months so still lots to learn!

@leewaring
Cool, glad that cleared things up. I won't be changing the way Scout-App 2 looks for files. The current process is handled completely by Node-Sass. It would take a lot of extra work to circumvent their built in system which would lead to a much buggier app.
Scout-App does a lot to make things easier for people, but changing this would just encourage bad habits and make it harder to transition a Sass code base from Scout-App to a different system like Webpack/Grunt/Gulp. Your Sass files and structure should follow the Sass standards and be agnostic towards what system you are using to process them.

@lad33
Let me know if that video helps you too. If so I can close this issue.

@TheJaredWilcurt
I may have stumbled upon a solution to this problem. It looks as though using // at the start of the path will make it look for the file from the input folder path. So I would need to update my import paths to //css/_functions/functions-all
I would wonder if this would also work on Webpack/Grunt/Gulp too?

That's a shame. I can't change to Scout app 2 if it doesn't offer the same functionality of its predecessor. Does Scout work because it creates a cache file just below the input folder?
I'll keep an eye on this project though and try it out for my other sites.
Thanks for all your help and advice. Really appreciate it.

Scout-App Classic was built on Java, Adobe Air, and Ruby (Ruby Sass).
Scout-App 2 is built on NW.js, Node, and Node-Sass (SassC).

The two share no code in common. Scout-App 2 was a complete rewrite to allow us to take advantage of modern (2016) Sass, since Scout-App Classic was stuck on a 2012 version of Sass that could not be updated. It also allowed us many other advantages, like better cross-platform support and easier developing. Though we've kept the design very similar, and have the same beliefs that drove Scout-App Classic, it simply cannot function identically due to the drastically different underlying technologies.
There is a basic comparison chart on Scout-App.io between the two.
It should be noted that Compass is Ruby only, so many projects that relied on it, also would need to be modified to use Scout-App 2. Fortunately (for Scout-App 2), the industry as a whole has been moving away from Compass over the last few years, so complaints about this have been very few.
I hope Scout-App 2 can accommodate your future workflows.

@leewaring
This isn't exactly what you were describing, but is related, so I thought I would let you know about it, since this feature isn't documented anywhere and may be of use to you:

https://github.com/scout-app/scout-app/issues/275#issuecomment-257368181

Hi, apologies for the delay in getting back in touch on this one...
I've had a read through of thread and watched the first half of the video however leewaring's setup looks a little more complex than mine so I'm thinking the cause for him may be different, or at least, my root problem is a variation on the theme.
Anyway...
Looking at my structure again, maybe I'm missing the obvious.
I have a project folder, within it the subfolder "library" as follows:-
project
= library
== css (Output folder)
== scss (Input folder)
Within the "scss" folder I have several files as example:-
scss
= _base.scss
= _grid.scss
= _mixins.scss
= style.scss
Incidentally, this structure is from a Wordpress theme called bones, I've been using as a project base.
Within style.scss, the following code snippet:-
// styles in base.scss
@import "base";
Hopefully, I've attached the style.scss file for easier reference:-
style.scss.txt
So, reading through the thread, and looking at the video I'm not sure my issue is the same as discussed, with both the _base.scss file and the style.scss file both sitting in the Input folder (scss) I'm thinking the absolute/relative path clarification isn't the issue?
From my limited understanding but what I've managed to pick up so far with Sass and using Scout previously, I'm thinking the idea of the structure and code is that all the _xxxx.scss have been set up as separation of concerns to keep code segmented and easier to maintain within the theme. The style.scss is the file that then collates these files and in turn Scout then "translates" that file into the equivalent (and compressed in my instance) style.css which is then created/updated into the output folder (css) from which Wordpress can apply the styling etc.  The underscore tells Scout to ignore the other files because I don't want them in the output folder, only the "compiled" css stytesheet from style.scss.
I think that's about right?
So, I'm stuck trying to understand the error when the style.scss is trying to import a file within the same folder as itself.
Does that help any further at all?
Thanks for taking the time to assist us with this.

@lad33
https://youtu.be/HF7-ryb9HPw

Hi,
Thanks again for picking this up and for taking the time to put the video together too. Much appreciated.
Sounds good advice so I'll schedule some time to do exactly that and hopefully it won't take me long before I track down the culprit.
I'll comment back when I've done so for feedback.
Cheers.

Windows8.1(64), (WIN_Scout-App_2.6.8)
I have similar problem.
When i add a new project and run it first time - i hear success sound and i see my code in generated styles.css [my first screenshot].
But then, when i make any changes and click ctrl+S in my text-editor - i head error sound and see an error(in dev tools) [my first screenshot].
I think the problem is - window-style path to my folder.
Scout-App opened it as: F:/Projects/test/
Win explorer gives me: F:\Projects\test

I just found: if i write my code using any other text editor (Notepad++, Brackets) - everything works perfect, i can save and see generated code in styles.css.
Sublime Text - still locking my styles.scss file for Scout-app.

@VladG0r
Though I'm still trying more thorough tests to attempt to reproduce this, my assumption is that it is related to atomic saves. This is enabled by default in Sublime in older versions, as of 3072 though it is disabled by default.
Scout-App uses chokidar to monitor changes on the file system (so when you save, it triggers the input to be processed again.)

https://www.npmjs.com/package/chokidar#errors

According to their documentation, you could  add atomic: true, to line 180 of Scout-App/scout-files/_scripts/app.js in your copy of the application. (Either above or after the ignored line).
You could try that and see if Sublime works with that setting enabled. If so, I can look into maybe adding a setting for it in the Scout-App preferences. Or you can try disabling the setting in Sublime Text, as detailed here:

http://stackoverflow.com/questions/20634684/what-is-sublime-text-doing-when-i-save-a-file

Or you could try updating to a never version of Scout-App that has it disabled by default.

You were right.
Sublime Text 3 (beta build 3126) has "atomic_save": false, by default.
Changed it to :true and magic happend. You saved my day, Thanks!

@lad33
Is the issue resolved for you?

@TheJaredWilcurt
Hi, I've done the same as VladG0r and changed the automic_save setting in Sublime Text 3 (beta build 3126) and I'm now not receiving the error.
Instead I'm receiving another error "Undefined variable: "{insert_variable_name}" in _base.scss for a variable declared in a separate mixin file _mixins.scss.
So I'm thinking the solution above has likely solved the problem stated therefore in this post but will need to test fully once I've resolved this new issue.
Thanks.

@lad33 if you have difficulty resolving the issue, link to a repo with the code in it, or zip and upload it and I'll take a look.

@TheJaredWilcurt Thanks.  I figured it out, just needed to set aside some time properly and catch my brain up as it'd been a while since I last had chance to look at the problem.
I'd simply forgotten that all my other partials were commented out in my style.scss file including the _mixins.scss where the variables are defined! Doh!
Once I'd uncommented the file everything worked as it should.

Awesome. Closing this issue.

Having this issue when using vscode. 🤕

Yep, same here. Im an error from time to time, telling me scout cant find the file. Stopping and restarting Scout usually solves the problem then but its getting pretty annoying after a while

I still get this issue with vscode.
It's not all the files - which is odd. But it happens in my main .scss where I import others. What is weird though is when I delete everything in the file, it still errors.
Even stranger (maybe?) I edit this file, ctrl+s - error sound + error message, then click a different scss file, ctrl+s, successful sound, and the css has been built.

I still get this issue with vscode. It's not all the files - which is odd. But it happens in my main .scss where I import others. What is weird though is when I delete everything in the file, it still errors.
Even stranger (maybe?) I edit this file, ctrl+s - error sound + error message, then click a different scss file, ctrl+s, successful sound, and the css has been built.

Me too, i still get this issue with vscode.


Update machine-learning-r-csharp-web-service-examples.md

Document refresh

Hi @jaymathe, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (jaymathe). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;