[Enhancement] Refuse create table request if checkPersistentIndex failed

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

PersistentIndex is available in version 2.3, but there are many limitations in key columns. For example, key column is not supported as varchar(char) type, and the length of key columns cannot exceed 64 bytes.
In the previous implementation, if we create a primary key table enable PersistentIndex but the restrictions are not met, we will use PrimaryIndex in memory but not PersistentIndex, and primary key table will be create successfully. This may be a bit confusing to the user.
So we will reject the create  table request directly if we find that the restrictions are not met.

run starrocks_fe_unittest

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 3 / 18 (16.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
2
16
12.50%
[1535, 1536, 1537, 1538, 1540, 1541, 1542, 1543, 1546, 1547, 1548, 1549, 1550, 1552]

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
1
2
50.00%
[1754]

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 18 / 25 (72.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
1
3
33.33%
[1754, 1755]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
10
14
71.43%
[1539, 1540, 1546, 1547]

:large_blue_circle:
com/starrocks/alter/Alter.java
7
8
87.50%
[486]

[FE PR Coverage Check]
:disappointed: fail : 13 / 20 (65.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/server/LocalMetastore.java
1
3
33.33%
[1754, 1755]

:large_blue_circle:
com/starrocks/alter/SchemaChangeHandler.java
2
3
66.67%
[1601]

:large_blue_circle:
com/starrocks/catalog/OlapTable.java
10
14
71.43%
[1539, 1540, 1546, 1547]

run starrocks_admit_test

run starrocks_admit_test


Image thumbnail wrong color

When I convert bench.jxl file (from samples) to png the thumbnail color looks wrong.

The original image looks like this:

That's because your thumbnailer doesn't respect the ICC profile of the resulting image. This has nothing to do with jxlatte.


Bug during multivariate time series composing

During solving multivariate time series forecasting the following error arised:
ValueError: Graph has cycle

FEDOT version: current master (4th of June 2022). The same for version 0.5.2 from pip
Code for launch: https://github.com/ITMO-NSS-team/pytsbe/blob/bug/cases/fedot_simple_multivariate.py (branch bug)
Estimated deadline - 10/06/2022

Update: Error Metric evaluation error: Found input variables with inconsistent numbers of samples: [50, 100] occurs during QualityMetric.get_value() launch due to the following reasons:

Validation rules does not cope with "data operation in root" check, for example data_source_ts/22 -> diff filter -> smoothing
When evaluating the in-sample metric in the validation sample, the target in the multimodal data is not correctly defined (it is shorter than the total horizon). Pipeline is correct at the same time


Please add: Better GPT Builder

https://chat.openai.com/g/g-w8wjRexpv-better-gpt-builder
Thank you

Please raise a pull request for the same


Typo on the website

This is funny, but this typo killed a half of my day :)

Regards,

Thanks for reporting this. This typo is now fixed.

You're welcome.
Thanks for infinite-scroll. It's awesome! :D


Evaluate migtissera/Trinity-2-Codestral-22B

There's a v0.2 version that seems to be trained more on general-knowledge dataset https://huggingface.co/migtissera/Trinity-2-Codestral-22B-v0.2
might be worth doing a comparison between previous version and this one


Remove git from installation instructions

If you need the module to just to use it, you do not need git and installing git seems to be an overkill.  OTOH, if you are a developer, you probably do not want your work in progress to be hot-plugged.

Thanks - the non-git instructions make sense; however, I'll add the git instructions back in as an alternative. Use of git in this case is just a convenient, read-only installation method, and not meant for developing the module.

I decided to fully automate the example code for installation via a downloaded ZIP file, so I ended up leaving the git-based instructions removed after all.
However, I noticed that your modified instructions (switch to Expand-Archive) didn't actually work.
Thank you for the contribution, but in the future please make sure that when you modify code examples that they actually work before submitting a PR.


High CPU after selecting and copying 50 columns by 1000 rows

Running qStudio 3.07 on a Macbook Pro with macOS 12.7.5. I launched it with java -jar qstudio.jar. I ran a query that produced about 50 columns and 1,000 rows of data. It worked fine. I then hit Select All then Copy, and pasted into a spreadsheet. That worked as expected.
I heard the fans running on my laptop, and saw that qstudio.jar was using over 100% of one of the cores. That persisted until I quit qStudio a minute or two later. I also noticed the "beachball" when mousing around qStudio, another symptom o high CPU. I found the lines below in the terminal.
I also attach the contents from the terminal at startup. What other diagnostic info could I provide?
Sep 14, 2024 7:23:41 AM com.timestored.qstudio.CommonActions sendQuery
INFO: Send Query->

Startup info
√ /Applications % java -jar qstudio.jar
Sep 14, 2024 7:34:25 AM com.timestored.misc.DynamicClassLoader loadInstances
INFO: Searching for plugins in folder: /Users/richb/qstudio/libs
Sep 14, 2024 7:34:25 AM com.timestored.misc.DynamicClassLoader visitJarFileJavaClasses
INFO: Looking for plugins inside: /Users/richb/qstudio/libs/sqlite-jdbc-<IP_ADDRESS>.jar
Sep 14, 2024 7:34:25 AM com.timestored.misc.DynamicClassLoader loadInstances
INFO: Searching for plugins in folder: /Users/richb/qstudio/libs
Sep 14, 2024 7:34:25 AM com.timestored.misc.DynamicClassLoader visitJarFileJavaClasses
INFO: Looking for plugins inside: /Users/richb/qstudio/libs/sqlite-jdbc-<IP_ADDRESS>.jar
Sep 14, 2024 7:34:25 AM com.timestored.misc.DynamicClassLoader$InstanceFinderVisitor visit
INFO: Found Plugin with correct interface: org.sqlite.JDBC
Sep 14, 2024 7:34:25 AM com.timestored.qstudio.QStudioLauncher main
SEVERE: Could not load a plugin due to Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @40f9161a
/Applications
Sep 14, 2024 7:34:25 AM com.timestored.docs.OpenDocumentsModel addDocument
INFO: addDocument: new 1
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: Starting QStudioLauncher  launch() ###################################
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: version = 3.07
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: current dir = /Applications/.
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: PATH = /Users/richb/.local/bin:/Applications/Tools-Developer/Racket:/Users/richb/.pyenv/shims:/Users/richb/.pyenv/bin:/Users/richb/.deno/bin:/Users/richb/.pyenv/bin:/Users/richb/.nvm/versions/node/v20.9.0/bin:/Users/richb/.cargo/bin:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/usr/libexec:/Applications/Tools-Developer/Racket/bin:/Users/richb/.rvm/bin
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: JAVA_HOME = null
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: java.version =16.0.1
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: os.name =Mac OS X
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: user.home =/Users/richb
Sep 14, 2024 7:34:28 AM com.timestored.qstudio.QStudioLauncher$2 launch
INFO: user.dir =/Applications
Sep 14, 2024 7:34:28 AM com.timestored.connections.ConnectionManager reloadFromPreferences
WARNING: stored conns and current conns disagreed, using stored values
Sep 14, 2024 7:34:28 AM com.timestored.connections.ConnectionManager reloadFromPreferences
WARNING: serverConns = []
Sep 14, 2024 7:34:28 AM com.timestored.connections.ConnectionManager reloadFromPreferences
WARNING: sConns = [ServerConfig{name=\Users\richb\github\TaxFairness\Property_In_Lyme.sqlite, username=, host=localhost, port=0, cstoreType=SQLITE_JDBC, database=jdbc:sqlite:/Users/richb/github/TaxFairness/Property_In_Lyme.sqlite}]
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
Sep 14, 2024 7:34:29 AM com.timestored.qstudio.QStudioFrame <init>
INFO: Starting QStudioFrame Constructor
MODELS = 171.165194
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
 Refreshing from folders / jars.
Sep 14, 2024 7:34:31 AM com.timestored.connections.ConnectionManager statusUpdate
INFO: \Users\richb\github\TaxFairness\Property_In_Lyme.sqlite Connected = true
Sep 14, 2024 7:34:31 AM com.timestored.qstudio.servertree.ServerListPanel refreshGui
INFO: refreshGui
Sep 14, 2024 7:34:32 AM com.timestored.qstudio.model.AdminModel$2 run
INFO: refreshing \Users\richb\github\TaxFairness\Property_In_Lyme.sqlite
Sep 14, 2024 7:34:32 AM com.timestored.qstudio.servertree.ServerListPanel refreshGui
INFO: refreshGui

Note: The answer for #84 ("Copy with headers") solves the original problem: exporting directly to Excel is a better solution. But copying a large number of cells shouldn't take a lot of CPU, so this report still stands.


Cypress test. "Open the task" button.

Motivation and context
Add Cypress test.
How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

Coverage increased (+0.005%) to 70.285% when pulling be6fbf497463be329fb45e3837ac813135d6bee6 on dvkruchinin:dkru/case-45-check-go-to-task-button into c1a11b1de539ca9aca75848a1406a299337e4688 on openvinotoolkit:develop.

Coverage increased (+0.005%) to 70.285% when pulling be6fbf497463be329fb45e3837ac813135d6bee6 on dvkruchinin:dkru/case-45-check-go-to-task-button into c1a11b1de539ca9aca75848a1406a299337e4688 on openvinotoolkit:develop.


Poor cacheability of test task

What happened?
When executing the test task on an IntelliJ plugin on two different machines with the same source code, the task inputs are often different, causing Build Cache misses:

The following task inputs differ:

build/tmp/initializeIntelliJPlugin/coroutines-javaagent.jar

the jar has the same content but its entries have different timestamps (i.e. jar is not build reproducibly)

ideaIC-2023.2-2-withKotlin.xml

this ivy module is generated with a current timestamp: https://github.com/JetBrains/gradle-intellij-plugin/blob/cc828c20fb7b4aba9cb6c190148581efabb10bda/src/main/kotlin/org/jetbrains/intellij/IntelliJIvyDescriptorFileGenerator.kt#L118

classpath.index

in one build this file was not generated, I don't know why

Relevant log output or stack trace
No response
Steps to reproduce
Execute test on different machines with same sources (requires Gradle Enterprise for Build Cache).
Gradle IntelliJ Plugin version
1.17.1
Gradle version
8.6
Operating System
Windows
Link to build, i.e. failing GitHub Action job
No response

Thanks for reporting!

coroutines-javaagent.jar problem is already resolved in 2.0.0-beta9. The file exists now directly in build/ directory.
ideaIC-2023.2-2-withKotlin.xml — XML files are no longer created within the Gradle cache in 2.0 due to the general depndency/repository management refactoring
same about classpath.index files

Could you please give it a try? In terms of any new findings — please file a new issue. Thank you!

@hsz Thanks for the update!
We've observed that the file coroutines-javaagent.jar exists, but they still have different timestamps. It seems that the jars are using a relative path normalization strategy (link), which does take into account timestamps.
Maybe changing them to be considered classpath entries (link) could help here.


Extra bytes being added when serializing to big endian

I have been writing a DNS client in Rust using custom structs to represent the headers and payload:
#[derive(Encode, Decode)]
#[repr(C)]
struct Header {
    pub identification: u16,
    pub packed_second_row: u16, // set to 0x100
    pub qdcount: u16,           // set to 1 since we have 1 question
    pub ancount: u16,           // set to 0 since client doesn't have answers
    pub nscount: u16,           // set to 0
    pub arcount: u16,           // set to 0
}

#[derive(Encode)]
#[repr(C)]
struct Query {
    pub header: Header,
    pub qname: Vec<u8>, // domain name
    pub qtype: u16,     // set to 0x0001 for A records
    pub qclass: u16,    // set to 1 for Internet addresses
}

I craft the query:
fn craft_query(domain: &str) -> Query {
    // TODO: generate identification randomly
    let header = Header {
        identification: 0x304e, // chosen by random dice roll, secure
        packed_second_row: 0x0100,
        qdcount: 0x0001,
        ancount: 0x0000,
        nscount: 0x0000,
        arcount: 0x0000,
    };
    let mut qname: Vec<u8> = Vec::new();
    let split_domain: Vec<&str> = domain.split('.').collect();
    for part in split_domain {
        let l = part.len() as u8;
        qname.push(l);
        qname.extend_from_slice(part.as_bytes());
    }
    qname.push(0x00);
    Query {
        header,
        qname,
        qtype: 0x0001,
        qclass: 0x0001,
    }
}

And then call bincode in to serialize to a Vec<u8> to be sent over the network
    let bincode_config = config::standard()
        .with_big_endian()
        .with_variable_int_encoding();
    let req = craft_query("google.com");
    let mut raw_req = bincode::encode_to_vec(&req, bincode_config).unwrap();
    dbg!("{}", &raw_req);

Now, the dbg! call indicates that in the very very first attribute of the struct, identification is bounded by 0xfb on both ends, ie,
dbg! call prints:
    251,
    48,
    78,
    251,

instead of
    48,
    78,

I am not sure why this is happening. Maybe this is a bug?

You're using .with_variable_int_encoding(); which uses an encoding to reduce the number of bytes to be send: https://docs.rs/bincode/2.0.0-rc.3/bincode/config/struct.Configuration.html#method.with_variable_int_encoding
It is worth mentioning that Bincode only supports its own format, not other formats. If you want to use other formats there are inevitably going to be conflicts with what you're doing.


Align OAE calcination emissions with OAE in general

ie. do not use downscaling, but regional instead.
Also improves the rescue specific plot_map function slightly.

lgtm thanks @coroa


Git release tag

There is no git release tag for the latest version 0.2.28

Hey @acrogenesis, thanks for spotting that. I've just pushed a tag :+1:


[BUG, MRG] Actually fix circular bug this time

Fixes https://github.com/mne-tools/mne-python/issues/9938.

Ok very sorry, I should have checked more carefully and was in too much of a hurry, the previous fix avoided the circular issue but introduced a short-circuit. This one shouldn't give the warning and should work as intended and I wrote comments to hopefully make it easier to understand in the future.

it's however a bit a bad pattern to merge code without tests...
@larsoner I let you merge if you thing it's ok.
@alexrockhill if we could have a test that would be awesome

@alexrockhill if we could have a test that would be awesome

Agreed, any way a unit test could/should have caught this? Maybe we need another test case, or our existing test case wasn't checked for correctness properly?

I'm going to merge this so that we can get 0.24 out the door sooner, but @alexrockhill a test would be appreciated if you can make one in a separate PR!

Will do


remote loggin not found my macbook

I called the following code in appdelegate.
It was working fine until a week or so ago.
I recently updated my MacOS(15.0.1(24A348)) and that seems to be the problem.

Am I the only one experiencing this? @kean

When tested on a team member's macos 14.5 version, it worked fine.
Further testing on another team member's macos 15.0 version showed the same bug.
I can't downgrade my mac so I need a quick fix. @kean

Hey, thanks for reporting it, @winnisx7. I'm upgrading now to test it.

1. Issue with isAutomaticConnectionEnabled
I installed macOS 15, tested it, and found an issue with the recently introduced RemogeLogger.isAutomaticConnectionEnabled option. It doesn't work the first time you launch the app. It includes the Pulse demo app that had this option enabled.
Workarounds:
a) Restart the app with Pulse SDK
b) Turn "Remote Logging" off and on again (you should see the Local Networking privacy prompt)
I fixed .isAutomaticConnectionEnabled in v5.1.2.
2. Issue with new "Local Networking" prompts
There also seems to be an issue with the new "Local Network" permission dialogs in macOS 15. For some reason, they never show up for me. It has been wildly reported https://www.reddit.com/r/MacOS/comments/1fjopdm/something_has_changed_in_sequoia_in_regards_to/, but unfortunately, I haven't caught it earlier. I didn't see this issue when running debug builds on macOS 15, but it might need a bit more work for the App Store builds. I'm investigating.

