KeyError getting table description

Describe the bug
Calling wr.catalog.get_table_description on a Glue table that doesn't have a description results in a KeyError exception being raised.
To Reproduce
awswrangler==1.5.0

Create a Glue table without a description.
Call wr.catalog.get_table_description on the table.

Example
The table item exists, but does not have a description.

>>> wr.catalog.get_table_parameters(database="sa-m2", table="item")
{'CrawlerSchemaDeserializerVersion': '1.0', 'CrawlerSchemaSerializerVersion': '1.0', 'UPDATED_BY_CRAWLER': 'sa-m2', 'averageRecordSize': '25', 'classification': 'parquet', 'compressionType': 'none', 'objectCount': '54', 'recordCount': '12349020', 'sizeKey': '174628122', 'typeOfData': 'file'}
>>> wr.catalog.get_table_description(database="sa-m2", table="item")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/site-packages/awswrangler/catalog.py", line 1670, in get_table_description
    desc: str = response["Table"]["Description"]
KeyError: 'Description'

@kinghuang Thank you for reporting it. We will fix and release a new version next week.

Hi @kinghuang  !
I've just fixed it in our development branch, and will be released soon on version 1.6.0.
Could you test it, and give us some feedback?
To install the development branch:
pip install git+https://github.com/awslabs/aws-data-wrangler.git@dev

I just tried the development branch. It returns None now instead of raising an exception.
>>> wr.catalog.get_table_description(database="sa-m2", table="item")
>>> print(wr.catalog.get_table_description(database="sa-m2", table="item"))
None

I just tried the development branch. It returns None now instead of raising an exception.
>>> wr.catalog.get_table_description(database="sa-m2", table="item")
>>> print(wr.catalog.get_table_description(database="sa-m2", table="item"))
None

Is this the desired behavior, right?

Yes, I believe None is an appropriate return value when there is no description.

Released on version 1.6.0!

Hi @kinghuang  !
It is totally off-topic, but we are stating a "Who uses AWS Data Wrangler?" section. So feel free to add yourself if you want 😄 .


Reland: Skia gold driver test

Re-land for https://github.com/flutter/flutter/pull/49905.
The solution is to add import 'package:flutter_test/src/_goldens_web.dart'; to _scuba_test_config_web.dart.

/cc @Piinks

The solution is to add import 'package:flutter_test/src/_goldens_web.dart'; to _scuba_test_config_web.dart.

Do you mean for the roll?

@chingjun thanks for the suggestion.  Thinking this though, it makes sense to just change the WebGoldenComparator  interface, so the methods take dynamic types instead of types defined in dart:ui. I'm going to go with this approach since it's simpler. cc @jonahwilliams who had some concerns.

PTAL


Use ErrNotFound to indicate no config file found

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes https://github.com/pipe-cd/pipe/issues/1259
Does this PR introduce a user-facing change?:

NONE

nice 👍
/approve


Using extract with multiple labels

Can you provide me with an example of calling extract with multiple labels? I can get one set of labels to work, but not multiple ones, even though I have tried a variety of different formats.
These for work:
df = swmmtoolbox.extract(swmm_output_file_path, 'node,node_0,Total_inflow')
df = swmmtoolbox.extract(swmm_output_file_path, ['node,node_0,Total_inflow'])
But these don't:
df = swmmtoolbox.extract(swmm_output_file_path, 'node,node_0,Total_inflow node,node_1,Total_inflow')
df = swmmtoolbox.extract(swmm_output_file_path, [['node,node_0,Total_inflow'], ['node,node_1,Total_inflow']])

When I try that I get this error:
"The list ['node,node_0,Total_inflow', 'node,node_1,Total_inflow'] for "" should have 3 members according to function requirements."

Fixed and published as version 3.3.4.
Thanks!


fetching Coverage JSON from S3

API to fetch the href of collection from database and using that href, the coverageJson is fetched from S3

Build finished.


NIFI-7883 replace explicit type with diamond type

Description of PR
→ NIFI-7883
cleanup code: minor refactoring for Java syntax updates.
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

→ I didn't think this was necessary for such a small change, but I can do this if necessary.

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically main)?

[x] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
→ ran, but got what I assume to be an unrelated error:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default) on project nifi: Too many files with unapproved license: 814 See RAT report in: /home/codespace/workspace/nifi/target/rat.txt -> [Help 1]

[ ] Have you written or updated unit tests to verify your changes?
[x] Have you verified that the full build is successful on JDK 8?
[x] Have you verified that the full build is successful on JDK 11?
[ ] 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 file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Thanks, @MikeThomsen. Should I also go ahead and update the commit message as well?

Sure.


scglue.data.get_gene_annotation gives many NaN values.

Hello!
Thank you for developing this tool.
I wanted to reach out to see if something was going wrong with my code. I'm using dataset preprocessed with Seurat for GLUE and following the tutorial for scRNA and scATAC integration. When I run this code segment:
scglue.data.get_gene_annotation(
pbmc_rna, gtf="gencode.vM25.chr_patch_hapl_scaff.annotation.gtf.gz",
gtf_by="gene_name"
)
many of the genes end up getting NaN in chrom, chromStart, and chromEnd. The genes that fail to assign the ranges seem to be those that start with AL such as AL627309.1, AL590822.1.  How can I fix this issue? Thank you in advance.

same problem for me, do you solve it?

The same problem and it came always in my 3 datasets. First I tried to remove these NA gene's rows of rna.var.loc[:, ["chrom", "chromStart", "chromEnd"]], and everything went well in the step1 of pre-treating data with 0 bugs. But it came a new problem in the beginning of step2, the model training, that I can't load RNA-pp.h5ad files came from step1, just because of the before deletion of these NA rows:
rna = ad.read_h5ad("rna_pp.h5ad")
ValueError: Variables annot. var must have number of columns of X (11787), but has 10215 rows.
Then I tried to fill these "chrom" NA by "chrn" and "chromStart&end" NA by some random number, but it still couldn't work when I ran:
guidance = scglue.genomics.rna_anchored_guidance_graph(rna, atac)
and the error was: ValueError: Not all features are strand specific!
So how should this problem be handled? Around 10% genes fail to assign the ranges and how to do with these genes NA rows? Thanks for advance.

Hi all, and thank you for the report! This is likely caused by the fact that the GTF file being used does not contain annotation for these genes. You may deal with this in two ways:

Replace gencode.vM25.chr_patch_hapl_scaff.annotation.gtf.gz with the same GTF file used in single-cell expression quantification, which should guarantee that the gene sets match precisely;
Remove those genes from adata.var along with the corresponding columns in adata.X, which can be done with rna = rna[:, rna.var.dropna(subset=["chrom", "chromStart", "chromEnd"]).index].

Let me know if these solutions work.

Hi all, and thank you for the report! This is likely caused by the fact that the GTF file being used does not contain annotation for these genes. You may deal with this in two ways:

Replace gencode.vM25.chr_patch_hapl_scaff.annotation.gtf.gz with the same GTF file used in single-cell expression quantification, which should guarantee that the gene sets match precisely;
Remove those genes from adata.var along with the corresponding columns in adata.X, which can be done with rna = rna[:, rna.var.dropna(subset=["chrom", "chromStart", "chromEnd"]).index].

Let me know if these solutions work.

Thanks for reply. I tried 2 and it did work well!
Here's my codes:
I used 'gencode.v46.chr_patch_hapl_scaff.annotation.gtf.gz' and had 1572 genes which couldn't be matched.
#dims
rna.var.loc[:, ["chrom", "chromStart", "chromEnd"]].shape[0] #sum 11787 rows
#find NA
na_rows = rna.var.loc[:, ["chromStart", "chromEnd"]].isna().any(axis=1)
rna.var[na_rows].loc[:, ["chrom", "chromStart", "chromEnd"]] #1572 NA rows
delete NA rows
rna.var.dropna(subset=["chromStart", "chromEnd"], inplace=True)
rna.var.loc[:, ["chrom", "chromStart", "chromEnd"]].shape[0] #sum 10215 rows
#delete NA rows in anondata
rna = rna[:, rna.var.dropna(subset=["chrom", "chromStart", "chromEnd"]).index]
#change the type to int
rna.var.loc[:, ["chrom", "chromStart", "chromEnd"]].dtypes
rna.var["chromStart"] = rna.var["chromStart"].astype(int)
rna.var["chromEnd"] = rna.var["chromEnd"].astype(int)

thanks for getting back; 1 works well for me. for anyone encountering similar issues in the future: if you are working with data from 10x genomics you can download their reference file from their website.


[Agent] Linux工程师

systemRole
Key Attributes:
Kernel Engineering Visionary:
Leads the development of real-time kernels, enabling systems for high-frequency trading, robotics, and mission-critical applications.
Regularly contributes patches that address critical vulnerabilities like Spectre, Meltdown, and other hardware-level security concerns.
Designs custom kernel modules for high-performance computing (HPC) environments, ensuring systems run efficiently under extreme loads.
Engages in the development of the Linux Kernel Memory Model and interrupt handling optimizations, making systems faster and more reliable.
Quantum Computing and Next-Gen Architectures:
Actively works on the integration of Linux with quantum computing architectures, ensuring that the OS is prepared for the next wave of computing advancements.
Develops support for new processor architectures like RISC-V, helping Linux maintain its position as the leading OS across diverse hardware platforms.
AI-Powered System Automation:
Incorporates artificial intelligence and machine learning algorithms into system management, enabling predictive diagnostics and automated resource scaling.
Develops self-healing systems that detect, diagnose, and repair issues without human intervention, using AI-based anomaly detection tools integrated with Linux.
Cutting-Edge Cybersecurity Leader:
Pioneer in Zero Trust architecture and leads the way in developing Linux-based frameworks for industries like finance and healthcare, which demand the highest levels of security.
Works with AI-driven security systems, utilizing machine learning models to predict, detect, and neutralize cyber threats in real-time.
Customizes and enhances security frameworks such as SELinux and AppArmor, embedding them into complex enterprise environments for maximum protection.
Global Data Center Architect and Cloud Mastermind:
Designs and oversees the creation of hyper-scale data centers, ensuring energy efficiency and future growth capabilities.
Leads cloud-native architectures, working with Kubernetes, Docker Swarm, and OpenStack to manage large, scalable environments across multiple data centers.
Leverages multi-cloud strategies, ensuring seamless integration and failover between AWS, Google Cloud, Azure, and other cloud providers.
High-Performance and Distributed Computing:
Develops optimizations for distributed computing frameworks such as Hadoop, Apache Spark, and Kubernetes, tailoring Linux for top-tier performance in big data applications.
Expert in tuning Linux for high-performance storage systems, including NVMe, Ceph, and distributed file systems like GlusterFS and BeeGFS, ensuring ultra-low latency and high throughput.
Networking and Telecommunication Guru:
Builds custom networking solutions for 5G and next-generation telecommunication systems, optimizing Linux for ultra-fast, low-latency networks.
Develops software-defined networking (SDN) and network function virtualization (NFV) solutions using Linux, enabling highly efficient and flexible networks for data centers and ISPs.
Masters edge computing architectures, optimizing Linux for IoT devices and decentralized processing at the network’s edge.
Pioneering Open-Source Advocate and Mentor:
Leads open-source development initiatives, often driving the direction of major Linux distributions or related open-source projects.
Publishes thought leadership articles and gives keynotes at major Linux conferences like LinuxCon and Open Source Summit, influencing the next generation of developers.
Actively mentors young engineers, guiding them through the intricacies of Linux and fostering innovation within the open-source community.
Cross-Platform Integration Expert:
Specializes in cross-platform integration, ensuring seamless Linux compatibility with Windows, macOS, and other operating systems using virtualization and containerization techniques.
Develops solutions that allow Linux systems to communicate effortlessly with legacy hardware, proprietary systems, and next-generation platforms, ensuring Linux dominance across all sectors.
Future-Ready Visionary:
Stays ahead of emerging technologies, ensuring that Linux continues to dominate in areas like blockchain, quantum computing, AI, and deep learning.
Leads research in quantum-resistant cryptography and Linux’s role in securing the future internet against potential quantum threats.
Tech Stack:
Distributions: Arch Linux, Gentoo, NixOS (for highly customized and performance-critical setups)
Programming Languages: C, Rust (for system-level development), Go (for cloud-native tools), Bash, Python
Infrastructure Tools: Kubernetes, Docker Swarm, OpenStack, Ceph, GlusterFS, Prometheus, Grafana
Security: SELinux, AppArmor, iptables, nftables, WireGuard, Quantum-Resistant Encryption
Networking: SDN, NFV, DPDK (Data Plane Development Kit), Open vSwitch, 5G network optimization
Performance Tuning: eBPF (Extended Berkeley Packet Filter), perf, systemtap, BPFtrace
AI Tools: TensorFlow, PyTorch (for integrating AI into system management and diagnostics)
This Ultimate Linux Architect is a visionary and a leader in the tech world, constantly pushing the limits of what Linux can do across the realms of cloud computing, AI, quantum computing, and beyond. With unmatched expertise, they lead the global community in securing, optimizing, and future-proofing Linux-based systems, while mentoring the next generation of engineers to ensure that Linux remains at the forefront of technological advancement.
identifier
linux-peak-architect
avatar
💻
title
Linux巅峰架构师
description
终极 Linux 架构师，精通实时内核开发、量子计算、AI 系统自动化、网络和电信等。
tags
Linux, 内核开发, 网络安全, 云计算, AI技术
locale
zh-CN

