METRON-1447 Heap Size Not Set Correctly by MPack for ES 5.x

The preferred way in which the heap size and other JVM options are set changed between ES 2.x and ES 5.x.  The project upgraded to ES 5.x as part of #840 , but the way the heap size is set by the Mpack was not changed.
This resulted in the heap size for Elasticsearch to be set incorrectly.  This also allows Elasticsearch to use up to 2G of heap when launched in the development environments, which is too much for a constrained single VM.
Changes
The user can set the heap size by populating the "heap_size" field under "Advanced elastic-jvm-options" in Ambari.
Elasticsearch also exposes a large number of other settings in this file.  The entire content of the file was exposed in Ambari to allow users to also alter any other JVM options as needed.

Testing

Launch a development environment; either Ubuntu or CentOS.

Ensure that telemetry reaches the Alerts UI.
Run the Metron Service Check

Login to the node and ensure that only a single -Xms and -Xmx option was passed to the JVM when launching Elasticsearch.  Ensure these are both set to the default heap size of 512mb.
root@node1:/etc/elasticsearch# ps -ef | grep Elastic
root      1084 31038  0 16:09 pts/4    00:00:00 grep --color=auto Elastic
elastic+ 30048     1 23 16:08 ?        00:00:17 /usr/jdk64/jdk1.8.0_112/bin/java -Xms512m -Xmx512m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch/ -Edefault.path.conf=/etc/elasticsearch/

Alter the JVM options template, save the settings, restart Elasticsearch, and ensure that the changes are reflected in the /etc/elasticsearch/jvm.options file.

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[ ] Have you written or updated unit tests and or integration tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?
[ ] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:

Spinning this up now, merged with https://github.com/apache/metron/pull/928 to make sure all is well with Ambari 2.6.1. I expect the changes in this PR will not be affected.

+1. This looks great @nickwallen. Thanks for fixing this! Everything spun up with the appropriate mem settings. Modifying the template and heap reflect in the jvm.options and process display.

Thanks for the review @mmiklavc and making sure the merge was solid.


Patch 1

builds in Visual Studio 2017 on Windows

@EmberVulpix, can you sign the Google CLA and reopen your PR?


css3 animation compile wrong in SFC with 'scoped'

System Info
OS: macOS 11.2.1
<EMAIL_ADDRESS>node v14.16.0
Package manager: npm
Reproduction
source code:
<style scoped>
@keyframes player {
    from {
        transform: scale(1);
        background-color: rgba(255, 255, 255, 0.25);
    }
    to {
        transform: scale(2);
        background-color: rgba(255, 255, 255, 0);
    }
}
</style>

result:

See https://github.com/vuejs/vue-next/issues/3304, already has a PR: https://github.com/vuejs/vue-next/pull/3308


Edit servlet step 1

Week 2 step 1 walkthrough

Completed step 2, fetch data from servlet

Completed step 3, fetch comments as JSON and display

Completed step 4, create comments feature (form to post comments, fetch and display comments)

Save comment to datastore instead of local arraylist

Load comments from datastore

Next time, it would be good if you notify if you're still pushing changes to the PR so that I don't review outdated code.
Please let me know when you're done with the changes.


[FEATURE] Account/Manage/Link allow editing url of existing link

Is this a unique feature?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.
I'm honestly not sure if this is a feature or a bug, but I think is more of a feature.
The issue is after creating a link I needed to edit the url and is not allowed.
I can't edit URL of my existing links.
Yet I do not know if it's a premium feature since I use free tier. In that case, this should be considered a bug for not indicating that is a premium feature.
Otherwise mistakes happens and it is good to allow correction other than creating a new link to fix a typo in a url
Proposed Solution
Enable editing url of existing link
Screenshots

Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response

Thank you for raising.  This is not a bug.  If you wish to change the URL you need to create a new link. This has been designed this way to prevent any confusion with the URL statistics. Therefore I will close this issue.


Allow explicit set Mon IP

ATM, ceph-bootstrap always uses the IP address from the fqdn_ip4 grain to configure Monitors.
This address can be used by default, but it should be possible to explicitly change it to a different value.
This can be done in the /Deployment group, e.g.:
 ...
 o- Deployment ............................................................... [...]
  | ...
  | o- Mon ............................................................... [enabled]
  | | o- node1.ceph.com .......................................... [<IP_ADDRESS>]
 ...

When implementing this we should remove the CephNodeFqdnResolvesToLoopback validation when adding a minion, and only validate IPs before the deployment.

hm. we probably need to add support for adding ips in cephadm itself?

@sebastian-philipp This is about the IP address used on the following commands:

cephadm bootstrap --mon-ip ...
ceph orchestrator mon update ...

Since those commands are already receiving the ip address, I think there's nothing to do in cephadm.


Use Github API

Can you make it use GitHub API key instead of GitHub desktop? because i would be happier to not install anything

What's stopping you just cloning using command-line or however else you choose?

What's stopping you just cloning using command-line or however else you choose?

Well just don't have to install anything! Also yesterday i tried to use it but after it opened up my browser the parsing scripts just kept spinning when i open dev tools i saw that it is trying to access scratch but scratch returned 403 error

It's a known issue and has been for quite a while. Something I'll look into when I get chance - hopefully this side of 2024.


Dont' merge ... just exploring deployment gating

Just some exploring for JSM deployment gating.


Kubernetes docs fixes

Also, this document https://docs.mattermost.com/install/manage_kubernetes.html is currently not included in the Kubernetes docs, should it be?

Also, this document https://docs.mattermost.com/install/manage_kubernetes.html is currently not included in the Kubernetes docs, should it be?

Thanks @amyblais! I'm still working on it and inadvertently included it in my commit so it should be excluded for now.


[wip]: etcdserver: add separate chain of trust for metrics

This adds the basic layout for separating the chain of trust for metrics
Currently only the  --metric-auto-tls=true was implemented, the next
steps would be to verify if certs provided from command line args
will work

/test all
checking how this reacts in CI


Multiple Instances of Multifilter With Checkboxes

Hey Patrick.
Really enjoying Mixitup.
I'm looking for away of using 2 different instances of Multifilter, 2 different set of controls, in two different bootstrap tabs.
I've tried your previous bootstrap tabs / multiple instances answers, but neither could work with Multifilter. I'm guessing it's because we can not use the standard .filter() API method with the extension.
I'm sure theirs something obvious i've missed by naming data-filter-group, but i'm really scratching my head with this one.

Hi @spearquit,
As I'm not very familiar with Bootstrap tabs, could you include some example code? Also could you link to the other related github issue/answer that you referenced?
You are correct that the .filter() API cannot be used to control multi filter UI, so that may indeed be the issue.


Feature Request: Ability to Reset Plugin After Upload

Is it possible to reset the plugin after uploading the serialized files?
Currently, I need to refresh the page to clear the plugin value. It would be great if there were an option to reset or delete the plugin value directly.

Hi! What do you mean by reset? It should always reflect the value of the text field it is linked to.

it's about the value content. Once I have uploaded this, I would like to be able to upload a single new file without first clicking on the trash can. You can often reset or empty other fields with a button action

actually I want to control the trash button with an external button action

Hi! Seen.
Not sure I can give you a timeline on when I will be able to implement this though, it's almost finals for me.
Probably sometime in the next 2 or 3 weeks?
Anyways, if you want to do it yourself, feel free to submit a pull request.


AttributeError: 'dict' object has no attribute 'iteritems'

Windows 10 x64, Python 3.5.2 x64. I cloned the repo and am trying to run the first command, python letsencrypt-aws.py register<EMAIL_ADDRESS>but I'm getting the error AttributeError: 'dict' object has no attribute 'iteritems'.
Here's the traceback:
Traceback (most recent call last):
  File "letsencrypt-aws.py", line 577, in <module>
    cli()
  File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 696, in main
    rv = self.invoke(ctx)
  File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "letsencrypt-aws.py", line 559, in register
    logger.emit("acme-register.generate-key")
  File "letsencrypt-aws.py", line 38, in emit
    "{}={!r}".format(k, v) for k, v in data.iteritems()
AttributeError: 'dict' object has no attribute 'iteritems'

Ooof, looks like a py3 bug slipped in (not sure I've ever tested with py3k
before); will try to fix later today.
On Thu, Jul 14, 2016 at 2:20 PM, Steven Hall<EMAIL_ADDRESS>wrote:

Windows 10 x64, Python 3.5.2 x64. I cloned the repo and am trying to run
the first command, python letsencrypt-aws.py register<EMAIL_ADDRESS>but
I'm getting the error AttributeError: 'dict' object has no attribute
'iteritems'.
Here's the traceback:
Traceback (most recent call last):
File "letsencrypt-aws.py", line 577, in
cli()
File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 716, in call
return self.main(*args, **kwargs)
File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Steven\AppData\Local\Programs\Python\Python35-32\lib\site-packages\click\core.py", line 534, in invoke
return callback(*args, **kwargs)
File "letsencrypt-aws.py", line 559, in register
logger.emit("acme-register.generate-key")
File "letsencrypt-aws.py", line 38, in emit
"{}={!r}".format(k, v) for k, v in data.iteritems()
AttributeError: 'dict' object has no attribute 'iteritems'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/alex/letsencrypt-aws/issues/69, or mute the thread
https://github.com/notifications/unsubscribe/AAADBFb1bIfSxdtJ9I4OCRtPm2UOeJcmks5qVn3jgaJpZM4JMtVX
.

--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: D1B3 ADC0 E023 8CA6


Maven install without tests causes file not found error

When there are no tests compiled, the compilation fails with "File not found".
This can be caused by either src/tests/java being empty, or because maven is run with -Dmaven.test.skip=true
Tested with version 2.4

Example error:
[ERROR] Failed to execute goal io.ebean:querybean-maven-plugin:10.1.2:testEnhance (io.ebean.tile:enhancement:2.4::test) on project example-java8: Error trying to transform classes: File not found /home/rob/github/examples-ebean/example-java8/target/test-classes/  currentDir:/home/rob/github/examples-ebean/example-java8/. -> [Help 1]