When I got to the office this morning and woke up my Mac from sleep, I saw a local network permissions alert.
I granted the permissions in the alert and it seems to be working fine.
I don't know if the issue is truly fixed for all users.
I'll go home and test again with another MacBook.
I am using two Macs, one with MacOS version 15.0.1 (24A348) and the other with MacOS15.0 (24A335).
The code we used is the same as before, these two lines
NetworkLogger.enableProxy()
RemoteLogger.shared.enable()


CharSet guidelines do not provide guidance on the DefaultCharSet module attribute

No mention is made of [module: DefaultCharSet(CharSet.Unicode)] as an alternative to explicitly specifying the charset on all DllImports and structs. Is it a valid or preferable alternative? Or recommended against, and why?
https://docs.microsoft.com/en-us/dotnet/standard/native-interop/best-practices#dllimport-attribute-settings
Edit: https://docs.microsoft.com/en-us/dotnet/standard/native-interop/charset is also missing any mention of this attribute.

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

ID: 6ea501d3-d963-c5dc-342d-ee82c92d1850
Version Independent ID: e58f3d16-8083-0efe-0057-e21dbebb262f
Content: Native interoperability best practices - .NET
Content Source: docs/standard/native-interop/best-practices.md
Product: dotnet-fundamentals
GitHub Login: @jkoritzinsky
Microsoft Alias: jekoritz

@jkoritzinsky Can you help with this question?


ValidateSchemaKeyspace Fails

When I run ValidateSchemaKeyspace it fails with the following errors. When I look at the vtctld logs I don't see anything that helps to pinpoint the issue.
Can you offer any assistance for further debug info?

./kvtctl.sh ValidateSchemaKeyspace stitchlabs_prod
2017/04/12 13:36:10 transport: http2Client.notifyError got notified that the client transport was broken connection error: COMPRESSION_ERROR.
E0412 13:36:10.679455   21498 main.go:43] Remote error: rpc error: code = 13 desc = transport is closing
2017/04/12 13:36:10 grpc: addrConn.transportMonitor exits due to: grpc: the connection is closing

My guess is either the topology service, or one of the tablets is unreachable, and that triggers the whole process to fail. ValidateSchemaKeyspace is fairly straightforward: find all the tablets in all shards, and compare their schema to the master. If any difference is found, log the diff as error.
The error reporting in go/vt/wrangler/schema.go is not very good, there is a lot of:
if err := XXX(); err != nil {
return err
}
Which should be:
if err := XXX(a, b); err != nil {
return fmt.Errorf("XXX(%v, %v) failed: %v", a, b, err)
}
and would help your investigation.
Please either send a PR to fix it, or I'll do it at some point...


Encryption fails when private signing key is used

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
crypt4gh encrypt -f test -p user2.pub.pem -s user1.sec.pem
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x613089]

goroutine 1 [running]:
github.com/neicnordic/crypt4gh/keys.ReadPrivateKey({0x6e67e0?, 0xc0000a8068?}, {0x0, 0x0, 0x0})
        /home/runner/work/crypt4gh/crypt4gh/keys/keys.go:97 +0x189
main.readPrivateKey({0x7ffff5c32f48, 0xd})
        /home/runner/work/crypt4gh/crypt4gh/main.go:117 +0x76
main.encryptOp({0x0, 0x0})
        /home/runner/work/crypt4gh/crypt4gh/main.go:321 +0x2ca
main.main()
        /home/runner/work/crypt4gh/crypt4gh/main.go:87 +0x495

Expected behavior
File should be encrypted and signed with users private key (user1.sec.pem )
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

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

Additional context
Add any other context about the problem here.

This is the environment where it failed: https://github.com/neicnordic/sda-dashboard/pull/7/files
Although I can not replicate it with the current crypt4gh master branch.

@jbygdell if we cannot replicate I propose we close this issue.


illegalArgumentException in GUI

