Are there any updated pre-trained models?

Thank you for your great work.
I would like to know if there are already models for certain tumors? For example, stomach cancer? Is it accurate enough to use the models from this paper and pan-cancer for gastric cancer?

Thank you for your interest.
In theory, the pan-cancer model can predict gastric cancer. However, we have not yet conducted testing on gastric cancer data, so I cannot confirm whether it meets your desired accuracy.
If possible, I recommend validating it on established gastric cancer datasets before use.
The topic of pre-training models specific to particular tumors exceeds the scope of this article. There are currently no plans for such initiatives in the near future, though they may be explored in subsequent work.
If necessary, I suggest constructing your own training dataset for the specific tumor you require and proceeding with training accordingly.

Thank you for your interest.
In theory, the pan-cancer model can predict gastric cancer. However, we have not yet conducted testing on gastric cancer data, so I cannot confirm whether it meets your desired accuracy.
If possible, I recommend validating it on established gastric cancer datasets before use.
The topic of pre-training models specific to particular tumors exceeds the scope of this article. There are currently no plans for such initiatives in the near future, though they may be explored in subsequent work. If necessary, I suggest constructing your own training dataset for the specific tumor you require and proceeding with training accordingly.


Unable to load DLL 'Microsoft.VisualStudio.Setup.Configuration.Native.dll'

With latest version (0.32), both downloaded directly or installed via Chocolatey.
NOTE: This is on Windows 10 for ARM, with Visual Studio 2019 Community edition.
$ git tfs
StructureMap Exception Code:  207
Internal exception while creating Instance 'GitTfs.Vs2019.TfsHelper, GitTfs.Vs2019, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' of PluginType GitTfs.Core.TfsInterop.ITfsHelper.  Check the inner exception for more details.
Unable to load DLL 'Microsoft.VisualStudio.Setup.Configuration.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Same result no matter if I set ´set GIT_TFS_CLIENT=2019´ or not.

git tfs was never tested on Windows 10 for ARM and I can't test it (no machine available with Win 10) nor do I personally have the intention to support that. So what you are trying is currently completely unsupported.!
That being said, if you can debug it and provide a fix in form of a pull request, I am willing to take a look!
In the meantime I am going to close this issue. As soon as we have something concrete to discuss, e.g. the pull request, we can revisit that and reopen the issue if needed.

I went on to setup a x86 machine in order to workaround that, so I'll let others debug this if they want ;)


polya- contig/pos take first line of BAM rather than primary alignment?

Hello,
I am using your polya algorithm to call polya tail length from Direct RNA Nanopore data. When I compare the polya output tsv file to my aligned BAM file, I noticed that for a readname that mapped to multiple locations, the tsv will list the contig and position of whichever is listed first (so, generally chromosome 1) even though that may not be the primary alignment. It seems like the polya algorithm does not take into account the SAM flags indicating which is the primary alignment and which is not.
To get to this place, I am using Nanopolish index, followed by minimap2 to do aligning (minimap2 -a -x splice -uf -k14), and then formatting and sorting the BAM file, then Nanopolish polya --threads=8 --reads=all_fastq.fastq --bam=all.sorted.bam --genome hg38.fa > polya_results.tsv
For an example, here is a line from the polya tsv output
d34e4e18-9b35-463d-a114-104caa7cc6b3	chr1	14399	27.0	3424.0	8148.0	13365.0	100.40	168.87	PASS
And here is a screenshot from the BAM file for that particular readname:

So the actual correct contig and position should be on chrom9, 14513 I believe, since that was the primary alignment. Please let me know if I am missing a flag or other identifier that would fix this issue. Thanks!

Hi Angela,
Good catch, and thanks for the detailed bug report. @paultsw I think we should change the program to only output for the primary alignment, what do you think?
Jared

I think that's a pretty reasonable expectation for the output. I'll make some updates and comment here when the changes are pushed.

Hi @AngelaLNicholson , sorry for the delay. I've made the changes so that the program checks for primary/secondary alignment while looping through the BAM (omitting estimates for secondary). Let me know if you encounter any further issues!


Have notification bar list which Autoskill config is Running

I build a new configuration, and then often forget to select it for use, or didn't remember which free quest I was last using and therefore which config is active . So if after pressing play, the notification display could change from "script running" to "[config 1] running" would be nice.

Yeah, that would be a sweet improvement.
BTW, the FGO-Lua script displays a dialog box which shows a list of AutoSkill configs with the last one you selected when you start the script. You can choose the one you want to run from it.
This would be even better if I'm able to implement it without asking any more permissions from the user. You won't accidentally run the wrong config and then have to stop the script, go to settings, change the selected script, start again.

A pop up that lets you pick would be really nice, but I figured just letting it be stated in the notification bar would be easier to implement

I was thinking of a way to show dialogs to users from quite some time.
Finally, had success making a dialog to show for picking AutoSkill config when starting script.
https://www.youtube.com/watch?v=LJuGiT6pvxI


Sonos API

Can OAuthSwift be used with Sonos API. I have installed it as per the instructions but cannot get the token back. My app is wrote in Swift 5.
Any help is appreciated.

For this kind of question without any code or error message, please go to stackoverflow.
Then you do not provide any link to sonos api, which talk about oauth...
You can upload project to your github or clone this repository, add sonos in demo app , then I can see if there is an issue

Thanks phimage, I'll add to stackoverflow. Here is the link to Sonos Developer site anyway. https://developer.sonos.com/reference/authorization-api/
I'm probably missing something simple. If I get it working I'll report back. Thanks


Configure Travis/Jenkins for automated testing

Addressed partly in #26. Testing the script with all the python versions is still remaining.

Add the travis icon to readme!


How to pass parameters into CustomOp

I am trying to implement a new operator(loss function) in Python following the instructions here. But different from the example in this page, my new operator need some extra parameters like "kernel", "stride" or "num_filter" in mx.sym.Convolution . Is it possible to pass such parameters into a CustomOp like
class AwesomeOp:
    def __init__(self, arg1, arg2):
        self.arg1 = arg1
        self.arg2 = arg2
        ... ...

data = mx.sym.Variable('data')
awesome_op = AwesomeOp(data=data, arg1=arg1, arg2=arg2)

yes, just used in k-max pooling

@CNevd , thanks a lot. That is exactly what I want !


Don't throw CertificateValidationException for all SSLExceptions.

POP3 and WEBDAV fixes.
An interrupted connection attempt to the server yields an SSLException
as well, like this:
E/k9      ( 6937): Caused by: javax.net.ssl.SSLHandshakeException: Connection closed by peer
E/k9      ( 6937):      at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:560)
E/k9      ( 6937):      at com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:2459)
We don't want the user to notify of 'certificate problems' in that case.
Fix it by checking whether the SSLException was actually triggered by a
CertificateException.

Forgot the import.


Add exception handling to utils.canUseNewCanvasBlendModes

Multiple sites using pixi have been throwing the following error:
Uncaught TypeError: Cannot read property 'data' of undefined.

Chromium v53 x64 Linux  Kernel 4.6

Also want to add some context to this - I use a few extensions to prevent canvas fingerprinting and they seem to be the cause of my error.
Would prefer to keep my privacy, while also being able to view sites that use pixi.

Instead of try catch:
var imageData = context.getImageData(2,0,1,1);

if (!imageData)
{
    return false;
}

var data = imageData.data;

return //...

Oh shoot just realized this PR was to master, we only accept PRs to dev:
https://github.com/pixijs/pixi.js/blob/master/CONTRIBUTING.md

I'll close and reopen another - thanks


Parse CI Artifacts

FYI @JimSuplizio

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

I'm approving this. The only concern I have is one that we'd talked about and that's not all languages have artifacts in their yml files. For example, neither Go nor C has them and I'm not currently sure what Rust is doing but they don't seem to have individual ci.yml files in sdk/ subdirectories yet...just something to be aware of.

I will ensure that it works across all the repos before merging any of them 👍


Changes to be made for having nonlinear operators

See https://github.com/gridap/Gridap.jl/issues/948
This involves

replacing the multistage f with a multistage u
computing the residual of the a[i,j]u[j] instead of computing f at each u

These changes have been implemented https://github.com/gridap/Gridap.jl/tree/nonlinear_RK.
Need to check these changes have been reciprocated entirely in this repo.

Checked that these changes  https://github.com/gridap/Gridap.jl/tree/nonlinear_RK have been implemented entirely in this repo.
Of these comments https://github.com/gridap/Gridap.jl/commit/6665b9ab88fad8ca6670dae4fdff3d4410aea71a  , I have only modified the rhs! as suggested by Santi

Implemented non-linear operators for explicit RK by computing and storing k_i at each stage


Server doesn't start in HTTPS despite LNBITS_FORCE_HTTPS=true

Is this normal behavior? where should I look if i want to make sure the server runs in HTTPS?

LNbits itself doesn't run in HTTPS. You must use some proxy in front of it, which is the standard practice everywhere. Most people use nginx with certbot for automatic LetsEncrypt certificates, but we recommend https://caddyserver.com/.

thanks for clarifying :)

After playing around with this, im curious about the danger of exposing the api calls over HTTP.
does exposing an admin key compromise any of the other admin keys?  are there so many possible keys that it wouldn't even matter? Aren't the keys useless without the corresponding node ?

What do you mean by "exposing"?
You have to send wallet keys when making a request, but doing that isn't "exposing" it. Exposing it would be printing it on a public webpage or something like that.
Each key is only bound to one LNbits wallet, so compromising one doesn't compromise the others. But the node has nothing to do with it. If I get a key to one of your LNbits wallets I can spend from it -- and only from it, not from the others.


skip_install = true for tox check environment

Hmm, I think this doesn't work since we use the extras to specify the check dependencies.  Oh well, it isn't that expensive to install plotman as well.


Add some more labels

The current set of labels is a great improvement over GitHub's default set of labels.
But there is still some room for improvement, I think.
As such I'd like to propose the addition of the following:
Status:
Status: Help Wanted [yellow]

Effort:
Effort: Easy [green]
Effort: Mentored [yellow]
Effort: Medium [orange]
Effort: Hard [red]

Type:
Type: Tracking Issue [?]
Type: Enhancement [?]
Type: Cleanup [?]