meta 信息和 systemrole 语种不符


Fixed #16281 -- Made ContentType.get_object_for_this_type() fetch models from the correct database.

Removes the using clause to let db router decide which db to use.
https://code.djangoproject.com/ticket/16281

As noted on the duplicate ticket, this change causes a test failure:
======================================================================
FAIL: test_generic_key_separation (multiple_database.tests.QueryTestCase)
Generic fields are constrained to a single database
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/python3.5.1/lib/python3.5/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/opt/python3.5.1/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/home/tim/code/django/tests/multiple_database/tests.py", line 730, in test_generic_key_separation
    self.assertEqual(review2.content_object.title, "Dive into Python")
  File "/opt/python3.5.1/lib/python3.5/unittest/case.py", line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/opt/python3.5.1/lib/python3.5/unittest/case.py", line 1193, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/opt/python3.5.1/lib/python3.5/unittest/case.py", line 665, in fail
    raise self.failureException(msg)
AssertionError: 'Pro Django' != 'Dive into Python'
- Pro Django
+ Dive into Python

buildbot, add to whitelist.

I would argue that the tests in test_generic_key_separation are making too many assumptions.
The GenericForeignKey only consists of content type and primary key and can make no assumption about which database to use. This should be the job of a db router.
So forcing a GenericForeignKey to fetch from the same database where the instance is stored seems wrong. The contenttypes documentation doesn't mention multiple database setups at all.
I'd rather assume get_object_for_this_type works like expected with multiple databases (using routers) then assuming that instances and their relations via GenericForeignKeys are in the same database.
What do you think?

@alex, as the author of multiple database support and that test, do you have any thoughts?

Uhhhhhh, no idea, sorry.

The assumptions of the multiple databases test seems based on the fact that Django doesn't allow cross-database relations. That said, it seems misleading later in the doc where it says that that it usually isn't useful to have ContentTypes in more than one database. For the test model in question:
class Review(models.Model):
    content_type = models.ForeignKey(ContentType, models.CASCADE)
    object_id = models.PositiveIntegerField()
    content_object = GenericForeignKey()

the only way we can identify the content_object is by which database the content_type lives in, so they must be created in both databases.
If we moved forward with the proposed patch, how would you provide backwards-compatibility or allow for the functionality of the currently failing test?

I would propose changing the behaviour of get_object_for_this_type to the one seen in this patch but keep the current behaviour of the content_object resolution to fetch the object from the same db as the content type object.
Unfortunately, adding a using keyword argument to get_object_for_this_type is probably not desirable as the kwargs are reserved for filters.
The documentation of get_object_for_this_type doesn't mention multi databases and I would consider the behaviour change a bug fix.
I amended the commit and added a new method to ContentType get_db_manager_for_this_type that is used by GenericForeignKey to fetch the content_object.

Here's another idea that might resolve this: 37564b084b4a8f64fefd4af98eb0a4bd13258311?
\cc @loic

https://github.com/django/django/commit/37564b084b4a8f64fefd4af98eb0a4bd13258311 is more backwards compatible with deprecating the get_object_for_this_type. I can't quite judge if deprecating this public method is better than changing/fixing its behaviour. Both work for me.

If we wanted to keep get_object_for_this_type(), removing using(self._state.db) is the right thing to do, I actually spotted this problem when I wrote the patch to deprecate  get_object_for_this_type(). But I think there is no point trying to improve those APIs, they are just bad.
If they used _default_manager instead of _base_manager I could tolerate them as convenience methods for the most common case, but since they use _base_manager which is almost always the wrong manager to use, I prefer them gone, especially now that we've documented  _default_manager and _base_manager. Inlining the code is barely more verbose, it's transparent with regards of which manager is used, and it's more flexible when it comes to multi-db operations.

Sounds good to me, thank you!

Thank you for the patch! I'll add your test cases to the other patch.

@loic @timgraham I just noticed that the patch never made it into 1.10 or 1.11 as far as I can see. Just as a heads up.

I guess the patch was never completed.


Autoupdate onChange

It would be nice if the results were updated automatically, without the need for the user to press the submit button.

This could be done by having the calculations carried out on checkbox changed, with the results being updated in state when this happens


Fix: Invalid slash on Windows platform

Hi,
I am experiencing errors when configuration.dumpDir is set on Windows platform. I found that it is because of invalid slash usage in file name. I have created createDumpDrlFile method and test for it. I think that allowed characters in regexp are good enough.
Also when I have run test I found that AdapterTest has same issue.
If you like the patch you can merge it.
Thx Ivos

Can one of the admins verify this patch?

I found that GuidedDecisionTreeModelUnmarshallingVisitor is failing too. I have changed separator when splitting lines to multiplatform regex pattern.

Your analysis of the Guided Decision Table unmarshalling code is outdated.
If you look at the stated class on master you will see we split rules
completely different now. Is your fork up to date?
On 14 May 2015 20:45, "Ivo Šmíd"<EMAIL_ADDRESS>wrote:

I found that GuidedDecisionTreeModelUnmarshallingVisitor is failing too. I
have changed separator when splitting lines to multiplatform regex pattern.
—
Reply to this email directly or view it on GitHub
https://github.com/droolsjbpm/drools/pull/435#issuecomment-102147666.

Ahh ok. I have forked from "6.2.x" branch.

I have force pushed my branch to remove last commit. Comparing to master branch looks ok, for me. Is it ok now?

We need one of the other developers who know the other part of your PR to confirm.

I think the change to the dumpDrlGeneratedFromDTable method is safe. Not sure about the PMML one.
When merging, we should target master instead of 6.2.x.

Merged into master as https://github.com/droolsjbpm/drools/commit/ca47f46fd222b921b9f9600281a753a3a7355240. Thanks for the PR!


solarish add thr_self fn

r? @Amanieu
(rust-highfive has picked a reviewer for you, use r? to override)


Extend agent SDS protocol tests

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-multicluster-tests_istio
998f51f15cb7c4a2b7166c4e11acacbfc0ede1a6
link
/test integ-pilot-multicluster-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-multicluster-tests_istio

Thanks for improving the tests!


feat: rosetta support

This PR enables Rosetta support following the Cosmos SDK v0.45.x guide.

@johnletey,
Same here -- CI should run now after you pull in main.

Closing as this was included in here: https://github.com/strangelove-ventures/noble/pull/215


CLOUDSTACK-9076: Changed ownership of directory /var/lib/cloudstack to cloud.

Now the management server can create directories inside this folder.
It's a packaging issue. Testing can be manually done by verifying the owner of the /var/lib/cloudstack directory.
Bug fix for 4.6.1, can be Fast-Forward merged to master (4.7).

Seems to be a spacing issue? Keep in mind that the debian/rules files uses TABs and not spaces. With space it will fail.

@borisroman Did you build the packages from this branch? Can you share some details to show it works properly now?


Java Eclipse LSP stops responding to kak-lsp command after enter insert mode.

Hello!
Just yesterday, I am starting to learn Java for a new project, thus setting up my Kakoune for Java development. So, I never run any Java LSP before and I am installing everything latest:

jdtls: stable 1.29.0 (https://github.com/eclipse-jdtls/eclipse.jdt.ls)
kak-lsp/kak-lsp/kak-lsp: stable 15.0.0
Kakoune v2023.08.05

I have managed to run the Java-lsp with both the jdtls script and the recommended way of doing java with a bunch of arguments. Both gave me the same issue. I will list out my observations. Note that I have been observing the kak-lsp log and the .log file spawned by jdtls in the data folder.

From a freshly started Kakoune. I open a .java file from a Java project.
LSP runs. I can do the following without issue: check capabilities, go to definition, hover, view diagnostic, view references.
Once I enter insert mode. Things got silent:
no new event was observed in the kak-lsp log (the enter insert mode did not fire anything?)
java LSP is running without error or freezing. It did not get any new event from the insert mode, and everything after.
When I exit insert mode and try to do all the stuff I did in point 2, nothing show up in the IDE. kak-lsp still sent out the event, but Java LSP does not seemed to receiving any.
The only command that work? Quit the Java LSP. That works. Java LSP will respond to that.
When I trigger any LSP action in Kakoune again, the whole process repeat. from point 1.

With the same session of Kakoune, my Dart LSP is working flawlessly. I can enter insert mode, come out and continue working with Dart files. One thing I observed from Dart LSP is, whenever I enter insert mode, kak-LSP will create a new event. I did not observe this with Java LSP.
I hope I have provided enough information here. Please tell me if anything else is needed. Or this is an issue with jdtls instead? I have tried the older version but still seeing the same issue.

Using the same versions, I can't reproduce on a Java project that contains only one file test.java:
class test {
  public static void main(String[] args) {
    foo();
  }

  static void foo() {}
}

I get completions in insert mode and everything still works fine after insert mode.

no new event was observed in the kak-lsp log (the enter insert mode did not fire anything?)

On i, the only thing that should be sent is signatureHelp. But every subsequent key should (after 50ms) send a didChange notification to the server.
If that doesn't happen there is something seriously wrong that should show up in the kak-lsp log, so if none of the below helps please include the log.

The only command that work? Quit the Java LSP. That works. Java LSP will respond to that.

Quit as in pkill -f jdtls? Could also run lsp-disable, wait a few milliseconds, then run lsp-enable to restart it.
Couple things to try:

Can you repro with an empty config with this command -- I just pushed a commit to use the jdtls wrapper script by default, so pull first.
HOME=$(mktemp -d) kak -e '
eval %sh{kak-lsp --kakoune -s $kak_session}
set global lsp_cmd "kak-lsp -s %val{session} -vvvv --log /tmp/kak-lsp.log"
lsp-enable'

Can you send me a project where I can repro?

After the bug happens, is there anything in the *debug* buffer.

Figure out how to access the jdtls log file. If it logs to stderr that should show up in kak-lsp's log but most servers use a file.

The only things that don't work for me are code actions/code lenses because this server doesn't implement the workspace/executeCommand interface..

My problem is solved. @krobelus, thank you for the quick assist and your detailed reply. I am sure you are wondering what could have solved my case, I was surprised too. All I did is to include lsp-enable into my kakrc, after learning the way you started Kakoune and kak-lsp:
# LSP enabling
eval %sh{kak-lsp --kakoune -s $kak_session}
# set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
lsp-enable   # <--- I just added this

I realized my Java LSP kept working after I tried to restart it with :lsp-enable instead of doing my usual :lsp-capacities via user mode. Which led me to add this lsp-enable into my kakrc.
How I survived without lsp-enable with my Dart development is the story of another day. But with it now, I can have my Java LSP running without becoming unresponsive.


Entry form should skip rating step if the GM field is empty

Description

The entry form should not allow the user to go to the Rating step of the form if no GM was entered in the first step.
Expected Behavior

The entry form should automatically skip the Rating step when moving on to the next step. The form should also go back to the first page when clicking on the Previous button on the third page if no GM is entered.
Actual Behavior

The entry form is shown when hitting next despite the GM field being empty.
Steps to Reproduce

Open the Character Detail page.
Create an Entry.
Click next without entering a GM.

Context

Possible Fix

Other
Description

Additional Notes

Hey team! Please add your planning poker estimate with ZenHub @AnnieTran13 @luigibesani @pascwhale


Updated settings for the Lanbon L9 commit issues

Updated local repository to 78a3b38 and compiled for a Guition ESP32-S3 480*480.
Getting double split image flickering (jittering) around on the LCD to the point of being unusable. Going back through recent commits, tracked the issue down to c89d10d, specifically, this snippet:
@@ -142,7 +142,7 @@ void ArduinoGfx::init(int w, int h)

    /* TFT init */
    LOG_DEBUG(TAG_TFT, F("%s - %d"), __FILE__, __LINE__);
    tft->begin(GFX_NOT_DEFINED);
    tft->begin(SPI_FREQUENCY);
    LOG_DEBUG(TAG_TFT, F("%s - %d"), __FILE__, __LINE__);
    // tft.setSwapBytes(true); /* set endianness */
    LOG_INFO(TAG_TFT, F(D_SERVICE_STARTED));

Adding -D SPI_FREQUENCY=GFX_NOT_DEFINED to the build flags in esp32-s3-4848S040.ini fixes the display issue. But I suspect other displays may suffer from the same problem. Did try using 40000000, 80000000, and 26000000 to no effect.

Updated in  e815e31 and  154a8ff
That should fix it, please test it. SPI_FREQUENCY should not be set for ST7701S or RGB displays.

Yup, that appears to have fixed it.
Thanks.


Get rid of legacy workspace calls (getWorkspace, toResource)

Once we adopted multi root.

This is all good now.


[1.15] [FLINK-27341][runtime] Remove LOOPBACK from TaskManager findConnectingAddress.

Picks https://github.com/apache/flink/pull/21319 to 1.15

@flinkbot run azure


Sending error for request 1: Error

When I use a precompiled Library the libtd：https://core.telegram.org/tdlib
When I execute the send method, it's like this：
TdApi.TdlibParameters authStateRequest = new TdApi.TdlibParameters();   authStateRequest.apiId = 157364;   authStateRequest.apiHash = "<censored>";  Client.send(new TdApi.SetTdlibParameters(authStateRequest),new AuthorizationRequestHandler());\
A mistake like this：
Sending error for request 1: Error { code = 30 message = "File "/td.binlog" can't be opened/created for reading and writing" }
How should I solve it？

You should specify a lot more tdlibParameters in order to properly init the library. The error happens because you haven't specified writable databaseDirectory, but there are a lot of other parameters which should be also set with a correct value in setTdlibParameters. And please don't publish your apiHash, it should be kept secret.

I modified the code
TdApi.TdlibParameters authStateRequest = new TdApi.TdlibParameters();         authStateRequest.apiId = 157364;         authStateRequest.useMessageDatabase = true;         authStateRequest.useSecretChats = true;         authStateRequest.systemLanguageCode = PhoneUtils.getLocale(this).getISO3Language();         authStateRequest.deviceModel = PhoneUtils.getModel();         authStateRequest.systemVersion = PhoneUtils.getVersion();         authStateRequest.applicationVersion = "5.0.2";         authStateRequest.enableStorageOptimizer = true;         TgClient.send(new TdApi.SetTdlibParameters(authStateRequest));
Still appear this error
The error happens because you haven't specified writable databaseDirectory.
How can I specify a writable databaseDirectory

On Android you can use getApplicationContext().getFilesDir().getAbsolutePath() for example.

thank you,this error is solved.But now there's a new problem:
Sending error for request 2: Error { code = 401 message = "Database encryption key is needed" }
What is the database encryption key？How to set up it?

How to send messages to the bot？

On Android you can use getApplicationContext().getFilesDir().getAbsolutePath() for example.

I do not understand what I need to do with this?

@steelfl Pass a subdirectory of this directory as database_directory to TDLib.


Init Commit for iOS AICamera Demo

Integrate with Paddle libs
Integrate with C++ code from liuyiqun
Create Objective C wrapper and bridging header to call from client in Swift
Able to capture video from device camera and output image buffer
Create hardcode data to draw bounding box and label

@jetfuel @hedaoyuan @Xreki

@nickyfantasy @hedaoyuan @NHZlX
Let's finish this PR and merge it as soon as possible. I don't familiar with swift, so do not have so many comments. Here are several points of mine:

Models: there are four models in the demo, I think

face_mobilenet_160_91.paddle and pascal_mobilenet_300_66.paddle are prerequisite
mobilenet_ssd_160.paddle can be removed
vgg_ssd_net.paddle is so large, I am not sure

Demo's name: how about rename the demo's name to PDCamera?
Icon of the demo: I think we may use the following picture as the demo's icon.

Documentation: need to write the README, it must tell users the following things:

How to build the demo

how to get the models, and where to put the models
where to put paddle libs

The QR to download the app
A simple shown of the app

For the icon, I have tested, and it is well shown.
For the app's name, it seems it still AICamera?

I have uploaded the models to a server:

pascal_mobilenet_300_66.paddle, http://cloud.dlnel.org/filepub/?uuid=39c325d9-b468-4940-ba47-d50c8ec5fd5b
face_mobilenet_160_91.paddle, http://cloud.dlnel.org/filepub/?uuid=038c1dbf-08b3-42a9-b2dc-efccd63859fb


New hypertension module with controlled high blood pressure via medic…

…ation treatment
Made changes based on Jay's suggestions:
•	The attribute “bp_treated?” is being READ in CardiovascularDiseaseModule, but NOTHING writes there. Perhaps references to this should be changed to READ from your new “blood_pressure_controlled” attribute.
•	There should be no SecureRandom in TrendingValueGenerator. SecureRandom is normally best practice (for cryptographic purposes), but in Synthea this is really bad, because it makes it hard to reproduce problems (we want the random generators to be the same every time). This wasn’t your change, but you should delete the private prng variable and change the call in “nextValue()” to be “nextValue = person.random.nextGaussian() * standardDeviation + mean;”
•	After reading the systolic blood pressure in calculateCardioRisk(), you should immediately read the diastolic blood pressure, even if you don’t use it. Just call the function “person.getVitalSign(VitalSign.DIASTOLIC_BLOOD_PRESSURE, time);”
o	This will ensure the systolic and diastolic trending value generators are created at the same time, which is exactly what you want to happen.
By setting the "blood_pressure_controlled" flag to true immediatedly after the medication order is issued,  and then have the new blood pressure reading occurring a month or more later at the follow up encounter resulted in corrected blood pressure readings.  The one month or more delay removes the effect of averaging prior readings stored in the ring buffers using by trend generator.
The hypertension section of the Metabolic Syndrome Standard of Care module has been removed and superceded by the stand alone Hypertension module.

@petercyli Thank you for another pull request!

Thank you for a great contribution @petercyli.
On Mon, Jul 1, 2019 at 4:33 PM Jason Walonoski<EMAIL_ADDRESS>wrote:

@petercyli Thank you for another pull request!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Interpolation get removed after translation done

I'm using xliff 1.2 files.
After translating fields from the webapp, interpolation tags get removed from the target.
<trans-unit id="1014715239941102606" datatype="html">
        <source>Remove <x id="linkedMethodName" equiv-text="name"/> </source>
        <target>Remove <x id="linkedMethodName" equiv-text="name"/> </target>
        <note priority="1" from="description">Action verb</note>
</trans-unit>

become
<trans-unit id="1014715239941102606" datatype="html">
        <source>Remove <x id="linkedMethodName" equiv-text="name"/> </source>
        <target>Supprimer</target>
        <note priority="1" from="description">Action verb</note>
</trans-unit>

Then, it can't be used like this for Angular app.

could you screenshot the string in the webapp/worbench. Does it show the Remove <x id="linkedMethodName" equiv-text="name"/> as plain text in the source? Have you kept it in the target as well?

Interpolation in not shown in the webapp
:/xlf/MyRepo# mojito repo-create -n MyRepo -l fr-FR
Create repository: MyRepo
Extracting locale: fr-FR
Extracted RepositoryLocale:
-- bcp47Tag = fr-FR
-- isFullyTranslated = true

created --> repository id: 2

:/xlf/MyRepo# mojito push -r MyRepo -s /xlf/MyRepo/ -sr "^resources.xliff$"

Push assets to repository: MyRepo

 - Uploading: resources.xliff
 --> asset id: 2, task: 13

Running, task id: 13
Creating asset: resources.xliff (14) Done
Process asset content, id: 2 (15) Done
  Extracting text units from asset (16) Done
  Create new text units (17) Done
  Updating branch asset text units (19) Done
  Updating merged asset text units (21) Done
  Perform leveraging (22) Done

Finished

Interpolation is not displayed in the webapp.

I'm not editing the translation and simply export using pull.
:/xlf/MyRepo# mojito pull -r MyRepo -s /xlf/MyRepo -t /xlf/MyRepoOut

Pull localized asset from repository: MyRepo

Localizing: resources.xliff
 - Processing locale: fr-FR --> resources_fr-FR.xliff

resources.xliff from push was :

<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file source-language="en-US" datatype="plaintext" original="ng2.template">
    <body>
		<trans-unit id="delete-service-warning" datatype="html">
			<source>Do you really want to delete <x id="message" equiv-text="message"/>? This action is irreversible.</source>
		</trans-unit>
	<body>
  </file>
</xliff>

without editing nothing in the webapp, resulting resources_fr-FR.xliff from pull was :
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file source-language="en-US" datatype="plaintext" original="ng2.template">
    <body>
		<trans-unit id="delete-service-warning" datatype="html">
			<source>Do you really want to delete <x id="message" equiv-text="message"/>? This action is irreversible.</source>
			<target xml:lang="fr-FR">Do you really want to delete ? This action is irreversible.</target>
		</trans-unit>
	<body>
  </file>
</xliff>

Target interpolation has been removed, but should be kept.

The  tag is not part of the xliff xml schema, so the parser will drop it. If you want an xml element to be a part of the string in an xliff string, the "<" characters need to be escaped:
<?xml version="1.0" encoding="UTF-8" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file source-language="en-US" datatype="plaintext" original="ng2.template">
    <body>
		<trans-unit id="delete-service-warning" datatype="html">
			<source>Do you really want to delete <x id="message" equiv-text="message"/>? This action is irreversible.</source>
			<target xml:lang="fr-FR">Do you really want to delete <x id="message" equiv-text="message"/>? This action is irreversible.</target>
		</trans-unit>
	<body>
  </file>
</xliff>

Thanks for you reply.
Sadly Angular does not escape its own xml tag for interpolation in source tag when extracting messages from ts and html.
I'm afraid mojito can't be used out of the box for Angular xlf files that for sure will have a trans-unit with interpolation.
Shouldn't this be handled by mojito, by updating the parser or something?

I found a script for escape and replace angular tags.
I will also try with this.
https://gist.github.com/jacob-jonkman/cc48d1f3690bc1accf9f36881e09ef47
https://gist.github.com/jacob-jonkman/2d5d26df672376bc31cd08710708a96b

Yes, those look like a good solution and that it would work. I think it might be difficult to update the parser in mojito because it is a 3rd party parser and it uses the xml schema to enforce the structure of the xliff, so this escaping/unescaping is a good workaround.

Oh wow! I did not know about that! I guess it is part of the xliff schema. I guess the parser has a bug then.

I used the previous script to escape <x tags and then push, also import and pull.
<x tags are correctly displayed in the webapp and kept in the exported translation file.
So it seems to work as expected by escaping interpolation tags.


EmbColor should be replaced with int & Deprecated.

If anything you'd only ever need a couple static helper functions. Nothing I know wants more than 24 bit color (CYMK, but eh), and Android doesn't use more than that. It seems as though it's just wasting memory referencing a class rather than the 24 bits of data it could possibly need to store. I've fiddled with a lot of color stuff.
It would be easier to just add some helper functions to the EmbThread code. Getters and setters for alpha, red, green, blue, setRgb(), .random(). And a few more functions with other erasures.

https://github.com/Embroidermodder/MobileViewer/pull/75


v4: Add remove_pfunit option

An edge case was found where a commit to MAPL created a CMake failure when building without pFUnit. This will let us test that case.

Your development orb(s) have been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link(s):
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:78578e4d84267b9fc79a5c9991f60f0f535dd15e
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:alpha

Your development orb(s) have been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link(s):
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:78578e4d84267b9fc79a5c9991f60f0f535dd15e
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=dev:alpha

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/geos-esm/circleci-tools?version=4.3.0


Enhance metrics module through properscoring package?

We should consider using properscoring as it seems to provide quite efficient implementations of loss metrics that could enhance our metrics module

I think we went down another route - vectorized operations on pandas inside energy method of BaseDistribution.


⚠ Bofrost.fr has degraded performance

In ab6c15f, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1419 ms

Resolved: Bofrost.fr performance has improved in ef77cfd.


Build error for 10.0.16299.0 ApiValidator.exe exited with code -1

Below is the orignal error:
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3721	The command ""C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\ApiValidator.exe" -DriverPackagePath:C:\ -SupportedApiXmlFiles:"C:\UniversalDDIs.xml" -ModuleWhiteListXmlFiles:"C:\ModuleWhiteList.xml" -ApiExtractorExePath:"C:\10.0.16299.0\x64"" exited with code -1.	bcmgpio	C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets	1746
And the details message for this issue is like below when execute the ApiValidator.exe manually:
ApiValidation: Warning: API SdPortCompleteRequest in sdport.sys is not a supported universal API. rpisdhc.sys calls this API.
ApiValidation: Warning: API SdPortInitialize in sdport.sys is not a supported universal API. rpisdhc.sys calls this API.
ApiValidation: Warning: API SdPortWait in sdport.sys is not a supported universal API. rpisdhc.sys calls this API.
ApiValidation: Warning: API SdPortCompleteRequest in sdport.sys is not a supported universal API. bcm2836sdhc.sys calls this API.
ApiValidation: Warning: API SdPortInitialize in sdport.sys is not a supported universal API. bcm2836sdhc.sys calls this API.
ApiValidation: Warning: API SdPortReadRegisterUlong in sdport.sys is not a supported universal API. bcm2836sdhc.sys calls this API.
ApiValidation: Warning: API SdPortWait in sdport.sys is not a supported universal API. bcm2836sdhc.sys calls this API.
ApiValidation: Warning: API SdPortWriteRegisterUlong in sdport.sys is not a supported universal API. bcm2836sdhc.sys calls this API.
Is there valid API for this these API doesn't support for universal API?

I met the same problem, anyone could help?
I also use VS 2017.

Hi,
You can try to disable run ApiValidator for each project.

@Amber-Kuo , thanks for the suggestion. I know disable the ApiValidator could fix this issue. But the bsp build with disable validation should NOT work for the 16299.

The same problem with 17134 and vs2017

Have you tried our recent build(s)? Closing this for now in case recent updates have fixed this. If you find this has not been fixed, please file an issue here: https://github.com/MicrosoftDocs/windows-iotcore-docs


Consider prequantizing colorants to 16bit fixed point.

So, we, Krita, have this odd bug.
Basically, Elle Stone once made icc profiles after coming across an issue with prequantization of the colorants leading to rounding errors. Whenever we use that profile, we don't seem to have roundtripping errors like above. However, the build-in sRGB profile doesn't have prequantized values, leading to roundtripping issues like the bug report above.
We know that Argyll has the code for this in the MIT-licensed icc.c, so we tried that, but it doesn't seem to work for us, and it may be that we're just not taking into account the chromatic adaptation. At this point however, I figured that it might just be better to make a bugreport, because all ICC profiles have 16bit fixed floating point hexadecimal quantization, so it might just make more sense to let LittleCMS take care of it?

Thanks for contacting me. I will take a look to the issue. Regarding the web page on prequantization, I already know that article, but I have discarded it because some of the premises they claim are not really true. If you use the sRGB built-in in unbounded (float) mode, then the roundtrip is perfect. If I change the primaries to benefit 8 bit roundtrip I am damaging the float part. On 8 bit the accuracy is already poor and visually the error is not noticeable, so I choosed to favour float transforms and honour the colorants user is giving.
On the other hand, this web proposes to use a pre-quantized white point for D50, that would be nice, but unfortunately the ICC spect says exactly what the D50 values should be, and are not those numbers. Diverging from spec would be a very bad move from my part, despite the questionable benefits. That should be addressed at ICC level, not in the implementations.
Anyway I will take a look, just to see if rountripping over and over keeps moving the color. If so (which seems the case) I would add a roundoff correction to prevent that.

Thanks for considering it! Our problem in that bugreport seems to happen in 16bit integer, not 8bit, if that makes a difference.

Ok, I have written a small piece of code to check whatever this is real. The program goes back and forth from sRGB to Lab and then uses the obtained rgb to do another iteration. It does 1000 iterations per sample. And then it checks all sRGB gamut doing 16 slices per component. The precision used is 16 bits RGB. Lab comes as doubles.
Then the maximum error I got (maximum euclidean distance) after 1000 iterations is 18.05, which I think is a pretty good result, given that this is in 16-bits units.
For what it seems, the pre-quantization is not needed and the built-in sRGB does a good job when round-tripping. Or maybe there is something wrong with this test code? Please double-check it...
static
double distance(const cmsUInt16Number* a, const cmsUInt16Number* b)
{
    double d1 = a[0] - b[0];
    double d2 = a[1] - b[1];
    double d3 = a[2] - b[2];

    return sqrt(d1 * d1 + d2 * d2 + d3 * d3);
}

int Check_sRGB_Rountrips(void)
{
    cmsUInt16Number rgb[3], seed[3];
    cmsCIELab Lab;
    int i, r, g, b;
    double err, maxErr;
    cmsHPROFILE hsRGB = cmsCreate_sRGBProfile();
    cmsHPROFILE hLab = cmsCreateLab4Profile(NULL);

    cmsHTRANSFORM hBack = cmsCreateTransform(hLab, TYPE_Lab_DBL, hsRGB, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, 0);
    cmsHTRANSFORM hForth = cmsCreateTransform(hsRGB, TYPE_RGB_16, hLab, TYPE_Lab_DBL, INTENT_RELATIVE_COLORIMETRIC, 0);

    cmsCloseProfile(hLab);
    cmsCloseProfile(hsRGB);

    maxErr = 0.0;
    for (r = 0; r <= 255; r += 16)
        for (g = 0; g <= 255; g += 16)
            for (b = 0; b <= 255; b += 16)
            {
                seed[0] = rgb[0] = ((r << 8) | r);
                seed[1] = rgb[1] = ((g << 8) | g);
                seed[2] = rgb[2] = ((b << 8) | b);

                for (i = 0; i < 1000; i++)
                {
                    cmsDoTransform(hForth, rgb, &Lab, 1);
                    cmsDoTransform(hBack, &Lab, rgb, 1);
                }

                err = distance(seed, rgb);

                if (err > maxErr)
                    maxErr = err;
            }

    cmsDeleteTransform(hBack);
    cmsDeleteTransform(hForth);

    printf("Maximum sRGB roundtrip error %f\n", maxErr);

    return 1;
}

So after a bit of investigation, unquantized vs (poorly) quantized values doesn't seem the actual issue here, while it does make a tiny difference, the pure fact that LCMS' built-in and Elle's ICC profiles aren't 100% identical seems to trigger a nasty precision issue when using 16-bit color spaces, so maybe this is an optimization gone wrong.
Specifically, converting from a linear to an sRGB TRC colorspace in uint16 causes huge errors when the colorants of both profiles aren't identical. Doing it with source in float only produces tiny conversion errors that don't really matter for 8-bit (or even 10 or 12-bit) end results. Also, sRGB TRC => linear seems to be unproblematic in uint16.
Please check this example (pseudo-)code I ripped out of my krita unit test:
void uint16toFloat(quint16 *src, float *dst)
{
    for (int i = 0; i < 3; i++) {
        dst[i] = src[i] / 65535.f;
    }
}

void TestProfileGeneration::testProfileCompatibility()
{
    cmsHPROFILE lcms_sRGB = cmsCreate_sRGBProfile();
    cmsHPROFILE elle_sRGB = cmsOpenProfileFromFile("sRGB-elle-V4-srgbtrc.icc", "r");
    cmsHPROFILE elle_linear = cmsOpenProfileFromFile("sRGB-elle-V4-g10.icc", "r");
    cmsHTRANSFORM transform1 = cmsCreateTransform(elle_sRGB, TYPE_RGB_16, elle_linear, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, cmsFLAGS_HIGHRESPRECALC);
    cmsHTRANSFORM transform2 = cmsCreateTransform(elle_linear, TYPE_RGB_16, lcms_sRGB, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, cmsFLAGS_HIGHRESPRECALC);
    cmsHTRANSFORM transform2a = cmsCreateTransform(elle_linear, TYPE_RGB_FLT, lcms_sRGB, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, cmsFLAGS_HIGHRESPRECALC);

    quint16 sourceCol[3] = {43*257, 27*257, 6*257};
    quint16 linearCol[3] = {0};
    float linearColF[3] = {0};
    quint16 finalCol[3] = {0};
    cmsDoTransform(transform1, sourceCol, linearCol, 1);
    cmsDoTransform(transform2, linearCol, finalCol, 1);
    qDebug() << "linearCol: R:" << linearCol[0] << "G:" << linearCol[1] << "B:" << linearCol[2];
    qDebug() << "finalCol: R:" << finalCol[0] << "G:" << finalCol[1] << "B:" << finalCol[2];
    qDebug() << "difference: R:" << (int)sourceCol[0] - finalCol[0]
            << "G:" << (int)sourceCol[1] - finalCol[1] << "B:" << (int)sourceCol[2] - finalCol[2];

    uint16toFloat(linearCol, linearColF);
    cmsDoTransform(transform2a, linearColF, finalCol, 1);
    qDebug() << "finalCol(fp): R:" << finalCol[0] << "G:" << finalCol[1] << "B:" << finalCol[2];
    qDebug() << "difference: R:" << (int)sourceCol[0] - finalCol[0]
            << "G:" << (int)sourceCol[1] - finalCol[1] << "B:" << (int)sourceCol[2] - finalCol[2];

The output I get:
linearCol: R: 1583 G: 718 B: 119
finalCol: R: 10909 G: 5350 B: 887
difference: R: 142 G: 1589 B: 655
finalCol(fp): R: 11050 G: 6937 B: 1537
difference: R: 1 G: 2 B: 5

Maybe you can shed some light on why I get errors >1500 (more than 2% error relative to value range) in uint16 values here, because this clearly shows in 8bits too, this example uses a pretty dark orange/brown and after the conversions it becomes noticeably darker, more saturated, and hue shifted more towards red.
Doing a direct conversion from Elle's sRGB to LCMS' built-in sRGB in uint16 does not show any such huge errors either (we should avoid mixing profiles nevertheless...)

Ah, ok. This has nothing to do with this arcane pre-quantization, I'm afraid all that info about moving primaries is not very accurate.
The real issue is about linear spaces and little cms optimization.
In order to accelerate things, sometimes, lcms performs tetrahedral interpolation when converting colorspaces. This works well when both color spaces are perceptually uniform or both spaces are linear, but works terrible bad when the input space is linear and output is perceptually uniform. Just because in this case the number of contone values assigned to each node is very  non-linear. lcms uses  33 nodes for HIRESPRECALC and almost all got wasted because the linear space encoding. I think you already warns end user in Krita's color management dialog.
The solution is easy: just mark the transforms you do linear->whatever to non-optimizeable, i.e (look at the flags!):
    cmsHTRANSFORM transform1 = cmsCreateTransform(elle_sRGB, TYPE_RGB_16, elle_linear, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, 0);
    cmsHTRANSFORM transform2 = cmsCreateTransform(elle_linear, TYPE_RGB_16, lcms_sRGB, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, cmsFLAGS_NOOPTIMIZE);
    cmsHTRANSFORM transform2a = cmsCreateTransform(elle_linear, TYPE_RGB_FLT, lcms_sRGB, TYPE_RGB_16, INTENT_RELATIVE_COLORIMETRIC, 0);

That should do the trick. It works for me.
linearCol: R:1583 G:718 B:119
finalCol: R:11050 G:6937 B:1537
diff: R:1 G:2 B:5
finalCol(fp): R:11050 G:6937 B:1537
diff: R:1 G:2 B:5

BTW, nothing prevents you to use linear spaces in the middle of a transformation chain, and you need not to use any special flag in such case. In fact, XYZ is linear and works very well as PCS. The issue is when you want to convert to a temporary linear space using it as storage. This is often a source of issues.

Ah, ok. This has nothing to do with this arcane pre-quantization, I'm afraid all that info about moving primaries is not very accurate.

Yes unfortunately I haven't been able to really reconstruct the whole process of creating those pre-quantized values either.
The presented profiles at least really do seem to lower the error when converting RGB white to Lab* white a bit compared to simply rounding each value to the nearest fixed point representation, i.e. values are closer to L*=100, a*=0, b*=0, but if that really makes ICC profiles noticeably better...
The difference doesn't seem dramatic, and of course the original precision you get when creating the color space through LCMS API is still best.

I think you already warns end user in Krita's color management dialog.

Ah yes you're right, that escaped me...
But thanks for explaining some backgrounds, because now that I look at it, neither the code nor the commits messages really give much of an insight, it just mentions linear color spaces.
As cmsFLAGS_NOOPTIMIZE does not seem to be necessary for float source color spaces, should I not use it in that case, or does it not have any performance impact in that case anyway?

After further investigation, it happens you hit one of the (rare) cases the optimiser can't resolve satisfactorely. On 8 bits it would optimise well, on float also... but 16 bits + linear spaces does not work and the user has to hint in the flags. I am adding to wish-list  for 2.13 an automatic way to detect and de-activate optimisation when linear encoding + 16 bits is being used.
On floats, optimisation is always off unless you use the plug-in, and in this case it is covered by the plug-in logic.
Thanks for reporting!

As promised, by 6b04ee0bab3ebe6f2c487195bac7b86efadd58d3 there is now an automatic detection of linear RGB spaces on 16 bits.

No issues reported on this, so I'm closing it.


incompatible with vite

Describe the bug
Incompatible with vite:
https://github.com/vitejs/vite/issues/527#issuecomment-654908920

Probably due to the presence of src in .npmignore

I am currently getting round the problem by editing node_modules/react-infinite-scroller/package.json and changing:
"jsnext:main": "src/InfiniteScroll.js",
to:
"jsnext:main": "dist/InfiniteScroll.js",
Either (like pcdv said) the library should ship with the src directory, or make the above modification to package.json.

Hello. I have the same issue. Any solution so far?
Thanks!!!!

Any updates?

I have the same issue.   Any updates?

I have the same issue. Any updates?

If you want a simple version, I wrote mine. The code is here

so nobody is fixing this issue?
it's a little bit stupid that I have to modify the package.json every time 😅

export default defineConfig({
  resolve: {
    alias: {
      'react-infinite-scroller': 'react-infinite-scroller/index.js'
    },
  }
});

Fixed by #279

export default defineConfig({
  resolve: {
    alias: {
      'react-infinite-scroller': 'react-infinite-scroller/index.js'
    },
  }
});

No matching export in "node_modules/react-virtualized/dist/es/WindowScroller/WindowScroller.js" for import "bpfrpt_proptype_WindowScroller"
I added this alias but new error is shown


The data generated in the timetable node is wrong

Based on the COEN346 node, the data generated in the timetable seems to be wrong.

There is basically a class every day. I think it is the same number of total class in the semester but they just happend every day. Tues is set to "Y" and Wed to "N".

This does not seem to be true for most courses. We should re-evaluate its priority or close it completely.

Since this issue is only occurring for only this course (COEN-346), and it is not present with most other courses, this doesn't seem to be of relevant priority at this moment. Therefore, this issue can be closed.


Broken connection that doesn't get re-established

I've seen another one that doesn't recover, the debug log looks like this:
DEBU[2016-12-02T05:00:59Z] Sending message from jurgenhaas on mattermost.paragon to gateway  module=mattermost
ERRO[2016-12-02T05:17:28Z] error:websocket: unexpected reserved bits 3   module=matterclient
DEBU[2016-12-02T05:17:28Z] trying login paragon<EMAIL_ADDRESS>mattermost.example.com  module=matterclient
DEBU[2016-12-02T05:17:28Z] body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<title>503 Service Unavailable</title>

Service Unavailable

The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.

  module=matterclient

After that the service is not doing anything until a restart. The reason for the server not being available at that time was an update of the server which has to pause the services for a few seconds.
Is there a way to retry later and automatically re-establish connection when services are available again?

Just had the same problem again, exactly the same outcome. Any chance of getting this addressed?

Perfect fix, thanks @42wim


DSA <IP_ADDRESS> Array Rotation some O(N) problems

Description
Left rotation, rotations required to sort array, elements at index I after k rotations.
Task

[ ] Documentation
[ ] Audio
[ ] Video

Note

While requesting the issue to be assigned, please mention your NAME & BATCH NUMBER.
Kindly refer to Issue Guidelines.
In case you see that the issue has already been assigned, try to request for a different task within the same issue.
Changes should be made inside the DSA/directory & DSA branch.
Name of the file should be same as the issue.
This issue is only for 'GWOC' contributors of 'DSA' Domain.

Please assign this to me. I'd like to contribute in the form of documentation.
Ananya Joshi
DSA batch 2

#include <bits/stdc++.h>
using namespace std;
void leftRotatebyOne(int arr[], int n)
{
int temp = arr[0], i;
for (i = 0; i < n - 1; i++)
arr[i] = arr[i + 1];
arr[n-1] = temp;

}
/*Function to left rotate */
void leftRotate(int arr[], int d, int n)
{
for (int i = 0; i < d; i++)
leftRotatebyOne(arr, n);
}
void printArray(int arr[], int n)
{
for (int i = 0; i < n; i++)
cout << arr[i] << " ";
}
/* Driver */
int main()
{
int arr[] = { 1, 2, 3, 4, 5, 6, 7 };
int n = sizeof(arr) / sizeof(arr[0]);
// Function calling
leftRotate(arr, 2, n);
printArray(arr, n);

return 0;

}

Please assign this to me. I'd like to contribute in the form of documentation.
Yatharth Rajput
DSA batch 4

I'd like to contribute in the form of documentation.
Nikhil Kumar Mishra
DSA batch 3

Hey @pjdurden , I would like to work on this issue. Can you please assign me this issue?
Name :- Hassan Rahim
Batch:-  2
Type:- Documentation
I've previously solved problems related to Array Rotation. That's why I would like to work on this issue, and I'm sure I would explain it in a better and easy way.

I would like to work on this issue.
Name :-Preeti Kumari Yadav
DSA Batch:- 3
Type:- Documentation

Hi ! I would love to work on this issue. Can you please assign it to me? Debarati Ghatak DSA Batch3

@cookieg13 Go for it, assigned to you

@Subhradeep10 Arent the issues assigned on a first come basis?

@AJgthb2002 We have to do the batch preference also, Cause the superviser is for  DSA-Batch 3 , So we have to give the preference to DSA -Batch 3 Contruibuter first

oh okay!

I would like to work on this issue.Can you please assign this to me?
Name: Arjyo Chakraborty
Batch :- DSA - Batch 3

@mansisingh2803 @arjyo851 @AJgthb2002 Go ahead, Assigned to you.

Thank you @Subhradeep10
But in the assignees section, it is still showing 'no one assigned'. I am a beginner, I did not understand why the assignees are not shown?

/assign

/assign

/assign

/assign

/assign

/assign


Yarn doesn't  provide oidc-client-ts (pb9389), requested by react-oidc-context

I am trying to use this package in my react+vite+yarn project
when I try to install this I get this error
➤ YN0002: │ my-client@workspace:. doesn't provide oidc-client-ts (pb9389), requested by react-oidc-context
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code

When I ask it to explain using yarn explain peer-requirements pb9389
➤ YN0000: my-client@workspace:. doesn't provide oidc-client-ts, breaking the following requirements:
➤ YN0000: react-oidc-context@npm:2.0.0 [57633] → ^2.0.0-rc.4 ✘

As a result I can reference useAuth() in my app but it fails on compile as the oidc-client-ts package is not actually being
installed.
Edit: manually installing the package with yarn add oidc-client-ts  gets the app running for now.

You need to add the peer dependency as well: oidc-client-ts


⚠ PrivateHD has degraded performance

In 2e39ef6, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 2303 ms

Resolved: PrivateHD performance has improved in 5135995.


Suggestion: change password hashing from pbkdf2 to bcrypt

Last week I migrated from GitLab to gitea but had problems with the password hashes. GitLab uses 'bcrypt' and gitea uses 'pbkdf2' so I needed to modify gitea to work with 'bcrypt' and now it works fine.
Today I read that GitHub also uses 'bcrypt' for password hashing, so I think it would maybe better to move to 'bcrypt' so it's easier to migrate between different platforms.

For a compatible implementation, we can add a config option to define hash functions. Default is pbkdf2 and you can use bcrypt.

@EpicCoder could you send a PR to do that?

The config option is a good idea. Yes I will working on this and send a PR soon

If you are going to do this I would suggest moving beyond bcrypt as well and add options for scrypt and argon2 as well.
Short on the different algorithms:
PBKDF2 - still the recommendation from NIST but can be meaningfully accelerated on GPU hardware.
bcrypt - proven (1999) technology that uses iteration count and sizable memory requirements to prevent GPU acceleration, can still be meaningfully accelerated on FPGAs.
scrypt - newer (2009) technology that allows implementer to tweak both memory block size and iteration count. Has proven to be weaker than bcrypt IF the memory block size is too small. If you have a system that doesn't need to handle many login attempts per minute, and can hence up the memory block size requirement to something like 256Mb, it is vastly harder to accelerate on FPGAs than bcrypt - but only for now.
argon2 - new technology that won the password hashing algorithm contest a few years back and has already been subjected to several evaluations from cryptography experts (leading to some tweaks in the algorithm). On paper it is the current best choice, but might have some hidden weakness yet to be found.
Choice is always good and these are all good choices depending on what situation you are in. A password hash that specifies the algorithm and config for it is a great idea and would allow one to change on the fly when the circumstances change.


Introduction changes (move concepts to their own page)

Right now when people visit https://www.scaleft.com/docs/ and click on "get started", they're taken to a sort of glossary of concepts. This was pretty confusing to me, so I moved the concepts to their own page  (under Reference) and added links to the relevant docs for each concept.
With this change, users are shown a basic overview of ScaleFT's architecture and reason for existing, concluding with a link to the initial configuration page. This arrangement seems less confusing to me.

Thanks! +1


region misc fix:

这个 PR 实现什么功能/修复什么问题:

guest postpaid expire support set expire time
list instance snapshot sub snapshot return size

是否需要 backport 到之前的 release 分支:
release/3.1
/cc @swordqiu
/area region

Codecov Report

Merging #5222 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #5222      +/-   ##
=========================================
- Coverage    6.74%   6.74%   -0.01%
=========================================
  Files         546     546
  Lines       95305   95325      +20
=========================================
  Hits         6433    6433
- Misses      88334   88354      +20
  Partials      538     538

Flag
Coverage Δ

#aFlag
6.74% <0%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/compute/models/guest_actions.go
0% <0%> (ø)
:arrow_up:

pkg/compute/models/instance_snapshots.go
4.5% <0%> (-0.03%)
:arrow_down:

pkg/util/billing/billingcycle.go
49.48% <0%> (-2.13%)
:arrow_down:

Continue to review full report at Codecov.

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

/lgtm

/approve


Q: Disable console as logging output

Hello,
I am using pyroscope in k8s with my .NET apps and pyroscope logs are kind of flooding applications logs. Is there a way to disable logging to Console?
Thanks Vladimir

Setting PYROSCOPE_LOG_STDERR=false as an environment variable will disable logging to std::err.

Thanks @dlinkov-roblox !


Empty userid and roletypeid parameters

The URL I'm given for my eText does not have the userid or roletypeid parameters. Can this script be made to support such links?
I don't log into the Pearson website, but rather click a link through my university portal which opens the "Mastering" platform which then has a link to the eText. I am happy to give more specific information, either here or via email. Thanks.

Just made the script work without either of those parameters. Could you give it a try again, if you still have access to the book (or the bookId)? If you don't have access to either of those, please send me an email and we can see what we can do about that

Works perfectly with the same URL now. Thanks.

Awesome, I'm glad it works!


Updated project to use Cake v0.17

Ta

Once sec, my nuget was cache the Cake.Core versions, I'll send through another PR for 0.18.


NotifyActivity onDestroy should respond no to the request

or    @Override
public void onBackPressed() {
}
prevent back button from being pressed


Introduced fuzzing by adding a fuzzer

This PR adds a fuzzer for the flagset parser.
If there is interest in fuzzing pflag, I will be happy to put more work into it.
This fuzzer can be run locally and we can see if oss-fuzz will accept integrating pflag into their project. I will be happy to get that going.
The PR does not change any functionality of the core library.

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


Improve error logs in health check containers when health check is paused when ipsec is not in "active" state.

Rancher server - Build from v1.6-development
Steps to reproduce the problem:
Upgrade ipsec service.
When ipsec service is getting upgraded ,  health check  is paused resulting in following error message:
12/14/2017 10:01:28 AMtime="2017-12-14T18:01:28Z" level=error msg="Failed to report status 25e575c6-3bd8-480a-aa17-c3dc6ff7cf04_e79ef58d-370e-4f1e-9b51-7538c96a391d_1=DOWN 1/2: Bad response from [http://<IP_ADDRESS>:8080/v2-beta/serviceevents], statusCode [409]. Status [409 Conflict]. Body: [{\"id\":\"320fc91a-0152-4592-abe8-2c5be68c8220\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":409,\"code\":\"Conflict\",\"message\":\"Conflict\",\"detail\":null,\"baseType\":\"error\"}]"
12/14/2017 10:01:28 AMtime="2017-12-14T18:01:28Z" level=error msg="Failed to report status 25e575c6-3bd8-480a-aa17-c3dc6ff7cf04_98dac6e4-12c6-4c41-bbe5-a51f346e7910_1=DOWN: Bad response from [http://<IP_ADDRESS>:8080/v2-beta/serviceevents], statusCode [409]. Status [409 Conflict]. Body: [{\"id\":\"d0a91a13-3648-4a53-a622-1b432cd4dcfc\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":409,\"code\":\"Conflict\",\"message\":\"Conflict\",\"detail\":null,\"baseType\":\"error\"}]"
12/14/2017 10:01:28 AMtime="2017-12-14T18:01:28Z" level=info msg="25e575c6-3bd8-480a-aa17-c3dc6ff7cf04_5441afe7-4bb8-4820-9814-cda2667cbc15_1=INIT"
12/14/2017 10:01:28 AMtime="2017-12-14T18:01:28Z" level=info msg="25e575c6-3bd8-480a-aa17-c3dc6ff7cf04_0dc1f85a-4fda-4080-b851-6dfc259602ec_1=INIT"
12/14/2017 10:01:30 AMtime="2017-12-14T18:01:30Z" level=error msg="Failed to report status 25e575c6-3bd8-480a-aa17-c3dc6ff7cf04_98dac6e4-12c6-4c41-bbe5-a51f346e7910_1=DOWN 1/2: Bad response from [http://<IP_ADDRESS>:8080/v2-beta/serviceevents], statusCode [409]. Status [409 Conflict]. Body: [{\"id\":\"c26d3887-ea3f-408b-8254-68033004cfa0\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":409,\"code\":\"Conflict\",\"message\":\"Conflict\",\"detail\":null,\"baseType\":\"error\"}]"

These error messages can be improved to be reflect the state rather than a 409 conflict error

I have the same issue (and LB can't continue to run so repeats restarting)

It appeared after upgrading k8s but just clicking "Finish Upgrading" solved this problem in my situation.

I am facing similar issues. My health status and ipsec are not coming up, they just seem to be hung. I tried installing the haproxy package and enabling it on all the hosts, still no good.
I tried restarting docker and nothing good came out of it. Please help!

Same problem as @ankurgadgilwar. I can only have one host running; all others can't bring up healthcheck/ipsec because of the 409. This happens as soon as the host is initially added.

I had that persistent issue for a long time, HTTP 409 keeps on occurring, Try updating yum and restarting the node, that actually worked for me. I don't have anything running on my cluster yet, so I can afford to reboot the machine and restart docker. Give it a try.
Also, I would recommend you to have atleast 4 nodes in your cluster.

Updated system packages (apt, since I'm on Ubuntu) and updated to latest stable docker, rancher-server, and rancher-agent on all nodes. Still running into the problem.
I can afford to reboot the machine and restart docker, but I certainly can't afford more than 3 nodes. ;)

Same error with Rancher v1.6.14 + docker 17.12.1-ce in Host debia. 9(jessie) 64x, when run cluster in mode host.

Same here

Not quite sure if another repro matters, but I can easily reproduce the issue using one physical (ubuntu 17.10) machine running v1.6.15 on the host and two docker-machine vm nodes. The following code creates kvm vms, but virtualbox works equally.
docker-machine create \
    --driver kvm \
    --kvm-cpu-count 2 \
    --kvm-memory 1092 \
    --kvm-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v17.12.1-ce/boot2docker.iso \
    kvm-1712-1

docker-machine create \
    --driver kvm \
    --kvm-cpu-count 2 \
    --kvm-memory 1092 \
    --kvm-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v17.12.1-ce/boot2docker.iso \
    kvm-1712-2

Start from an empty environment and create the first custom host, "docker-machine ssh kvm-1712-1" and paste the command line from rancher.
The services go up and everything is green.
Now add the second node.
ipsec/healthcheck go Up/Down/Initializing/Unhealthy
ipsec-router logs show entries such as:
3/22/2018 3:49:51 PMtime="2018-03-22T14:49:51Z" level=info msg="samonitor: expected SA for host: <IP_ADDRESS>, but not found."
3/22/2018 3:49:51 PMtime="2018-03-22T14:49:51Z" level=error msg="samonitor: error initiating missing SA child-<IP_ADDRESS>: unsuccessful Initiate: CHILD_SA config 'child-<IP_ADDRESS>' not found"

healthcheck logs go:
3/22/2018 3:55:35 PMtime="2018-03-22T14:55:35Z" level=error msg="Failed to report status 8734367f-1c29-4d3b-8214-e939fc06f058_5a30ec2b-3a98-481b-be9e-11138b7fbff0_1=DOWN: Bad response from [http://.../v1/serviceevents], statusCode [409]. Status [409 Conflict]. Body: [{\"id\":\"16d637fd-f0eb-487d-b94a-2c6511597b4b\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":409,\"code\":\"Conflict\",\"message\":\"Conflict\",\"detail\":null,\"baseType\":\"error\"}]"

fwiw I had the same setup as @mjaverto : server is a DNS entry that resolves to private IP; hosts are all private IPs in same subnet. have rebuilt hosts from bare VM several times and re-registered to no avail; server also. >1 host will reproduce the issue, but exactly one host will run fine (doesn't matter which).

FWIW: Got some more clues with regards to my KVM/Virtualbox multi hosts issue.
The virtual hosts somehow pick up the IP of the Docker bridge interface of the rancher-server (which happens to be running on the same physical machine). In the console, I see:
INFO: ENV: DETECTED_CATTLE_AGENT_IP=<IP_ADDRESS>
INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.10

And that IP also displays in the Rancher-UI for each host.

@deas it sounds like @Stark-X 's solution may work for you.

If you put you host in a DHCP and this IP changes, you will have two problems:

Health check will crash
IPSec will crash too

You need to set fixed IP's for your hosts. Then this problem will never occour.
After reset the IPs, you can restart the services and all will gonna work fine.

I'm using DHCP and ran into this issue as well. (Though my DHCP address has not changed)
Restarting the network stack in ROS resolved the issue I was having with the health check service.

https://github.com/rancher/rancher/issues/12981

Same problem as @ankurgadgilwar. I can only have one host running; all others can't bring up healthcheck/ipsec because of the 409. This happens as soon as the host is initially added.
additionally, the ipsec service for the "first" host changes to "unhealthy" and its router sidekick shows:
2/27/2018 4:04:06 PM00/<IP_ADDRESS> not found for delete
2/27/2018 4:04:06 PM05[KNL] creating acquire job for policy <IP_ADDRESS>/32[6/38324] === <IP_ADDRESS>/32[6/42] with reqid {1234}
2/27/2018 4:04:06 PM15[CFG] trap not found, unable to acquire reqid 1234
2/27/2018 4:04:06 PM07[IKE] retransmit 5 of request with message ID 0
2/27/2018 4:04:06 PM07[NET] sending packet: from <IP_ADDRESS>[500] to <IP_ADDRESS>[500] (500 bytes)
2/27/2018 4:04:06 PM09[KNL] creating delete job for CHILD_SA ESP/0x00000000/<IP_ADDRESS>
2/27/2018 4:04:06 PM16[JOB] CHILD_SA ESP/0x00000000/<IP_ADDRESS> not found for delete
2/27/2018 4:04:06 PM07[KNL] creating acquire job for policy <IP_ADDRESS>/32[6/47022] === <IP_ADDRESS>/32[6/80] with reqid {1234}
2/27/2018 4:04:06 PM11[CFG] trap not found, unable to acquire reqid 1234
2/27/2018 4:04:06 PM08[KNL] creating delete job for CHILD_SA ESP/0x00000000/<IP_ADDRESS>
2/27/2018 4:04:06 PM05[JOB] CHILD_SA ESP/0x00000000/<IP_ADDRESS> not found for delete
2/27/2018 4:04:06 PM13[KNL] creating acquire job for policy <IP_ADDRESS>/32[6/40772] === <IP_ADDRESS>/32[6/80] with reqid {1234}
2/27/2018 4:04:06 PM12[CFG] trap not found, unable to acquire reqid 1234
2/27/2018 4:04:06 PM11[IKE] giving up after 5 retransmits


Make delete warning configurable or allow multi-delete

Having to go through the UI and delete each item one by one is especially tedious with the warning that pops up

I assume from context that this is deletion through the tree view?  The VS Code tree view doesn't appear to support multi-select at the moment, so multi-delete isn't going to be an option.
We could add something like an "Delete and don't ask me again" button but that feels like it could leave the user in a brittle position, where a slip later on could result in an unintended deletion.  We could go further and have this as "Don't ask me again for resources in this cluster", so that you could live dangerously in dev clusters where there is likely to be high churn and the cost of a mistake is low, but still be safe in production clusters or other environments where accidents could be costly.  But this results in a lot of complexity, and in behaviour that may appear inconsistent and confusing.
I completely sympathise with the tedium but I don't have a good feeling for how to balance convenience, safety and development cost here... open to suggestions!

thanks for the explanation!  yeah didn't think about the scenario where you flip the setting on and then 6 months down the road you accidentally delete something (bad news!)
I'm fine with you closing this one!

Thanks for being understanding.  I'll close this for now as you suggest, and if anyone gets any bright ideas then we can definitely revisit it!


Compiling css does not work

I'm trying to improve contrast of the header navigation links.
I need to change the element's " .nav > li > a " colour attribute to another colour.
" mvn package -P css  -DskipTests " runs successfully but after launching the page with " mvn spring-boot:run " the colour was not changed and i can see that through developer mode. The were no errors encountered.
Im using Google Cloud Shell.

Oh nevermind , seems that either the change is barely noticable or the project just needed to be restarted


Enhance Navbar hover animation

Hi 👋🏼 @4darsh-Dev, After checking and configuring the codebase came up with the approach

Create a new branch so original source code is not affected.
To add a Navbar.css that includes css animation effects for the Navbar.
Kept it separate so as it does not affect other code and cause errors.
can be customized easily.

Here's what the changes look like:

This PR fixes #10
Review the PR, and add labels wob24 & Level2.

@4darsh-Dev I have changes the font-size to the requested values, and pushed the changes to the navbar branch.
now the PR is ready to fix the #10 issue.


Fix secrets CLI option

Issue Ref: Fixes #677
Description:
Volume definition was being overwritten. Add unit and integration tests.
TODOs:

[X] Ready to review
[X] Automated Tests
- [ ] Docs

LGTM.
On a side thought. Wonder if Secret should be a first class atrribute of the function. If someone does not use the kubeless CLI, what it means is specifiying manifest below. Sure CLI helps to auto-generate, but its not best way to express the user intent. Getting the secrets associated with the function means inferring it from the funtionSpec.deployment.spec.template.spec.volumes.secret.
Ideally, function spec should have secret as string, and controller should figure how to make it available to function pod.
apiVersion: kubeless.io/v1beta1
kind: Function
metadata:
  labels:
    created-by: kubeless
    function: get-python
  name: get-python
  namespace: default
spec:
  deployment:
    metadata:
      creationTimestamp: null
    spec:
      strategy: {}
      template:
        metadata:
          creationTimestamp: null
        spec:
          containers:
          - name: ""
            resources: {}
            volumeMounts:
            - mountPath: /test-secret
              name: test-secret-vol
          volumes:
          - name: test-secret-vol
            secret:
              secretName: test-secret
    status: {}

Yes, the API for the secrets it's not ideal. The problem would be if we have a field Secrets there will be users that want the secret as an env var while other will want it in a specific path. This way we don't have a specific compromise (at least from the API point of view). In any case we can open a different issue for that.

I will open a new issue.


Initial implementation of URLProtectionSpace

This is one of the pre-reqs for an upcoming implementation of basic auth with URLSession. URLProtectionSpace is a simple class with a handful of read-only properties which are initialised using one of the two initialisers - I am not sure if there's value in adding tests here (however, I am open to suggestions!)

@swift-ci please test


Fix Notebook Kusto Kernel Consistency  (#12256)

PR for Main branch: #12256
This PR fixes: #12255

Pull Request Test Coverage Report for Build 257835069

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 38.939%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/services/notebook/browser/models/notebookModel.ts
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/notebook/src/jupyter/pypiClient.ts
1
81.82%

Totals

Change from base Build 257100094:
-0.003%

Covered Lines:
19147

Relevant Lines:
44857

💛  - Coveralls


nvs partition is not encrypted after enable CONFIG_NVS_ENCRYPTION  (IDFGH-8045)

Before submitting a new issue, please follow the checklist and try to find the answer.
Environment

Development Kit:      ESP32-DevKitC
Kit version (for WroverKit/PicoKit/DevKitC): v4
Module or chip used:  9ESP32-WROOM-32
IDF version (run git describe --tags to find it):
v4.3.1-3-g6fc07a1a68
Build System:         idf.py
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2) 8.4.0
Operating System:     Linux
(Windows only) environment type:
Using an IDE?:  YES
Power Supply:         USB

Problem Description

write NVS partition (not encrypted)
enable CONFIG_FLASH_ENCRYPTION_ENABLED and CONFIG_NVS_ENCRYPTION
app bulid - flash and monitor by idf.py

In this condtition, I saw the bootloader stop for a long time and then restart.
flash encryption was successfully done.
nvs_flash_generate_keys, nvs_flash_secure_init, nvs_flash_secure_init_partition is successfully called.
But NVS partition is not encrypted after first booting(other flash data are encrypted after first booting)
Failed to read NVS Data (becaust NVS data was not encrypted, the attempt to decrypt it failed)
Expected Behavior
nvs is succesfully encrypted, and success to read nvs data
Actual Behavior
nvs is not encrypted, and failed to read nvs data
Steps to reproduce

write NVS partition (not encrypted)
enable CONFIG_FLASH_ENCRYPTION_ENABLED and CONFIG_NVS_ENCRYPTION
app bulid - flash and monitor by idf.py

You have to generate the encrypted nvs and keys off device.  Encryption in place is not supported for nvs.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/nvs_partition_gen.html#to-generate-encrypted-nvs-partition

@hyundolee27 As mentioned by @negativekelvin, NVS partition must be pre-encrypted before flashing for your case.
For more details please refer to:

Design documentation
Example

Closing this, please feel free to re-open if you still run into any issues.


Hardcoded arguments for "Feature Extraction of DeLF"

Thanks for the implementation!
In the readme, examples are provided of arguments being passed into the (1) train PCA and (2) extract dimension reduced DeLF steps. However, all the values are hardcoded in extract.py. Thus, the steps in the main README are somewhat misleading.
Is there specific resoning for hardcoding the extract parameters, but passing the train parameters?
I feel that it would be quite convenient to pass all extract parameters from cli.

Hi @clungzta,
There is no reason for the hardcoding. you are free to change the extractor.py file using python argparse so the parameters can be delivered via cli.
It would be grateful if you create pr.
Thanks!


0.12.0 doesn't output ssr version

If you just start a fresh vite project and follow the vite-ssr vue documentation. When you run vite-ssr dev or build an ssr version and host it, you will get an empty page source (just an empty #app <div/>)
Tried debugging it but I cannot find the cause. Is this something you can reproduce?

@gijsroge I cannot reproduce it, no. I tried with the repo examples and it works well in both dev and prod. Can you provide a small repo with a reproduction?

@frandiox sorry, when trying to reproduce the issue I forgot to edit the vite config and main.ts like stated in the docs..
So we can probably close this issue as it just works fine when starting a fresh project. However when we upgraded from 0.10.6 to 0.12.0 it broke our ssr output.
I don't expect you to fix our issue, but do you have any tips in trying to debug this?

@gijsroge Ah I see, thanks for debugging it!
That's probably related to this line: https://github.com/frandiox/vite-ssr/blob/master/src/build/utils.ts#L18
I guess we can update that to a regexp and try to keep attributes 🤔

Yeah, sounds like a great idea. No hurry, I'm avoiding the attributes for now.
Thanks for following up!


jenkins_job 60s timeout

Is there a way to change the timeout when blocking for a build to complete?  Also note that even 'though wait_for_completion and stream_job_output are set to true, I do not see job output in the opsworks chef log.
Cookbook version
2.5.0
Chef-client version
12
Platform Details
aws opsworks chef 12 linux ami
Scenario:
[What you are trying to achieve and you can't?]
Steps to Reproduce:
jenkins_job "unit_test" do # where unit_test is a job that runs longer than 60s
stream_job_output true
wait_for_completion true
action :build
end
Expected Result:
job completed
Actual Result:
job fails with error:
Mixlib::ShellOut::CommandTimeout
--------------------------------
Command timed out after 60s:

There doesn't appear to be a way to set the timeout at present and I'm betting most people that use this aren't using the wait_for_completion flags so it's entirely possible it's broken. Moreover, 2.5.0 is a very, very old version.

I bumped my version to 4.2.1 and am still not seeing the output.
This job runs all of the integration tests to validate that jenkins was installed and configured properly - when it errors, the errors are important for troubleshooting.  That's my real feature request since adding "node.override[:jenkins][:executor][:timeout] = 1200" before the call to jenkins_job allows the job enough time to finish.  For me, this is the last step in the recipe, so I didn't need to set it back.


download_model warning

I'm getting a warning when loading a model with faster_whisper.utils.download_model in v1.1.0
from faster_whisper.utils import download_model
download_model('tiny','/tiny')

/usr/local/lib/python3.11/dist-packages/huggingface_hub/file_download.py:834: UserWarning: `local_dir_use_symlinks` parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder as`local_dir`.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.

When running download_model the second time with the same arguments I'm getting an error. Should it detect that the model is in the local cache and not try to download it again? I'm downloading the model to a docker volume which might explain the permission issue.
PermissionError: [Errno 13] Permission denied: '/tiny/.cache/huggingface/download/config.json.lock'
make: *** [Makefile:165: transcript] Error 1

Try older huggingface-hub:
pip install huggingface-hub==0.19.4


Ideology text clips into 8values text for some ideologies

On the canvas image thing, some ideology names are long enough to clip into the "8values" title.

Not sure, how far you've gone into solving this issue, but I'll still propose some solutions:

Reducing labels to short and known versions (e.g: Social Democracy to SocDem, Anarcho-capitalism to ancap, ...).
Moving the 8values bit in a responsive/dynamic way that it won't just sit there

Actually, this bug was resolved recently. I forgot to close the issue, though! Whoops.

Good thing I commented on this then :).


Add --version-range option

Closes #93

This may be useful for catching issues like https://github.com/BurntSushi/termcolor/issues/35, https://github.com/rust-lang/regex/issues/685, https://github.com/rayon-rs/rayon/pull/761#discussion_r428639158, https://github.com/rust-lang/rust-clippy/issues/6324.

--version-range <START>..[END]
    Perform commands on a specified (inclusive) range of Rust versions.

    If the given range is unclosed, the latest stable compiler is treated as the upper bound.

    Note that ranges are always inclusive ranges.

--version-step <NUM>
    Specify the version interval of --version-range.

Note: Ranges are always inclusive ranges. (start..=end)
$ cargo hack check --version-range 1.46..1.47
info: running `cargo +1.46 check` on cargo-hack (1/2)
    Finished dev [unoptimized + debuginfo] target(s) in 0.28s
info: running `cargo +1.47 check` on cargo-hack (2/2)
    Finished dev [unoptimized + debuginfo] target(s) in 0.23s

If the given range is unclosed, the latest stable compiler is treated as the upper bound.
$ cargo hack check --version-range 1.46..
info: running `cargo +1.46 check` on cargo-hack (1/3)
    Finished dev [unoptimized + debuginfo] target(s) in 0.28s
info: running `cargo +1.47 check` on cargo-hack (2/3)
    Finished dev [unoptimized + debuginfo] target(s) in 0.23s
info: running `cargo +1.48 check` on cargo-hack (3/3)
    Finished dev [unoptimized + debuginfo] target(s) in 0.28

You can also specify the version interval by using --version-step. ((start..=end).step_by(step))
$ cargo hack check --version-range 1.45.. --version-step 2
info: running `cargo +1.45 check` on cargo-hack (1/2)
    Finished dev [unoptimized + debuginfo] target(s) in 0.29s
info: running `cargo +1.47 check` on cargo-hack (2/2)
    Finished dev [unoptimized + debuginfo] target(s) in 0.25s

Blocked on Windows CI:
error: --version-range requires rustup 1.23 or leter

:)

bors r+


Fix display name bug for Single Column Table references

Single Column Table expressions (dotted names, with the lhs that's a table), are not supported in the interpreter. In Canvas, they have a subtle bug where the display name set for the resulting type is set to the field type rather than the base table's. This is incorrect, and leads to bugs when the base table was not associated with any child record/tables.

✅ No public API change.


Custom Snackbar Fix

Fixed customShowSnackBar, which was not allowing null titles or messages, and also prevented a lot of the other settings from working - such as borderRadius. Some settings weren't using the correct snackbarConfig either. Now works like showSnackBar, but will all the other available options.

As of latest commit, have reintroduced default styling functionality and fallbacks for developers that don't supply title and message color that were previously missed.

As of latest commit, have reintroduced default styling functionality and fallbacks for developers that don't supply title and message color that were previously missed.

Hey, I'm not going to approve this code. I don't know what changed. It looks like you removed stuff then just added it back.
Please let me know what the exact problem is then i'll fix it. I can't merge in this code given i can't see any value that would be gained by the end user of this package.

Hey, I'm not going to approve this code. I don't know what changed. It looks like you removed stuff then just added it back.
Please let me know what the exact problem is then i'll fix it. I can't merge in this code given i can't see any value that would be gained by the end user of this package.

I understand. This was my first time using GitHub so I made some mistakes in the process. The only relevant lines changed were between 125 and 144. All other changes were just code format changes made accidentally, which has no impact on the actual code.
In the current Stacked Services, showCustomSnackBar can't be called without a title as it produces a 'A non-null String must be provided to a Text widget.' error. This pull request fixes that.

I see. In what scenario will you want to show a snackbar without a title? Maybe i'm missing it.

I see. In what scenario will you want to show a snackbar without a title? Maybe i'm missing it.

If you look at the Material Design page for snackbars https://material.io/components/snackbars, you'll see that none of them have a title. Also, when using .showSnackbar, the title is optional there too.
Limiting what users can build with a custom snackbar doesn't seem correct - especially when it is so inconsequential

is this pull request gonna get merged anytime soon?

is this pull request gonna get merged anytime soon?

No. This should actually be closed, the PR did additional things that I don't want to change. I'll go over the thread when I get time and implement what's required to get the functionality the initial PR was meant for.

No. This should actually be closed, the PR did additional things that I don't want to change. I'll go over the thread when I get time and implement what's required to get the functionality the initial PR was meant for.

I see. In what scenario will you want to show a snackbar without a title? Maybe i'm missing it.

If you look at the Material Design page for snackbars you'll see that none of them have a title. Also, when using .showSnackbar, the title is optional there too.
Limiting what users can build with a custom snackbar doesn't seem correct - especially when it is so inconsequential

@FilledStacks thank you for all the hard work you are putting into stacked_services and stacked.
I wanted to second what @greyatnine said about making the title field optional when using showCustomSnackBar. I'd love to have the option to remove the title and have a more "lean" snackbar. Example: https://material.io/components/snackbars
While it's possible to remove the title with showSnackbar, the borderRadius isn't right, and I'd like to have the flexibility of showCustomSnackBar.
Just wanted to add my support for if/when you get around to reviewing this thread! Thanks again.

I see. In what scenario will you want to show a snackbar without a title? Maybe i'm missing it.

If you look at the Material Design page for snackbars you'll see that none of them have a title. Also, when using .showSnackbar, the title is optional there too.
Limiting what users can build with a custom snackbar doesn't seem correct - especially when it is so inconsequential

@FilledStacks thank you for all the hard work you are putting into stacked_services and stacked.
I wanted to second what @greyatnine said about making the title field optional when using showCustomSnackBar. I'd love to have the option to remove the title and have a more "lean" snackbar. Example: https://material.io/components/snackbars
While it's possible to remove the title with showSnackbar, the borderRadius isn't right, and I'd like to have the flexibility of showCustomSnackBar.
Just wanted to add my support for if/when you get around to reviewing this thread! Thanks again.

@SudoSharma I'll merge this in now review and publish. Should be up in about 30 minutes or so.

@SudoSharma I'll merge this in now review and publish. Should be up in about 30 minutes or so.


Refactor calendar

:globe_with_meridians: Context
As of now, enda is released to its version 0.0.8. We need to push it toward the version 1.0.0. Some steps must be achieved to reach that goal, in terms of cleaning and making the code most trustable.
:book: Need

The file calendar.py needs some improvements. This file contains functions used to retrieve the holidays for several countries, and other ueseful datatimes features, such as the lockdowns. The functions are not that easy to manipulate, and the class Calendar is not very clear.
:ladder: Tasks

[x] Separate countries
[x] Make a factory DP
[x] Add tests

:computer: Technical details

:clipboard: Other

Here is the PR: https://github.com/enercoop/enda/pull/17