java.lang.IllegalArgumentException: Graph can not be null
at automenta.vivisect.dimensionalize.HyperassociativeMap. (HyperassociativeMap.java:129)
at automenta.vivisect.dimensionalize.HyperassociativeMap. (HyperassociativeMap.java:164)
at automenta.vivisect.dimensionalize.HyperassociativeLayout$1. (HyperassociativeLayout.java:47)
at automenta.vivisect.dimensionalize.HyperassociativeLayout.preUpdate (HyperassociativeLayout.java:47)
at automenta.vivisect.graph.GraphDisplays.preUpdate (GraphDisplays.java:44)
at automenta.vivisect.graph.AbstractGraphVis.updateGraph (AbstractGraphVis.java:137)
at automenta.vivisect.graph.AnimatingGraphVis.draw (AnimatingGraphVis.java:51)
at automenta.vivisect.swing.PCanvas.draw (PCanvas.java:167)
at processing.core.PApplet.handleDraw (PApplet.java:2386)
at processing.core.PGraphicsJava2D.requestDraw (PGraphicsJava2D.java:240)
at processing.core.PApplet.run (PApplet.java:2256)
at java.lang.Thread.run (Thread.java:844)

You sure? Parser is in core. I'm investigating now.
On Wed, May 23, 2018, 2:25 PM PtrMan<EMAIL_ADDRESS>wrote:

It is not part of core!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/opennars/opennars/issues/282#issuecomment-391450010,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC5JAoKaNyteUO1tlbETk5U23uA6W2_Lks5t1amVgaJpZM4UK9Br
.

Watch
25
Unstar
124
Fork
36
opennars/opennars
Code
Issues 67
Pull requests 8
Wiki
Insights
Settings
Edit
New issue
illegalArgumentException in GUI #282
Open
TonyLo1 opened this Issue 6 minutes ago · 1 comment
Comments
Assignees
No one—assign yourself
Labels
bug
Projects
None yet
Milestone
No milestone
Notifications
Unsubscribe
You’re receiving notifications because you authored the thread.
2 participants
Lock conversation
Member
TonyLo1 commented 6 minutes ago
java.lang.IllegalArgumentException: Graph can not be null
at automenta.vivisect.dimensionalize.HyperassociativeMap. (HyperassociativeMap.java:129)
at automenta.vivisect.dimensionalize.HyperassociativeMap. (HyperassociativeMap.java:164)
at automenta.vivisect.dimensionalize.HyperassociativeLayout$1. (HyperassociativeLayout.java:47)
at automenta.vivisect.dimensionalize.HyperassociativeLayout.preUpdate (HyperassociativeLayout.java:47)
at automenta.vivisect.graph.GraphDisplays.preUpdate (GraphDisplays.java:44)
at automenta.vivisect.graph.AbstractGraphVis.updateGraph (AbstractGraphVis.java:137)
at automenta.vivisect.graph.AnimatingGraphVis.draw (AnimatingGraphVis.java:51)
at automenta.vivisect.swing.PCanvas.draw (PCanvas.java:167)
at processing.core.PApplet.handleDraw (PApplet.java:2386)
at processing.core.PGraphicsJava2D.requestDraw (PGraphicsJava2D.java:240)
at processing.core.PApplet.run (PApplet.java:2256)
at java.lang.Thread.run (Thread.java:844)
TonyLo1 added the bug label 6 minutes ago
Member
PtrMan commented 3 minutes ago
It is not part of core!

You're right this should be in opennars-gui - I'll move and close this issue here

Please remove your spam and this comment too


Memory leak

The following code produces a memory leak. Increasing concurrency or decreasing the delay will speed it up, and vice versa-- but the memory still climbs and never comes back down. Try letting it run for an hour while looking at "htop" (or top, or a graphical memory profiler). I tried this with Node 0.10, 0.11, 0.12, in Mac and Linux. There are not stack issues, dangling variables, or closure issues as far as I can tell. I'm using Needle 0.7.11, the latest version as of this writing.
var needle = require('needle');
var concurrency = 1;

//----- MAIN -------

var go = function() {
  needle.request('GET', 'https://google.com/', null, {}, function(err, res){
    console.log(res.statusCode);
    setTimeout(go,1000);
  });
}

for(var i=0;i<concurrency;i++) go();

FYI, if you think the for loop at the bottom, or the setTimeout is the issue, it's not-- you can just replace "needle.request" with "setTimeout" and the memory leak goes away (no change to the rest of the code)

Update: adding {agent: false} to the options does fix it. I've also verified this leak in io.js, with agent=false.

Yikes. Will take a look at this in the next few days. Thanks for reporting!

Update: I've proved the bug a little more rigorously. add the following line and run with node's --expose-gc option.
setInterval(global.gc, 10*1000);

The memory will still climb, slower, but it will not stop climbing if you let it go for more than a few minutes.
Replacing needle with a raw call to http.request, and using the garbage collection mechanism above, stabilizes after a minute and never climbs.

Hi @GeoffreyPlitt,
Stabilizes after a minute on how much rss/heap mem usage?  .I've been trying both the raw http.request and the agent = false trick and I get very similar results. The global.gc trick does seem to help, though. How much concurrency/delay are you testing with?

I think I found it. Please take a look at the rc branch and see if you get the same behaviour. There are also a few other things in it, but the main thing was to stop using anonymous functions, and make Needle a real object (e.g. new Needle()) instead of it just being a plain one.

Good stuff. I ran my test in both master and rc and you're right, on rc the memory stopped growing. Good fixes!

Cool. I'm closing this one given that I'm merging the branch right away.

Can you point me to documentation about new-vs-plain objects cause memory leaks?

This might help. Also, Google has a great article on writing good JS code.


Required env vars.

Enforces required env vars while testing. Will use defined env vars from local environment as well.

This is how it works for a user: https://github.com/fnproject/fn/pull/285/files#diff-e026c1b05ec782c09c02bbf147e5e811


Upgrade PyTorch to 2.0.0

https://github.com/pytorch/pytorch/releases/tag/v2.0.0

Codecov Report

Merging #691 (3ab3d5a) into main (4033daa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #691   +/-   ##
=======================================
  Coverage   90.14%   90.14%
=======================================
  Files          80       80
  Lines        4625     4625
  Branches      848      848
=======================================
  Hits         4169     4169
  Misses        259      259
  Partials      197      197

Flag
Coverage Δ

unittests
90.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


AICamera to ObsEdit to StandardCamera to ObsEdit to Suggestions and back lands on AICamera

Describe the bug
Trying to add more photos to an obs after having been in the AICamera seems to return you to the AICamera from Suggestions.
To Reproduce
Steps to reproduce the behavior:

Enter the AICamera and take a picture
Choose a taxon on Suggestions
On ObsEdit, tap the "+" button and open the StandardCamera
Take a picture to return to ObsEdit
Edit the taxon to enter Suggestions
On Suggestions, tap the back button in the upper left
You land in the AICamera

Expected behavior
When you tap back from Suggestions you should land on ObsEdit.
Context (please complete the following information):