What do you think?

The labels of this repo are just as a template/reference, you can customize your own by editing the exported JSON file.
However, I have no objection to enhancing this repo's label sets, feel free to send a PR.

I ended up making my own set of labels with fine-tuned colors. 😇


Test Chaos Mesh with Istio

Feature Request
Is your feature request related to a problem? Please describe:

Maybe Chaos Mesh can be work with Istio, If it can, we should test it
Describe the feature you'd like:

Make Chaos Mesh can work with istio, but first we should test it
Describe alternatives you've considered:

None
Teachability, Documentation, Adoption, Migration Strategy:

None

when I use NetworkChaos  to my exsit istio system ,I find it didn't work.
I expect ping pod ip will delay,but it not delay。
After a while I found my controller inject istio sidecar，I guess it intercept the NetworkChaos  Inject。
The  chaos-daemon log shows that：
kubectl log  chaos-daemon-fzjjg -c  chaos-daemon -n chaos-testing
log is DEPRECATED and will be removed in a future version. Use logs instead.
Chaos-daemon Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"a5f2eaabc4c55d07c575577565f6570cd767e8b7", GitTreeState:"dirty", BuildDate:"2020-01-19T10:43:02Z", GoVersion:"go1.13", Compiler:"gc", Platform:"linux/amd64"}
2020-01-20T10:56:10.143Z        INFO    chaos-daemon    starting server
You have mail in /var/spool/mail/root
It can not receive any message。
so I remove the controller sidecar and NetworkChaos  Inject can work。

@linda01232003 thank you for your information

Hi @linda01232003,
AFAIK, there are 2 ways to help you to avoid Istio inject sidecar into Chaos-Mesh.
The first way is to remove the label of the namespace by:

kubectl label namespace chaos-testing istio-injection-

And the second way is to annotate the pod with sidecar.istio.io/inject: "false" which I had created to issue to help this. https://github.com/pingcap/chaos-mesh/issues/200

It works. Tested by @YangKeao


No way to customize buttons in Progress

Now progress does not use options object at all, and so you can not customize buttons, or remove them (which would be useful for progress widget)

That's a good idea for a pull request :).

I know, how to fix it, but I've never done pull requests befor

You can write here your ideas, it will speed things up :).


No DEBUG log even enable it by -l DEBUG

When I want to see some DEBUG log from OSRM(e.g. osrm-extract, etc), I found that there's nothing output even I passed in -l DEBUG.
https://github.com/Telenav/osrm-backend/blob/0050f5a1a8c2fa88591e953fad93ad19f6ff9ffa/src/util/log.cpp#L128-L131
After check codes, I found that it will only be enabled by build with debug type in compiling time and pass in -l DEBUG in runtime. It's not a good idea for debugging. People also may want to see more logs for investigating some issues with release binary.

Refer to https://github.com/Project-OSRM/osrm-backend/issues/3427#issuecomment-265804917, disable debug log at compile time is mostly for performance.

I also did some performance benchmark for remove compile time debug log control, see https://github.com/Project-OSRM/osrm-backend/issues/3427#issuecomment-563284389


Wrong offsets being reported by Sherlock

I'm finding cases where multiple transients, with near-consecutive ZTF names (looks like they were discovered in the same image based on identical historic detection limits) and associated with the same galaxy by Sherlock, have identical offsets from the nearest galaxy even though they have different coordinates.
It looks like the north and east separations are being computed probably correctly, but then something goes wrong in combining this into an overall separation.
I've made a public query called Sherlock-bug that demonstrates the issue. You can see that all objects returned have the same separationArcsec and physical_separation_kpc

Hi Matt.  This looks like a generic Sherlock issue rather than a specific Lasair one.  Can you raise an issue (cut/paste) on Dave's Sherlock page?
https://github.com/thespacedoctor/sherlock/issues

There seems to be a bug in Sherlock where multiple transients are found in the same ZTF image and are associated with the same host galaxy. Although the transient coordinates the host-transient N-E separations reported are different, the combined angular- and physical-separations reported are 1. wrong, and 2. exactly the same!
Here's a modified version of the query Matt created:
SELECT
    objectId, jdmin, catalogue_object_id, northSeparationArcsec, separationArcsec, eastSeparationArcsec, physical_separation_kpc, direct_distance_scale, direct_distance
FROM
    objects,
    sherlock_crossmatches
WHERE
    objects.objectId = objects.objectId
        AND objects.primaryId = sherlock_crossmatches.transient_object_id
        AND objects.jdmax > JDNOW() - 180.00000
        AND objects.sherlock_classification = 'SN'
        AND sherlock_crossmatches.direct_distance < 200
        AND sherlock_crossmatches.rank = 1
        AND objects.jdmin > JDNOW() - 180
        AND objects.ncandgp > 0
        AND objects.ncand - objects.ncandgp < 2
        AND sherlock_crossmatches.catalogue_object_id = 'UGC04171';

And the results:

I notice that the sherlock version on lasair-node0 is >1 year out of date!
First check is to clear out the classifications for these 7 ZTF sources above, rerun the installed version of sherlock (v1.6.3) and see if I get the same results. And the answer is .. NO. These are the results I get after rerunning sherlock (ran twice with consistent results).

So the Sherlock code is NOT the source of this issue. The issue is the in the way Sherlock is being run.
ISSUE NUMBER 1
The following queries in the Sherlock settings file have different jdmax limits injected. Why???? In the 'transient count' it is set to 3rd Dec 2019 and in the 'transient query' it is set to 27th Oct 2019:
transient count: "select count(*) from objects where jdmax>2458821 and sherlock_classification is null"
transient query: "select primaryId as 'id', objectId as 'alt_id', ramean 'ra', decmean 'dec', objectId 'name', sherlock_classification as 'object_classification' from objects where jdmax>2458784 and sherlock_classification is null"