That was quick! I'll be sure to include an example error message/stack whatever next.
Thanks

> I'll be sure to include an example error message/stack
No worries.  I thought I'd just put it in to potentially help people doing
a google search for the error in the future etc.
On 12 January 2017 at 07:31, tobias-<EMAIL_ADDRESS>wrote:

That was quick! I'll be sure to include an example error message/stack
whatever next.
Thanks
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ebean-orm-tools/ebean-maven-tile/issues/3#issuecomment-271953697,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMwTdgqOHI-Wrfb4OyX8bSZS-pzApitks5rRSAJgaJpZM4LevQg
.


#5 #24 has recurred.

#5 ,#24 occurs when app is opened from floating context and I click switch language button.
Video

https://user-images.githubusercontent.com/74596628/148212481-7750a4a2-2096-4e94-b065-70b0d6d1c314.mp4

https://user-images.githubusercontent.com/74596628/148212474-05f6b1ba-199d-42ea-afa9-f44be91ba3c1.mp4

DeepL Version v7.0
Android OS 11, CherishOS2.9 ZenFoneMaxPro(M2)

I think there is a problem with the implementation of patch-switchLanguage.js.

I found out that there was a problem with the implementation of the language switch button, regardless of whether it was activated from the context menu or not.
The problem was solved by adding escaping to patch-switchLanguage.js.
Thank you for reporting the bug.:+1:

It's been incorporated into v7.1. 🎉
https://github.com/sakusaku3939/DeepLAndroid/releases/tag/v7.1


Removed expose all ports flag from shipyard-rethinkdb container

Addresses: https://github.com/shipyard/shipyard/issues/431
Signed-off-by: Tom Barlow<EMAIL_ADDRESS>

LGTM


How to train StyleGAN2 with labeled dataset

Hello, I found that compared with the native stylegan2, your code specifically removes the label. I want to ask you whether you have tried to add the label for training, how is the effect?

@zsyzzsoft