Device: iPhone SE (3rd generation
OS: iOS 17.5.1
App version: 0.33.0 (95)

Tried to replicate using the steps above (latest build is 0.33.1+96) and I'm landing back on ObsEdit as expected.

Can't replicate with these steps either.


Code example split in two

Issue description
The code block in the How to: Set Up Notification of Binding Updates article is split in two, as can be seen in the screenshot below:

.NET or .NET Framework
Check the .NET target framework(s) being used, and include the version number(s). Put an x between the [ ] to check it.

[ ] .NET (5 or Core)
[X] .NET Framework

Technology
Check the .NET target framework(s) being used, and include the version number(s). Put an x between the [ ] to check it.

[X] WPF
[ ] Windows Forms

.NET information
If using the .NET SDK or .NET Core SDK, include dotnet --info output. If using .NET Framework without the .NET Core SDK, include info from Visual Studio's Help > About Microsoft Visual Studio dialog.

Thank you for reporting this. I have a running list at #53

Duplicate of #53


Use try-with-resources for all db connections

None of the db connections in this class was closed properly (in a finally-block)

you still didn't close in finally

but it did not implement the AutoCloseable interface, right? So, i suggest we merge the bigger refactory after deploy to prod subtask is ready.


Foundation and Sass stops grunt

Hi, when generating a scaffold with Foundation using Sass it gives an error when running grunt.
I fixed it by changing the following inside my generated main.scss
@import "../bower_components/foundation/scss/foundation/components/switch";
to
@import "../bower_components/foundation/scss/foundation/components/switches";
Hope this is helpful...

Thanks for reporting this. Could you please post the contents of your .yo-rc.json file (you can remove any user and password info). That will help me debug this much easier.
*note: yo-rc file is a hidden file in the root directory of your generated project. You may need to enable hidden files in your file browser to see it

Hey, here's the latest one I generated. Yeogurt is awesome by the way...
{
  "generator-yeogurt": {
    "config": {
      "projectName": "",
      "versionControl": "git",
      "useServer": false,
      "singlePageApplication": false,
      "htmlOption": "html",
      "jsOption": "browserify",
      "cssOption": "sass",
      "sassSyntax": "scss",
      "useBourbon": false,
      "cssFramework": "foundation",
      "useGA": true,
      "jshint": true,
      "extras": [],
      "useJsdoc": false,
      "useKss": false,
      "useDashboard": false,
      "useTesting": false,
      "useFTP": false
    },
    "version": "0.12.3"
  }
}

Awesome, thanks!
Looks like you are using an outdated version: v0.12.3 vs v0.13.6 (latest)
Out-of-the-box support for Foundation has since been removed and a Guide has been set up in it's place. This is due to the directory structures and file names of bower components changing very often (hence the switch -> switches bug you found). The latest generator now uses grunt-wiredep to handle this as it will be more consistent at avoiding these type of bugs going forward.
I would suggest upgrading yeogurt to avoid this issue next time.
Thanks again for reporting this. If anyone else runs into this issue, they will be able to find this solution through an easy issue search.


Can't get demo to run

Hey,
I've spent sometime working on working with the library, it is great! But there are changes I want to make, make it full screen, change how participants come in and add other types of "data" types like tables etc. I can't seem to do so with the in place library.
I cloned the code and tried to build following your instructions, but nothing is working. Can someone help just get this set up so I can work on it and start using it please.
I tried using yarn build on:
yarn run v1.22.4
$ cross-env NODE_ENV=production webpack --progress --hide-modules && cp index.html dist/
Hash: 3e41579e8e3973583595
Version: webpack 4.43.0
Time: 5956ms
Built at: 05/05/2020 10:44:44 PM
 1 asset
Entrypoint main = build.js

ERROR in ./src/main.js
Module not found: Error: Can't resolve './../../dist/index' in '/Users/kieranmccarthy/WebProjects/Chefley/frontend2/vue-beautiful-chat/demo/src'
 @ ./src/main.js 3:0-38 8:8-12
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

yarn run v1.22.4
$ cross-env NODE_ENV=development webpack-dev-server --open --hot
✖ ｢wdm｣: Hash: 643a12dd7a2e9971cff9
Version: webpack 4.43.0
Time: 4238ms
Built at: 05/05/2020 11:07:23 PM
   Asset     Size  Chunks                    Chunk Names
build.js  2.1 MiB    main  [emitted]  [big]  main
Entrypoint main [big] = build.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 (webpack)/hot/dev-server.js ./src/main.js 52 bytes {main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/vue-js-modal/dist/index.js] 27 KiB {main} [built]
[./node_modules/vue/dist/vue.esm.js] 319 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 4.29 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {main} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {main} [built]
[./src/main.js] 292 bytes {main} [built]
    + 65 hidden modules

ERROR in ./src/main.js
Module not found: Error: Can't resolve './../../dist/index' in '/Users/kieranmccarthy/WebProjects/Chefley/frontend2/vue-beautiful-chat/demo/src'
 @ ./src/main.js 3:0-38 8:8-12

Hi,you need build the project,and then you will find the dist directory. So, you should do two steps: npm install and npm run build which do under the path of souce. After this , you go to the path of the demo, do npm install and npm run dev .

Hello everybody!
Let me tell you my setup:
git clone git@github.com:mattmezza/vue-beautiful-chat.git
cd vue-beautiful-chat
yarn install  # this installs the package dependencies
yarn watch  # this watches files to continuously compile them

Open a new shell in the same folder
cd demo
yarn install # this installs the demo dependencies
yarn dev # this starts the dev server

This should give you a setup for quickly hacking with the library. I will try to clarify the readme with this info too.

@SmiffyKMc did you manage to make it fullscreen? If so, mind sharing what changes you made?
It would be nice if there was an easy built-in way to do this. I want to adapt this package to a "Sitebot" template.. basically a fullscreen chat bot


Ignore filed message.

Hi,
I keep getting the pop up in the bottom right corner.
There used to be commands listed but I manually ran them. They are now not showing up any longer but the Ignored files found message still appears as shown below.
Thank you

Do you include several projects inside the same window? If so, I think this is a duplicate of #359. Could you try opening the included projects in their own windows instead, and see if you are able to list the ignored files that are tracked?

Thanks Julien.
What do you mean by inside the same window?
On Wed, May 31, 2017 at 12:16 Julien Falque<EMAIL_ADDRESS>wrote:

Do you include several projects inside the same window? If so, I think
this is a duplicate of #359
https://github.com/hsz/idea-gitignore/issues/359. Could you try opening
the included projects in their own windows instead, and see if you are able
to list the ignored files that are tracked?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hsz/idea-gitignore/issues/370#issuecomment-305288973,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKg4K98wMN8kUDHROtWb0yomw6i8AeCRks5r_byKgaJpZM4Nr1rg
.

I'm talking about the fact that when you are on a project and you open another one (via File > Open...), you can add the second project to the project view of the first window, so you get two projects inside a single window. This is how I managed to get the issue I reported, which may be the same here, hence my question.

Thanks but this is not what I am getting the error. I am only opening one
project.
On Wed, May 31, 2017 at 12:31 PM, Julien Falque<EMAIL_ADDRESS>wrote:

I'm talking about the fact that when you are on a project and you open
another one (via File > Open...), you can add the second project to
the project view of the first window, so you get two projects inside a
single window. This is how I managed to get the issue I reported, which may
be the same here, hence my question.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hsz/idea-gitignore/issues/370#issuecomment-305292617,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKg4Kybo3AXw0fUdouk8nQJ5WzPKVZL3ks5r_b_4gaJpZM4Nr1rg
.

+1 for this.  I have exactly the same issue, the popup appears every time on startup, but the dialog only shows the root dir of my project, with no details.  I haven't got multiple projects open, and in fact I don't even have that option in the Open Project dialog (despite being on PHPS 2017.2).

Thanks guys for the report!
To keep it clean - I'll mark it as a duplicate of #400.


Hi! When I use examples.py for lannguage translation, an error occured in def len_filter if I use all train_datasets. But when I use part of train_datasets, it works well. Could you please tell me why?

Hi!
When I use examples.py for lannguage translation, an error occured in 'def len_filter' if I use all trainning datasets. But when I use part of trainning datasets, it works well. Could you please tell me why?
The AttributeError is like this:
File "train_seq2seq.py", line 81, in len_filter
return len(example.src) <= max_len and len(example.tgt) <= max_len
AttributeError: 'Example' object has no attribute 'tgt'
Thank you!

@Decalogue You could pull develop and try implementing your script again. Seq2seqDataset has been introduced after #163. However things might be a little unstable as develop  is pushed to weekly so I'd recommend you either create a fork or wait until the next alpha release v0.1.7.

@pskrunner14 Thank you so much!


Switch DGMulti solver to Matrix{SVector} storage

Continue #1952. I chose this approach as it can ultimately solve my issue #2108. I also have no idea which option - VectorOfArray or Matrix{SVector} - would be better.

Wait for update from Jesse.


problem positioning the menu dropdown on ubuntu

We use the embedded MSAViewer. When I run the app on Ubuntu, the viewer's dropdown menus appear far on the bottom of the page rather than next to the menu name - see attached.

I had a similar issue with MSAs embeded in a MediaWiki page.
I "fixed" it by changing _showMenu so that left is calculated adding window.scrollX - 140 and top is calculated adding window.scrollY - 140.
This "worked" in both Chromium and Firefox in that the menus is now positioned sensibly. However, I don't see why the menu is offset 140 px along both axes. The scrolling was due to grabbing the position of the box relative to the viewport, but then setting it relative to the page.
Hopefully this inspires you to find a solution which doesn't kludge just subtracting 140 from these values, if so - please do share it here.


Precompilation failed; has_orc_v1 not defined

I'm running Julia 1.9.1. In a fresh environment, add Enzyme fails.
(@v1.9) pkg> activate test
Activating new project at `C:\Users\PhilipOlhager\test`

(test) pkg> add Enzyme
[...]
Precompiling project...
    ✗ Enzyme
    9 dependencies successfully precompiled in 30 seconds. 11 already precompiled.
    1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

The full stacktrace when running using Enzyme is
julia> using Enzyme
[ Info: Precompiling Enzyme [7da242da-08ed-463a-9acd-ee780be4f1d9]
ERROR: LoadError: UndefVarError: `has_orc_v1` not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
  @ Base .\Base.jl:31
[2] top-level scope
  @ C:\Users\PhilipOlhager\.julia\packages\Enzyme\0SYwj\src\compiler.jl:41
[3] include(mod::Module, _path::String)
  @ Base .\Base.jl:457
[4] include(x::String)
  @ Enzyme C:\Users\PhilipOlhager\.julia\packages\Enzyme\0SYwj\src\Enzyme.jl:1
[5] top-level scope
  @ C:\Users\PhilipOlhager\.julia\packages\Enzyme\0SYwj\src\Enzyme.jl:44
[6] include
  @ .\Base.jl:457 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
  @ Base .\loading.jl:2045
[8] top-level scope
  @ stdin:3
in expression starting at C:\Users\PhilipOlhager\.julia\packages\Enzyme\0SYwj\src\compiler.jl:1
in expression starting at C:\Users\PhilipOlhager\.julia\packages\Enzyme\0SYwj\src\Enzyme.jl:1
 in expression starting at stdin:3
ERROR: Failed to precompile Enzyme [7da242da-08ed-463a-9acd-ee780be4f1d9] to "C:\\Users\\PhilipOlhager\\.julia\\compiled\\v1.9\\Enzyme\\jl_12D2.tmp".
Stacktrace:
[1] error(s::String)
  @ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
  @ Base .\loading.jl:2296
[3] compilecache
  @ .\loading.jl:2163 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
  @ Base .\loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
  @ Base .\loading.jl:1660
[6] macro expansion
  @ .\loading.jl:1648 [inlined]
[7] macro expansion
  @ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
  @ Base .\loading.jl:1611

This also happens when using packages which have Enzyme as a (sub)-dependency. It also happens on my Ubuntu WSL.

What version of Enzyme are you using?
Can you also show the output of ] st. That function is from LLVM.jl, and it looks like we call LLVM.has_orc_v1 explicitly

Version 0.11.7.
(test) pkg> st
Status `C:\Users\PhilipOlhager\test\Project.toml`
    [7da242da] Enzyme v0.11.7

https://github.com/maleadt/LLVM.jl/pull/360
In particular:
https://github.com/maleadt/LLVM.jl/pull/360/commits/64438eccd8d9984c4410f835faef09dcf8d887aa

Sorry, I forgot that I removed those accessors. Let's yank the release.


allow options.content to be a function returning an element (not HTML string) called on each open

Similar to https://github.com/HubSpot/drop/commit/195fa0e3f45ca5a3774423abbce483d6ce519cef, I'd like the option to supply Drop with a content-generating function that returns an HTMLElement (rather than a string that is assigned to @content.innerHTML). The main advantage I hope to gain here is that event handlers & other data on the original content element will be preserved when passed to Drop.

Seems reasonable. I'm happy to look at a PR if you want to whip something up.

cool, see #63


make merger faster

See https://inspirehep.zulipchat.com/#narrow/stream/122202-devel/topic/slow.20merger
The merger is currently slow when performing rootless (root={}) merges of large records, causing requests to time out. This is mostly due to the deduplication of patches, which has been introduced in https://github.com/inveniosoftware-contrib/json-merger/commit/594107d4553444b8c9264ed1d082dd7b5ea3ce3c as a fix for duplicate remove patches and is quadratic because dicts/sets can't be used due to dealing with unhashable elements (dicts). As the underlying issue seems to affect only remove patches, we might be able to deduplicate only those instead of the full list, or if that's complicated first check if there are any remove patches to decide whether to deduplicate them or not.
Note that this requires reverting  https://github.com/inveniosoftware-contrib/json-merger/pull/72 as we're currently using an earlier version in prod due to issues with that PR (I couldn't find a tracking issue, @MJedr can you provide more info?)

Here is the issue https://github.com/inspirehep/inspirehep/issues/1841#issuecomment-847887817. As far as I remember the problem was that in the newest version of json-merger we did a change which is taking the value even if it's empty (after processing by graph builder), so for example we had raw_affiliations empty in many workflows:
ipdb> root['authors'][0]['raw_affiliations']
[{u'value': u'Department of Physics, Brown University, Providence, RI, 02912, USA'}]
ipdb> head['authors'][0]['raw_affiliations']
[{u'value': u'Department of Physics, Brown University, 02912 Providence, USA'}]
ipdb> update['authors'][0]['raw_affiliations']
[{u'value': u'Department of Physics, Brown University, Providence, RI, 02912, USA'}]
ipdb> merged['authors'][0]['raw_affiliations']
[]

TECH NOTES

Take out remove patches to the other list here (the patch is given as a first element of the unified_patches list) and dedupe them. Then join the list of the deduplicated remove patches and all the other patches.


Integrate IVLE login

Features

The login button now connects to the IVLE API
Once logged in, the username is fetched via a saga

Dev notes

The default port for yarn start has been changed to 80. This allows the callback url given to IVLE to work correctly. Since most OS's require root to serve at port 80, you will probably have to sudo with yarn start.
The IVLE LAPI token is saved at src/utils/secrets.ts. Add yours, then set git's assume-unchanged on it.
Username fetching will not work on most browsers. This is because the IVLE api does not set an appropriate allow-control-allow-origin property, so requests from the browser that are from a domain that is not nus.edu.sg will fail.
To bypass this, set an appropriate flag on the chromium browser and view the site through there. Instructions from SO here.
As discussed, actions sent to and taken by saga should be prefixed with fetch (e.g fetchUsername) where appropriate, and actions dispatched by saga to change the state are prefixed with set (e.g. setUsername)

Example

@rrtheonlyone Let me know what you think. Right now, the plan is to fetch content from our news tab from IVLE's announcements, and our materials from IVLE's files. With this PR, there is no check if a student takes CS1101S or not. I'm not familiar with the IVLE API docs (in fact, I'm not sure I used the right one, since the docs for this say there's a new API, but I couldn't find that new one), so you'll have to guide us on this one.