Sherlock cannot correctly do bookkeeping with these oddly incompatible queries. Why do we have a date limit? If the issue is with the number of sources needing classification then please reimplement the ncand>2 limit.
These arbitrary date limits prevent all objects from being classified and therefore any queries users run against sherlock classifications (e.g. Matt's queries) will be opaquely incomplete.
ISSUE NUMBER 2
A 30 minute timeout has been placed on Sherlock after which the process is killed!
https://github.com/lsst-uk/lasair/blob/master/src/post_ingest/run_sherlock.py
Ungracefully killing any process that works with databases is obviously going to leave the data in an incomplete and unreliable state.

I see now that issue 1 has been fixed - thanks Roy.
Still a concern remaining about issue 2 above.

issues have been fixed now


YARN-11216. Avoid unnecessary reconstruction of ConfigurationProperties

Description of PR
How was this patch tested?
For code changes:

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

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 38s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
38m 14s

trunk passed

+1 :green_heart:
compile
1m 21s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
compile
1m 14s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
checkstyle
1m 12s

trunk passed

+1 :green_heart:
mvnsite
1m 21s

trunk passed

+1 :green_heart:
javadoc
1m 16s

trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
1m  2s

trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
2m 22s

trunk passed

+1 :green_heart:
shadedclient
21m 47s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 59s

the patch passed

+1 :green_heart:
compile
1m  5s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javac
1m  5s

the patch passed

+1 :green_heart:
compile
0m 57s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
javac
0m 57s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 48s

the patch passed

+1 :green_heart:
mvnsite
1m  2s

the patch passed

+1 :green_heart:
javadoc
0m 47s

the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS>

+1 :green_heart:
javadoc
0m 46s

the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

+1 :green_heart:
spotbugs
2m  5s

the patch passed

+1 :green_heart:
shadedclient
21m 15s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
113m 13s

hadoop-yarn-server-resourcemanager in the patch passed.

+1 :green_heart:
asflicense
0m 43s

The patch does not generate ASF License warnings.

213m 36s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4631/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4631

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux f1f8cbf03f36 4.15.0-169-generic #177-Ubuntu SMP Thu Feb 3 10:50:38 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / cea07797466401e26a8ec7eb70303d59b53a7e65

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Private Build-11.0.15+10-Ubuntu-0ubuntu<IP_ADDRESS> /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4631/1/testReport/

Max. process+thread count
944 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4631/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


Bugfix: Insert input_model data_config and don't overwrite other hf data_configs

Describe your changes
Previously, RunConfigs.data_configs had some default configs. We remove the default configs and only insert a data config for the input model if it has hf_config.dataset.
There was also a bug where all HF container data configs were being overwritten by the input model's dataset. But we don't want to do this. This has been fixed by only updating the model_name and task of the user provided hf data_configs if not already present.
Checklist before requesting a review

[x] Add unit tests for this change.
[x] Make sure all tests can pass.
[ ] Update documents if necessary.
[x] Format your code by running pre-commit run --all-files
[ ] Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Thanks for this fixing which remove the default data configs. It looks clearer.


Improve readme

See https://www.reddit.com/r/raspberry_pi/s/l2fQqFaj8V
And my reply and try and improve that before next release

Not obvious how to follow but this will do it. (Oh... "Subscribe" button.)
Thanks!

Check PR #209 and let me know if better, and if enough or needs to be clearer?

That looks better.  Enough? There is never enough but at some point you need to continue with other priorities.
One thing I looked for is what libraries, if any, are in use. e.g. WiringPi, pigpio, libgpiod or does the code directly deal with the kernel abstractions. The reason I'm interested in this is because I've recently faced this issue in one of my projects (written in C.)
Thank you for being so responsive.

Before I had something on our use of Iced and rppal (the rust library for gpio that uses gpiomem and others), but removed it as "an implementation detail" :-(

added back :-)

To be honest, many would consider that choice an implementation detail. Nevertheless... I see in a post on the Raspberry Pi forums https://forums.raspberrypi.com/viewtopic.php?t=366693

libgpiod is the standard library for driving GPIOs via the GPIO character device, /dev/gpiochipN, which is the standard GPIO userspace interface for Linux.
That interface is the only one that works on all Pi variants. Other libraries that use the obsolete sysfs interface or the /dev/gpiomem interface will not work on the Pi5.

That comment from 2024-03-16 seems not accurate as you have this working on a Pi 5, no?

No, I don't have a Pi5, and only have tested as far as a Pi4/Pi400.
I'll pass that on to the rppal crate author.
Thanks for the heads-up!


Documentation: Create validation report on release for this repo

Please select a category the issue is focused on?
Other
Let us know where something needs a refresh or put your idea here!
Need to add https://github.com/pharmaverse/admiral/blob/main/.github/workflows/common.yml#L27-L30 and https://github.com/pharmaverse/admiral/blob/main/.github/workflows/common.yml#L57-L62 to the check.y[a]ml workflow.

already exists - no action needed


filterSelectedOptions for Autocomplete

Is there a way to use filterSelectedOptions for AutoComplete Component?
This option is would be very usable to pass to component.

Yes. Here is an example:
<Field
  name="country"
  options={countries}
  component={Autocomplete}
  filterSelectedOptions
/>

Hi, i have checked that and i am afraid it doesn't work.
Sample Code, more or less the same like in provided samples in repository.
<Field
 name="category"
 multiple
 options={[{ label: "DK" }, { label: "NO" }, { label: "SV" }]}
 textFieldProps={{
    label: "Categories",
    required: true,
    variant: "outlined",
}}
component={Autocomplete}
filterSelectedOptions
/>

I am still able to select already selected option and make duplicates.

I have also found that, i receive following warning:
react_devtools_backend.js:6 Material-UI: the value provided to Autocomplete is invalid. None of the options match with [{"value":1,"label":"DK"},{"value":1,"label":"DK"}].
Could you point me where i am making mistake?


ChooseWebUI versioning by include

Fixes #31032
Changing topic to versioning by include file.  Minor change.

Internal previews

📄 File
🔗 Preview link

aspnetcore/tutorials/choose-web-ui.md
Choose an ASP.NET Core web UI

Moved to versioning by include file as only change.  Verified each version of topic in build.


Report if AutoMigrate() will change the schema.

Describe the feature
Report if AutoMigrate() will change the schema.
One possible way:

With Session.DryRun = true, AutoMigrate() succeeds if no need to change schema, and panics if there is any changes of schema.

Motivation
I know AutoMigrate() won't break any data. But when a table has many records, ALTER COLUMN may take a long time to finish, which is not safe for prod.
I hope to know if there is any change of schema before applying the changes. I can notify people when the change appears and arrange a proper time to apply those changes.
I tried AutoMigrate() with Session.DryRun = true. No matter there is changes or not, AutoMigrate() panics with dry run mode unsupported.
Related Issues
I can't find any related issues.

I would also really like something like this. My usecase is that I would like gorm to generate a migration (in the form of SQL), that I can dump into a file to use with something like https://github.com/golang-migrate/migrate .
Actually running AutoMigrate() doesn't usually work if you have a whole team and multiple deployment environments; things always get out of sync, and it becomes a mess to sort everything out. So doing something like golang-migrate with specific steps saved in files, checked into the repo is usually the way to go in the end.
In my mind it should be something like
db.PrintMigrationDiff() or db.CalculateDbDiff() or so.
A function that returns a string wih the diff between the current state of the database and what the models say.
I don't really understand why you would want anything to "error" or "panic". Introspecting the database and comparing to the schema is a normal operation to perform, not an error state. What the user chooses to do with the information (quit the program or whatever) should be outside of what the db framework decides. Or?

Hm looks like #5689  is something like that

I don't really understand why you would want anything to "error" or "panic".

A diff would be better. An error/panic is the simple thing to know schema changing.

I've ended up with this.
type SelectOnlyAllowedLogger struct {
	logger.Interface
}

func (sl SelectOnlyAllowedLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
	sql, _ := fc()
	if strings.HasPrefix(sql, "SELECT") {
		sl.Interface.Trace(ctx, begin, fc, err)
		return
	}
	log.Fatal("Migration required: ", sql)
}

func NewDB() *gorm.DB {
	db, err := gorm.Open(postgres.Open(common.Settings.DBConnectionString), &gorm.Config{PrepareStmt: true})
	if err != nil {
		log.Fatal("Failed to connect database", err)
	}

	migrateChecker := db.Session(&gorm.Session{Logger: SelectOnlyAllowedLogger{Interface: logger.Default}})
	model.AutoMigrate(migrateChecker)

	return db
}

Tried to provide custom migrator, and check if any of Add, Drop, Alter function is called. But since last update it calls AlterColumn for every column with unique index, then checks inside if there is an index already and skips any changes. This solution is really simple and it blocks any changes, since only SELECT functions are allowed.


elisp: add emacs backup files and undo-tree save-history files

Reasons for making this change:
Emacs backup files and undo-tree save-history files are common files which may occur in any directory by default and should not be included in a repository.
note: Undo-tree history files only occur if undo-tree is used (and set to save history), but this is very common (and if undo-tree is not used, the chance of a filename coincidentally ending in .~undo-tree is essentially zero).
Links to documentation supporting these rule changes:

backup files
undo-tree doesn't have documentation (beyond docstrings), but the relevant code is in the function undo-tree-make-history-save-file-name in the undo-tree source

If this is a new template: N/A

@troyp thanks!


Large amounts of animals can make app choppy

When there are very large amounts of animals, the following can happen.

Scrolling becomes choppy
Taking out and putting back animals lags slightly
Switch between cats and dogs lags significantly

pagination should fix this. Just need to decide the best type. (e.g. pages, load more button, etc)


Experimental: true is misleading

The experimental channel of docker distributes a version of docker based off of the regular release channel, but with additional experimental features. Only those features are experimental, not the rest.
I am not sure what the best solution would be, all I know is that it is getting confusing.
cc @icecrime

"experimental features: enabled"?
"experimental: enabled"?

"experimental features enabled: true"?

Ping @sfsmithcha: do you know if this is explained anywhere in the docs, and if the wording is appropriate?

feel misleading, too.

@icecrime , don't think this is covered in the docs. especially since, up until v1.12.0rc1 experimental features didn't get any documentation. We should definitely include a mention of it in the docs. Currently when you search "experimental" (yay! docs search) it only returns hits for the experimental advisory.

It looks like this issue went stale. Let me close it.


duplicate tests ?

From the doc page there seem to be duplicate postbuild-script:
Site Contents
    Sample build files
        System - Post-build scripts
        System - Post-build scripts
        System - Specifying runtime environments
        System - Specifying runtime environments
        System - APT Packages
        Python - Requirements.txt
        Python - Conda Environment
        Python - Mixed Requirements
        Python - Mixed Requirements
        Julia - REQUIRE
        Julia - REQUIRE
        Docker - Specifying dependencies
        Docker - Legacy Dockerfiles
        Docker - Running scripts
        Docker - Running scripts

This seem to be duplicate for example:
tests/venv/postBuild/postBuild
tests/venv/binder-dir/binder/postBuild

Could that be duplicate tests ?

huh...I thought that was fixed in https://github.com/jupyter/repo2docker/pull/90 but maybe not?

ah I think it has been fixed but the readthedocs build failed!!!!!

PR to close this is here https://github.com/jupyter/repo2docker/pull/95


Is this package compatible with mup ?

When I deploy using mup deploy, I get an error :
{ [Error: Cannot find module 'textract'] code: 'MODULE_NOT_FOUND' }[

I have followed the information from Arunoda and here is my code:
var textract = Meteor.npmRequire('textract');

      var textract2 = Async.runSync(function(done) {

        textract.fromFileWithPath(filePath, function( error, text ) {
          console.log(error);
          console.log(text);
          done(error, text);
        });

      });
      console.log("textract2.error : ");
      console.log(textract2.error);
      console.log("textract2.result : ");
      console.log(textract2.result);

Do you have any idea ?
I am wondering if the package npm is compatible with mup ?
Kind Regards

Yep. It is.
It should be compatible.
On Tue, Sep 1, 2015 at 1:07 PM Thomas Doki-Thonon<EMAIL_ADDRESS>wrote:

When I deploy using mup deploy, I get an error :
{ [Error: Cannot find module 'textract'] code: 'MODULE_NOT_FOUND' }[
I have followed the information from Arunoda and here is my code:
var textract = Meteor.npmRequire('textract');
  var textract2 = Async.runSync(function(done) {

    textract.fromFileWithPath(filePath, function( error, text ) {
      console.log(error);
      console.log(text);
      done(error, text);
    });

  });
  console.log("textract2.error : ");
  console.log(textract2.error);
  console.log("textract2.result : ");
  console.log(textract2.result);

Do you have any idea ?
I am wondering if the package npm is compatible with mup ?
Kind Regards
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/npm/issues/94.

Hello arunoda,
When doing mup deploy or   sudo mup deploy
I get this error :
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

Building Started: /home/thomas/rationalK
Bundling Error: code=2, error:
-------------------STDOUT-------------------

-------------------STDERR-------------------
/usr/lib/node_modules/mup/lib/build.sh: line 13: 10999 Killed                  meteor build --directory $BUILD_LOCATION
/usr/lib/node_modules/mup/lib/build.sh: line 42: cd: /tmp/254dc931-fbe9-4dfe-8749-a7b20ebe5fd6: No such file or directory
tar: bundle: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

This only happens when using npm package.
Any ideas are welcomed.
Thanks

Seems like meteor build command failed.
Try to invoke meteor build --directory /some/location and see whether
it's working or not.
On Tue, Sep 1, 2015 at 1:44 PM Thomas Doki-Thonon<EMAIL_ADDRESS>wrote:

Hello arunoda,
When doing mup deploy or sudo mup deploy
I get this error :
Meteor Up: Production Quality Meteor Deployments
Building Started: /home/thomas/rationalK
Bundling Error: code=2, error:
-------------------STDOUT-------------------
-------------------STDERR-------------------
/usr/lib/node_modules/mup/lib/build.sh: line 13: 10999 Killed                  meteor build --directory $BUILD_LOCATION
/usr/lib/node_modules/mup/lib/build.sh: line 42: cd: /tmp/254dc931-fbe9-4dfe-8749-a7b20ebe5fd6: No such file or directory
tar: bundle: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
This only happens when using npm package.
Any ideas are welcomed.
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/npm/issues/94#issuecomment-136630866.

Hello,
The built is working well.

Hmm. Weird.
On Tue, Sep 1, 2015 at 1:52 PM Thomas Doki-Thonon<EMAIL_ADDRESS>wrote:

Hello,
The built is working well.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/npm/issues/94#issuecomment-136634260.

After doing the build as you mention, now the mup deploy command has worked...
Everything seems to be working well.
I cannot explain why, maybe something with the user rights on linux...
Thanks a lot

Okay.
On Tue, Sep 1, 2015 at 2:00 PM Thomas Doki-Thonon<EMAIL_ADDRESS>wrote:

Closed #94 https://github.com/meteorhacks/npm/issues/94.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/npm/issues/94#event-397531179.


How to test responsive

How can I test in Jest if some component is rendered if it maches some width?

You can provide a values object to simulate any possible situation you want https://github.com/contra/react-responsive#server-rendering


Removing dependency on Boost

Boost is too large and complex and hard to find it. Cmake always hard to find it because I have installed another boost version boost1.5.0. Although I finally make it work.
I think eos should depend little thirdparty libs so as to it be easy to use.

This is kind of planned when VS2017 is released - we will switch to VS2017 and should then be able to remove boost. Note that the core of eos doesn't need much of boost, it's only boost::optional and a few other small things. It is mainly the example applications that use boost.
Note that it's really easy to use boost, if you're having difficulties, you're most likely doing something wrong. In Linux it's just apt-get and in Windows, just download the binaries, see here.

Thank you . I have compiled and build  everything. However there is still error:

I also think eos should depend little thirdparty libs so as to it be easy to use.

+1 ;)

I'm definitely looking forward to this too! Just waiting for VS2017 final to be released and for some additional tooling to be compatible with it (e.g. ImageWatch).
Hopefully soon! :-)

You can pull out just the bits of boost that you need with bcp: http://www.boost.org/doc/libs/1_53_0/tools/bcp/doc/html/index.html

@NextDesign1 I know, thanks. I heard that it's not ideal either though because boost has so many interdependencies, so basically you use boost feature X, and it pulls in the headers from Y, Z, A and B.
Anyway it might be an option. But in fact eos doesn't require much of boost, mainly optional, as mentioned above, which is already in C++17 and most recent compilers support it. So I think it's only a matter of a few weeks or a few months until I completely remove it from the library. :-)