I did try conditional generation before, and you will be able to do it if you make some changes in loss.py (e.g. something like real_scores = reduce_sum(D(reals) * one_hot(label)). Or you may try the PyTorch version to run conditional generation.


Unable to stop current pledge

Campers used to be able to delete pledges, but this important functionality somehow recently broke.
Steps to reproduce:

Go to https://www.freecodecamp.com/commit and create a pledge
Return to https://www.freecodecamp.com/commit and attempt to end your pledge by clicking "stop my current pledge"
You will get an error.

The way we are fixing this manually is by adding a "formerUserId" property set to the value of "userId", and then setting "userId" itself null.
{
  "_id": ObjectId("5744f9ab97db93a979*******"),
  "amount": 5,
  "dateStarted": new Date(1464138155991),
  "isCompleted": false,
  "isOrphaned": true,
  "formerUserId": ObjectId("55e1d89a11ab92c579******"),
  "userId": null,
  "goal": "Front End Development Certification",
  "name": "women who code",
  "displayName": "Women Who Code",
  "donateUrl": "https://www.womenwhocode.com/donate",
  "description": "Women Who Code (WWCode) is a global leader in propelling women in the tech industry.",
  "imgAlt": "Four women sitting in a classroom together learning to code.",
  "imgUrl": "//i.imgur.com/tKUi6Rf.jpg"
}

I need a clarification regarding the stop-commit functionality. I am consolidating the two steps. Correct me if I am wrong.
Step 1: When I hit stop my current pledge, the database table modifies a particular document in 'pledge' collection. Modified fields would be formerUserId and few other fields.
and then throw a flash message that displays
Step 2:

You have successfully unpledged and flash message comes after redirect to freecodecamp/
Error message/ Failure Message and flash message comes after redirect(? or not) to freecodecamp/

@QuincyLarson, While debugging I noticed that the modification of fields is happening, but flash message logic seemed faulty to me.
I was little confused when I saw your comment

The way we are fixing this manually

I was confused if I understood the functionality correctly.

@gasperno please ignore that bit of information. The issue is why is it throwing an error and why is it not correctly modifying the pledge object.

It throws a flash with error background. But the object modification is as expected.
Before hitting Stop my current pledge,
{
	"_id" : ObjectId("57470ed82e6d33f57713b16c"),
	"amount" : 10,
	"dateStarted" : ISODate("2016-05-26T14:57:28.200Z"),
	"isCompleted" : "false",
	"userId" : ObjectId("572bd5106469e0f1dd******”),
	"displayName" : "Black Girls CODE"
}

After hitting the button to stop my pledge,
{
	"_id" : ObjectId("57470ed82e6d33f57713b16c"),
	"amount" : 10,
	"dateStarted" : ISODate("2016-05-26T14:57:28.200Z"),
	"dateEnded" : ISODate("2016-05-26T14:58:50.463Z"),
	"formerUserId" : "572bd5106469e0f1dd*****",
	"isOrphaned" : true,
	"isCompleted" : "false",
	"userId" : null,
	"goal" : "Front End Development Certification",
	"displayName" : "Black Girls CODE",
}

Note: I ignored some fields that are unmodified.
That clearly implies that the object modification is taking place. Is this the expected modification in mongo collection?
However it throws a flash component as error because of [the few lines beginning here] (https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/server/boot/commit.js#L220).
Fix: req.flash('success', "You have successfully unpledged") and req.flash("errors",""); in commit.js after stopCommit.
I will try to submit a PR before tonight.

I don't think you've gotten to the core of the issue. You did find a bug, but not the one responsible here. The error we are seeing is an 'oops' error, meaning an actual error was thrown in production and caught by the server, causing the oops error to be shown.
In development the server will actually print out the error stack as a page when that happens.

I din't check it on freecodecamp until now. I was checking on my local. I attached the screenshot of the local machine screen after I stop my pledge. You are right. I dint get Oops error when I ran on my local.

My code was not updated. Sorry for the confusion.

This is my first Open Source contribution! I fixed this bug in PR #8824
Feedback is appreciated.


NEXT-0000 - ci(github): Update github action deprecations

1. Why is this change necessary?
See the deprecation warnings in the Github action runs.
2. What does this change do, exactly?
Update the Github action scripts to the latest versions.
3. Describe each step to reproduce the issue or behaviour.
-
4. Please link to the relevant issues (if any).
-
5. Checklist

[x] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[ ] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

🤖[deprecated] Generated by Copilot at ca7ec5a
This pull request updates various GitHub actions in the workflows to their latest versions. This improves the performance, reliability, and security of the linting, testing, analysis, and release processes. The affected workflows are lint-admin, lint-storefront, unit, security, danger, php-lint, windows-check, qodana, and release.

🤖[deprecated] Generated by Copilot at ca7ec5a

Update checkout action to v4 for improved performance and stability (link, link, link, link, link, link, link, link, F6L9L9, link, link, link)
Update cache action to v3 for improved performance and stability (link, link, link, link, link, link, link, link)
Update codeql-action to v3 for improved security analysis (link)

Thanks for your contribution @aragon999 !


[Request] Gpu overclock?

What about gpu overclock? Is it feasible?
Thanks for the amazing plugin!

What @TheRadziu said


lapse executable immediately quits on execution in Clear Linux OS, without showing any errors or warnings

Lapce Version
I tried this (with the same result) with both release v0.4.0 and nightly 9d016fe (the latest nightly as of 2024-05-26).
System information

Clear Linux OS, version 41760 (rolling release distro)
Kernel:
Linux [HOSTNAME REDACTED] 6.9.1-1436.native #1 SMP Fri May 17 12:06:23 PDT 2024 x86_64 GNU/Linux

The system that I tried this on has an Intel i5 Sandy Bridge CPU.
Describe the bug
When I try to start the extracted lapce binary from the command line, the application immediately quits, without showing any errors or warnings on the console. Also, it doesn't create a log file or anything. And it doesn't even exit with an error code.
Steps to reproduce:
tar -zxvf lapce-linux-amd64.tar.gz
cd Lapce
./lapce
echo $?

The result of the echo command is 0, which means that the lapce executable didn't yield an error code either.
Additional information
When an application fails to start, it should at the very least show an explanatory error message on the console to provide some hints as to what's going wrong. Applications should never fail silently on errors.

run ./lapce -w

Thanks. I would really recommend that at least some error be thrown with a non-0 exit code, instead of failing silently. At the very least, perhaps give a general An error occurred, run with -w for details, and then exit with code 1 or -1 or something.
Anyway, here is the output of ./lapce -w:
2024-05-28T19:46:31.034110Z ERROR lapce_app::panic_hook: thread main panicked at <unknown> | file://.//cargo/registry/src/index.crates.io-6f17d22bba15001f/floem-cosmic-text-0.7.1/src/buffer_line.rs:192:41
   0: lapce_app::app::panic_hook::{{closure}}
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/alloc/src/boxed.rs:2029:9
      std::panicking::rust_panic_with_hook
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:785:13
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:659:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/sys_common/backtrace.rs:171:18
   4: rust_begin_unwind
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/panicking.rs:647:5
   5: core::panicking::panic_fmt
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:72:14
   6: core::panicking::panic_display
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:196:5
      core::panicking::panic_str
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/panicking.rs:171:5
      core::option::expect_failed
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/core/src/option.rs:1988:5
   7: floem_cosmic_text::buffer_line::TextLayoutLine::layout
   8: floem_cosmic_text::buffer::TextLayout::shape_until
   9: floem_cosmic_text::buffer::TextLayout::set_text
  10: floem_cosmic_text::buffer::TextLayout::new
  11: <floem_reactive::effect::Effect<T,F> as floem_reactive::effect::EffectTrait>::run
  12: floem_reactive::effect::run_initial_effect
  13: lapce_app::window_tab::WindowTabData::new
  14: lapce_app::app::AppData::app_view
  15: core::ops::function::FnOnce::call_once{{vtable.shim}}
  16: floem::app_handle::ApplicationHandle::new_window
  17: lapce_app::app::launch
  18: std::sys_common::backtrace::__rust_begin_short_backtrace
  19: main
  20: __libc_start_call_main
             at /builddir/build/BUILD/glibc-2.39/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  21: __libc_start_main_impl
             at /builddir/build/BUILD/glibc-2.39/csu/../csu/libc-start.c:360:3
  22: _start

I hope this helps. Thanks!

$ ./lapce --version
Lapce nightly-f2355aa

On my gentoo system without [media-fonts/freefont](https://savannah.nongnu.org/projects/freefont/) installed, lapce gives below error. Same issue with #3235. I think floem_cosmic_text or cosmic-text specifies FreeMono or FreeSerif for their font selection hardcoded (in executable). This causes systems without freefont installed, failing to start lapce.
$ ./lapce -w
2024-05-31T10:03:41.560731Z ERROR lapce_app::panic_hook: thread main panicked at <unknown> | file://.//cargo/registry/src/index.crates.io-6f17d22bba15001f/floem-cosmic-text-0.7.2/src/buffer_line.rs:192:41
   0: lapce_app::app::panic_hook::{{closure}}
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/alloc/src/boxed.rs:2034:9
      std::panicking::rust_panic_with_hook
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:783:13
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:657:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys_common/backtrace.rs:171:18
   4: rust_begin_unwind
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
   5: core::panicking::panic_fmt
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
   6: core::panicking::panic_display
   7: core::panicking::panic_str
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:172:5
      core::option::expect_failed
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:1995:5
   8: floem_cosmic_text::buffer_line::TextLayoutLine::layout
   9: floem_cosmic_text::buffer::TextLayout::shape_until
  10: floem_cosmic_text::buffer::TextLayout::set_text
  11: floem_cosmic_text::buffer::TextLayout::new
  12: <floem_reactive::effect::Effect<T,F> as floem_reactive::effect::EffectTrait>::run
  13: floem_reactive::effect::run_initial_effect
  14: lapce_app::window_tab::WindowTabData::new
  15: lapce_app::app::AppData::app_view
  16: core::ops::function::FnOnce::call_once{{vtable.shim}}
  17: floem_reactive::scope::with_scope
  18: floem::app_handle::ApplicationHandle::new_window
  19: lapce_app::app::launch
  20: std::sys_common::backtrace::__rust_begin_short_backtrace
  21: main
  22: <unknown>
  23: __libc_start_main
  24: _start

You can install the font with your package manager or manually.
# Fetch freefont
cd /tmp
wget https://ftp.gnu.org/gnu/freefont/freefont-ttf-20120503.zip
tar xf freefont-ttf-20120503.zip
rm freefont-ttf-20120503.zip

# Copy to your fonts directory
mkdir -p $HOME/.fonts
mv /tmp/freefont-20120503/*.ttf $HOME/.fonts/

# Update font cache of your system
fc-cache -vf $HOME/.fonts/

# Open lapce
./lapce


CNV-24656: delete policy with confirmation step

Before there was no delete modal for this policy.
Deleting the resource was not allowed in the UI.
Because deleting the policy can cause issues to nodes, we added a checkbox in the modal to have a user confirmation

hi, I'm missing something, I thought thedesision was not to delete, and instead add a state in the edit modal that will start a more safe deletion prosses, what am I missing ?

@yaacov There were some feedback from Dan about that during the demo and we discussed about it a little bit.
If the user know what he is doing, this can be a valuable thing

@dankenigsberg @phoracek hi, just checking that we want to delete it, I thought the desision was to set the spec to state: absent

@yaacov these are two very different things. This PR is about deleting an nncp. As the warning text says this leaves existing node config behind. This is what oc delete nncp does, and we should educate our users about it
Actually removing a network device (bridge, vlan, bond) requires setting absent. This should be exposed in the GUI too, but on another PR

this is the pr that add the absent state btw

@dankenigsberg yes, these are two different actions, my concern is that because we give an easy delete we allow users to ignore the "good path" of setting the state first and just deleting the object (a "avarge customer" just check the checkbox without reading the text, see kubvirt ui customer feedback) , a better aprouch may be to make the state setting to absent more easy to use by making it a kebab action or disabling delete for components that are not set to absent and finish the process, did you discuss other solutions ?

We considered doing something like this in the backend, but rejected it due to its complexity. I don't think that the gui can evaluate whether a network entity has to be absent on all nodes before a specific nncp is deleted.

imho the frustration about inability to delete an object you have just created is worse.
GUI should make it easier to explore which network devices are available on each worker, which would make it more apparent that a policy is needed to make something absent. But that's a future epic.

I agree we can allow users to delete an object , my concern is that by making it easier to delete the object without removing it first we guide users to go the "bad path" instead of educating Them about how to remove the settings first
IMHO a help text with checkbox has drawbacks that where highlited by the usabilty research of last version, and while we should allow for deleting the object, we should do it in an opinionated way that will adicate users about the current way of first removing the settings

@yaacov @dankenigsberg updated according to the meeting


Required attribute

If I put a 'required' attribute on the textarea, I get an error

An invalid form control with name='MyID' is not focusable."

when I submit the form.

SimpleMDE hides the textarea, so that would be as expected. Instead of a required attribute, try implementing some form of JS validation that checks to see if SimpleMDE has been filled out.

I had this problem within Chrome too. It seems to prevent SimpleMDE syncing the content to the hidden textarea before the submit event happens. Works fine with the forceSync option:
var simplemde = new SimpleMDE({
    forceSync: true
});

@kraiz This won't work fully either, because if the content is empty, it'll result in the same error shown above. The problem is that the textarea is hidden. A JS approach is necessary.

This still seems like a bit of an oversight to be honest. Instead of requiring users to add extra JS to validate a form, something should be done within the library to alleviate this.

@MatthewBooth there are hundreds of different ways to validate an input and display an error, whether before, during, or after submission. SimpleMDE's job is not to determine how to do that for the developer.

Would it not be possible for SimpleMDE to remove any 'required' attribute from the text area and apply it to the markdown control? It's a while since I looked at this, perhaps it wouldn't work, but it seems like it could be workable.

@chrisveness SimpleMDE would not know what to do if it was left blank, since an error message can be displayed in so many ways. It's up to the developer to not rely on the required attribute and to instead build their own JS based implementation that matches the rest of their form's validation and error display.

There is a very simple workaround for this problem.
What I'm using mostly is HTML5 validation, so I rely on the browser to know how to display the validation message - and then, if I wanted to, but not necessarily, I could add some JS on top of it, but that's another question.
So, the thing is, SimpleMDE creates its own textarea to keep the widget's value, and hides the original textarea. By simple removing the required attribute from the latter, and adding it to the former (which is displayed, but behind the actual editor box), the HTML5 validation works just fine.
$('#original-text-area').attr('required', false); $('.CodeMirror textarea').attr('required', true);
It's not pretty, and it's just basic browser styles in there, but it works. Maybe you guys should consider adding this behavior by default to SimpleMDE, then let the developer choose what CSS rules they want in order to display the error messages in a more specific way. I hope this helps!

@landart, yes, that's the sort of thing I had in mind.
It could perhaps be generalised along the lines of (roughly)
const originalElement = document.querySelect('#original-text-area');
const mirrorElement = document.querySelect('.CodeMirror textarea');

const validationAttributes = [ 'required', 'pattern', 'min', 'max' ]; // etc

for (const attr of originalElement.attributes) {
    if (validationAttributes.includes(attr.name) {
        mirrorElement.attr.name = attr.value;
        originalElement.attr.name = undefined;
    }
}

@WesCossick I think this could make the library much more valuable: there's so many reasons to want to use native browser validation functions, not to try to reinvent the wheel with homegrown JS validation...

I'll look into applying the HTML attributes to the visible textarea.

was having the same issue but i found a way around it, i just added the "novalidate" attribute to the form element and did my custom validation from the framework i was using and it worked

We ran into this in the drupal wrapper module too.
I'd say this is a major issue as ordinary users and integrators end up in a situation where they don not have any clue what happens, it's just "the form does not submit". (So is our downstream issue triaged.)
I looked a bit into this.

(Once this library is a webcomponent this is trivial to fix. But that is a different issue...)
Trying a hack to set textarea visibility=hidden does not work out, as the JS validation message then is hidden too.
As of moving the validation attributes from the original textarea to the codemirror textarea as @chrisveness suggested: Good plan, alas, there is no such thing as a codemirror textarea.
Adding 'novalidate' to the textarea as @vanderkilu suggested did not do the trick for us, as we have some JS validation in place.
So we ended up removing 'required' and 'pattern' (min/max are not relevant) attributes from the textarea, and our framework then falls back to server-side validation.

So +1 for doing that (removing textarea 'required' and 'pattern') here in the library.
    textarea.removeAttribute('required');
    textarea.removeAttribute('pattern');

+1

I'll look into applying the HTML attributes to the visible textarea.

Hi Wes. Great editor first of all!
Did you ever get a chance to do this?


No Respond when view logo.blade.php is loaded

Bug report
Title
No Respond when view logo.blade.php is loaded
Issue Description
Description helps the developers to understand the bug. It describes the problem encountered or some after effect of some kind.
Preconditions
Please provide as detailed information about your environment as possible.
1. framework Version: 1.2.0

Steps to reproduce
It is important to provide a set of clear steps to reproduce this bug. If relevant please include code samples.
1. When I'm trying to save an Invoice from the admin Panel if there is an error "maximum execution time of 60 seconds exceeded" that occurred. I will need to Kill the Port and restart the Server.
2. After I kill the Port and restart the Server, there will be an issue when the system is generating the email template.
3. So when I track back, it is caused by the image in  packages\Webkul\Shop\src\Resources\views\emails\layouts\logo.blade.php.
4. So when I remove the "src" attribute in "img" element, it works.

Original Code
@if (core()->getConfigData('general.design.admin_logo.logo_image'))
    getConfigData('general.design.admin_logo.logo_image')) }}" alt="{{ config('app.name') }}" style="height: 40px; width: 110px;"/>
@else

@endif

My changed
@if (core()->getConfigData('general.design.admin_logo.logo_image'))

@else

@endif

I suspect it is cause by this line of code :
{{ \Illuminate\Support\Facades\Storage::url(core()->getConfigData('general.design.admin_logo.logo_image')) }}

I hope there will be a solution for this, as I will need to logo to appear in my email template.
Thank You.

Hi @Ruixian1006,
This issue has been fixed in the latest version.
https://github.com/bagisto/bagisto/blob/c4148f31faae0de6761ef871863b89bfc57adc5c/packages/Webkul/Shop/src/Resources/views/emails/layouts/logo.blade.php#L1

Hi @devansh-webkul  thanks for your help !


Update needed for Workplace SSO setup instructions

The authentication settings for the Workplace app have moved. The instructions at https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/workplacebyfacebook-tutorial?fbclid=IwAR0voe6ab-NFGez60-B1viLWhFIlaB3m21ppbU8iM26-FMLcGmg2SyarQIc need to be updated.
Please change steps 8 and 9 to read:
8. In the Admin Panel, go to the Security section and click on the Authentication tab
9. Under Authentication, select Single-Sign On (SSO) to reveal the detailed settings

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

ID: b517d164-c0ed-86b3-3ab1-eae70886f80b
Version Independent ID: 5c383fcb-0416-ad50-d98d-83f5f55ef22a
Content: Tutorial: Azure Active Directory integration with Workplace by Facebook
Content Source: articles/active-directory/saas-apps/workplacebyfacebook-tutorial.md
Service: active-directory
GitHub Login: @jeevansd
Microsoft Alias: jeedes

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

@changtom Changes have been done as per suggestion, please review
#please-close


Can't install the app

Description
I can't install the app from the classic installer. When I try, it says:
Install Failed. Please contact your software vendor. (0x80073CF9)
I've tried solving this using various methods online, but none of them have solved the issue.
Steps To Reproduce

Download classic installer.
Run classic installer.
Failure + Error.

Requirements
Classic installer should just install the app. It seems to be integrating with the Microsoft Store which is odd.
Files Version
<IP_ADDRESS>
Windows Version
Windows 10 (22H2): 19045
Log File
There is no log file

Thank you for the feedback, the classic installer requires the Windows Update service as well as a couple of others. Are you by any chance using a modified version of Windows?

Thank you for the quick response. No, I'm not. If you're referring to the update service for the Store, I already made sure it was there I'm pretty sure, but I'm willing to follow any instructions you may have for making sure it is up and running.

You can try

Opening PowerShell as administrator
Run this command
Add-AppxPackage -AppInstallerFile https://cdn.files.community/files/stable/Files.Package.appinstaller

@Josh65-2201 this worked. I notice that the command above downloads a different file than the one provided on the website. I used this app about a year ago and remember it being a .appinstaller file, similar to the preview.

It was change to a custom installer due to the unreliability of app installer. Not sure what the issue you were having was though.

I don't know either, I stayed up all night last night trying to figure it out. When the app gets an update, do I have to run the command again? Or does the app have an update feature built-in?

It has auto update. Not sure if it will work or not.

Auto update will likely work if you got the app to install.

Just wanted to chime in on this and say i was having the same issue yesterday, and ended up calling it a night before figuring it out, never found out why it was happening but thanks for the fix on here.

Same bug for me, had to use the powershell command to install it. Windows 10 Pro 22H2 19045.3086

Same issue (Win10 22H2 19045), not so lucky with the powershell alternative, which produced this error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details. Deployment of package Microsoft.WindowsAppRuntime.1.3_3000.882.2207.0_x64__8wekyb3d8bbwe was blocked because the        provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.
NOTE: For additional information, look for [ActivityId] 52306536-b638-0003-3b2a-315238b6d901 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 52306536-b638-0003-3b2a-315238b6d901
At line:1 char:1
+ Add-AppxPackage -AppInstallerFile https://cdn.files.community/files/s ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (https://cdn.fil...ge.appinstaller:String) [Add-AppxPackage], PSInvalidO
   perationException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

It obviously complains about already being installed, but I don't see it in installed programs, or windows store installed apps, and doesn't even pop up in start menu, so no idea how to remove it.

The error is not about Files but about Windows app runtime. Go to Settings > Apps > Installed apps > Search for Windows App Runtime and uninstall all the ones shown then retry

Can't see that in neither the control panel:

nor the windows settings:

Same for files.


Docs: Wrong rendered filenames of the example source-files

They are rendered to

See the source code of ex%s.py07 for more information.

instead of

See the source code of ex07.py for more information.

And here's a screenshot:

This is a minor issue because the link is correct.

Thanks for the report. I believe this appeared at some point during a Sphinx update at readthedocs. Perhaps a later update has fixed it and simply rebuilding the docs would fix it, or then there has been an actual change in the syntax.

Also, this link

shows

instead of the example code.

These are both now fixed.


v1: expose groups in user customization (HMS-4901)

When adding a user, immediately add it to the specified groups.

It should be fine to drop the default as the edge-api always adds the groups already
https://github.com/RedHatInsights/edge-api/blob/622244f04989159709332e67788c04296989e431/pkg/clients/imagebuilder/client.go#L353-L358

/retest


Not compatible with  { undefined method `error_class' for SimpleForm:Module }

Is the simple_form initializer provided in this project incompatible with gem 'client_side_validations' ?
I get errors saying it cannot find
method `error_class' for SimpleForm:Module
Havent digger into simple_form that much but when you do a
= simple_form_for @invite, :wrapper => :inline, :validate => true do |f|
It throws this error
Any help on this would be greatly appreciated

Yes! Will be removed at version 2.0.0

You mean the error will be fixed?
Ive spend some time on the CSS and found several issues with radio buttons not listing correctly.
Is there a google group to communicate or do you guys prefer the issue tracker here? thx!

No. This error is intentional.
You can use the simple_form mailing list. http://groups.google.com/group/plataformatec-simpleform

So when will this be fixed, I am using the current master branch with client_side_validation, anyway around this to keep using simple_form 2 with client_side_validations?

This will not be fixed. It is intentional. SimpleForm removed this options, so I think that the clienti_side_validation needs to be updated for SimpleForm 2.0

It works without the twitter bootstrap configurations for simple_form
Could you give some info on what to do to be able to use client validations + simple form + twitter bootstrap ? this is still not clear to me
thx in advanche!

I have no idea. Could you provide an example application?

Hi all,
I've been following this issue and couldn't see any progress, so I'll describe the solution I've adopted in my project. It's a total hack and maybe works only for this particular case, therefore should be considered as such. Unfortunately client_side_validations-simple_form is kinda empty now and I coudn't wait.
My custom wrapper configs for TB were borrowed from here. I'm using form-stacked fot the most part, so I'll paste it here.
  config.wrappers :stacked, :class => "clearfix", :error_class => :error do |b|
    b.use :placeholder
    b.use :label
    b.use :tag => 'div', :class => 'input' do |input|
      input.use :input
      input.use :hint,  :tag => :span, :class => :'help-block'
      input.use :error, :tag => :span, :class => :'help-block'
    end
  end

To allow client_side_validations to access the correct mappings for fields and classes I used a custom initializer instead of the one generated by its install procedure. I'll show the config mappings using inline comments, so you can see which value is being pulled from SimpleForm. I hope it helps someone.
module ClientSideValidations
  module SimpleForm
    module FormBuilder

      def self.included(base)
        base.class_eval do
          def self.client_side_form_settings(options, form_helper)
            wrapper_object = ::SimpleForm.wrappers[options[:wrapper]]
            input_error = wrapper_object.find(:error).defaults
            wrapper = wrapper_object.defaults

            error_container_class = input_error[:class] # help-block
            input_error_tag = input_error[:tag] # "span"
            error_tag = wrapper[:class].join(" ") #clearfix
            error_class = wrapper[:error_class] # error

            {
              :type => self.to_s,
              :error_class => [error_container_class, error_class].join(" ."),
              :error_tag => input_error_tag,
              :wrapper_error_class => error_class,
              :wrapper_tag => ".#{error_tag}"
            }
          end
        end
      end # included
    end # FormBuilder
  end # SimpleForm
end # ClientSideValidations

SimpleForm::FormBuilder.send(:include, ClientSideValidations::SimpleForm::FormBuilder)

Thx for the info I tried it but where does the
SimpleForm::FormBuilder.send(:include, ClientSideValidations::SimpleForm::FormBuilder)
have to be placed?

This code actually replaces the other one. Note that the inclusion is being made on the last line of the snippet above. It overrides client_side_validations default behavior.


Refetch table data after recompile (#3078)

Pull request opened by the merge tool on behalf of #3078

Merged in ea0d971579ea6967baa1ff78a1f7eacb45a73acd


Lack of negative_only account option

We have the positive_only account option, but lack a negative_only option.
For our use-case, a negative_only account option and complementary validation would be quite beneficial.

@orien thanks for resolving this! I thought I'd get it reported and would have gladly assisted with the feature. Looking forward to seeing this in the next release.

Version 0.10.0 has just been released.


Send 503 instead of 404 when service is registered in routes

I recently ran into a "bug" where I would call a service: example.com/api/hello and I would get a 404 since the service is not up yet, but the gateway has the routes registered for this particular service.
Proposal:
Send a 503 if the service exists in the route whitelist/aliases
Current hack to make this work (typescript)
import { Errors } from 'moleculer'
import _ = require('lodash');

onError(req, res, err) {
  switch (err.constructor) {
    case Errors.ServiceNotFoundError:
      err.message = 'Service not found';
      if (_.findIndex(this.routes[0].whitelist, i => i == err.data.action) != -1) {
        err.message = 'Service unavailable';
        err.code = 503;
      }
    break;
  }
}

Thanks, but please move it to moleculer-web repo's issues

@icebob My bad! Thanks!


organizeImports remove referenced import

Issue Type: Bug
import ObjA from 'file';
.......
const Objs = {
  ObjA,
};

Code like this. ObjA is being referenced but organizeImports still remove its import.
VS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.16299

This is already fixed in insiders


AttributeError: 'KNN' object has no attribute 'complete'

THIS IS MY ERROR
dataset.dtypes
dataset.isnull().sum()
hour=364324
test_cl=dataset[0:hour]
train_cl=dataset[hour:]
train.isnull().sum()
test.isnull().sum()
Xcol =dataset.columns
Xcol=Xcol.drop('aqhi')
Ycol='aqhi'
X = train_cl.loc[:, Xcol]
Y = train_cl.loc[:, Ycol]
def standardize(s):
return s.sub(s.min()).div((s.max() - s.min()))
Xnorm = X.apply(standardize, axis=0)
kvals = np.linspace(1, 100, 20, dtype='int64')
knn_errs = []
for k in kvals:
knn_err = []
Xknn = KNN(k=k, verbose=False).complete(Xnorm)
knn_err = cross_val_score(rf, Xknn, Y, cv=24, n_jobs=-1).mean()
knn_errs.append(knn_err)
print("[KNN] Estimated RF Test Error (n = {}, k = {}, 10-fold CV): {}".format(len(Xknn), k, np.mean(knn_err)))

sns.set_style("darkgrid")
plt.plot(kvals, knn_errs)
plt.xlabel('K')
plt.ylabel('10-fold CV Error Rate')
knn_err = max(knn_errs)
k_opt = kvals[knn_errs.index(knn_err)]
Xknn = KNN(k=k_opt, verbose=False).complete(Xnorm)
Yknn = Y
print("[BEST KNN] Estimated RF Test Error (n = {}, k = {}, 10-fold CV): {}".format(len(Xknn), k_opt, np.mean(knn_err)))
Traceback (most recent call last):
File "", line 39, in
Xknn = KNN(k=k, verbose=False).complete(Xnorm)
AttributeError: 'KNN' object has no attribute 'complete'

THIS IS MY CODE
for k in kvals:
knn_err = []
Xknn = KNN(k=k, verbose=False).complete(Xnorm)
knn_err = cross_val_score(rf, Xknn, Y, cv=24, n_jobs=-1).mean()
knn_errs.append(knn_err)
print("[KNN] Estimated RF Test Error (n = {}, k = {}, 10-fold CV): {}".format(len(Xknn), k, np.mean(knn_err)))

sns.set_style("darkgrid")
plt.plot(kvals, knn_errs)
plt.xlabel('K')
plt.ylabel('10-fold CV Error Rate')
knn_err = max(knn_errs)
k_opt = kvals[knn_errs.index(knn_err)]
Xknn = KNN(k=k_opt, verbose=False).complete(Xnorm)
Yknn = Y
print("[BEST KNN] Estimated RF Test Error (n = {}, k = {}, 10-fold CV): {}".format(len(Xknn), k_opt, np.mean(knn_err)))

How big is your data? Looks like it is too big for knn imputation.
If you have a train/test type of setup, I would just use IterativeImputer. It's the only one that can work transductively.

I don't know what your error means. Which line is it happening in?

I change my csv file to array:X_incomplete=np.array(df.to_records().view(type=np.matrix))
Sent from Mail for Windows 10
From: Sergey Feldman
Sent: Sunday, October 21, 2018 1:04 AM
To: iskandr/fancyimpute
Cc: hamsterLee; Author
Subject: Re: [iskandr/fancyimpute] AttributeError: 'KNN' object has noattribute 'complete' (#81)
I don't know what your error means. Which line is it happening in?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry, not sure.
On Sat, Oct 20, 2018, 8:10 PM hamsterLee<EMAIL_ADDRESS>wrote:

I change my csv file to
array:X_incomplete=np.array(df.to_records().view(type=np.matrix))
Sent from Mail for Windows 10
From: Sergey Feldman
Sent: Sunday, October 21, 2018 1:04 AM
To: iskandr/fancyimpute
Cc: hamsterLee; Author
Subject: Re: [iskandr/fancyimpute] AttributeError: 'KNN' object has
noattribute 'complete' (#81)
I don't know what your error means. Which line is it happening in?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/iskandr/fancyimpute/issues/81#issuecomment-431635205,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABya7OH5k-fs7VYDaqWXlX2dX8Beh9Kaks5um-WJgaJpZM4XvfcC
.

I have other problem : Why i  from fancyimpute import MICE, it said
ImportError: cannot import name 'MICE'.
Could i solve this problem?

It's called IterativeImputer now.
On Tue, Oct 23, 2018, 7:42 AM hamsterLee<EMAIL_ADDRESS>wrote:

I have other problem : Why i from fancyimpute import MICE, it said
ImportError: cannot import name 'MICE'.
Could i solve this problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/iskandr/fancyimpute/issues/81#issuecomment-432274171,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABya7GFgT3iVAtZbg6wAcP7OSbNUhvKkks5unyrvgaJpZM4XvfcC
.

In one of my python imputation problem i faced the same error AttributeError: 'KNN' object has no attribute 'complete'
replacing ".complete" with ".fit_transform" resolved issue

Yes, we have stopped using .complete and now use .fit_transform everywhere to match sklearn api.

@sergeyf: Its working. Kudos to you.


Use of OpenAI Logo

Per OpenAI INTERIM OPENAI BRAND AND TRADEMARK GUIDELINES we were previously informed NOT to use OAI assets including logo interchangeably to refer to Azure OpenAI service and if needed, to follow approval process highlighted in the Doc.
Please review and make changes to architecture diagrams as needed.

Thanks! This has been resolved, but please keep us honest going forward as well!


[Bug]:

Bug expectation
Puppeteer does not start. When refreshing the browser, it displays an error.
Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://google.com');
  await page.screenshot({ path: 'example.png' });
  await browser.close();
})();

Error string
Error: Cannot find module 'puppeteer-core/internal/puppeteer-core.js'
Puppeteer configuration
No response
Puppeteer version
20.2.1
Node version
17.9.1
Package manager
npm
Package manager version
8.11.0
Operating system
Linux

We cannot reproduce without knowing your set up. We recommend looking very carefully at our tutorial.

I was having the same error when I was launching my app via ESM package. I've switched to the native mjs format and now everything works fine.


Update Version to <IP_ADDRESS>.2

Adapter version '<IP_ADDRESS>.2', partner version '~> 4.7.0'

@kendallrogers can I get another review? I found I needed important changes when doing the integration with Canary.


[do not merge] Update Nginx config to support specialist publisher rewrite

We plan on releasing specialist publisher one document_type at a
time. In order to facilitate this we need the capability of
routing specific paths to the 'rebuild' application whilst serving
the rest from the existing v1 application.
This updates the loadbalancer to direct cma-cases and
sp-rebuild/assets to the specialist-publisher-rebuild app.
It also sets the Host HTTP header to specialist-publisher for the
specialist-publisher-rebuild app.

This looks good 👍 . Why is it Do Not Merge?

We still have one small change to make to a mongo database url so that v1 and v2 can share signon users. Once that's updated and tested, we'll ping you. :-)

👍


Header title not fully showing when active on tab

I have my setup to load into a specific tab on mobile upon startup. That works and it goes to the correct tab upon refresh but the tab title is not fully shown as per the image below. It used to always show the full tab name (Summary)

Please try the latest version and report back:
https://community.home-assistant.io/t/custom-header/155399/636

Thanks, new update is not detecting mobile exception.

Create a new issue with the required information, closing this one as I think there are 2 other duplicate issues related to this anyhow.


Create crosshair-cursor

Minimal plugin that switches your OS' cursor type to crosshair.

Custom Cursor already accepts custom images?

But not cursor files, Custom Cursor only works with pngs.
On Wed, 22 Mar 2023, 23:07 Ron Young, @.***> wrote:

Custom Cursor already accepts custom images?
—
Reply to this email directly, view it on GitHub
https://github.com/runelite/plugin-hub/pull/4097#issuecomment-1480481193,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEKEDBUWWGGOARCOJW6OROLW5OV6XANCNFSM6AAAAAAWDEVOXM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Custom Cursor already accepts custom images?

And with images you are restricted to top-left click alignment, which doesn't work for something like a crosshair.

Avoid using example as your config group: https://github.com/Thomas-gonzalez/crosshair-cursor/blob/1a8c5da7e40a78beb307829a6c3bb0511ee38ceb/src/main/java/com/crosshaircursor/CrosshairCursorConfig.java#L7


Testing conda environments

This is an example of how to create conda environments in the Github unit tests. Doing so for all of the metrics which are currently not being tested is very slow, so we have decided against doing this for now.


[IDE] Database - "Drop Table" always try to drop table from default scheme

The "drop table" option always looks in the default scheme.

Issue cloned to https://github.com/eclipse/dirigible/issues/1634

closed by https://github.com/eclipse/dirigible/pull/1636


getting error:  bash: gatling:test: command not found

Please let me know if any pre configurations are needed? (I added Scala Plugin in IntelliJ) do we need to set any environment variables?

Hi @JagritiJ
this isn't really my field of expertise since I've been using Gatling with sbt all of the time. Two questions come to my mind:

Is the $ in front of mvn really necessary? For me it looks like your command was $mvn gatling:test .... In that case $mvn would be a (possibly empty) variable, what would explain the problem.
Can you show me your POM?
Cheers,
Ronny


Tor Graal-VM native-image compatibility

I would like to start a discussion on making the spring-tor and dependent libraries native-image compatible.
Spring Boot 3 is going to have stable support for native-image and it can be also used in SB 2 as experimental feature.
Since Tor Spring functionality requires 3 different libraries, it would be helpful to perhaps try to add support for each library separately and try to introduce some PR in other github repos.
My use case consists of Tor and DJL + Tensorflow and maybe some other libraries.
Most of them are compatible with native-image, however Tor is not one of them and DJL seems not to work at the moment.

moved to: https://github.com/theborakompanioni/tor-spring-boot-starter/issues/2


Terminal gets covered by keyboard

When a soft keyboard is open, the terminal goes behind the keyboard, getting covered by it, so you can't see what you're typing. Instead, the terminal should go above the keyboard.

Basically unusable when I have to close the keyboard whenever I want to see what I'm doing.

I have solved this problem by disabling 'fullscreen' option

Well that was disgustingly simple. I assume everytime I'd reinstall I didnt put 2 and 2 together that it broke when I checked that box. Thanks.


Add support for specifying router policy

Allows configuring router policy

@enmasse-ci run tests profile=smoke

@enmasse-ci run tests testcase=standard.infra.InfraTest

Does this feature have a way to differentiate between user connections (i.e. connections from a user's applications) and connections made internally within EnMasse (e.g. connections from Brokers, MQTT components).   My expectation is that these limits should be applied to the former.

As specified this policy is applied to all connections. There appears to be no way to associate different policy with different listeners. To apply different policy to internal connections there would need to be a different vhost that they all used or a distinct user group defined.

From the perspective of a user of EnMasse, I would expect the policy controls exposed by EnMasse to be applied to my application traffic.   As a user I should not need to factor in the internal overheads of EnMasse itself.

@grs So for internal connections we have 2 options I guess:

Change all components to specify an 'internal' vhost. However I guess we cannot enforce external applications to not use this vhost
Create a user group defined for internal components. How is the client identified when using TLS client certs?

I think I would prefer option 2 if we can get that to work.

If using SASL EXTERNAL, the certificate's subject is used as the identity for the connection.

@enmasse-ci run tests testcase=standard.infra.InfraTest

@k-wall I think we should go with this scheme for now, and improve it once the router supports per-listener policies.

@enmasse-ci run tests testcase=standard.infra.InfraTest


Clarify temporal intervals #331

It seems the implementations tend more towards the approach that the two elements in the intervals should not be the same, so I created a PR that proposes this breaking change for v2.0.0.
Fixes #331

@clausmichele Good question. I had to think quite a bit about it and I can't remember the exact reasons we had back then, but it clearly originates from ISO8601, but it seems they are also struggling with it:

An amendment was published in October 2022 featuring minor technical clarifications and attempts to remove ambiguities in definitions. The most significant change, however, was the reintroduction of the 24:00:00 format to refer to the instant at the end of a calendar day.

So it was there in the beginning, got removed and then added back again. I assume their reasons for allowing 24 also apply here.
Without knowing their reasoning (ISO standards must be bought 🤮), I found some edge cases where it may matter and surprise users:

You want to exactly specify the 28th of February as a day. If you specify it as 2020-02-28T00:00:00Z - 2020-03-01T00:00:00Z you'd actually get two days as the 29th sneaks in due to the leap year.
Similarly, it is a bit inconsistent to define 30 days intervals for each month where sometimes you may need to use the first of the next month and sometimes you need to use the 31st (or 28th). It is a bit easier to just use the 30th (ignoring February for now).

@m-mohr were you able to access the ISO documents?

Yes!
24
T24:00:00 is valid and behaves the same as the next day's T00:00:00 in ISO8601.
But: I just realized that JSON Schema for the format date-time explicitly mentiones RFC3339 compliance, which disallows 24. So some schema validators may fail on T24:00:00. So we'd either need to remove the format from the schema (and loose automatic validation) or comply and disallowe 24.
Incl./excl. upper boundary

The definition of intervals is including the upper boundary, but other parts of the standard allow excluding the upper boundary, so here the standard is not very stringent and helpful. To avoid breaking everyones implementations, we should probably keep excluding it. Otherwise, users could get different results as now there's an additional day included.

Missing parts of a date-time (e.g. a date)
In ISO8601 it seems that omitted components should simply be replaced by zero (2022-12-14 is basically 2022-12-14T00:00:00).
Conclusion
Well, it's hard to come to a conclusion here as there's so many different aspects to consider, but we likely need to "break" someones implementation as VITO seems to be contraty to all other implementations. So to come up with a precise definition, someone needs to bite the bullet anyway.
I'd propose to:

Keep Inclusive lower boundary and exclusive upper boundary
Clarify that omitting a component is equivalent to setting it to 0
Disallow 24 as the hour
Give more examples and help users to understand what they need to do
Throw an error if the values for the lower and upper boundary are the same (for backward compatibility backends can keep the previous behavior instead of throwing an error, but that should likely result in a deprecation warning in the logs).
We may also help in client implementations by just allowing to pass a single string (e.g. "2020-01-01") or a corresponding "Date object", which gets transformed internally into a ["2020-01-01T00:00:00Z",""2020-01-02T00:00:00Z""]

For me it would also be fine to change the API and make the upper boundary included, since it caused many headaches in the past and it would be easier to understand. However, we need to clarify it in the best way.
If we change the definition I see mostly two cases:
Case 1: I provide a complete range like ["2020-01-01T00:00:00Z","2020-01-02T00:00:00Z""] no surprises, I should know what I am asking for and I will also get data at 2020-01-02T00:00:00Z if there's some. -> all good
Case 2. I provide just the date ["2020-01-01","2020-01-02"]: I would expect to get data for the 2nd of January as well if we say that the upper boundary is included, but instead the range gets converted with zeros and therefore the data on the 2nd is excluded. -> we have to clarify this to the users

For me it would also be fine to change the API and make the upper boundary included, since it caused many headaches in the past and it would be easier to understand. However, we need to clarify it in the best way.

As said above, I don't think this is a good idea. Changing this would make data not reproducible as the now included day would intefere. Results would change without users noticing it.

Well, all the users using the VITO back-end wouldn't notice any difference actually, since they already return the upper bound as well. Maybe it's something to discuss in the next dev telco?

* Clarify that omitting a component is equivalent to setting it to 0

Is it possible to define a union type for the date-time, date and year, where we could then describe the relationships? Or would we add this clarification to all the process parameters where this union type is used?

* We may also help in client implementations by just allowing to pass a single string (e.g. "2020-01-01") or a corresponding "Date object", which gets transformed internally into a `["2020-01-01T00:00:00Z","2020-01-02T00:00:00Z""]`.

I agree — either overload the process to allow a single parameter, or provide a helper function such as single_day_to_interval("2020-01-01").

* In `aggregate_temporal` we allow just times (without dates) and there it seems impossible to specify the full range as 23:59:59 would be excluded and 24:00:00 is not allowed. We should point users at `null`, which allows `["00:00:00", null]` to cover the full day.

Another option would be to speficy "the full range" with two identical instants - [00:00:00, 00:00:00] would be 24 hours midnight-to-midnight and [06:00:00, 06:00:00] would be 24 hours 6am to 6am. The second example wouldn't be fixed by allowing 24 as the hour. But this is assuming that we want to allowing the time intervals to span more than one calendar day (and I don't know enough about aggregate_temporal use-cases using only time, so I don't know whether this would be needed).

@clausmichele But there's not only the VITO implementation. We can change a lot here, but I think the exclusive upper bounds are somewhat set in stone for now due to the reproducibility issue...

Is it possible to define a union type for the date-time, date and year, where we could then describe the relationships? Or would we add this clarification to all the process parameters where this union type is used?

@clausmichele But there's not only the VITO implementation. We can change a lot here, but I think the exclusive upper bounds are somewhat set in stone for now due to the reproducibility issue...

Is it possible to define a union type for the date-time, date and year, where we could then describe the relationships? Or would we add this clarification to all the process parameters where this union type is used?

@mkadunc We could, but it would change the schemas quite a bit and make them more complex so I'd try to avoid that. But we have the temporal-interval subtype which we can use and then it's "only" the comparison operators which need a clarifying word in the parameter description, I think...

Another option would be to speficy "the full range" with two identical instants - [00:00:00, 00:00:00]

Hmm... something to look into, the aggregate_temporal spec is quite old and I think there's no actual user (and implementation?) for the time part right now.

Although, should eq("2018", "2018-01-01T00:00:00Z") return true or false?

If we want to stick to JSON as the only true context for openEO types, then we have to go with the fact that these are all JSON strings and therefore return false.
If we want, we could define date and time types for openEO in more detail, in which case we could either go with "date- or time-like JSON strings represent intervals", like this:

"year" - represents the temporal interval covering a full year in UTC
"date" - represents the temporal interval covering a full day in UTC
"date-time"

a) represents the temporal interval covering a single time unit (the unit is usually second, but could be shorter, e.g. ds, cs, ms etc. in case fractional-second digits are present)
b) represents a time instant (the instant at the start of the indicated second, or at the start of a shorter unit in case fractional-seconds are present)

... or we could specify that "all date- or time-like JSON strings represent single instants" (in line with ISO 8601 interpretation), in which case we have:

"year": represents the instant at the beginning of the specified year, in UTC
"date": represents the instant at the beginning of the specified day, in UTC
"date-time": represents a time instant (the instant at the start of the indicated second, or at the start of a shorter unit in case fractional-seconds are present)

Intuitively, the first option would be more correct, but it does add some complexity to the whole system (all date- and time-like parameters would be intervals rather than single scalars)

There's a proposal up to simplify the comparison processes in PR #399 so that we (hopefully) don't need to bother about them in this issue/PR any longer.

Ready for review!

Has anyone the capacity to review this? @dthiex @soxofaan @clausmichele @mkadunc @LukeWeidenwalker
Thanks!


[Bug]: Can't generate a report from a flood exposure analysis

What happened?
After running an exposure analysis for a flood layer, the option to generate a report is greyed out.
Steps to reproduce:

country=Cambodia
activate flood extent layer (flood > flood monitoring > flood extent)
click exposure analysis button
see that the report button under 'export' is not activated

Which country / deployment are you running?
Cambodia
Add a screenshot (if relevant)

Fixed via https://github.com/WFP-VAM/prism-app/pull/711 but see issue https://github.com/WFP-VAM/prism-app/issues/714 for additional related work


Hydrating a GraphQL Object with a parent GraphQL Object vs API call?

The conceptual question is: What is the best way to hydrate the query tree  while allowing the end-user to sub-select various branches "along the way" given:

several 1:N parent-child node relationships
the scope of the unique IDs for each child node, is the parent

Here is the intended query:
{
   records ( id:"xxx" ) {
        id   -- uid
        measurements ( type:"xx" ) {
            type   -- uid
            components ( names: (Maybe (List Text) ) {   << Resolver in question
                                  compName   -- uid
                                  compValues
         }
   }
}

This following is a Field that will be added to my list of Root queries:
-- Root Field for Components
type CompsRoot =
  Argument "parent"     (**TBD**)  :>
  Argument "names"      (Maybe (List Text)) :>
  Field    "components" (List Component)

What should I use as a parent (given the parent needs to be a single Measurement)

Option 1: API.Measurements + MeaKey = Components (I'm hosting the data in Data.Map)

task: find a way to reference the MeaKey, perhaps using the GQL Measurement Object?

Option 2: GQL.Measurement Object has a Field "components" (List Components)

how would my resolver filter (List Components) using the Field "compName" Text?
should I be using a parent GQL Object to hydrate a child Object?

By definition of this question, I'm clearly missing something in how I'm thinking about this.  Any guidance would be greatly appreciated.
- E

Hi,
I'm afraid there's a lot I don't understand about this question.
A few suggestions:

provide context on what you are trying to achieve
provide a self-contained, reproducible example (see http://sscce.org/)

Leaving this open in case others have insight.
jml
On Tue, 3 Jul 2018 at 14:48 EdmundsEcho<EMAIL_ADDRESS>wrote:

Here is the intended query:
{
records ( id:"xxx" ) {
measurements ( type:"xx" ) {
type
components ( names: (Maybe (List Text) ) {    << Resolver in question
compName
compValues
}
}
}
This following is a Field that will be added to my list of Root queries:
-- Root Field for Components
type CompsRoot =
Argument "parent"     (TBD)  :>
Argument "names"      (Maybe (List Text)) :>
Field    "components" (List Component)
What should I use as a parent (given the parent needs to be a single
Measurement)

Option 1: API.Measurements + MeaKey = Components (I'm hosting the data
in Data.Map)

task: find a way to reference the MeaKey, perhaps using the GQL
Measurement Object?

Option 2: GQL.Measurement Object has a Field "components" (List
Components)

how would my resolver filter (List Components) using the Field
"compName" Text?

should I be using a parent GQL Object to hydrate a child Object?

By definition of this question, I'm clearly missing something in how I'm
thinking about this. Any guidance would be greatly appreciated.

E

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/haskell-graphql/graphql-api/issues/189, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAHq6hecWAYbqwZEc6UDMtjh4Rr1gxXlks5uC3YrgaJpZM4VA_P7
.

I appreciate your comments.  I'm close to figuring it out.  When I do, I will present the solution.  Admittedly, I was incorrect in how I was thinking about it.


New Feature [Playlists'] ability to generate recommendations, and create playlist

https://developer.spotify.com/documentation/web-api/reference/create-playlist

fixed in 16ea1e023c97f333c7470289ab0300b9723b3d0a


[gadget] phploc

https://github.com/sebastianbergmann/phploc

This would a gadget only gathering statistical data right? Or would this influence the score in any way? LOC are obviously not a good measure for code quality in any way, we have the mess detector using cyclomatic complexity for this, which is much more valuable.
Especially when analyzing only parts of the code base most of the time (only files changed by merge requests), this metric would not be of any use, or am I missing a use case?

The goal of the analyser should be to aggregate and normalize issues and metrics on one place. And not only für simpspector, rather for the general public. How to calculate the score is a own thopic. It can be caclulate with cyclomatic complexity or with lines of code. That should decide simpspector or other projects.
btw. objective score calculating is very complex. slowly i am against to provide a general score. I'd rather see the changes in the metrics, then I can judge for themselves if it was better or not.

Overall scores are always ... ehrm ... problematic (unless its that new smartphone that got 97 out of 100 points, must be bonkers :wink:). I see your point and agree with you on it not being the analyser's place to calculate the score.
But I am still struggling to see the value of this gadget, since it would almost exclusively generate metrics and those are right now e.g. not build to handle one metric per file, are they, we would probably have to rethink the architecture there. Average LOC values as phploc generates them are hard interpret and have almost no analytic value.
Only relevant use cases I see right now:

raise an issue for every class/file with >configurable line number here lines
use the information for cyclomatic complexity (we already have this in phpmd)

i think we can close this issue because pdepend also has metrics like loc etc.
http://pdepend.org/documentation/software-metrics/index.html
will be added with #52


Clicking "send" with empty address crashes the app

https://user-images.githubusercontent.com/6209627/207118290-e6f91e22-8df3-469e-b9f0-291722faad78.mp4

haha, yes. I still need to figure out how to display message boxes, or find an even better way to handle errors.
Should be fixed in v0.0.2


sometimes fails to dump playerdata to db

[12:57:28] [ForkJoinPool.commonPool-worker-12/INFO]: [HuskSync] [DEBUG] [Kim_RaKun] Set SERVER_SWITCH key to redis at: 57:28.595
[12:57:28] [ForkJoinPool.commonPool-worker-8/ERROR]: [HuskSync] Failed to get user data from online player Kim_RaKun (java.util.ConcurrentModificationException)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: java.util.concurrent.CompletionException: java.util.ConcurrentModificationException
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: Caused by: java.util.ConcurrentModificationException
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at org.bukkit.craftbukkit.v1_19_R2.entity.CraftLivingEntity.getActivePotionEffects(CraftLivingEntity.java:490)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at HuskSync-2.2.4.jar//net.william278.husksync.player.BukkitPlayer.getPotionEffects(BukkitPlayer.java:197)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at HuskSync-2.2.4.jar//net.william278.husksync.player.OnlineUser$2.<init>(OnlineUser.java:340)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at HuskSync-2.2.4.jar//net.william278.husksync.player.OnlineUser.lambda$getUserData$3(OnlineUser.java:324)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[12:57:28] [ForkJoinPool.commonPool-worker-8/WARN]: 	... 6 more

Join discord for support :)


Updated Featured Content block

Updated to pull the author from the Author Summary block.
Updated references to class name 'adobe-ue-preview'.
Jira ID: https://jira.corp.adobe.com/browse/EXLM-1546
Test URLs:

Before: https://main--exlm--adobe-experience-league.hlx.page/en/featured-content
After: https://main--exlm--rrusher.hlx.page/en/featured-content

When I run npm run format:check I get "All matched files use Prettier code style". I'm not sure why it is failing here.

@gauthamksn / @nitin-rachabathuni Can you please fix the conflicts in this PR and review once.
CC: @rrusher @Sivaramvt


How to pass data to checkout?

In the older versions I believe it wasn't possible to pass data such as email from Umbraco.Commerce to the landing page for the checkout.
Is it possible to do this with this version @mattbrailsford ? If yes any examples to follow? Or is it a matter of forking this and making changes myself?

The checkout package just reads and sets properties on the order. If you set these before hitting the checkout it will load them and show them in the fields.

The checkout package just reads and sets properties on the order. If you set these before hitting the checkout it will load them and show them in the fields.
See code here for the properties it uses https://github.com/umbraco/Umbraco.Commerce.Checkout/blob/main/src/Umbraco.Commerce.Checkout/Web/Controllers/UmbracoCommerceCheckoutSurfaceController.cs#L115

Hi @mattbrailsford
The first and last name property alias seem to be incorrect.
I've tried billingAddressFirstname, Firstname, firstName and other combinations but these don't seem to find the correct property alias.
Please could you confirm the correct alias?

it should be looking for an order level property names 'firstName`

it should be looking for an order level property names 'firstName`

@mattbrailsford I have already attempted that but that didn't work. I even downloaded the project and looked at the constant value which didn't work (firstName). Is there any way I could find this out as I assume this is the alias that's been setup in Umbraco?

What code are you using to set the property?

Sorry, I want to see the entire code you are using to write the properties to the order.

    [HttpPost]
    [ValidateAntiForgeryToken]
    [ValidateUmbracoFormRouteString]
    public IActionResult UpdateCustomerInfo(UccUpdateOrderInformationDto model)
    {
        try
        {

            _commerceApi.Uow.Execute(uow =>
            {
                var store = CurrentPage.GetStore();
                var order = _commerceApi.GetCurrentOrder(store.Id)
                    .AsWritable(uow)
                    .SetProperties(new Dictionary<string, string>
                    {
                        { "email", model.Email },
                        { "marketingOptIn", model.MarketingOptIn ? "1" : "0" },

                        {"firstName", model.BillingAddress.FirstName },
                        { "lastName", model.BillingAddress.LastName },
                        { "billingAddressLine1", model.BillingAddress.Line1 },
                        { "billingAddressLine2", model.BillingAddress.Line2 },
                        { "billingCity", model.BillingAddress.City },
                        { "billingZipCode", model.BillingAddress.ZipCode },
                        { "billingTelephone", model.BillingAddress.Telephone },
                        { "comments", model.Comments },
                        { "ipAddress", GetIPAddress() }
                    })
                    .SetPaymentCountryRegion(model.BillingAddress

                    _commerceApi.SaveOrder(order);
                    uow.Complete();

}
All the other properties come through fine just first and last name are the problematic ones

Looks like it should all be ok to me 🤔
Do you have any other notification handlers that could be interfering?


Build failure: omcompiler

Steps To Reproduce
Steps to reproduce the behavior:
In both nixos-23.11 d272ca50d1f7424fbfcd1e6f1c9e01d92f6da167 and current nixpkgs 4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6 building openmodelica.combined will result in a build failure for omcompiler-1.18.0:
Build log
Full nix log /nix/store/z14b8jvia0dwfn988ykhnmvq23f57ms0-omcompiler-1.18.0.drv
Basically, the problem occurs while running Clang:
src/netstream-storage.h:44:45: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]

So I guess this has something to do with clang having been updated in clangStdenv?
Notify maintainers
@balodja @grwlf
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.84, NixOS, 23.11 (Tapir), 23.11.20240406.e38d7cb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `""`
 - nixpkgs: `/run/current-system/pkgs`

Add a :+1: reaction to issues you find important.

The version just needs to be bumped. Newest is v1.22.3, while Nixpkgs is currently on v1.18, which contains a (now removed) dependency on gs-netstream (from the Graphstream library) which is not C++17 conformant (hence the error). See OpenModelica/OpenModelica#7619 for further context. Could also pass CXXFLAGS=-std=c++14 somewhere (if OpenModelica staying on this specific version is important for reasons unbeknownst to me) but we may as well just take the chance to update.


Bug: wxAuiNoteBook's stype property editor is a combox(wxChoice), not the checked listbox

Description:

wxAuiNoteBook's stype property editor is a combox(wxChoice), not the checked listbox. so I can not choice multiple styles.

This was fixed in commit: #1353 -- the commit doesn't specifically refer to this issue but that was when it was changed. When the options were moved back into the XML interface, the style property type was changed from option to bitlist which displays as a checked list. This is part of the current daily builds, and will be part of the 1.2.1 release.


Sugar unknown monomer only has 2 connection points

If I draw a molecule using the * sugar monomer I can't add a base as there are only 2 connection points available.

Fixed in 2017-12-14 update

Confirmed fixed.


Missing geometry when sending from Grasshopper

What package are you referring to?
Grasshopper Connector 2.11
Describe the bug
Missing vertical elements in a railing model.
To Reproduce

Open this test file in Grasshopper
Send
See results in[ this stream ](https://latest.speckle.dev/streams/82592d1f8d/branches/bug report)

Expected behaviour
Import full model with all elements.
Screenshots
Grasshopper

Speckle
https://latest.speckle.dev/streams/82592d1f8d/commits/6bb1de680f

System Info
Desktop (please complete the following information):

OS: Windows
Browser Firefox

This is not a bug. At least, not one coming from Grasshopper :)
All the data seems to be there, but you've modelled them as Box instances, and the viewer ignores all Box instances as they're used on every object to hold their bounding box.

If you convert the boxes into breps/meshes, they will show up.
https://latest.speckle.dev/streams/82592d1f8d/commits/878bd0b975
Receiving the commit you shared back in GH also works as expected

There is an issue though with the Box class, if you try to receive the commit you provided in a different unit, boxes will not show up (I think its a transform problem), I'll open a separate issue for this.

That box doesn't make it to Rhino or SketchUp so if basic geometry doesn't make it to other applications, I would still insist it's a interoperability bug :)

I would still insist it's a interoperability bug :)

Agreed, but my prior reply still stands.

This is not a bug. At least, not one coming from Grasshopper :)

As the issue was described, it was assumed that Grasshopper was not sending those boxes, which is not really what is happening as GH deals with them as expected, and the boxes do exist in the commit.
Not sure about Sketchup but Rhino should has support for Box->Rhino conversions ( I just checked in the code ), so there may be a bug in the way Rhino handle's these when baking to the document (not when converting, as the logic is the same used in GH)
@clairekuang can you confirm this is the case?

Just had a quick chat with @oguzhankoral and in Sketchup, Box instances are ignored when received. So it should be a matter of adding them to the conversion routine.

Closing this as a non-issue. If boxes need to be supported in other connectors, new issues should be created for this.


Handle missing fonts (origwidth=0)

It seems like with non-available fonts, e.g. "Helvetica Narrow" not
being installed, origwidth is 0 and font-to-width will keep looping
over it until it gives up eventually.
This sets origwidth to -1 in this case, so that the allLoaded = false code path is not triggered for / because of it.
I am not sure if that's the correct way to address this..

I'm sorry, I think I saw this 2.5 years ago and then forgot to respond! I am going to replace the whole font-loading detection, which is buggy anyway, with some better methods (#14).


[4.x] reindex-textual-data: Find psycopg2 in the virtualenv

Backport the first commit of

#20933

We can revert the second on main when this makes it into a release.

lgtm.

Test failure is a puppeteer flake.


🐛 Bug Report: Stack Overflow plugin doesn't show questions with tags provided

📜 Description
The <HomePageStackOverflowQuestions /> component doesn't show questions related to the tags provided in the requestParams object.
This is because the listQuestions method in StackOverflowApi, specifically the qs.stringify part is prefixing the query parameters with indices, which makes the Stack Exchange API ignore the provided tag parameters.

This can be solved by adding the arrayFormat: 'repeat' option to qs.stringify, which will remove the prefix indexing and the API will successfully return questions related to the tags.
👍 Expected behavior
The API should return questions related to the tags provided to the component.
👎 Actual Behavior with Screenshots

Tags provided to the component are backstage and techdocs but none of the tags show up in the returned questions.
👟 Reproduction steps
Install "@backstage/plugin-stack-overflow" and add the <HomePageStackOverflowQuestions /> component to the HomePage.
Provide the component with a requestParams prop, e.g:
requestParams={{ tagged: ['backstage', 'techdocs'], pagesize: 5,             site: 'stackoverflow'           }}
📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

@backstage/discoverability-maintainers could you take a peek here?

PR submitted! 😃


Amplify Auth and user's groups

** Which Category is your question related to? **
Authentication via Cognito
** What AWS Services are you utilizing? **
Cognito
** Provide additional details e.g. code snippets **
Create a new project with amplify and add auth. Be sure to select cognito as authentication method. Once deployed with amplify push go to the Cognito console, select the newly created user pool and create a user and a group. Now add the user to your group.
Back on your app, import amplify-js and do the ritual setup of framework of your choice.
How to retrieve the group a logged in user is in?
import { Auth } from 'aws-amplify';
...
const user =  await Auth.currentAuthenticatedUser();

does not contain such information
Thanks in advance!

You can find a user's cognito group in the user's jwt accessToken or simply the payload.
import { Auth } from 'aws-amplify';

const user =  await Auth.currentAuthenticatedUser();

// the array of groups that the user belongs to
user.signInUserSession.accessToken.payload["cognito:groups"]


ALSA error while running pygame from WSL2 - Windows 11

Hi
I'm playing around with pygame using WSL2 on Windows 11. I'm using 22.04 distro and I'm using a venv specifically for this project.
When I run pygame.init(), I get ALSA errors:
pygame 2.5.2 (SDL 2.28.2, Python 3.10.12) Hello from the pygame community. https://www.pygame.org/contribute.html ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
I did some googling and I found that for Windows 10, I should install something like PulseAudio in Windows and connect to it from WSL2.
However, in Windows 11 I should have native sound features. But that doesn't seem to be the case.
What am I doing wrong?

You ant least need packages below:
libasound2
libasound2-plugins
libpulse0


Refactor keyring-controller to remove QR keyring methods

Description
Given the latest refactor in the keyring-controller, it's now possible to deprecate all keyring specific methods like the ones exposed by the QR keyring and consumers will be able to access those methods via the method withKeyring.

Related: https://github.com/MetaMask/metamask-mobile/pull/9748

^ See this comment for details: https://github.com/MetaMask/core/issues/3786#issuecomment-2147423107


JSON Format Button Missing and Shortcut Not Working in BETA Version

Hi Daniel,
I am using the BETA version of Deneb (deneb7E15AEF80B9E4D4F8E12924291ECE89A.<IP_ADDRESS>40624.c94536d.pbiviz) and I have encountered an issue. I cannot find the button to format the JSON code, and the Ctrl + Alt + R shortcut is not working either. I searched the documentation but couldn't find any solution.
I would appreciate any help or guidance on how to resolve this issue.
Best regards,

Wow! I was so used to the official version that I let myself be carried away and didn't see this detail. Thank you so much!

No worries - it's good feedback 👍
As it does not clash with Monaco, the shortcut will be reverted to [ Ctrl + Alt + R ] in the next available build (either a subsequent beta version if we need to release one or the version we submit to AppSource).


Boojum prover: Proved block without metadata!

🌟 Feature Request
Proved block without metadata!
📝 Description
When i run success prover network. I send a lot of transactions to L2 zkSync and i wait a 1 day. After, i check logs of zkSync and i saw message is: "Received proof for block number: 1" but it has error logs message is "Proved block without metadata". Please, explain to me.

You're either using old versions or not running eth_sender.

How i can check eth_sender is running ?

Contributo

Oh, Im running zk server command should have --components=eth ( and all other components). But, it has error is:

I don't know why it appeared. Is it a developer error or something that happened when I deployed ?

I can't really tell. I don't see a lot of the logs, nor the command you ran before that. I don't know how to reproduce it either.

I'm following all step run boojum prover for CPU option on link: https://github.com/matter-labs/zksync-era/tree/main/prover/prover_fri.
And my server is Ubuntu 20.04, 20 core, 132GB Ram and 490GB ssd disk

I temporarily fix this issue by running zk server twice. The first time run with zk server --components=api,eth,tree,state_keeper,housekeeper,proof_data_handler, second time zk server --components=api,eth,tree,state_keeper,housekeeper,proof_data_handler,commitment_generator. To me it looks like some metadata of the L1 Batch is not updated to database.

yes agree

nice idea

You're either using old versions or not running