US Core contains invalid fhirpath expressions

Is your feature request related to a problem? Please describe.
2 of the fhirpath expressions in us core 4.0 have issues with repeating elements:

Condition: https://jira.hl7.org/browse/FHIR-36336
Provenance: https://jira.hl7.org/browse/FHIR-36328

Describe the solution you'd like
We should patch the fhirpath expressions so that they work properly
Describe alternatives you've considered
Acceptance Criteria

GIVEN a server configured with our us-core jar
AND a Condition resource with multiple category elements
AND it claims conformance to http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition
WHEN create or $validate is called with that resource
THEN it either succeeds or fails with a client error (no server error)

GIVEN a server configured with our us-core jar
AND a Provenance resource with multiple agent elements (and at least one with agent.onBehalfOf)
AND it claims conformance to http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance
WHEN create or $validate is called with that resource
THEN it either succeeds or fails with a client error (no server error)

Additional context

verified that with both Condition and Provenance work according to the acceptance criteria. Closing issue


Fix font query result with multiple comma-separated values

This PR resolves #1083

Please add if (OS.IsLinux()) to only do so on Linux.

Please add if (OS.IsLinux()) to only do so on Linux.

It's already added in the outer scope.


No function type checking

TypeScript Version:  2.1.5
Code
export type ModFn = (name: string) => void;

/* OR
export interface ModFn {
  (name: string): void;
}
*/

export default function(): ModFn {
  return function(): number {
    return 0;
  };
}

Expected behavior:
error TS2322: Type '() => number' is not assignable to type 'ModFn'.

Actual behavior:
No errors.

See https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-functions-with-fewer-parameters-assignable-to-functions-that-take-more-parameters and https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-functions-returning-non-void-assignable-to-function-returning-void.

Thanks for explanation,
It may looks strange from point of view C programmer (and Haskell programmer too), but I think this is correct behavior.


[DO NOT MERGE] Start work on a new API for PersistentHistory

The ChangeScope design from #83 provides more flexibility and an easier-to-use API.


[Market] File double order should cancel the expiring extension

Elder way
Like File A's expired_bn = 100, now is bn = 120. When I re-order File A, I should pay the expired 20 blocks money
Proposal
Case shows above, when I re-order File A, I do not need pay anything cause File A may not placed by me before.

@ysh0566

#670


Missing doc/source/conf.py in pyasn1-0.2.3.tar.gz hosted by pypi

When trying to build the documentation using the source from pypi's pyasn1-0.2.3.tar.gz, it fails as follows because doc/source/conf.py is missing from the tarball:
$ python ./setup.py build_sphinx
running build_sphinx
creating ~/pyasn1-0.2.3/build
creating ~/pyasn1-0.2.3/build/sphinx
creating ~/pyasn1-0.2.3/build/sphinx/doctrees
creating ~/pyasn1-0.2.3/build/sphinx/html
Running Sphinx v1.3.1
error: [Errno 2] No such file or directory: 'conf.py'

Will you include doc/source/conf.py in the future? Thanks!

Thank you for raising this issue!
Missing config added in c6dec14638d656fe136da3109f4a9478831b03eb


python311Packages.opower: 0.0.34 -> 0.0.35

Diff: https://github.com/tronikos/opower/compare/refs/tags/v0.0.34...v0.0.35
Changelog: https://github.com/tronikos/opower/releases/tag/v0.0.35
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 257912 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.opower
python310Packages.opower
python310Packages.opower.dist
python311Packages.opower
python311Packages.opower.dist


Tests fail when php-language-server is pulled in as a dependenc

When php-language-server has vendor in its path (e.g. ~/vscode-php-intellisense/vendor/felixfbecker/language-server), many tests fail.

what tests exactly? what are the errors?

Run from commit 08cf1a3fd7b6dd97bf28a4fff5603effe313edc7:
PHPUnit 5.7.19 by Sebastian Bergmann and contributors.

........................................E......................  63 / 154 ( 40%)
.......E..............................................EEEEEEE.. 126 / 154 ( 81%)
EEEEEEEEEE..EE.EE...........                                    154 / 154 (100%)

Time: 6.83 seconds, Memory: 239.41MB

There were 23 errors:

1) LanguageServer\Tests\Server\TextDocument\Definition\GlobalTest::testDefinitionEmptyResult
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/Definition/GlobalTest.php:28

2) LanguageServer\Tests\Server\TextDocument\Definition\NamespacedTest::testDefinitionEmptyResult
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/Definition/GlobalTest.php:28

3) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForClassLike
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:21

4) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForClassConstants
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:34

5) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForConstants
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:47

6) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForStaticMethods
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:60

7) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForStaticProperties
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:73

8) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForMethods
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:86

9) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForProperties
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:99

10) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForFunctions
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:143

11) LanguageServer\Tests\Server\TextDocument\References\GlobalTest::testReferencesForReference
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:159

12) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForNamespaces
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/NamespacedTest.php:30

13) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForClassLike
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:21

14) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForClassConstants
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:34

15) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForConstants
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:47

16) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForStaticMethods
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:60

17) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForStaticProperties
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:73

18) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForMethods
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:86

19) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForProperties
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:99

20) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForFunctions
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:143

21) LanguageServer\Tests\Server\TextDocument\References\NamespacedTest::testReferencesForReference
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/TextDocument/References/GlobalTest.php:159

22) LanguageServer\Tests\Server\Workspace\SymbolTest::testEmptyQueryReturnsAllSymbols
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/Workspace/SymbolTest.php:28

23) LanguageServer\Tests\Server\Workspace\SymbolTest::testQueryFiltersResults
LogicException: There were no more events in the loop. This promise will never be fulfilled.

/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/vendor/sabre/event/lib/Promise.php:180
/repos/vscode-php-intellisense/vendor/felixfbecker/language-server/tests/Server/Workspace/SymbolTest.php:72

ERRORS!
Tests: 154, Assertions: 176, Errors: 23.

We exclude certain results from dependencies, so this is expected


Web Problem

Not working on web Can i kow anything we have to do to run on web

Failed to establish SSH connection: UnimplementedError: Native socket is not supported on web

Ssh doesn't work on web by default.
Consider making a quick web socket and use this
https://pub.dev/packages/web_socket_channel


Refactor "diagnostics" into "findings".

This change addresses https://github.com/apple/swift-syntax/pull/309 and https://github.com/apple/swift-syntax/pull/325, which split SwiftSyntaxParser into its own module and then removed the DiagnosticEngine APIs (so only the Diagnostic type remains as the way diagnostics from the parser are sent back to the caller).
Rather than remain coupled to swift-syntax's Diagnostic type, this change creates a similar Finding type (and related types) to describe the "lint findings" that tree-based rules, the pretty-printer, and the whitespace linter encounter during
formatting/linting.
This Finding type is the currency type for these kinds of findings/diagnostics emitted by the formatter API layer. The
swift-format frontend tool now adopts DiagnosticsEngine from https://github.com/apple/swift-tools-support-core to manage and print these, but other clients using the API could use something different entirely. Since the usage of TSC is limited to the executable, API users don't have to take on a large and mostly unrelated dependency.
There are still some opportunities for renaming here -- mainly replacing instances of diagnose in the internal code with emitFinding or something similar -- but I'll leave that as future cleanup.

Tested against swift-DEVELOPMENT-SNAPSHOT-2021-01-28-a:
Test Suite 'All tests' passed at 2021-11-04 15:53:21.029.
	 Executed 578 tests, with 0 failures (0 unexpected) in 11.055 (11.084) seconds

cc @dylansturg


tcomb-form or something like it for mercury?

As per subject is there an alternative, reason mercury cannot do it, better way?

There's no reason this can't be done with mercury. If you write it be sure to add it to the Wiki.