There is now a version in the devel branch that has removed all dependency on boost from the library. Some apps still need boost.
Note however that I do not recommend using that branch yet - it is highly experimental and only the python bindings and fit-model compile - the rest does not compile (yet). Use at your own risk for now.
I will update & close this ticket once this is "production-ready", probably 4-6 weeks but take the estimate with a grain of salt please. There will also be a new release eventually (v0.13.0 probably).

The core of the eos library does not need Boost and OpenCV anymore. These changes are merged into master and in release v0.13.0.


Update manifest for 3rd file manager by android 11+

Background
Now we can't use 3rd file manager for upload file on android 11+
Changes
Update manifest for GetContent
Test plan
Try upload file from 3rd file picker

Good research, thank you!


Introduce the possibility to send elementary alerts to Microsoft Teams using an incoming webhook in Teams

dbt Test
When incorporated into your project you can run something like:
dbt test ...
edr monitor  --teams-webhook <TEAMS_WEBHOOK>

For a normal dbt test the result in Teams looks like:

Note: I took the liberty to format the test results to a markdown table and I think that is quite usefull for end users to read it much easier. Think something similar could be done for slack? Have no way of trying it out so did not pursue this.
Grouped by table
Running something like:
dbt test ...
edr monitor  --teams-webhook <TEAMS_WEBHOOK> --group-by table

Results in:

Report link
I noticed that you guys were able to directly link an alert to the UI. Have not tested it end to end but think it works. What I have done is added a Potential Action in teams, where a user can directly navigate based on a button to the UI.
This is done with something like:
dbt test ...
edr monitor  --teams-webhook <TEAMS_WEBHOOK> --report-link <REPORT_LINK>

The results look like:

Clicking on the button links me to <REPORT_LINK>/report/test-runs/test.beequip_etl_dbt.unique_organizations_organization_no_sk.a65d0992b0.organization_no_sk.generic/. Which I think is correct. Have not set it up all the way so not verified if this is working as expected.
Opening the details and it looks just as expected:

Edge cases
Teams has a maximum number of characters that you can send to the webhook before it fails to display your results. It however still returns a 200 return code.. The maximum number of characters that can be applied in your payload (the message that will be sent to teams) is somewhere between 18000 and 40000, see this for more info. The resulting message looks like:

It is adviced to lower test_sample_row_count in your dbt_project.yml if you run into such issues.
Multiple channels
The functionality to send to multiple channels with different webhooks is not (directly) configurable per model.
I've tested the following scenario of code and that sents everything to the correct channel in Teams.
dbt test ...
edr monitor  --select config.meta.owner:@accounting --teams-webhook <TEAMS_WEBHOOK>
edr monitor  --select config.meta.owner:@data --teams-webhook <ANOTHER_TEAMS_WEBHOOK>

These are both sent to different channels as expected :smile:
Webhook config file
It is also possible to set the teams webhook in the config file ~/.edr/config.yml. If you set it up like:
teams:
  teams_webhook: <TEAMS_WEBHOOK>

You can now run the code like:
dbt test ...
edr monitor

Known Issue
In the slack alerting solution there is the option to set on a model or dbt project level the fields that will be displayed in the alerts. This does not work in the team alerting part of the code.
For example if you set something in your model like below:
- version: 2
-
- models:
-   - name: lease_contracts
-    meta:
-      alert_fields: ["description", "owners"]

And debugging the code it shows on run time 2024-02-04 11:33:56 — INFO — This is the value of alert.alert_fields: []. The resulting alert in Teams contains all the fields. Will have to look into it in another PR as discussed with @ellakz

Found out that the issue with the alert_fields was due to a variable set in my dbt_project.yml:
vars:
  test_sample_row_count: 10
  disable_dbt_artifacts_autoupload: "{{ target.name != 'production' }}"
  disable_dbt_invocation_autoupload: "{{ target.name != 'production' }}"

Disabling this to:
vars:
  test_sample_row_count: 10
  # disable_dbt_artifacts_autoupload: "{{ target.name != 'production' }}"
  # disable_dbt_invocation_autoupload: "{{ target.name != 'production' }}"

And the resulting alert_fields are correctly displayed in the alert:

Also enforced that the behavior that passing in a webhook in the CLI takes precedence over the ~/.edr/config.yml. If you pass in both on the CLI you will get an error. See this for the changes.

Create some follow up tickets on this subject to enhance it a bit more. Created https://github.com/elementary-data/elementary/issues/1404 and https://github.com/elementary-data/elementary/issues/1405.


Add target to the SkyFloatingLabelTextField not working

Hi ,
i have an issue about when, i add target value changed to the SkyFloatingLabelTextField it's not working? how can i add it.
thank you

From the README:
"To get notified of different events happening on the textfield - such as the text changing, editing starting or ending - just set the func addTarget(_ target: Any?, action: Selector, for controlEvents: UIControl.Event) with the .editingChanged. also can set the delegate property to a class implementing the standard UITextFieldDelegate protocol"


Discovering teams

If you try keybase team request-access jdhsffgsf_7i (obviously doesnt exists but you also can try with "reserved words" such "google", "welcome" or any generic name), you got a response: "▶ ERROR Root team does not exist (code 2614)"
But if you try for example keybase team request-access keybasefriends, you got : "If "keybasefriends" exists, an email has been sent to its admins, notifying of your request for access."
So we know team "keybasefriends" exists!

Thank you for your report. We decided that we have no way of keeping team existence secret - for example, you can also expose it by trying to create a team or register a user with that name - so we will only keep subteams secret.
Also reported here: https://github.com/keybase/client/issues/8527

The client messages have to be improved, though.


fix typo

fix typo
cc:// @jhernand

Looks good to me, thanks @yaacov .

@jhernand  thanks for the tests and fixes :+1:


Project does not build

This project appears to depend on:
edu.mit.ll.nics.common:email-alert
The source is not in any project nor is the jar available on maven so this project build is broken (or the dep needs to be removed from the pom).
[ERROR] Failed to execute goal on project mach-core: Could not resolve dependencies for project edu.mit.ll.nics.monitoring:mach-core:jar:6.1: Could not find artifact edu.mit.ll.nics.common:email-alert:jar:6.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :mach-core

Addressed in nics-common updates


Support for  numbered and unnumbered Lists

It should be possible to define numbered and unnumbered, nested lists. Each paragraph in the list would serve as a list item, the paragraph would be indented according to its level inside the nested list, and optionally prepended either with a level specific bullet (ideally defineable by CSS) or a numeric value, either as single numbers or as combined numbers (like 1., 1.1, 1.2, 1.2,1 etc).
This requires enhancements in the data model (optionally allowing to add each paragraph to a List) and in the rendering layer (indenting ParagraphText and adding the bullet node).
It also requires some adjustments in the behaviour of the component: When pressing enter inside a paragraph which is part of a List, the new Paragraph will become a list item of the same List.

How should this be implemented?
Would we be generifying the Paragraph similarly to how we generified the Segment? In which case, rather than a list of Paragraphs, we would have a list of generic lines. A line could be a List that could contain another List (for nested lists) or a Paragraph (for the actual item itself). For example
public class StyledTextArea<Line, LS, Seg, S> {
    // rather than "getParagraphs()" this would now be
    public List<Line> getLines();
}

// thus generifying the Paragraph to be
StyledTextArea<
    // paragraph is now lines
    Either<NestedList, Paragraph<String>>, String,
    // your custom object support
    Either<StyledText<String>, Image>, String>
> area = //;

Would we be generifying the Paragraph similarly to how we generified the Segment?

Ah no, I am still busy with unscrambling the knots in my head, caused by all those generic types from the Segment implementation :joy:
My current thinking is that a Paragraph must not be as generic as a Segment - and a Paragraph's list structure is more tied to the Paragraph's style than to its type. The current approach is to add an Optional<ListItem> to a Paragraph, which can be passed around when creating new derived Paragraphs (when splitting, joining etc.). The ListItem can then further reference to some List object which further defines the structure of the List (this is especially required for hierarchically numbered Lists). But, let's discuss any other reasonable approach ...
My playground for this enhancement is https://github.com/afester/RichTextFX/tree/paragraphBullets. It already implements indentation of single paragraphs and rendering for level dependent bullets:

Its still a draft only, with many hard coded pieces, just to get an idea where to implement the various bits&pieces.

Does a simple example exist yet for doing this?

Unfortunately, no. afester's playground is probably the best place to start.

I also urgently need this feature. afester's example must have been deleted.

afester's example must have been deleted

Seems to be still there in the paragraphBullets branch in his repo:
https://github.com/afester/RichTextFX/tree/paragraphBullets

I do not see it …. any class inside this branch I should look at?

On 20 Oct 2017, at 16:40, JFormDesigner<EMAIL_ADDRESS>wrote:
afester's example must have been deleted
Seems to be still there in the paragraphBullets branch in his repo:
https://github.com/afester/RichTextFX/tree/paragraphBullets https://github.com/afester/RichTextFX/tree/paragraphBullets
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/FXMisc/RichTextFX/issues/384#issuecomment-338226013, or mute the thread https://github.com/notifications/unsubscribe-auth/AJF7XVeI01ZL9eVX8QPXZxazaGUf_4iLks5suLDNgaJpZM4KaNyb.

Sorry, don't know... never used it

I'd check out a local branch of the build, and see where ListItem is used throughout it. That's the only class that doesn't appear normally in the code, so he must have added it. That will probably lead you to other classes where he's made some changes.

Note: The RichTextDemo meanwhile supports bullets (see #850). Probably this is sufficient for this enhancement request - I would like to check if this can be extended to numbered lists though.


Don't attempt to run executable if compilation fails

It was just ugly.

thanks. this probably needs to be added to some others as well


Cookbook generation error using Sphinx from PyPI

The current cmake configuration does not find Sphinx installed from PyPI,
as sphinx-build resides in /usr/local/bin
ubuntu@1404:~/shogun/build$ ninja cookbook
[4/5] Generating examples from meta-language
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
Generating LALR tables
[5/5] Cookbook Sphinx building HTML
FAILED: cd /home/ubuntu/shogun/build/doc/cookbook && /usr/bin/sphinx-build -q -b html -c /home/ubuntu/shogun/build/doc/cookbook/_build -d /home/ubuntu/shogun/build/doc/cookbook/_doctrees -D generated_examples_path="/home/ubuntu/shogun/build/examples/meta/" /home/ubuntu/shogun/doc/cookbook/source /home/ubuntu/shogun/build/doc/cookbook/html
/bin/sh: 1: /usr/bin/sphinx-build: not found
ninja: build stopped: subcommand failed.

@vigsterkr @karlnapf @lgoetz
Any update on this? Can my change be merged?
I talked with @karlnapf about the change on IRC and it does not impact finding Sphinx on the system.
Shogun requires a newer sphinx version for the templates, which is not found in the default location. For example on Ubuntu 14.04, shogun requires a Sphinx install from PyPI.

Fine to merge from my side then


L.Control.Draw is not a function - after upgrade from 0.8.7 to 0.10.0

Angular leaflet seems to cause an issue with Leaflet Draw:
TypeError: L.Control.Draw is not a function

nothing changed in a working set of code - only upgraded from 0.8.7 to 0.10.0

I am experiencing this problem as well. Has anyone been able to figure out what's going on?

ditto

Experiencing this as well.

I too.


[Feature] Reduce the access of filesystem when reading paimon table

Search before asking

[X] I searched in the issues and found nothing similar.

Motivation
Currently, the computation engine frequently reads the schema file and the size of the data files from filesystem when reading the Paimon table.This lead to additional access to the file system. The purpose of this issue is to reduce access to the file system by caching the schema ,paimon table and so on.
Solution

Hive:

Cache the table into Split to avoid loading Paimon table when create reader #2927
Cache TableSchema into Configuration to avoid loading read scheme file in PaimonSerDe #2946

Core:

Obtain the size of the data file from the metadata. #2918
cache the schema for SchemaManager. #2939

Anything else?
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

I submit an pr to cache table in catalog ,  https://github.com/apache/incubator-paimon/pull/2971
you could help me review it

we can also to cache manifest file to improve query speed, after all, plan() is also a very heavy operation
https://docs.cloudera.com/cdw-runtime/cloud/iceberg-how-to/topics/iceberg-manifest-caching.html

I submit an pr to cache table in catalog , #2971 you could help me review it

@zhangjun0x01 This is a separate issue. In theory, we can cache all the files.

@wg1026688210 I think we have finished this issue, thanks!

I submit an pr to cache table in catalog , #2971 you could help me review it

@zhangjun0x01 This is a separate issue. In theory, we can cache all the files.

yes ，we can open other pr to cache manifest , like this apache/iceberg#4518

Is there any progress? This is a very important requirement.


Update commands.csv to add GCC High commands.

Update commands.csv to add GCC High commands.

Thanks for the PR and sorry it took so long.
Given it's just the domain that is switching, I'm thinking we could build an automation that generates the gcc links (instead of having to maintain it manually each time).

When will this pull request be accepted? Automation would be excellent, but the lack of GCC High information prevents certain users from using the site.

@cjvandyk  tx for the PR. I changed the urls to suffix.
@tktackett tx for the reminder.
So I've made it g and gh as suffix (e.g. azg.cmd.ms).
My plan is in the future to make it az**.g.**cmd.ms so we can add more clouds as they come but keep the initial prefix the same.

Please test and let me know if you see any issues.
BTW I used the g prefix by default for everything and only used gh when we g was already taken.
Do you think that makes sense or should we make all the GCC High as gh ?
Happy to change.


[Blog] week 11

I'd also add these:
* Rename packit generate to packit init, by [@shreyaspapi](https://github.com/shreyaspapi), [#728](https://github.com/packit-service/packit/pulls/728)
￼  * description: '#701 I have done the changes, please check if this is what you meant.'
￼  * commit: Renaming generate to init with aliasing

Easier local development of p-s, by [@TomasTomecek](https://github.com/TomasTomecek), [#473](https://github.com/packit-service/packit-service/pulls/473)
￼  * description: '* make debugging of p-s easier\n* document how to run p-s httpd locally\n* put httpd config for p-s in this repo'
￼  * commit: make debugging of p-s easier
￼  * commit: document how to run p-s httpd locally
￼  * commit: put httpd config for p-s in this repo

And probably even your reverse testing change :)

I'd also add these:
* Rename packit generate to packit init, by [@shreyaspapi](https://github.com/shreyaspapi), [#728](https://github.com/packit-service/packit/pulls/728)
￼  * description: '#701 I have done the changes, please check if this is what you meant.'
￼  * commit: Renaming generate to init with aliasing

This is included in the week 10, isn't it?

Easier local development of p-s, by @TomasTomecek, #473
￼  * description: '* make debugging of p-s easier\n* document how to run p-s httpd locally\n* put httpd config for p-s in this repo'
￼  * commit: make debugging of p-s easier
￼  * commit: document how to run p-s httpd locally
￼  * commit: put httpd config for p-s in this repo

And probably even your reverse testing change :)

OK, I will add them, I was just not sure if they are interesting enought for the users


Smart Execute - executing functions without marking the whole region

I'm getting used to VSCode in my daily Data Science remote workflow due to LiveShare feature.
So, upon executing functions it just executes the first line of code; if I mark the whole region then it does the job, but it's a rather cumbersome way.
I tried number of extensions, but none of them seem to solve the problem.
def gini_normalized(test, pred):
    """Simple normalized Gini based on Scikit-Learn's roc_auc_score"""
    gini = lambda a, p: 2 * roc_auc_score(a, p) - 1
    return gini(test, pred)

Executing the beginning of the function results in error:
def gini_normalized(test, pred):...
  File "", line 1
    def gini_normalized(test, pred):
                                    ^
SyntaxError: unexpected EOF while parsing

There's a solution for PyCharm: Python Smart Execute - https://plugins.jetbrains.com/plugin/11945-python-smart-execute.
Also Atom's Hydrogen does seem to support such workflow.
Would love to see Smart Execute introduced into VSCode.
Cheers,
Giga

Hello @agigao , thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes your idea gets to help us make our decision.

Hi @kimadeline, thanks for response!
Yup, let's see how it goes.
BTW, can you provide any pointer for VSCode extension newbie? Perhaps, I'll built it myself. :)

@agigao About the pointer question, have you checked our getting started tutorial? 😊
And regarding this feature request, we would prefer to address this through smart selection, so I'm closing in favour of #6669.


fetch-prune

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Current dependencies on/for this PR:

master

PR #2   👈

This stack of pull requests is managed by Graphite.


SOLR-16019 Use var keywords in this test

https://issues.apache.org/jira/browse/SOLR-16019

Do we have standards or best practices regarding var? I know it's a new language feature, but I'm not in the habit of using it yet and don't have a great intuition about when it is appropriate and when it would reduce clarity?

We don't have any coding standards like this. I'm used to it with Kotlin and it removes lots of boilerplate code. We should not yet do a cross-the-board update of the codebase, since we still may need to merge with 8.x for still another year.
But I tend to do minor refactorings and improvements as I touch various code paths for other reasons. Sometimes I'm tempted to convert clunky code to streaming etc. But I agree that a separate PR is far better than unrelated changes in a feature or bugfix commit.

The gist of it:  Use var when the type is obvious.  Perhaps the variable's name (e.g. zkStateReader) makes the type declaration needless, or you call some method to initialize it and this method's name makes it obvious.  There is some subjectivity of course... I'm more likely to be loose about it in a test.

Leaving this for a more general cleanup later, closing.


Binary Search

Create a program to implement a binary search

Please assign me this issue under Hacktoberfest!

Hello Ankit. Can you kindly Assign Me this Issue?


Reporters should be able to await tests themselves

Frameworks like Mocha needs to declare it, describe and so on synchronously and then await the asynchronous tests. Currently the reporter type class receives all test results after the tests have run (possibly asynchronously) which makes it impossible to use with Mocha.
See https://github.com/owickstrom/purescript-spec-reporter-mocha/issues/1.

Basically the mocha reporter will stay limited to sync tests for now. If anyone needs async tests with it, please reopen.

Fixed in https://github.com/owickstrom/purescript-spec/releases/tag/v0.10.0


Can unocss be introduced on specific pages?

Clear and concise description of the problem
Currently, we can only introduce unocss in main, if we want to introduce unocss in old project, we can only ➕ prefix, how can we introduce unocss in single file (.tsx/.vue)?
import { ref } from 'vue'
import 'uno.css'

...

Suggested solution
It's not a bug
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the README.md of using the package.
[X] Already used the Interactive Docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

uno.css exists as the generated CSS. It does not affect which page you use it on. You can use the syntax of unocss on any page.

uno.css exists as the generated CSS. It does not affect which page you use it on. You can use the syntax of unocss on any page.

My concern is that after the introduction of unocss in the old project, the previous class naming method is consistent with unocss, which affects the page effect, which is a concern for all the old projects.

You can refer to the preset configuration to make reasonable special distinctions to achieve the minimum impact.
https://unocss.dev/presets/mini#options

You can refer to the preset configuration to make reasonable special distinctions to achieve the minimum impact. https://unocss.dev/presets/mini#options

I've read this document before, and it seems that it can only be done by prefixing, so I'm asking if there are any other solutions.


Website Reviewer Nomination: willihay

Nominee's GitHub username
willihay
Relevant experience

Added support for Mermaid.js diagram tool.
Added website versioning and additional enhancements.
Improved website font style at H4 level.

Support statement  (Optional)
No response
Nomination Review Checklist

[x] 3+ contributions for web content (CSS, Javascript, HTML, or Hugo layouts) successfully submitted to o3de.org.
[x] 30+ lines of code change across all web content submissions accepted to o3de.org.
[x] 2+ approvers from the Website Reviewers group, or 2+ some combination of:

1 approval of SIG-Docs-Community Maintainer or Chair
1 approval of SIG-UI-UX (for evaluating site UX changes as part of submissions)
1 approval of a reviewer from a technical SIG who has experience or specialization in frontend development

I support this nomination!

I support this nomination.

During meeting on 3/7/23, @aFinchy also supported this nomination.
@willihay is now a part of the website reviewer group.


add "Detect from image"

Thank you for making this Extension.
The camera and bone system give AI art a new sense of certainty.
Could you implement additional functions to make this function even easier to use?
"Detect from image" would be very useful to have a function to estimate the pose taken by the character in the loaded background image.
Since the functions are only pseudo-inferences, we think that the pose does not need to be accurate in the world space as long as it can infer the state seen from the current camera.

I am sorry that not able to implement this feature. This project just runs on the browser, and doesn't have the power to detect poses

@fumitakayano Already supported "Detect from image", enjoy it.


[Bug]

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
UI (apache/skywalking-rocketbot-ui)
What happened
使用在dokcerhub提供的官方镜像 最新版本
https://hub.docker.com/r/apache/skywalking-ui
修改webapp.yml  配置项不生效
discovery:
client:
simple:
instances:
oap-service:
- uri: http://xxxxx:12800
只能启动镜像时 设置坏境变量
ENV SW_OAP_ADDRESS="http://xxxxx:12800"
What you expected to happen
配置文件应该生效
How to reproduce
新建一个dockerfile
FROM  apache/skywalking-ui:8.9.1
LABEL description="skywalking-ui"
WORKDIR /skywalking
COPY ./build/component/skywalking/ui/webapp.yml /skywalking/webapp/webapp.yml
CMD ["/bin/sh -c /skywalking/docker-entrypoint.sh"]
Anything else
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

All things on GitHub should be in English. So closing. And what you did private, like private docker image, it is on your own. Not community responsibility.


getting Error 1001 while installing the plugin

I'm getting below error while installing the plug-in. and  I can see the extacted dll in the specified path mentioned in the error message. Please suggest. I'm trying to install it on my windows 10 machine
Error 1001. unable to get installer types in the C:\Program Files\Azure DevOps Server 2019\Application Tier\TFSJobAgent\Plugins\MicroFocus.Adm.Octane.CiPlugins.Tfs.Plugin.dll assembly - unable to load one or more of the requested types

hi, what exact version of your Azure devops server?
Thanks

Azure Devops version 2019

please send me screenshot of Azure DevOps Administration Console, for example


Fix a few small typos in overlayfs documentation

Proposed changes
Fixes a few minor typos in the overlayfs warning.
Unreleased project version (optional)
N/A
Related issues (optional)
N/A

Thanks for helping us get rid of typos 😄


{Storage} Add transform util for track2

Description

Add transform util for track2 to support underline to hump.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

transform util

/acp run


The JSDoc of the _valid pseudo-class is incorrect.

Which package has an issue?
@yamada-ui/react
Package Version
1.1.7
Description
The JSDoc description is :invalid. Correctly, it is :valid.
Link to Reproduction
No response
Steps to Reproduce
No response
Browser
Chrome
Operating System

[X] macOS
[X] Windows
[X] Linux

Do you know how to fix the issue?
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix?
None
Additional Information
  /**
   * The CSS `:valid` pseudo-class.
   */
  _valid: "&:valid, &[data-valid], &[data-state=valid]",

@hirotomoyamada
初めまして！
こちらのissueいただいてもよろしいでしょうか？？

@hoshico
こんにちは、はじめまして！
ぜひ、お願いします！
アサインをあなたに割り当てます。Good luck!


Zappa Slack invite isn't working

Zappa's slack inviter is not working

If you visit slack.zappa.io/ It isn't working anymore.
Expected Behavior

Whenever a user opens slack.zappa.io/ It should give them invite to zappa slack channel.
Actual Behavior

But at this time it just keeps loading and then fails.
Possible Fix

Someone in the https://github.com/Miserlou/zappa-slack-inviter needs to look into it and provide a fix. It may be failing because of outdated zappa (==0.23.0 in the repo)
Steps to Reproduce

Visit the  slack.zappa.io/
This page will keep reloading and then fails

I believe @Miserlou owns/maintains zappa.io, so not much we can do there (Rich, if you see this and want to transfer the domain to the current team of community maintainers, DM me on Slack).  As such, I believe we've tried to remove all references to zappa.io from this repository, but let me know if that's not the case.
That said, you can currently use https://slackautoinviter.herokuapp.com/ in order to receive an invite to the Zappa Slack channel.  Let us know if you have any issues.  Thanks!

Thanks @javulticat for the invite link. I think we should add this link to zappa invite repo's README. What do you think?

Feel free to open a PR, but https://github.com/Miserlou/zappa-slack-inviter is maintained by @Miserlou, not the zappa community group, so we have no control over it, and that repo hasn't seen any activity in nearly 5 years.  Currently, the only one of @Miserlou's repos the zappa community group has taken over maintenance for is the one you're in now (https://github.com/Miserlou/Zappa ➡ https://github.com/zappa/Zappa).

@javulticat I think we can update the invite link on our README page (https://github.com/zappa/Zappa/blob/master/README.md#sites-using-zappa) and update the invite link there and also on the slack chat icon at the top.

It might be confusing, but the zappa-slack-inviter is a project that uses zappa...
I checked the readme, and it looks like the slack invite is set to https://zappateam.slack.com/ which should work.
closing.


Styling in option element doesn't work

Environment
System:

OS: macOS 11.6.2
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 397.77 MB / 16.00 GB
Shell: 5.8 - /bin/zsh

Binaries:

Node: 16.13.0 - /usr/local/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm

Reproduction
Styling doesn't work for option element. You could use the codesanbox link below to see it:
https://codesandbox.io/s/optimistic-sunset-ewhmm?file=/src/App.tsx
Steps to reproduce
Open the codesandbox link and click select element.
Expected Behavior
Option element needs to be styled
Actual Behavior
Option element has default browser styles. Styled component doesn't work to style it

I think I found the reason... Styling of the option element is highly limited. Only in Firefox, color and background-color can be set but in other other browsers even this is not possible (in this MDN doc, they explain it with details). So yeah, issue is not styled-components related actually.  :)


fix: Do not close wazero module on error (#3758)

wazero takes care not to leak modules when InstantiateModule returns an error.
This means that sqlc will call result.Close a second time if a non nil module was returned, which causes a segfault.

wazero takes care not to leak modules when InstantiateModule returns an error.

So does wazero return a valid module and an error message in these cases? checkError also looks at stderr, which make be written to if InstantiateModule does not return an error. Merged as is we wouldn't call result.Close in all cases.

So does wazero return a valid module and an error message in these cases?

Ok so.. Your comment made me go back and track more closely what happened. And I found sqlc actually tripped this https://go.dev/doc/faq#nil_error/ interesting behavior of go with nil values and interfaces.
See this example https://go.dev/play/p/66QShXidalq
Basically we can't always compare result != nil, where result is an interface type. That might work or not depending on wazero's code. (it gets awkward when you remember that error is an interface).

checkError also looks at stderr, which make be written to if InstantiateModule does not return an error. Merged as is we wouldn't call result.Close in all cases.

checkError doesn't look at stderr when err is nil to begin with, so it should close in all relevant cases? But I agree the indirection makes things less clear.
I'm thinking we can just defer close when err == nil? Please see the new commit.


Escape "*"

This is done in order to distinguish "*" (the multiplication sign) from being interpreted as emphasis by markdown. Addresses one of the issues raised in Robert Sparks' review.
This commit also unbackticks two other formulae (one very similar to this one) to bring them into line with other formulae.
I don't know if formulae should be backticked or not; the relevant part of #226 is wrong.

will merge today unless objection

LGTM


📌 AutoAWQ Roadmap

Optimization

[x] Fused layers of LLaMa models
[x] Implement GEMV kernel #40
[ ] Implement ExLlama kernels #30
[x] More fused layers for implemented models #40
[ ] INT8 quantization #45
[ ] Optimize split_k_iters #39

More models

[x] LLaMa 1/2
[x] MPT
[x] Falcon
[x] Bloom
[x] GPT-J
[x] OPT
[ ] BERT #4
[ ] BigCode #5
[ ] #49
[ ] #50
[ ] #51
[ ] #52
[ ] GPT-NeoX #41

Ease of access

[x] Distribute PyPi package
[ ] Re-add LLaVa model compatibility #22
[x] Custom datasets to quantize models with #27
[ ] Metal GPUs #44
[ ] ROCm GPUs
[ ] CPU implementation
[ ] Push to hub functionality #42

Software integration and quality

[ ] Unit & integration testing #31
[ ] Integrate into Huggingface optimum/transformers
[ ] Quantization config #8
[x] Model weight sharding and shard index #36

Hey Casper, first of all, amazing work!
I'm actually really curious - what's the reasoning behind supporting legacy models such as GPT-2 or GPT-J/OPT that are already in?
In my perception, the latest developments mostly on MPT/Llama 2 are by orders of magnitude better than the legacy models.

Hey Casper, first of all, amazing work!
I'm actually really curious - what's the reasoning behind supporting legacy models such as GPT-2 or GPT-J/OPT that are already in?
In my perception, the latest developments mostly on MPT/Llama 2 are by orders of magnitude better than the legacy models.

Supporting older models is on the roadmap because people still use those models and ask for them. However, I do try to focus my efforts on optimizing the newer models.

yi-34b 能支持吗？看数据这个模型很牛叉啊。

yi-34b 能支持吗？看数据这个模型很牛叉啊。

Yi is now supported on the main branch

Can you please implement Phi 1.5 support?

Can you please implement Phi 1.5 support? Thank you for all the amazing work!

Hi Casper, thank you for your wonderful work! I wonder if there is some tutorial for adding support for new model? I have noticed that Baichuan is on the roadmap. I would like try to add support for this model, could you please give me some pointer on how to support new model?

Hi @casper-hansen First of all thank you for the Amazing work. From my understanding there is an AWQ TheBloke Mixtral 8x7b Base Instruct version. I tried to run inference on it and ran into issues. Would this model be supported? Also is there a way to contribute with a donation?

We achieved most items on the roadmap, so closing this for now to focus on other things.


Many markers

Hi,
Thank you for this great sidebar plugin.
I would like to know how to create sidebars link to each markers.
I created new markers and when I click on it the new sidebar (2) opens back the sidebar 1 (instead of show hover). Is that possible to close the open sidebar and we click on a new marker ?
Thx in advance,

Just find this but not really to use when we have a lot of markers/sidebars
    var marker = L.marker([51.2, 7]).addTo(map).on('click', function () {
    if(sidebar2.isVisible())
        sidebar2.hide();
    if(sidebar3.isVisible())
        sidebar3.hide();
    sidebar.toggle();
    });

    var marker2 = L.marker([51.2, 7.3]).addTo(map).on('click', function () {
    if(sidebar.isVisible())
        sidebar.hide();
	if(sidebar3.isVisible())
        sidebar3.hide();
	sidebar2.toggle();
    });

    var marker3 = L.marker([51.2, 7.6]).addTo(map).on('click', function () {
    if(sidebar.isVisible())
        sidebar.hide();
	if(sidebar2.isVisible())
        sidebar2.hide();
    sidebar3.toggle();
    });

@lilicipute you shouldn't create multiple sidebars. just use one sidebar and adjust the content dynamically via javascript. have a look at https://github.com/Turbo87/leaflet-sidebar/blob/master/examples/listing-markers.html to see how it's done.

Hello, thanks again for this code i was able t implement the side bar into my map. But i'm also having issues with the having multiple sidebars for specific markers on the map i currently have one side bar for on marker but shows up for the other markers. but  will like to have just one assigned sidebar to a marker.
Untitled 3.docx


created CyberpunkRED_raycw

Changes / Comments
This is a new sheet submission for Cyberpunk RED. I did my best to adhere to the character sheets standards, if you find they aren't sufficient please let me know so I can fix my mistakes and improve.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name. (Done.)
[x] Is this a bug fix? (No)
[x] Does this add functional enhancements (new features or extending existing features) ? (Yes)
[x] Does this add or change functional aesthetics (such as layout or color scheme) ? (Yes)
[x] If changing or removing attributes, what steps have you taken, if any, to preserve player data ? (N/A)
[x] If this is a new sheet, did you follow Building Character Sheets standards ? (Yes)

If you do not know English. Please leave a comment in your native language.

Nice, I see this sheet follows the sheet design of the full game release, while the older sheets available on Roll20 are just for the Cyberpunk Red Jumpstart Kit from last year.
Roll20 ought to rename the old ones to avoid confusion.

There is another Cyberpunk Red sheet submitted this week: #7810

@Anduh So I've been working a LOT on this character sheet in a separate repository, should I commit my changes here? Or wait until this pull request gets merged/closed then update afterwards, or just submit a new pull request?

I am merging this and will update the current "Cyberpunk Red" to be "Cyberpunk Red Jumpstart Kit" to avoid confusion. Thanks to you both!


Default Filters with Custom Widget

Hi All,
I'm trying to get my head around using default filtering with custom widgets and I've come to a frustrating dead-end.
I have a car search function (make, model, price...) that I'm placing across a website and I need to search all makes and models etc which is working great, but in some places I need to default filter the search form by make e.g. Hyundai, but the rest of the makes still need to be selectable  - basically a pre-selected value for an attribute - so I tried default filters (https://community.algolia.com/instantsearch.js/documentation/#default-filters).
Here's what I've got so far:
var search = instantsearch({
  [...],
  urlSync: true,
  searchParameters: {
    facetsRefinements: {
      make: ['Hyundai']
    },
  }
});

With this added, I only get the value 'Hyundai' in the drop down along with the title 'All makes' BUT I don't get any 'hits'. The error I get in the console is "Error: make is not defined in the facets attribute of the helper configuration". I've googled and have seen a few solutions but none work for me. Reading the documentation on helpers, that made me more confused as I'm unsure as to how to "connect" helpers with instsantsearch when initiating searches.
I then read about facets that aren't defined by adding to the above:
facets: ['make']

This then pulls back all hits that are only Hyundai but leaves my select dropdown completely blank (I imagine this overrides the custom widget use). I've got a feeling I'm approaching this in the wrong way as I all I need to is to a pre-selected value for the attributeName 'make' as if someone has already selected Hyundai.
Hopefully this is not too confusing! Any pointers would be great and many thanks in advance.

Hi @JonnyTurnerUK sorry for the late response. I believe you are using a custom widget, could you maybe give us the code of the custom widget here?
What may be the source of your issues here is that ultimately you would want to use a "disjunctive facets" that would allow you to not only refine on a facets but keep showing the other facet values.
For this to work, I would advise you to change facets and facetsRefinements to disjunctiveFacets and disjunctiveFacetsRefinements.
The use case of default selected filters is very important to us because more and more frequent. This is today a pain to use and we want to make it easier.

Hi @vvo, no probs at all, really appreciate the help. Sure, I've pasted the custom widget code below that was from this thread - https://github.com/algolia/instantsearch.js/issues/1022. I tried disjunctiveFacets as mentioned above but get the same result in the way that the stock gets filtered, there's 'Hyundai' in the refined values but nothing in the dropdown.
instantsearch.widgets.customSelectorWidget = function customSelectorWidget(options) {
    var container = options.container;
    var attributeName = options.attributeName;
    var limit = options.limit || 10;
    var title = options.title || 'All';

    container = document.querySelector(container);
    var selectElement = null;
    var currentlySelectedValue = null;
    return {
        getConfiguration: function getConfiguration() {
            return {
                hierarchicalFacets: [{
                    name: attributeName,
                    attributes: [attributeName]
            }]
        };
    },

    init: function init(options) {
        var helper = options.helper;
        container.innerHTML = '<select></select>';
        selectElement = container.querySelector('select');

        selectElement.addEventListener('change', function() {
            var selectedIndex = selectElement.selectedIndex;
            var selectedValue = selectElement.options[selectedIndex].value;
            if (selectedValue === '__EMPTY__') {
                selectedValue = currentlySelectedValue;
            }
            helper.toggleRefinement(attributeName, selectedValue);
            helper.search();
            currentlySelectedValue = selectedValue;
        });
    },

    render: function render(options) {

        var results = options.results;
        var sortBy = ['name:asc', 'count:desc'];
        var facetValues = results.getFacetValues(attributeName, {sortBy: sortBy}).data;

        if(facetValues){
            facetValues = facetValues.slice(0, limit);
            var innerOptions = ['<option value="__EMPTY__">' + title + '</option>'];
            facetValues.forEach(function(facetValue) {
                var selected = facetValue.isRefined ? 'selected="selected"' : '';
    	    innerOptions.push('<option value="' + facetValue.name + '" ' + selected + '>' + facetValue.name + " (" + facetValue.count + ')</option>');
            });
                selectElement.innerHTML = innerOptions.join('\n');
            }
        }
    }
};

search.addWidget(
    instantsearch.widgets.customSelectorWidget({
        container: '#make',
        attributeName: 'make',
        limit: 50,
        title: 'All makes',
    })
);

Thanks again,

Hi again, do you think you could work into getting a functionnal jsFiddle http://jsfiddle.net/ for us to hack on it? That way, once you have the jsFiddle up and running, and that you can show us the behavior that is not expected. We can easily help you on it.
Thanks a lot for using instantsearch.js

Definitely, I'll work on it now and try and get something asap for you.

@vvo - managed to create something here with the Ikea credentials - https://jsfiddle.net/JonnyTurnerUK/3cjth7s2/5/
In this case, I'm using 'Material' as opposed to 'Make' so therefore, on load, the dropdown should be populated with all other materials with Glass selected within it. Hope this makes sense.

Ok I think I just fixed it by doing this:
  searchParameters: {
    hierarchicalFacetsRefinements: {
      materials: ['Glass']
    }
  }

Let me know how it goes

Awesome!!! I tried various types of facets, it turns out that 'Hyundai' should have been 'HYUNDAI' also for it to be selected in the hierarchy too.
DOH! Thanks a lot for that. Much appreciated.

Great! Clearly this is our fault for now, not being good at this default selected game :) Happy coding

Just wanted to chime in -- hit a brick wall with a similar issue for awhile before discovering this thread. I had menu widgets, which when prefiltered were not showing as selected.
My fix was also to change facetsRefinements to hierarchicalFacetsRefinements. Even though my facets are not hierarchical. Maybe update the documentation to recommend using hierarchicalFacetsRefinements instead?
Thanks!

Definitely gonna do that, thanks!

Done https://github.com/algolia/instantsearch.js/commit/19756c331e2a2965a974f1b75c3ca36bf489b266


Enable FIPS support for OAO

What type of PR is this?
Feature
What this PR does / why we need it?
Boilerplate update that enables FIPs support for OAO.

https://github.com/openshift/boilerplate/compare/dcfe34f6135d3d22735eb5374a8fc31b4d4cca81...0a69514b0c6b0cec124afb603ae2fd2e02ec7fcd
commit: 8e0880fc695a2421cdd400249690a997ce50ff11
author: Antony Natale
changes source of operator name as it is not compatible with jenkins pipeline
commit: 9744d76fc22d4b838dadee9fb229f5e591e837ac
author: John Roche
Change to a template file
Which Jira/Github issue(s) this PR fixes?
OSD-11682
Pre-checks (if applicable):

[ ] Tested latest changes against a cluster
[ ] Ran make generate command locally to validate code changes
[ ] Included documentation changes with PR

@wanghaoran1988 did I do this PR right?

/hold

Codecov Report

Merging #44 (7018666) into master (4614794) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   61.74%   61.74%
=======================================
  Files          22       22
  Lines        1132     1132
=======================================
  Hits          699      699
  Misses        375      375
  Partials       58       58

@mrbarge yes, thanks for working on this.

/unhold

/lgtm


Plugin seems to break layout file inclusion

I've attached a zip archive of a test project to demonstrate this issue. If you comment-out the plugin in .eleventy.js and run yarn start, the html is generated fully but no images generated (obviously). If you enable the img2picture config again in .eleventy.js  the plugin does its thing, generates images, but the only thing in the html file is the picture - layouts/base.njk is not included in the resulting index.html file.  As far as I can tell I have configured the plugin correctly. What is it that it does not like about my sample config?
const img2picture = require("eleventy-plugin-img2picture");

module.exports = config => {
    config.addPlugin(img2picture, {
        eleventyInputDir: "./src",
        imagesOutputDir: "./dist/images/processed",
        urlPath: "/images/processed",
        filenameFormat: function (id, src, width, format, options) {
            return `${id}-${width}.${format}`;
        }
    });

    return {
        templateFormats: ["md", "njk", "html"],
        markdownTemplateEngine: 'njk',
        dataTemplateEngine: 'njk',
        htmlTemplateEngine: 'njk',
        dir: {
            input: './src',
            output: './dist',
            includes: "_includes"
        }
    };
};

img2picture-test.zip

This bug seems to go back at least to 0.2.0 based on my testing.

Looks to me, in src/_includes/layouts/base.njk the starting  tag is not having its closing bracket (> is missing). Adding that bracket seems to resolve the issue for me.
--- a/src/_includes/layouts/base.njk
+++ b/src/_includes/layouts/base.njk
@@ -6,7 +6,7 @@ type: page

      <title>{{ title }}</title>

    [-<body-]{++}

          {{ content | safe }}

This plugin parse the HTML files generated by Eleventy to convert  tags to <picture> tags. I suspect when it doesn't find a valid  block, it ignores  and other tags.
In another note, in home.njk you are using . I would recommend using quote on all attributes in the Nunjucks. E.g.: . In case, the image path have space in the file name, the generated HTML tag becomes invalid.

Thanks for your reply Saneef and for pointing out that error, it led me to find the actual cause of the issue in my real project. Replace the body tag with this:

That's alpine.js which worked without issue until I added your plugin.

I'll check whether the plugin messes with Alpine.js tags.

I published another version v2.0.3. This should fix the problem.

That did it! Thank you, Saneef

Glad it did the trick. Thanks for taking time to test the releases!


Guidance on working with other organisations

We recently had a retrospective for an organisations incident (unrelated to GovWifi) we took some learnings and I wanted to add them to tech docs as the single source of truth

I made a mistake


quicklook: persist 'UserData' directory

persist UserData directory for keeping the installed plugins.
project doc.:
https://github.com/QL-Win/QuickLook/wiki/Differences-Between-Distributions

i considered for, but the application no longer reads any data from %appdata% since 2020-09-20 (version: 3.6.10)
if users have installed an older version before, %APPDATA%\pooi.moe\QuickLook\ may contain older versions of plugins or no longer need anymore.
the directory currently contains the plugins and setting value(LastUpdateTicks). users can easily feel plugins are installed or not. is this really necessary?

migration for configfiles only, avoid installing old or unneeded plugins for users.
%APPDATA%\pooi.moe\QuickLook will be deleted after migration.

migration for configfiles only, avoid installing old or unneeded plugins for users.
%APPDATA%\pooi.moe\QuickLook will be deleted after migration.

I think we should avoid deleting folders, because these kind of operations is likely to cause some un-recoverable problems.
How about check persist folder before migration?
"if (!(Test-Path \"$persist_dir\\UserData\") -and Test-Path \"$env:APPDATA\\pooi.moe\\QuickLook\") {"

actually, i dont think package manager should manage data migration.
fixed in this PR: https://github.com/ScoopInstaller/Extras/pull/6105


Fix try/catch/finally il code generation

There is some problem with methods contain try/catch/finally statement.
Pose.Tests.MethodRewriterTests.TestExceptionHandlersRewrite

Test method Pose.Tests.MethodRewriterTests.TestExceptionHandlersRewrite threw exception:
System.InvalidOperationException: Incorrect code generation for exception block.
   at System.Reflection.Emit.ILGenerator.EndExceptionBlock()
   at Pose.IL.MethodRewriter.EmitILForExceptionHandlers(ILGenerator ilGenerator, Instruction instruction, List`1 handlers)
   at Pose.IL.MethodRewriter.Rewrite()
   at Pose.Tests.MethodRewriterTests.TestExceptionHandlersRewrite()

Wrong exception handler instruction order failed:

begin exception block
begin exception block
begin catch handler
begin finally handler
end catch handler
end finally handler

I have fixed instruction order. Now order is:

begin exception block
begin exception block
begin catch handler
end catch handler
begin finally handler
end finally handler

Why hasn't this fix been accepted?  Is this project dead?


How is it supposed to be used (not installed)

I didn't quite understand from the README or the website how to actually run the server. How does it run? What's the default config file name? I read the man page but I wonder if it could be run (or if it's supposed to be) from inetd or a service with rcctl (I'm using OpenBSD). I had no luck with vger either (which does require inetd and a proxy).

Hello :)
gmid doesn't need to be run behind inetd or relayd; it's a standalone daemon.  There was a submission in the ports@ mailing list (which doesn't include a default configuration file, but is a fine submission otherwise) if you want to try it.  There's also a rc script for OpenBSD in contrib/gmid.
There's a quickstart guide in the website: https://gmid.omarpolo.com/quickstart.html
The TL;DR is to write a configuration file (you can start with the one in the quickstart guide) and save it where you want: gmid doesn't have a default search path for the configuration and the -c is mandatory when you want to run the daemon.  A good place may be /etc/gmid.conf.
As a second step, you need to generate a TLS certificate.  contrib/gencert is an handy script that can help with that.
Then you can either run it manually from the shell (maybe inside tmux) with something like
$ # -f to stay in the foreground
$ gmid -c /etc/gmid.conf -f

or, if you have installed contrib/gmid into /etc/rc.d/gmid
# rcctl start gmid

If you're aiming to deploy it as a system server, I'd suggest to build the port rather than gmid Makefile make install so its files are managed by pkg_add.

Even though I found the quickstart guide afterwards I'm glad I asked because otherwise I'd never realized that there was a rc script written already.

Sorry for the absurd delay, I thought I had replied back then but it isn't the case apparently.
I'm happy to hear that gmid is useful to an entire community! 🎉
Please don't refrain to report any troubles you had setting it up for a pubnix, be it in the functionalities or documentation, so that I can try to make things easier.
Thanks!


update_last_sale fails when instant_fill=False for asset type Future

Hi. When running zipline TestAlgorithm for EEX Futures using instant_fill=False, update_last_sale in position_tracker fails because _position_payout_multipliers is not defined for given sid. As a workaround, I call
self.perf_tracker.position_tracker._update_asset(self.asset.sid)

in handle_data method of class TestAlgorithm. This should not be necessary.
cc @warren-oneill

@dhexus looks like you resolved this will I was away. Can we close the issue?

Is this issue still relevant? Possibly related to https://github.com/quantopian/zipline/issues/783?
If not, go ahead and close it.

Going to close this issue considering instant_fill looks like it was removed + this is an old issue.


[WFLY-8672] Backport latest WildFly Elytron Integration Changes

The following issues can be resolved with this PR: -
https://issues.jboss.org/browse/WFLY-8672
https://issues.jboss.org/browse/WFLY-8532
https://issues.jboss.org/browse/WFLY-8590
https://issues.jboss.org/browse/WFLY-8539
https://issues.jboss.org/browse/WFLY-8611
https://issues.jboss.org/browse/WFLY-8625
https://issues.jboss.org/browse/WFLY-8612
https://issues.jboss.org/browse/WFLY-8613
https://issues.jboss.org/browse/WFLY-8653
https://issues.jboss.org/browse/WFLY-8599
https://issues.jboss.org/browse/WFLY-8414

Have kicked off the following experimental build: -
https://ci.wildfly.org/viewLog.html?buildId=56755&tab=buildResultsDiv&buildTypeId=WF_WildFlyCoreIntegrationExperimentsWindows
This is using thins branch plus the latest upstream WildFly Core to double check if any of the Windows failures are influenced by core.


VQE Algorithm

The Variational Quantum Eigensolving Algorithm aims to solve the problem of having a physical system, represented by H, simulated such that the minimum energy configuration nature tends to is found. As opposed to approaches like Quantum Imaginary Time Evolution and QAOA, it is especially suitable for near term devices.
Your job:

Add a wiki page explaining the VQE algorithm, including the importance of the ansatz and optimizer choices
Make an example quantum circuit and visually illustrate what each component contributes
Allow visualization of the energy versus iteration graph

Bullet 1 & 3 Done, Have to work on Bullet 2

Done