There is https://github.com/Matt-Esch/virtual-form


Add install_requires block in setup.py to make sure correct dependencies get resolved

I'm using the following command to install pyracing:
› pip install -r requirements.txt
Collecting git+https://github.com/Esterni/pyracing.git@cd25239999f9d1b25705f0272ae5bfbe97f07910 (from -r requirements.txt (line 1))
  Cloning https://github.com/Esterni/pyracing.git (to revision cd25239999f9d1b25705f0272ae5bfbe97f07910) to /tmp/pip-req-build-ufq91ix0
  Running command git clone -q https://github.com/Esterni/pyracing.git /tmp/pip-req-build-ufq91ix0
Building wheels for collected packages: pyracing
  Building wheel for pyracing (setup.py) ... done
  Created wheel for pyracing: filename=pyracing-0.1.0-py3-none-any.whl size=25015 sha256=5bb04c533e242ad0c5726e46b69a38167fbfde1c61b5608474206c3d3e62e9e0
  Stored in directory: /home/mjholler/.cache/pip/wheels/d5/e5/7b/11e8002ae3fcd21e6c5569eaa863a049e529a956b481d3a7de
Successfully built pyracing
Installing collected packages: pyracing
Successfully installed pyracing-0.1.0

Once installed, I try to use it like so:
(venv)
iracing-stats/ on master
› python
Python 3.8.0 (default, Apr 22 2020, 12:03:58)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyracing
>>> from pyracing import client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mjholler/Git/mike.holler/iracing-stats/venv/lib/python3.8/site-packages/pyracing/client.py", line 8, in <module>
    import httpx
ModuleNotFoundError: No module named 'httpx'

You can see that I do not have the proper dependency installed. I could do pip install httpx=<version>, but I do not know what the recommended version is, and most python libraries handle this by adding an install_requires block to setup.py.
Here is an example of what that might look like:
install_requires=[
    "httpx>=0.13"
]

I am only using httpx as an example here because of the error I got. I do not know whether this is comprehensive, or even the correct version. That's why I've not submitted a pull request.

In the meantime, installing the latest version of httpx is what I would recommend. As far as I know, we're using the most recent version of all the modules currently in use with pyracing.

You can also pip install . if you have your current directory set to the root folder of the cloned repo. Then when any changes are made you can run pip install . --upgrade to ensure tests are using the changes.


Fix: onChange is not called for tap when on Android

This pull request fixes #366
The solution is to:

indicate the user action as a source of event depending on the current sliding status
Having the fromUser set to fixed value of false was causing the event to be recognized as avoidable.
always send the onChange event no matter if fromUser is set
This check is now removed as it was found to be redundant and could introduce conflicts for the sliding vs taping.

Please see below presentation of the working fix:

CC: @Hellhiem

@BartoszKlonowski @Hellhiem
when will a new version be released with this pr?

@pdaus1405 I still have some of the fixes waiting to be merged, but the v4.2.2 will be published not later than the end of this week (Friday).


STOR-1819: Add manifest with OCP specific test config

The LUN stress test finished under 10 minutes few times, adding 20 minutes as a buffer.
cc @openshift/storage

/label px-approved
/label docs-approved
/label qe-approved
this is not user facing change


activity: feed endpoints

This adds two endpoints specifically for the activity tab with pagination.
/activity/feed/init/{count}.json gives latest items limited by count for each tab
/activity/feed/{type}/{count}/{start}?.json

count: @ud representing number of items you wish to receive
start: @ud or @da optional parameter, will only get events before this time
type: all | mentions | replies

all: any post, reply, dm, or dm reply that I was notified for
mentions: any message that mentions me
threads: any replies for which I was notified for

Also updates the add update to include source and the stringified form of source.
Fixes TLON-2036
PR Checklist

[X] Includes changes to desk files
[X] Describes how you tested the PR locally (test ship vs livenet)
[ ] If a new feature, includes automated tests
[X] Comments added anywhere logic may be confusing without context

@Fang- since you're afk packing and I just implemented what you commented on going to take that as soft approval


how to install with pip?

Checklist

[x] I have searched the issues.
[X] I have searched the docs.

❓ Questions and Help
pip install etna
ERROR: Could not find a version that satisfies the requirement etna (from versions: none)
ERROR: No matching distribution found for etna

found answer. python 3.10 is not supported...


gpSP

I would like to know if I can put the gpSP emulator as the default for GBA on the emulationstation, without always having to enter Retroarch. sorry for the mistakes, i'm brazilian...
RG351p

I will be including gpsp as a selectable emulator in Emulationstation per ticket #217 in the next update.  It should be out later today or tomorrow.  Stay tuned.

I will be including gpsp as a selectable emulator in Emulationstation per ticket #217 in the next update.  It should be out later today or tomorrow.  Stay tuned.


MGS2/MGS3: added patches to disable background input (KB/M only)

Fixes #27
Seems the game already had code to disable inputs when in background, but a variable needed for it would only be setup if game was in fullscreen mode, added a patch to remove that check & also patched out ShowWindow & SetFullscreenState calls that would have been ran because the check was removed, otherwise those would interfere with windowed mode.
Looks like controller input doesn't check this same variable though so this only affects keyboard/mouse atm, maybe later on could look into where game uses XInput and add a check for the same variable there too.
Tested with MGS2/3, seems to work fine with both, sigs seem to match with MG1/2 but haven't checked that yet.

Seems to work fine in MG1/MG2 as well.


Update raw-event-metrics.md

🚀 Deployed on https://66ff3144537e8d609af92cd0--cozy-fox-0defec.netlify.app


ext: add extension options

adding more and more options to the popup view is not sustainable. instead, use the built-in extension setting support.
references:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Options_pages
https://github.com/mdn/webextensions-examples/tree/main/favourite-colour

Nice, some minor ui stuff, look into them if you want.

extra spacing between leave and settings, just like between name and join
can you use our special font for the settings page? doesnt look like its in use now
instead of "open settings", maybe just settings. also maybe of those "this button will open another page"-icon, you probably know what i mean. cannot take screenshot right now. an arrow going out from inside a square.

i think i prefer "open settings" because it's a verb like the other buttons. i'll fix the other things though, thanks!

here's the updated popup. i went with google material icons (well, icon) because i don't know any better.

i can't get rid of the bar around it but it looks much better!


[SPARK-43742][SQL] Refactor default column value resolution

What changes were proposed in this pull request?

This PR refactors the default column value resolution so that we don't need an extra DS v2 API for external v2 sources. The general idea is to split the default column value resolution into two parts:

resolve the column "DEFAULT" to the column default expression. This applies to Project/UnresolvedInlineTable under InsertIntoStatement, and assignment expressions in UpdateTable/MergeIntoTable.
fill missing columns with column default values for the input query. This does not apply to UPDATE and non-INSERT action of MERGE as they use the column from the target table as the default value.

The first part should be done for all the data sources, as it's part of column resolution. The second part should not be applied to v2 data sources with ACCEPT_ANY_SCHEMA, as they are free to define how to handle missing columns.
More concretely, this PR:

put the column "DEFAULT" resolution logic in the rule ResolveReferences, with two new virtual rules. This is to follow https://github.com/apache/spark/pull/38888
put the missing column handling in TableOutputResolver, which is shared by both the v1 and v2 insertion resolution rule. External v2 data sources can add custom catalyst rules to deal with missing columns for themselves.
Remove the old rule ResolveDefaultColumns. Note that, with the refactor, we no long need to manually look up the table. We will deal with column default values after the target table of INSERT/UPDATE/MERGE is resolved.
Remove the rule ResolveUserSpecifiedColumns and merge it to PreprocessTableInsertion. These two rules are both to resolve v1 insertion, and it's tricky to reason about their interactions. It's clearer to resolve the insertion with one pass.

Why are the changes needed?

code cleanup and remove unneeded DS v2 API.
Does this PR introduce any user-facing change?

No
How was this patch tested?

updated tests

LGTM, pending on tests.
Awesome refactoring!

Merged to master for Apache Spark 3.5.0.


Recommendation on range and some filters

Of the top 2000 domains on the current Tranco list, .org, .gov, and .edu represent approximately 275 of the list or about 13.75% of the domains being tested.
These are domains for organizations, government, and military use - at least in the United States- and are likely to have significantly less potential for use of commercial tracking.  In fact, if any of the top 2000 websites were to track, the top 2000 sites are not going to be full of trackers (e.g. google, youtube, facebook, micorosoft, wikipedia, twitter, pinterest, amazon, netflix, vimeo, wordpress, github, windowsupdate, etc.)  How many 3rd party domains do these sites have?  Not many.
I suggest training further down the list.  Say, 4000 thru 10000 (or more) excluding any domains .org$|.edu$|/.*.gov.|.gov$  (the 3rd rule to exclude government sites from other countries.)
Or, better yet, use a list of sites in certain categories (health/beauty/medical, crafts and hobbies, food, music, movies, entertainment, blogs, news, etc.)
A resource that does do categorizations of sites is the popular http://www.shallalist.de/categories.html
The default Privacy Badger is pretty small and should pick up your local newspapers and game sites... in short, the top sites do the tracking on the bottom sites to get you the visit the top sites.
check this
https://webcookies.org/number-of-cookies
google.com 2 cookies
compare that to any of these sites:
www.ogaracoach.com
http://www.10greatlines.com/
https://newsinfo.inquirer.net
https://www.favecrafts.com
www.ibtimes.co.uk

Hello!
Daily scans at this point visit the top 5,000 sites. Scans prior to recent Privacy Badger updates have been run on 10,000 sites. To further improve pre-trained coverage prior to releasing a new Privacy Badger update, we started combining several recent scans into a single "synthetic" data set. We're now looking into automatically running crawls in parallel and combining the results. This should let us cover many more sites, eventually as part of daily scans.
We already ignore certain TLDs from scans using --exclude.

thanks.  Have you thought of maybe trying certain categories of sites?  I've just been thinking about where the tracking happens

Not yet. It would indeed be nice to be able to break down the Tranco list by categories and geographies.

Tangentially related: To increase coverage, we find and click a random internal link on each website. To avoid slowing down scans too much, we use a simple heuristic to limit clicking to "news" links.

that's really interesting.  thank you for the info.  I'll go ahead and close this.  Thanks again


Open curriculum to current challenge

Describe your problem and - if possible - how to reproduce it
When you open the curriculum in a new session it opens like this...

If you navigate to your current challenge and click on it, then go back to the curriculum (in the same session) - it will have the same section/sections open that you had open before but not scroll to where you were
It would be nice if the curriculum/map navigated to your current challenge when you open it

Issue moved to freeCodeCamp/learn #171 via ZenHub


Add append and replace load strategies with example DAG for Table

Description
What is the current behavior?

Although the logic for the replace and append is implemented this is not working because if_exists is not propagated from TransferParams here: https://github.com/astronomer/apache-airflow-provider-transfers/blob/main/src/universal_transfer_operator/data_providers/database/base.py#L202

closes: #44
What is the new behavior?

Add append and replace load strategies with example DAG for Table
Add example DAGs
Add docs
Test is already there to test the behaviour

Does this introduce a breaking change?
No
Checklist

[x] Created tests which fail without the change (if possible)
[x] Extended the README / documentation, if necessary

Can we add test cases to validate the behavior?

Append to table
Replace to table

Add tests

Added the tests: https://github.com/astronomer/apache-airflow-provider-transfers/pull/45/commits/9d9f5e8427ec66092341e4fb60f4205fb55ecebb


API purchase experienced an error

Describe the bug

Failing to purchase.
Screenshots or Logs

[2022-01-06 06:22:21.905 +0000] INFO : Purchasing Shadow of the Tomb Raider: Definitive Edition
[2022-01-06 06:22:24.322 +0000] WARN (HTTPError): Response code 400 (Bad Request)
HTTPError: Response code 400 (Bad Request)
at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2022-01-06 06:22:24.323 +0000] WARN : API purchase experienced an error, trying puppeteer purchase

Additional context

Running latest in docker.

This is just #164.
I'm kind of surprised to see it because I put in a dozen fixes for this recently. Can you set logLevel: debug and try again?

Will do when the next round of free games come. I've redeemed them manually after not getting it to work.

><EMAIL_ADDRESS>entrypoint-config /usr/app
> node dist/src/entrypoint-config.js

Setting timezone: Europe/London
Run on startup: true
Setting timezone: Europe/London
Run on startup: true
[2022-01-18 12:33:28.583 +0000] INFO : Started epicgames-freegames-node
COMMIT_SHA: "5989a60c848fa577223e9d7fe310df7cf9eeb567"
BRANCH: "master"
DISTRO: "alpine"
[2022-01-18 12:33:28.657 +0000] DEBUG: Performing version check

PROJECT_NAME: "epicgames-freegames-node"
BRANCH: "master"
COMMIT_SHA: "5989a60c848fa577223e9d7fe310df7cf9eeb567"
[2022-01-18 12:33:28.959 +0000] INFO : Checking free games for<EMAIL_ADDRESS>[2022-01-18 12:33:28.964 +0000] DEBUG: Refreshing login session
user<EMAIL_ADDRESS>[2022-01-18 12:33:34.943 +0000] INFO : Successfully refreshed login
user<EMAIL_ADDRESS>[2022-01-18 12:33:34.943 +0000] DEBUG: Getting global free games
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.625 +0000] DEBUG: Retrieved catalog data for 17 games
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] DEBUG: Found 1 unique free games in catalog
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] INFO : Available free games
user<EMAIL_ADDRESS>availableGames: [
"Galactic Civilizations III"
]
[2022-01-18 12:33:35.626 +0000] DEBUG: Checking ownership on available games
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] DEBUG: Getting product ownership info
user<EMAIL_ADDRESS>offerId: "5d63b78c08184c10933a47874117db8c"
namespace: "3c52fbac843d4375803187739db84801"
[2022-01-18 12:33:35.625 +0000] DEBUG: Retrieved catalog data for 17 games
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] DEBUG: Found 1 unique free games in catalog
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] INFO : Available free games
user<EMAIL_ADDRESS>availableGames: [
"Galactic Civilizations III"
]
[2022-01-18 12:33:35.626 +0000] DEBUG: Checking ownership on available games
user<EMAIL_ADDRESS>[2022-01-18 12:33:35.626 +0000] DEBUG: Getting product ownership info
user<EMAIL_ADDRESS>offerId: "5d63b78c08184c10933a47874117db8c"
namespace: "3c52fbac843d4375803187739db84801"
[2022-01-18 12:33:36.092 +0000] INFO : Unpurchased free games
user<EMAIL_ADDRESS>purchasableGames: [
"Galactic Civilizations III"
]
[2022-01-18 12:33:36.092 +0000] INFO : Purchasing Galactic Civilizations III
[2022-01-18 12:33:37.416 +0000] DEBUG: purchaseToken
user<EMAIL_ADDRESS>purchaseToken: "REDACTED PURCHASE TOKEN"
[2022-01-18 12:33:37.416 +0000] DEBUG: purchaseToken
user<EMAIL_ADDRESS>purchaseToken: "REDACTED PURCHASE TOKEN"
[2022-01-18 12:33:38.659 +0000] DEBUG: Error encountered during purchase

user<EMAIL_ADDRESS>errorBody: {
"error": true,

"message": "We could not confirm your purchase at this time. Please try again later.",
"order": null,
"syncToken": "87fc861d-b911-4997-b5a3-6ae439db03db"
}
code: 400
[2022-01-18 12:33:38.659 +0000] WARN (HTTPError): Response code 400 (Bad Request)
HTTPError: Response code 400 (Bad Request)
at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2022-01-18 12:33:38.659 +0000] WARN : API purchase experienced an error, trying puppeteer purchase

[2022-01-18 12:33:38.662 +0000] DEBUG: Setting hCaptcha accessibility cookies
[2022-01-18 12:33:53.736 +0000] DEBUG: Killing new browser processes spawned
chromiumProcesses: []
[2022-01-18 12:33:53.736 +0000] WARN : browser launch did not work after 15000ms. Trying again.
attempts: 0
MAX_ATTEMPTS: 5
[2022-01-18 12:34:00.677 +0000] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies

status: 401
errorBody: {
"status": "error"

}
[2022-01-18 12:34:00.834 +0000] DEBUG: Purchasing with puppeteer (short)
user<EMAIL_ADDRESS>[2022-01-18 12:34:16.725 +0000] INFO : Loading purchase page
user<EMAIL_ADDRESS>purchaseUrl: "https://www.epicgames.com/store/purchase?highlightColor=0078f2&offers=1-3c52fbac843d4375803187739db84801-5d63b78c08184c10933a47874117db8c&orderId&purchaseToken&showNavigation=true"
[2022-01-18 12:34:28.175 +0000] DEBUG: Clicking placeOrderButton
user<EMAIL_ADDRESS>[2022-01-18 12:34:28.330 +0000] DEBUG: Clicking euRefundAgreeButton
user<EMAIL_ADDRESS>[2022-01-18 12:34:28.487 +0000] DEBUG: Waiting for receipt
user<EMAIL_ADDRESS>[2022-01-18 12:34:28.175 +0000] DEBUG: Clicking placeOrderButton
user<EMAIL_ADDRESS>[2022-01-18 12:34:28.330 +0000] DEBUG: Clicking euRefundAgreeButton
user<EMAIL_ADDRESS>[2022-01-18 12:34:28.487 +0000] DEBUG: Waiting for receipt
user<EMAIL_ADDRESS>[2022-01-18 12:34:30.065 +0000] DEBUG: Captcha detected
user<EMAIL_ADDRESS>[2022-01-18 12:34:30.530 +0000] INFO : Go to this URL and do something
user<EMAIL_ADDRESS>url: "https://tasty-bobcat-23.loca.lt/?targetId=5A7C865B9361DAB732BDA17B0949C149"
[2022-01-18 12:34:30.530 +0000] WARN : No notifiers configured globally, or for the account. This log is all you'll get
url: "https://tasty-bobcat-23.loca.lt/?targetId=5A7C865B9361DAB732BDA17B0949C149"
accountEmail<EMAIL_ADDRESS>reason: "PURCHASE"
[2022-01-18 12:34:30.065 +0000] DEBUG: Captcha detected
user<EMAIL_ADDRESS>[2022-01-18 12:34:30.530 +0000] INFO : Go to this URL and do something
user<EMAIL_ADDRESS>url: "https://tasty-bobcat-23.loca.lt/?targetId=5A7C865B9361DAB732BDA17B0949C149"
[2022-01-18 12:34:30.530 +0000] WARN : No notifiers configured globally, or for the account. This log is all you'll get
url: "https://tasty-bobcat-23.loca.lt/?targetId=5A7C865B9361DAB732BDA17B0949C149"
accountEmail<EMAIL_ADDRESS>reason: "PURCHASE"

From the logs, it just looks like you don't have any notifiers configured. Some example configs are listed here: https://github.com/claabs/epicgames-freegames-node#configjson-or-configjson5

Is notifiers required? i left it because i dont need it.

Is notifiers required? i left it because i dont need it.

i think this is the culprit of why its failing?
[2022-01-18 12:34:00.677 +0000] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies

status: 401
errorBody: {
"status": "error"

}

then later it fails because it cant auto complete the captcha

Auto captcha complete doesn't work currently (see #178). You'll need a notifier to be configured in order to solve the captcha yourself. These days, every free game purchase requires solving a captcha.

No longer relevant in latest version


Automated size checker!

Semi-automated anyway, it doesn't update anything, just reports. I haven't changed any numbers in data.js because I'd prefer someone else check over the logic first.
It's a tad slow from way over here in Australia, I'm sure it'd be speedier for you nothern-hemispherians.

That looks like it works reasonably well, actually! :) The next thing would be to clean up the source paths for the failing files and and auto-generate the data-min.js file.


Unknown types in web-sys dependency

(I suspect this is a duplicate, but i'm not sure what the root cause is).
I'm trying to use the web-sys crate, which is highly generated.
I've enabled both loadOutDirsFromCheck and procMacro.enable:
.vscode/settings.jon
{
    "rust-analyzer.cargo.loadOutDirsFromCheck": true,
    "rust-analyzer.procMacro.enable": true,
    "editor.tokenColorCustomizationsExperimental": {
        "unresolvedReference": "#FF0000"
    }
}

Cargo.toml
[package]
name = "foo"
version = "0.1.0"
authors = ["Andrew Chin<EMAIL_ADDRESS>edition = "2018"

[dependencies.web-sys]
version = "0.3"
features = ["Document", "Window"]

Code:
use web_sys::{Document, Window};

pub fn foo() {
    let win: Window = web_sys::window().unwrap();
    let doc: Document = win.document().unwrap();
}

Using RA nightly (fe99a29)
Thanks!

Are you using the weekly build? All these definitions are in extern "C" blocks, which we ignored until a few days ago. Apart from that, proc macro support is of course still very experimental and web_sys makes very heavy use of proc macros.

I am using the nightly build (fe99a29).  (Sorry, that was an important detail I should not have omitted)

For example, Here is how web-sys implement Window type. It seem like there is something we are still not yet implemented in RA :

proc-macro for custom-attribues (#[wasm_bindgen]), we only support custom-derive now.
Extern Type : `extern "C" { pub type Window }

extern "C should be handled by https://github.com/rust-analyzer/rust-analyzer/pull/4111. Though, not sure about extern "C" { pub type Window; }. Opaque types are unstable?

It probably gets turned into something different by the macro?

https://github.com/rust-lang/rust/pull/44295
And we didn't expand it because no custom attr proc-macro support yet. But I doubt if extern types are supported in RA, it might be infered properly ?

Not to hijack but I'm having similar issues with both go-to-definition and completion for the web-sys crate. doing web_sys::ge[completion here] correctly shows completions for web-sys functions but doing something like let canvas = <some web-sys object>; canvas.ge[completion here] does not. I'm using emacs with lsp and have the following set:
        lsp-rust-analyzer-cargo-load-out-dirs-from-check t
        lsp-rust-analyzer-proc-macro-enable t

Extern opaque types are supported by chalk now. Hopefully this will help with this issue.

Cool, that helps a bit!
Using the latest commit (60c8941097f3674ed4b583925603b5ec43833f0c), the Document and Window types are now resolved, though RA still doesn't know about the methods on them:

I gave adding support for extern opaque types a try in https://github.com/rust-analyzer/rust-analyzer/pull/5993 .

That PR has landed. But that didn't help web-sys much. If web-sys was using genuine extern opaque type syntax as input to macros (e.g. impl blocks etc) the issue would have been solved. It seems we need to improve proc macro support next. I'll look into what i can do to help.

Is there any movement on this front, or direction contributors could look to have in trying to get this supported? For reference, this the definition of web-sys modules.
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = InputEvent , typescript_type = "InputEvent")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    pub type InputEvent;

    # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = isComposing)]
    pub fn is_composing(this: &InputEvent) -> bool;

    #[wasm_bindgen(catch, constructor, js_class = "InputEvent")]
    pub fn new(type_: &str) -> Result<InputEvent, JsValue>;

    #[cfg(feature = "InputEventInit")]
    #[wasm_bindgen(catch, constructor, js_class = "InputEvent")]
    pub fn new_with_event_init_dict(
        type_: &str,
        event_init_dict: &InputEventInit,
    ) -> Result<InputEvent, JsValue>;
}

Attribute proc macros are tracked in https://github.com/rust-analyzer/rust-analyzer/issues/6029, let's close this for now.

Attribute proc macros are tracked in https://github.com/rust-analyzer/rust-analyzer/issues/6029, let's close this for now.

@jonas-schievink do we expand attributes for exten blocks?
#[wasm_bindgen]
extern "C" {
    pub type Window;
}

https://users.rust-lang.org/t/no-autocompletion-with-rust-analyzer-and-wasm-bindgen-web-sys/64301

We should

Ah, the problem is that turning rust-analyzer.experimental.procAttrMacros on will make you run into https://github.com/rust-analyzer/rust-analyzer/issues/8158, and turning it off will also turn it off within web-sys, which means that the API doesn't get generated.

damned if you do, damned if you don't... I am wondering... Can we just record two functions with the same name in the def map, one expanded and one not expanded, such that source2def returns non-expanded version, but everything which tries to resolve paths gives you the resolved one?

Something like this I mean.

So document.x<|> should work, right?

damned if you do, damned if you don't... I am wondering... Can we just record two functions with the same name in the def map, one expanded and one not expanded, such that source2def returns non-expanded version, but everything which tries to resolve paths gives you the resolved one?

That seems like it would lead to all kinds of other incorrect results?

I lied, it's not just #8158, but also https://github.com/rust-analyzer/rust-analyzer/issues/9866 that make completion not work here

I don't think a fully proper fix is possible, as the general case is compile time reflection.

I think a fully proper fix is possible as long as the cursor is in a range of tokens that just get mapped as one continuous range, which I think is what people expect. No-one would reasonably expect completions in mirror! ;) IMO we should be able to handle attribute macros the same way we handle macro_rules, i.e. #9866.

I think 90% proper fix would be to allow proc macro authors to annotate their macros as "this doesn't change item semantics", so that we know that the treatment, suggested above, is fully correct.

I'm not sure we can do this in a useful way? For example, it seems wasm_bindgen(start) on a function doesn't change the function, but wasm_bindgen on other items has noticeable effects. We could maybe notice that the macro didn't actually change the function though?

... although I guess the problem is that wasm_bindgen(start) doesn't actually pass through the function when there's a syntax error in it :thinking:

Maybe we can just lie to the macro by synthesizing tokens that make the input parse correctly :thinking:

The reason I was wondering is that in this case, the proc macro doesn't need to inspect the body of the function, so it would be fine for it to just parse the header, also for build time and forward compatibility reasons. I don't know if it does that right now though.

Maybe we can just lie to the macro by synthesizing tokens that make the input parse correctly thinking

Yeah, that's also something I was considering, though it could also lead to other problems. (It's also kind of similar to the hypothetically-expand-with-inserted-token thing we're doing.)

I think the issues discussed here have been mostly fixed.

I just did a quick test and things seem to be much better!  The Window and Document types are fully resolved, and tab completion on both the win and doc variables seems to be working as expected.  This is Very Cool.  Thanks everyone! 🎉


Remove deprecated TaskInternal.replaceLogger

Part of https://github.com/gradle/gradle-private/issues/2475

The message logged by the kotlin compiler didn't change so we should not apply this PR yet and keep the deprecated replaceLogger() for now.

The kotlinc message will stay, most probably as is, until Kotlin 1.4.0. Rewording it is being discussed.
There's another compiler flag, -Xnew-inference, that should silence the new inference warning. But it doesn't enable SAM conversions for kotlin functions that might still trigger the warning.

Superseded by #15564


Uncaught TypeError: func is not a function

Trying out a code which supposedly didn't have issue before.
But now it is giving the error func is not a function when I hit the "SUBMIT" button on the form generated by autoform.
Anyone know how to fix this?
<EMAIL_ADDRESS>aldeed:autoform
<EMAIL_ADDRESS>aldeed:simple-schema
modules.js?hash=ce7779a4f025ebb0ebb5ca80750d6de0799a16ba:13551 Uncaught TypeError: func is not a function
at http://localhost:3000/packages/modules.js?hash=ce7779a4f025ebb0ebb5ca80750d6de0799a16ba:13551:18
at Array.forEach ()
at doValidation (http://localhost:3000/packages/modules.js?hash=ce7779a4f025ebb0ebb5ca80750d6de0799a16ba:13550:17)
at ValidationContext.validate (http://localhost:3000/packages/modules.js?hash=ce7779a4f025ebb0ebb5ca80750d6de0799a16ba:13097:57)
at _0x51eex8.(anonymous function).doValidate (http://localhost:3000/packages/aldeed_collection2-core.js?hash=a34db097700b70406ccd87d3729a2beb93feb9b4:475:33)
at _0x51eex8.(anonymous function).Mongo.Collection.(anonymous function) [as insert] (http://localhost:3000/packages/aldeed_collection2-core.js?hash=a34db097700b70406ccd87d3729a2beb93feb9b4:259:25)
at http://localhost:3000/packages/aldeed_autoform.js?hash=b5d2c19978a500041b09f9df0ab49fd60a0ba883:3225:20
at runHook (http://localhost:3000/packages/aldeed_autoform.js?hash=b5d2c19978a500041b09f9df0ab49fd60a0ba883:7403:13)
at Object.runBeforeHooks (http://localhost:3000/packages/aldeed_autoform.js?hash=b5d2c19978a500041b09f9df0ab49fd60a0ba883:7432:9)
at Object.onSubmit (http://localhost:3000/packages/aldeed_autoform.js?hash=b5d2c19978a500041b09f9df0ab49fd60a0ba883:3221:10

This happens when using both the simpl-schema NPM package and the simple-schema atmosphere package.  For example, if you're using the latest versions of aldeed:collection2-core and simpl-schema you should also make sure you're using the latest version of aldeed:autoform.

Having the only two following packages:
<EMAIL_ADDRESS>aldeed:simple-schema
And the NPM simpl-schema
I have the same problem Uncaught TypeError: func is not a function.
If i remove the package aldeed:simple-schema, i have the following error: SimpleSchema is not defined.
If i remove the NPM simpl-schema, it doesn't compile, with the error : Error: Cannot find module 'simpl-schema'.
Don't know what to do.

Same here.

Yeah even I have the same problem

I have the same problem.

I'm having this too. I don't have meteor-autoform though. no solution?

Adding import SimpleSchema from 'simpl-schema' where i define my Schema did solve the problem.

+1


TagGroups not working

Hey,
I am using version 1.1.5 and the tag groups do not work. The individual tags are displayed in the sidebar, but when I define a tag group, nothing changes.
According to the changelog, this should be fixed in version 1.1.5?

Hi,
please checkout the new version 1.1.6. Both of your issues should be fixed now. Thank you for reporting!

Hey,
thank you very much for your really quick updates. Both are fixed ;)
Thanksss!