Power Query in first example is fragile

The PowerQuery of the first example, the one demonstrating how to connect Power BI to Advanced Hunting API, should be changed, as it is too fragile (it doesn't remove duplicate rows in the schema).
This line of code:
TypedSchema = Table.Join(Table.SelectColumns(Schema, {"Name", "Type"}), {"Type"}, TypeMap , {"Type"}),
should be changed in:
TypedSchema = Table.Distinct(Table.Join(Table.SelectColumns(Schema, {"Name", "Type"}), {"Type"}, TypeMap , {"Type"})),
The existing code works with the specific query in the example, but as soon as that is amended, it shows its fragility.
E.g., if wouldn't work with this query:
`
let
   AdvancedHuntingQuery = "DeviceTvmSoftwareInventory | project DeviceName, DeviceId | take 10",

   HuntingUrl = "https://api-uk.securitycenter.microsoft.com/api/advancedqueries",

   Response = Json.Document(Web.Contents(HuntingUrl, [Query=[key=AdvancedHuntingQuery]])),
    TypeMap = #table(
        { "Type", "PowerBiType" },
        {
            { "String",   Text.Type },
            { "String",   Text.Type }
        }),
    Schema = Table.FromRecords(Response[Schema]),
    TypedSchema = Table.Distinct(Table.Join(Table.SelectColumns(Schema, {"Name", "Type"}), {"Type"}, TypeMap , {"Type"})),
    Results = Response[Results],
    Rows = Table.FromRecords(Results, Schema[Name]),
    Table = Table.TransformColumnTypes(Rows, Table.ToList(TypedSchema, (c) => {c{0}, c{2}}))
in Table`

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

ID: 7da91eaf-b220-a7f2-18a6-25539ca6fea3
Version Independent ID: b7b9cac7-469c-606d-905c-8a87a0eba401
Content: Microsoft Defender for Endpoint APIs connection to Power BI
Content Source: microsoft-365/security/defender-endpoint/api-power-bi.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@yogkumgit we can close this.
The example is fine, I had not understood that the TypeMap was meant to be used as is, e.g., always as:
       TypeMap = #table(
            { "Type", "PowerBiType" },
            {
                { "Double",   Double.Type },
                { "Int64",    Int64.Type },
                { "Int32",    Int32.Type },
                { "Int16",    Int16.Type },
                { "UInt64",   Number.Type },
                { "UInt32",   Number.Type },
                { "UInt16",   Number.Type },
                { "Byte",     Byte.Type },
                { "Single",   Single.Type },
                { "Decimal",  Decimal.Type },
                { "TimeSpan", Duration.Type },
                { "DateTime", DateTimeZone.Type },
                { "String",   Text.Type },
                { "Boolean",  Logical.Type },
                { "SByte",    Logical.Type },
                { "Guid",     Text.Type }
            }),


Question - Defender 2.2 - Add DLP custom policy to utilize restricted app groups to prevent access to sensitive info

💡 Summary
Add policy language and implementation steps to create a policy action to prevent restrict app and app group access to sensitive files on devices using Defender Endpoint protection.
Motivation and context
The current Defender SCB policy 2.2 requires enabling data loss prevention (DLP) and does include configuration of restricted apps in the DLP Endpoint settings area.  The implementation notes, however, do not include creating a policy action to restrict access to sensitive information based on those restricted apps and app groups.
Since restricted apps are already defined in the implementation, it makes sense to utilize them to limit access to sensitive information in the policies.  Otherwise the creation of restricted app groups has no purpose relative to the existing baselines.
Implementation notes
Assuming inclusion of the restricted apps and app groups action is determined to be the right course of action, then the changes would be to add the following:

Adjust the first policy bullet to include the Devices location as follows:

The custom policy SHOULD be applied in Exchange, OneDrive, Teams Chat, and Device

Add a new policy bullet that reads as follows:

The custom policy SHOULD include an action to block access to sensitive information by restricted apps

Update the implementation steps to include instructions for configuring the Devices location and restricted apps block action

Acceptance criteria

[ ] Determination on inclusion of devices action in custom policy statements has been made
[ ] If included, Defender baseline policy 2.2 had been updated with the changes outlined in the implementation notes

Makes sense.  Please implement as specified.


deployment of v4.3.3 on corefacility

Running Blazegraph on host, via screen and inside /Warehouse/Users/claing/superphy/spfy/docker-blazegraph/2.1.4 - the bigdata.jnl will be stored there.
java -server -Xmx4g -Dbigdata.propertyFile=/Warehouse/Users/claing/superphy/spfy/docker-blazegraph/2.1.4/RWStore.properties -jar blazegraph.jar

Looks like https://github.com/superphy/backend/issues/159#issuecomment-314496516 works for storing the database in /Warehouse. But now need to network the docker composition to the blazegraph instance running on the host https://github.com/moby/moby/issues/1143#issuecomment-309952403 - doesn't look like there is an easy/Docker-approved method.

Implemented https://github.com/moby/moby/issues/1143#issuecomment-309952403 in our docker-compose.yml file:
From the comment:
version: '2'
services:
  <container_name>:
    image: <image_name>
    networks:
      - dockernet

networks:
  dockernet:
    driver: bridge
    ipam:
      config:
        - subnet: <IP_ADDRESS>/24
          gateway: <IP_ADDRESS>

except, we added to all our services:
networks:
      - dockernet

which still lets us use namespaces defined by docker (such as redis) to link containers, but we can also now run:
curl http://<IP_ADDRESS>:9999/blazegraph/
to connect to the blazegraph instance running on our host.

After https://github.com/superphy/backend/issues/159#issuecomment-314526082 , can now start reactapp outside of corefacility and uploading files/get results. Note that files are still being stored inside the VM instead of on /Warehouse, but this will be addressed in https://github.com/superphy/backend/issues/148 and doesn't require any modification on corefacility.

Need to address https://github.com/superphy/reactapp/issues/14 now so we can run reactapp out of corefacility.

screen -r 15365.pts-1.superphy

We're up! https://github.com/superphy/backend/commit/9766690b83384e54f9091cbdc6328c7e57c02130 uses a prefix for reactapp uri's + a homepage spec.

Subtyping and Database works fine, but there is an issue in the Fishers task not returning any results

This is weird as the Database task can retrieve serotype info. w/o problems which implies the ECTyper jobs finished correctly, whereas you can't compare VF results in the Fishers task.

There's only 15 genomes in the db atm., perhaps this is just a case of no shared VFs between 2 H types (since there may be only 1 genome per H type)? Will upload a larger set of ref. genomes to test.

Looks like we're hitting the timeouts again https://github.com/superphy/reactapp/issues/43
Perhaps this is because the VM has lower specs? May need to bump timeouts even more.

Retested https://github.com/superphy/backend/issues/159#issuecomment-314835115 locally and we don't have this problem. It's almost like the corefacility deployment of blazegraph is losing transactions.

Figured out the error. I didn't merge branch inferencing of our docker-blazegraph repo into master and was running blazegraph on corefacility without inferencing.
new command: java -server -Xmx4g -Dbigdata.propertyFile=/Warehouse/Users/claing/superphy/spfy/docker-blazegraph/2.1.4-inferencing/RWStore.properties -jar blazegraph.jar

Still need to address https://github.com/superphy/backend/issues/159#issuecomment-314855893

Looks to be associated with the harakiri option: https://stackoverflow.com/questions/24127601/uwsgi-request-timeout-in-python
Added in https://github.com/superphy/backend/pull/165 , testing now...

*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***

http://uwsgi-docs.readthedocs.io/en/latest/Fastrouter.html#post-buffering-mode-uwsgi-2-0-9

An addition to the fix added: https://github.com/superphy/backend/pull/168

Still didn't work, same error:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<title>502 Bad Gateway</title>

Bad Gateway

The proxy server received an invalid
response from an upstream server.

So far tested:
~40ish genomes, unzipped, works
~50+ genomes (Ex. 56 genomes, 290.9 MB), unzipped, 502 error
48 genomes (249.6 MB) zipped to 75.2 MB, works
124 genomes (652.5MB) zipped to 197.2 MB, works
656 genomes (3.6 GB) zipped to 1.1 GB, 502 works

Tested on Cybera and still getting problems. This: https://github.com/pallets/flask/issues/2086#issuecomment-261962321 looks super relevant and may be a possible fix.

Something different...
webserver_1              | 2017/07/17 16:03:41 [error] 10#10: *1 client intended to send too large body: 197175003 bytes, client: <IP_ADDRESS>, server: , request: "POST /api/v0/upload HTTP/1.1", host: "localhost:8090", referrer: "https://lfz.corefacility.ca/superphy/grouch/subtyping"
webserver_1              | <IP_ADDRESS> - - [17/Jul/2017:16:03:41 +0000] "POST /api/v0/upload HTTP/1.1" 413 601 "https://lfz.corefacility.ca/superphy/grouch/subtyping" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.109 Safari/537.36" "<IP_ADDRESS>"

https://github.com/superphy/backend/issues/159#issuecomment-315799377 is fixed in https://github.com/superphy/backend/commit/33970dc97487cd4ef381da8241c19676b191a229

I'm wondering if this is possibly above the docker level, because on successful POSTs we get the GET request in  docker logs, but when it fails there is absolutely nothing.

🍰 Partial success!
Looks like the error was with the nginx.conf running above Docker on the VM. There was a max file size specified there capping it to 200m, changing it to 60g (60GB) now sends the files into Docker. Slightly weird though, because the access.log on that Nginx isn't saying anything about the POST request until axios on the front-end reports 100% upload - perhaps there is another webserver running at corefacility which is also handling buffering???
We just need to up the space available/ offload the temporary storage of the files somewhere on the VM and we'll be set.

The space when unzipping issue (https://github.com/superphy/backend/issues/159#issuecomment-315893782) is confirmed in https://sentry.io/share/issue/3133353338392e333031353732303031/

Heads up! May have to adjust speed of Blazegraph queries as /Warehouse seems slow https://sentry.io/share/issue/3133353338392e333132353036333439/

New HDD was attached to VM. Using https://forums.docker.com/t/how-do-i-change-the-docker-image-installation-directory/1169 to host docker stuff there.

What a successful upload should look like in the logs:
webserver_1              | upload(): received req. at 2017-07-19-16-24
webserver_1              | [<FileStorage: u'GCA_001912665.1_ASM191266v1_genomic.fna' ('application/octet-stream')>]
webserver_1              | upload(): about to enqueue files
webserver_1              | upload(): all files enqueued, returning...
webserver_1              | handle_groupresults(): started
webserver_1              | handle_groupresults(): finished
webserver_1              | [pid: 21|app: 0|req: 90/162] <IP_ADDRESS> () {56 vars in 1113 bytes} [Wed Jul 19 16:24:42 2017] POST /api/v0/upload => generated 162 bytes in 2946 msecs (HTTP/1.1 200) 4 headers in 144 bytes (20 switches on core 0)
webserver_1              | <IP_ADDRESS> - - [19/Jul/2017:16:24:45 +0000] "POST /api/v0/upload HTTP/1.1" 200 162 "https://lfz.corefacility.ca/superphy/grouch/subtyping" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "<IP_ADDRESS>"
webserver_1              | [pid: 20|app: 0|req: 73/163] <IP_ADDRESS> () {52 vars in 962 bytes} [Wed Jul 19 16:24:45 2017] GET /api/v0/results/blob2907573319237084527 => generated 10 bytes in 6 msecs (HTTP/1.1 200) 3 headers in 103 bytes (2 switches on core 0)
webserver_1              | <IP_ADDRESS> - - [19/Jul/2017:16:24:45 +0000] "GET /api/v0/results/blob2907573319237084527 HTTP/1.1" 200 10 "https://lfz.corefacility.ca/superphy/grouch/subtyping" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "<IP_ADDRESS>"

What we got with large files (note: a % of them are still being enqueued)
webserver_1              | upload(): received req. at 2017-07-19-16-59
webserver_1              | [<FileStorage: u'656_files-3.6_GB-ecoli-genomes.zip' ('application/zip')>]
webserver_1              | upload(): about to enqueue files
webserver_1              | <IP_ADDRESS> - - [19/Jul/2017:17:00:01 +0000] "POST /api/v0/upload HTTP/1.1" 499 0 "https://lfz.corefacility.ca/superphy/grouch/subtyping" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.109 Safari/537.36" "<IP_ADDRESS>"
webserver_1              | upload(): all files enqueued, returning...
webserver_1              | handle_groupresults(): started
webserver_1              | handle_groupresults(): finished
webserver_1              | Wed Jul 19 17:00:32 2017 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) on request /api/v0/upload (ip <IP_ADDRESS>) !!!
webserver_1              | Wed Jul 19 17:00:32 2017 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 296] during POST /api/v0/upload (<IP_ADDRESS>)
webserver_1              | IOError: write error
webserver_1              | [pid: 20|app: 0|req: 76/168] <IP_ADDRESS> () {52 vars in 1040 bytes} [Wed Jul 19 16:50:02 2017] POST /api/v0/upload => generated 0 bytes in 631156 msecs (HTTP/1.1 200) 4 headers in 0 bytes (3782 switches on core 0)

From https://github.com/superphy/backend/issues/159#issuecomment-316452413 looks like uwsgi is still active and the disconnect is happening on either nginx or reactapp.

Only immediately after a 502 error shows up on reactapp do we get this in logs:
webserver_1              | upload(): received req. at 2017-07-19-21-05
webserver_1              | [<FileStorage: u'656_files-3.6_GB-ecoli-genomes.zip' ('application/zip')>]
webserver_1              | upload(): about to enqueue files
webserver_1              | <IP_ADDRESS> - - [19/Jul/2017:21:05:49 +0000] "POST /api/v0/upload HTTP/1.1" 499 0 "https://lfz.corefacility.ca/superphy/grouch/subtyping" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.109 Safari/537.36"

https://github.com/superphy/backend/issues/159#issuecomment-316517589 looks like an error with uwsgi in docker. the <IP_ADDRESS> refers to nginx running above docker on the vm.

[claing@superphy docker]$ sudo tail /var/log/nginx/error.log
2017/07/19 11:25:10 [warn] 10922#0: *323 an upstream response is buffered to a temporary file /var/lib/nginx/tmp/proxy/9/00/0000000009 while reading upstream, client: <IP_ADDRESS>, server: lfz.corefacility.ca, request: "GET //grouch/static/js/main.bfae872c.js.map HTTP/1.1", upstream: "http://[::1]:8091/static/js/main.bfae872c.js.map", host: "lfz.corefacility.ca"
2017/07/19 11:25:19 [warn] 10922#0: *327 a client request body is buffered to a temporary file /var/lib/nginx/tmp/client_body/0000000010, client: <IP_ADDRESS>, server: lfz.corefacility.ca, request: "POST //spfy/api/v0/upload HTTP/1.1", host: "lfz.corefacility.ca", referrer: "https://lfz.corefacility.ca/superphy/grouch/subtyping"
2017/07/19 13:28:58 [warn] 13540#0: *15 a client request body is buffered to a temporary file /var/lib/nginx/tmp/client_body/0000000001, client: <IP_ADDRESS>, server: lfz.corefacility.ca, request: "POST //spfy/api/v0/upload HTTP/1.1", host: "lfz.corefacility.ca", referrer: "https://lfz.corefacility.ca/superphy/grouch/subtyping"
2017/07/19 14:04:37 [error] 13540#0: *15 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <IP_ADDRESS>, server: lfz.corefacility.ca, request: "POST //spfy/api/v0/upload HTTP/1.1", upstream: "http://<IP_ADDRESS>:8090/api/v0/upload", host: "lfz.corefacility.ca", referrer: "https://lfz.corefacility.ca/superphy/grouch/subtyping"
2017/07/19 14:04:37 [warn] 13540#0: *15 upstream server temporarily disabled while reading response header from upstream, client: <IP_ADDRESS>, server: lfz.corefacility.ca, request: "POST //spfy/api/v0/upload HTTP/1.1", upstream: "http://<IP_ADDRESS>:8090/api/v0/upload", host: "lfz.corefacility.ca", referrer: "https://lfz.corefacility.ca/superphy/grouch/subtyping"

[claing@superphy 2.1.4-inferencing]$ ls -lah
total 7.6G
drwxrwxr-x.  2 claing collaborators  152 Jul 12 16:14 .
drwxrwxr-x. 11 claing nobody         329 Jul 12 16:02 ..
-rwxrwxr-x.  1 claing collaborators 6.2G Jul 20 12:16 bigdata.jnl
-rwxrwxr-x.  1 claing nobody         54M May 23 22:08 blazegraph.jar
-rwxrwxr-x.  1 claing nobody         622 Jul 12 16:02 Dockerfile
-rwxrwxr-x.  1 claing nobody        701M Jul 20 12:16 rules.log
-rwxrwxr-x.  1 claing nobody        2.7K Jul 12 16:02 RWStore.properties
[claing@superphy 2.1.4-inferencing]$ pwd
/Warehouse/Users/claing/superphy/spfy/docker-blazegraph/2.1.4-inferencing

Looks like database status queries are working fine, but POSTs are failing erratically. This is with # of Genome Files: 637

I'm closing this issue; there are a number of major changes that will probably be required to bring this into viable production usage, including a number of breaking changes. Everything will be tracked under https://github.com/superphy/backend/milestone/1


I made a Chinese file for your work

Chinese.zip

Thank you very much! You'll be added to the credits.
I'm curious, could you please explain me why that goes before and in the other three it goes after?


[BUG] Fixing unblock condition for index create block

Describe the bug
As of now condition check for releasing IndexCreate block is that there should be an existing IndexCreateBlock on the cluster and auto release of the index create block is enabled. Issue in this condition is it will always evaluates to true in alternate iterations if auto release is enabled. So first time block got applied because of less space. Then in subsequent iteration it will get released due to above bug. Since DiskThresoldMonitor is also resetting the last runtime milliseconds every time we add and release blocks, nodes once evaluated to be above high watermarkwill never removed from this list even if enough space is available on the node. So all the node will always be considered above high watermark. Thus reapplying block. This keeps going in a loop.
To Reproduce
Steps to reproduce the behavior:
Reduce the space on all the nodes on cluster such that all nodes are below high watermark. In first iteration of DiskThresholdMonitor, block will be added on the cluster. In the next it will be removed. This will keep on going in loop.
Expected behavior
DiskThresholdMonitor should only remove block incase any node is no longer breaching high watermark.

Fixed with https://github.com/opensearch-project/OpenSearch/pull/9437


Deserialize enum table?

Hi there,
I don't understand the error "enum table must contain exactly one table." The following is TOML-valid according to my TOML linter:
[rvs.one.normal]
mean = 0.0
std_dev = 2.0
[rvs.two.poisson]
mean = 0.0
std_dev = 1.0

Yet the following fails with the above error, I don't understand why.

use super::serde_derive::Deserialize;

#[derive(Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub enum Distribution {
    Normal { mean: f64, std_dev: f64 },
    Cauchy { median: f64, scale: f64 },
    Exponential { lambda: f64 },
    Poisson { lambda: f64 },
}

#[test]
fn test_deser_distr() {
    extern crate toml;

    let _std_norm: Distribution = toml::from_str(
        r#"[normal]
        mean = 0.0
        std_dev = 1.0"#,
    )
    .unwrap();

    let _cauchy: Distribution = toml::from_str(
        r#"[cauchy]
        median = 0.0
        scale = 1.0"#,
    )
    .unwrap();

    let _my_exp: Distribution = toml::from_str(
        r#"[exponential]
        lambda = 0.5"#,
    )
    .unwrap();

    let _fish: Distribution = toml::from_str(
        r#"[poisson]
        lambda = 10.0
    "#,
    )
    .unwrap();
}

#[test]
fn test_deser_distr_multi() {
    use std::collections::HashMap;
    extern crate toml;

    #[derive(Deserialize)]
    struct MapRv {
        rvs: HashMap<String, Distribution>,
    }

    let _as_map: MapRv = toml::from_str(
        r#"[rvs.one.normal]
        mean = 0.0
        std_dev = 2.0
        [rvs.two.poisson]
        mean = 0.0
        std_dev = 1.0"#,
    )
    .unwrap();
}

Exact error is:
thread 'io::rv::test_deser_distr_multi' panicked at 'called `Result::unwrap()` on an `Err` value: Error { inner: ErrorInner { kind: Custom, line: Some(0), col: 0, at: Some(0), message: "enum table must contain exactly one table", key: ["rvs", "one"] } }', src/io/rv.rs:54:26

Any help is much appreciated as I get this same error in another structure I'm trying to use.

Strangely, the following works:
let _as_map: MapRv = toml::from_str(
        r#"rvs = { one = { normal = { mean = 0.0, std_dev = 0.2 } }, two = { poisson = { lambda = 10.0 } } }"#,
    )

@alexcrichton Sorry to bother, any update on this? Is there a tip to make this work? Or maybe you could point me in the right direction to solve the bug myself? Thanks

Sorry I don't have the time to dig into this right now :(

This seems related to https://github.com/alexcrichton/toml-rs/issues/284
I wish we could at least break the json-y nested maps into multiple lines. Is there some way to escape newlines?

Ran in to this same issue. So far, I've been able to work around it with this rather nasty hack:
let config_json = toml::from_slice::<serde_json::Value>(config_buf.as_slice())?;
let config = serde_json::from_value::<MyType>(config_json)?;

@rh2048 Thanks for the workaround. As you state, it's ugly to convert to JSON to deserialize, but it does get the job done.
Here is my simple use case where deserializing an enum fails with the error: "enum table must contain exactly one table".
use serde_derive::Deserialize;
use std::collections::HashMap;
use std::path::PathBuf;

type Config = HashMap<String, TemplateVariable>;

#[derive(Deserialize)]
#[serde(rename_all = "lowercase")]
enum TemplateVariable {
    File(PathBuf),
    Shell(String),
    Literal(Vec<String>),
}

fn main() {
    let contents = r#"
[block1]
file = "/tmp/file"

[block2]
shell = "ls -1"

[block3]
literal = ["One", "Two", "Three"]
    "#;

    let config: Config = toml::from_str(contents).unwrap();

    // Ugly hack to workaround the above which does not work for some reason.
    // let config_json = toml::from_slice::<serde_json::Value>(contents.as_bytes()).unwrap();
    // let config = serde_json::from_value::<Config>(config_json).unwrap();
}


Remove Husky and pre-commit hooks from the project templates

Description
Closes #504
Problem
The Husky pre-commit hooks were originally added to the zkApp-cli project templates to enforce linting best practices before a developer commits their code to Github. While the intention was good, these hooks have created unnecessary complexity and friction for developers to iterate quickly. See the internal discussion.
This PR removes Husky and the pre-commit hooks from the project templates to remove friction and create a better DX when building zkApps. The pre-commit hooks were left as is when contributing to the zkApp-cli repository.
Tested
This was tested by manually generated projects and verifying the pre-commit hooks where removed.

Maybe we should have been giving an option for users whether to use Husky or not during the project generation (no by default)? Even though it might complicate things.


Add onScreenActivated event

This seems very reasonable to me.  Thx.
On Wed, Nov 30, 2022 at 3:13 PM Evan Mallory @.***>
wrote:

@.**** commented on this pull request.
In tests/image_gen/cs3_screens.py
https://github.com/cmu-cs-academy/desktop-cmu-graphics/pull/36#discussion_r1036402546
:

@@ -1,5 +1,20 @@
+calledStart = False
+calledActivated = False

+def a_onScreenStart(app):
Does this test capture the requirements for onScreenActivated? All
screens' onScreenStart functions are called when runAppWithScreens is
called, then activeScreen_onScreenActivated is called, and then
activeScreen_redrawAll.
After that, newScreen_onScreenActivated is called whenever
setActiveScreen('newScreen') is called.
—
Reply to this email directly, view it on GitHub
https://github.com/cmu-cs-academy/desktop-cmu-graphics/pull/36#pullrequestreview-1199955897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3PPRAXS2DSXG3Z2ODE3OLWK6YO5ANCNFSM6AAAAAASQALZKU
.
You are receiving this because your review was requested.Message ID:
@.***>

@lsands50 @dkosbie This is now available on pip and in the zip download.

Awesome!  Thanks!  :-)
On Wed, Nov 30, 2022 at 4:29 PM Evan Mallory @.***>
wrote:

@lsands50 https://github.com/lsands50 @dkosbie
https://github.com/dkosbie This is now available on pip and in the zip
download.
—
Reply to this email directly, view it on GitHub
https://github.com/cmu-cs-academy/desktop-cmu-graphics/pull/36#issuecomment-1332756748,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3PPRGASFJDAO7PNGITMWLWK7BMTANCNFSM6AAAAAASQALZKU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update 2021-09-29

(IMPORTANT) changed the type of tax_rate field. It can be float (e.g. 5.5, 7.5 etc, due OSS). The integer values like 0, 5, 23 still be int

https://github.com/bugproof/BaseLinkerApi/commit/b923240ecb7828dcc8cfa58b88db8a8d27362e3d


Install development dependencies in tracking input runner

Hotfixes bokeh being missing in the run-tracking-inputs job.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 28.36%. Comparing base (771df09) to head (b01a446).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3399   +/-   ##
=======================================
  Coverage   28.36%   28.36%
=======================================
  Files          77       77
  Lines       18365    18365
=======================================
  Hits         5209     5209
  Misses      13156    13156

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update instructions for sim installation

Motivation and Context

The previous Sim README was unclear.
The previous main README file contained redundant and inconsistent instructions for Sim installation.

Changelog

How Has This Been Tested

Types of changes

[x] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[ ] I ran tests/hw_manual_test.py on hardware and observed that robot behavior looks normal.

One minor change - instead of listing deps add them to yaml

Fixed


The following model_kwargs are not used by the model: use_gpu

A fresh installation shows this error:
The following `model_kwargs` are not used by the model: ['use_gpu'] (note: typos in the generate arguments will also show up in this list)

I'm also seeing this error :(

Same :/

same

same

same

Thanks for the patience, the team was busy with other stuffs. I just fixed it in #28. This would ideally fix the issue. I'll ping once the PR is merged.

Thanks for the patience, the team was busy with other stuffs. I just sent a PR at #28. This would ideally fix the issue. I'll ping once the PR is merged.

it leads to a new  issue #26

@GitHdu, can you paste the error stack when encountering this issue or help us reproduce the bug? Thanks.


does this apply gdb on ssh?

I'm usually working inside my Vagrant linux vm, but i can't seem to understand if this terminal plugin will integrate with that or not.
guidance would be much appreciated.

Alright seems like its working magically in the VM.
closing this now.

Alright seems like its working magically in the VM.
closing this now.


Updated Circle to use license accepted orb

Description
I noticed PR #22 was failing Circle CI due to license acceptance, so I've updated the circle ci config to fix that.  I'm not sure if I should have done it to the PR branch or created my own, please let me know either way
Issues Resolved
Helps PR 22
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable

thanks for this, if you take a look at vscode you can see the other changes required, also set the orb to @2 instead of full depth pinning please :)

Let me check through those linting issues at lunch, @Xorima will do

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.

          1 Warning

:warning:
This Pull Request is probably missing tests.

  Generated by :no_entry_sign: Danger

@Xorima - ci delivery and danger are now passing after the linting corrections, I'm not to sure where it's referencing 'ci/circle: lint' within the PR checks section as I renamed the lint task to use the delivery one in the new orb.

this is a setting elsewhere, I can get this sorted tonight, can you resolve the dangerfile issues as well please?

That is managed via terraform control_groups you'd need add this line as the default = ["ci/circleci: lint"]


replace q_if with control

use gate.control() instead of gate.q_if()
also use circuit.to_gate() instead of instruction_to_gate(circuit.to_instruction())
part of #3453

@ewinston can you take a look please


Touch example doesn't appear to work anymore

Not sure if this a problem with the JS version, or a problem with touches more generally, as I only use the JS version for now.
For example:
https://jsgo.io/github.com/hajimehoshi/ebiten/examples/drag
Was last compiled 11 months ago
Worked on desktop, worked on mobile.
I triggered a new jsgo.io compilation, and now...
Still works on desktop, no longer works on mobile.
From my experimentation, it appears that TouchIDs() is no longer returning anything.
Here's a simple example:
https://play.jsgo.io/e575fc7d5eba5756f3b8fca46c86ec5cad0b071e
https://jsgo.io/d07ace64866e063a327816d8f3c2e1f28909290d

Thank you for reporting!

Confirmed, recompiled https://jsgo.io/github.com/hajimehoshi/ebiten/examples/drag now works :D
Thanks for the speedy fix


Add available_locales config option

This option allows to specify locales to use in Javascript. Defaults to I18n.available_locales. See #423

I just merged #427 so some files contain conflicts now
Let me know if you are not sure how to fix
Thanks

Yeah, I'll fix the conflicts once we decide on the best way to add the available_locales option.

Closing because no activity for several months


isArrayOf should be divided into different isArrayOf methods

Firstly, we can consider the following code snippet in IOTA\Util\ValidatorUtil class:
    public static function isArrayOf(array $items, string $type): bool
    {
        foreach ($items as $item) {
            if (false === ($item instanceof $type)) {
                return false;
            }
        }

        return true;
    }

According to the old iota.lib.js, the related isArrayOf method has four methods. The methods are as follows:

isArrayOfAttachedTrytes
isArrayOfHashes
isArrayOfTrytes
isArrayOfTxObjects

I think it should be divided into different methods because the isArrayOf is not good enough to handle different arrays. It's not proper to use the instanceof approach to validate other non-class types.
Another approach is: enhancing the isArrayOf and let this method can support validating the different methods.

You can keep the one we have now and add the others if applicable.


[tool_crash] _CastError: (#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34))

Command
flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true lib\main.dart

Steps to Reproduce

...
...
...

Logs
_CastError: (#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34))
#0      new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34)
#1      new Plugin._fromMultiPlatformYaml (package:flutter_tools/src/plugins.dart:142:21)
#2      new Plugin.fromYaml (package:flutter_tools/src/plugins.dart:78:21)
#3      _pluginFromPackage (package:flutter_tools/src/flutter_plugins.dart:63:17)
#4      findPlugins (package:flutter_tools/src/flutter_plugins.dart:88:28)
<asynchronous suspension>
#5      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1080:32)
<asynchronous suspension>
#6      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:357:5)
<asynchronous suspension>
#7      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1412:7)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#14     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)

[✓] Flutter (Channel stable, 3.7.1, on Microsoft Windows [Version 10.0.19043.1110], locale en-US)
    • Flutter version 3.7.1 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7048ed95a5 (4 days ago), 2023-02-01 09:07:31 -0800
    • Engine revision 800594f1f4
    • Dart version 2.19.1
    • DevTools version 2.20.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\satta\AppData\Local\Android\sdk
    • Platform android-33-ext4, build-tools 33.0.1
    • Java binary at: C:\Program Files\Common Files\Oracle\Java\javapath\java.exe
    • Java version Java(TM) SE Runtime Environment (build 19.0.2+7-44)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop for Windows
    ✗ Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[!] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Connected device (4 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.1110]
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 109.0.5414.120
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 89.0.774.68

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.2+9
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
Plugins
background_fetch-1.1.3
bangla_utilities-1.0.0
flutter_barcode_scanner-2.0.0
flutter_phone_direct_caller-2.1.1
flutter_plugin_android_lifecycle-2.0.7
fluttertoast-8.1.2
path_provider-2.0.11
path_provider_android-2.0.22
path_provider_ios-2.0.11
path_provider_linux-2.1.7
path_provider_macos-2.0.7
path_provider_windows-2.1.3
permission_handler-10.2.0
permission_handler_android-10.2.0
permission_handler_apple-9.0.7
permission_handler_windows-0.1.2
qr_code_scanner-1.0.1
shared_preferences-2.0.17
shared_preferences_android-2.0.15
shared_preferences_foundation-2.1.3
shared_preferences_linux-2.1.3
shared_preferences_web-2.0.4
shared_preferences_windows-2.1.3
smart_auth-1.0.8
sqflite-2.2.3
url_launcher-6.1.7
url_launcher_android-6.0.22
url_launcher_ios-6.0.17
url_launcher_linux-3.0.1
url_launcher_macos-3.0.1
url_launcher_web-2.0.13
url_launcher_windows-3.0.1

Closing this as a duplicate of https://github.com/flutter/flutter/issues/115738


[FEATURE] iOS support

Describe the feature/change you'd like
I just came across the ani-cli and they worked out to support for iOS via iSH (shell tool), if possible I would like to see iOS support comes to mov-cli.
Additional context
https://github.com/pystardust/ani-cli#ios
[core iOS support PR to ani-cli] https://github.com/pystardust/ani-cli/pull/1105
[iOS download support PR to ani-cli] https://github.com/pystardust/ani-cli/pull/1112

We need maintainers, currently we have no maintainers

Currently being developed.

added in https://github.com/mov-cli/mov-cli/commit/0c3dbca1f3d2411913806f08a2b83c902dee39ac


Closes #87 Closes #72 crpr warn@devel: issue a warning if CR, PR occurs

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

[x] Code is formatted according to the tidyverse style guide
[x] Updated relevant unit tests or have written new unit tests - See Unit Test Guide
[x] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[x] Update to all relevant roxygen headers and examples
[x] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[x] Address any updates needed for vignettes and/or templates
[x] Update NEWS.md
[x] Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
[x] Address or fix all lintr warnings and errors - lintr::lint_package()
[x] Run R CMD check locally and address all errors and warnings - devtools::check()
[x] Link the issue so that it closes after successful merging.
[x] Address all merge conflicts and resolve appropriately
[x] Pat yourself on the back for a job well done!  Much love to your accomplishment!

i wonder if this PR naming works to auto-close both issues later - thought worth to try!

Is CR > PD > PR every a possibility? As the removal of records after PD is now optional.  As if so, would this still be an issue?

should derive_param_bor be updated with the signal_crpr() call, as part of this issue?

@sgorm123 technically the data issue only has an impact to confirmed BOR/response, so I'd leave it. for BOR you simply take the CR and ignore what comes next.

@rossfarrugia So all of my comments will be discussed as part of a future release, correct? Should I do anything?

@bundfussr can you take a look at Stephen's comments? if they need to be updated for this release then a new branch/PR will be needed, but otherwise could create a new issue on the backlog to come back to later after the release.

@sgorm123 , thanks for your review. Unfortunately, we could not see your comments before. I have addressed them in https://github.com/pharmaverse/admiralonco/pull/133.


ArtWork proposal

Hi,
This is an artwork proposal before sending HN7 to stores.

Feel free to choose your favorite one ? if you have a favorite ;)

How does it looks like on iOS home screen?:)

Looks nice, but don't you think that it is a bit "heavy"?) the very first icon (the current one) looks more accurate :)

ok

Why you closed it? What do you decide? I'll try to find some time tomorrow to try design icon too

because I was thinking like you but I waited to hear it.

What do you think about this one?

And OSX icon

By the way, what is your plans about releasing it in AppStore?


JWT Performance Issue with MTSJ

As a user I would like ... in order to ...

For details please refer the review comments of this PR -https://github.com/devonfw/my-thai-star/pull/273


MortPlayer Music not detected

Installed Simple Last.fm Scrobbler v1.4.8 from Google Play Store. No music apps detected. I am using MortPlayer Music v1.2.5.

Hi, @marianoju I am trying to solve all issues on SLS and get support for all App requests. The administrator @tgwizard hasn't been around for a while, but I will slowly be making pull requests as I develop Receivers for SLS.
Hopefully @tgwizard comes back soon as I will have a collection for him to quickly deal with issues and merges. Example collection :)
APPS
#176
#175
#174 #97 #2
#172 #126 VLC
#168
#160
#53 pull #124

BUGS
#170
#169

Maybe Closable
#12
#34

Closable
#3
#6
#64
#111
#171
#178

Otherwise, in a about 6 months or so I am going to talk to contributors about forking it.

Hi @marianoju MortPlayer
supports scrobbling
Quote from Google Play

Supports ScrobbleDroid and Simple last.fm Scrobbler (both interfaces also supported by many other scrobblers, like the official last.fm app)
It seems that MortPlayer reports as "Android Music Player" or "Scrobble Droid Apps"

If you'd like to see applications differentiated in the Enabled Apps section please see #200


Minor adaptations to your PR

This PR, meant to be merged into your PR, brings few small changes:

Inclusion of upstream's main branch (first two commits)
Resolution of the minor merge conflicts
Renaming of method from treatment_effect to average_treatment_effect
Parametrization of is_oos flag

Only the last five commits are 'new'.
Please let me know if something isn't so clear/understandable :)

Hi @apoorvalal, for my side this is ready for review.
My idea would be to merge

kklein/ate into apoorvalal:ate
apoorvalal:ate into quantco:main

gave you write access to my branch so you don't have to send me a PR for minor fixes btw.


[FLINK-22000] Set a default character set in InputStreamReader to sol…

…ve potential garbled problems
When a InputStreamReader is used, the parameter setting of a default character set is recommended to solve potential garbled problem.

Good fix, thanks.
Instead of using Charset.forName("UTF-8"), why not use StandardCharsets.UTF_8? That is a minor improvement to make it more compile-time safe (against accidental wrong strings).
Otherwise, +1 to this change

Hi @StephanEwen , thanks for your recommendation, I have changed the code correspondingly, which use StandardCharsets.UTF_8. Please review.
Thanks.

Could you update it in the remaining places as well?


[HW] Saakshi

Name: Saakshi Suresh
Email<EMAIL_ADDRESS>Linkedin Profile: www.linkedin.com/in/saakshi-suresh
Attach the homework step I screenshots below:

Attach the homework step II screenshots below:

Awesome! Thanks Saakshi!

Hey Saakshi Suresh, great job! Congrats! Here is your badge! https://api.badgr.io/public/assertions/f2cGcFNZRB2C49CcScH6EQ


Add Graphics Programming

https://github.com/Graphics-Programming-Virtual-Meetup/awesome-graphics-programming
This list contains curated resources for learning graphics programming. Awesome project currently has lists on specific graphics APIs such as Vulkan, but this list is API-agnostic and also includes resources on Computer Graphics theory.
By submitting this pull request I confirm I've read and complied with the requirements 🖖

unicorn

PR reviewed: #2099, #2101

Thanks for making an Awesome list! 🙌
It looks like you didn't read the guidelines closely enough. I noticed multiple things that are not followed. Try going through the list point for point to ensure you follow it. I spent a lot of time creating the guidelines so I wouldn't have to comment on common mistakes, and rather spend my time improving Awesome.


[hotfix] Fix Redis Sink to fail at opening if Redis is not initialized.

Before if Redis was not initialized, the job would start and would wait until the first element arrives in order to realize that Redis is not running. This fixes that by checking the connection to redis during the opening phase.

Thanks for your contribution @kl0u. I had some inline comments.

Hi @tillrohrmann !Thanks for the comments, I addressed the ones that should be addressed.

Changes look good @kl0u. Good work :-) There is only a minor issue with one of the test cases and its exception handling.

Thanks a lot @tillrohrmann !
I integrated your comment.

Done! Thanks @tillrohrmann

I think this is ok now.


Experiment with using OCCT in toolpath generation

As per #1 clipping works out great using OCCT. To fully utilize the advantage of using wires and edges (to preserve arcs), one needs to be able to get segments of wires/edges between two known points. Currently there's a limitation with OCP to achieve this using GeomLib_Tool.Parameter (see cadquery/ocp#89).
BRep_Tool.Parameter does not appear to work for the purpose, as it does not seem to consider tolerance.

Clipper appears to be about 3x faster than using OCCT native implementation. The difference is fairly significant but comes with the cost of needing to interpolate arcs into line segments. This bloats gcode, although the gcode could maybe have an arc fitting post processing optimization.
UI responsiveness is important though, so I'm inclined to keep clipper around.

cadquery/cadquery#1130 is kind of a blocker for using wires/curves for calculating tabs.  Or it requires a manual workaround of some kind.

Another tricky thing with OCCT offsets is that it's possible to end up in infinite loops trying to shrink a wire. Negative offsets can also in some edge cases create incorrect geometry that cq.Face.makeFromWires can't handle.


Kusama not showing on MathWallet

I just sent half my KSM balance from binance over to this new MathWallet I downloaded on my iOS
It shows the transaction on the wallet but shows zero balance.
Appreciate any help people can give.
Thanks.

Unfortunately we are not related in any way to MathWallet.
I would suggest contacting MathWallet and/or Binance about this
Maybe you can also write to<EMAIL_ADDRESS>


added flutter security system login page

@devi777  contribute here https://github.com/Ishaan28malik/Get-Dev-Resources

Any specific folder?? It's a flutter login page made by dart.


feat(elements|ino-snackbar): rework snackbar

Proposed Changes

Types

remove primary and warning ‼
add info and success
set info as default
update design

Alignment

remove alignment property ‼
add css vars to make position customizable (ino-snackbar-(top|right|bottom|left)) (can be useful to implement stacking)
set top-right as the default position

Design

add new designs for info and success
update action-button, shapes and layout according to the design
move the close-Button to the top-right edge of the notification window

blocked: waiting for the new icons


Markmap limit expand level

Prerequisites

[X] I have searched for duplicate or closed feature requests
[X] I am mindful of the project scope

Proposal
It would be nice if you can set the initial expand level.
The default behavior is set to expand all levels, which can be overwhelming if you have a lot of nodes.
Motivation and context
For example, when your presenting a mind map that has a lot of nodes.
If you can set the initial expand level to the the root sibling topics only, your audience will not be overwhelmed since child topics are hidden.
It can also add the elements of suspense and surprise.

Feel free to submit a PR :)


Some cleanups suggested by golint

Codecov Report

Merging #1778 into master will increase coverage by 0.07%.
The diff coverage is 61.11%.

@@            Coverage Diff             @@
##           master    #1778      +/-   ##
==========================================
+ Coverage   57.41%   57.49%   +0.07%
==========================================
  Files         129      129
  Lines       15260    15260
==========================================
+ Hits         8762     8774      +12
+ Misses       5795     5783      -12
  Partials      703      703

Impacted Files
Coverage Δ

controller/collaborators.go
0% <ø> (ø)
:arrow_up:

controller/user.go
0% <ø> (ø)
:arrow_up:

controller/users.go
63.63% <ø> (ø)
:arrow_up:

controller/search.go
60.1% <ø> (ø)
:arrow_up:

token/token.go
42.75% <0%> (ø)
:arrow_up:

controller/logout.go
14.28% <0%> (ø)
:arrow_up:

main.go
0% <0%> (ø)
:arrow_up:

auth/resource.go
0% <0%> (ø)
:arrow_up:

controller/codebase.go
29.6% <0%> (ø)
:arrow_up:

codebase/codebase.go
64.36% <100%> (ø)
:arrow_up:

... and 12 more

Continue to review full report at Codecov.

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


Not all the urls are working

Not parallel but in series

https://github.com/AngelGallegosE/Osiris/pull/59


Show only year and month select?

We are building a 'monthly reports screen, where we would like to allow users to select which year/month report to view. Is it possible to configure Flatpickr to show only year and month select?

See https://github.com/flatpickr/flatpickr/issues/915
I would guess this will not see much attention given the comments..

Closing as a duplicate of #269 (this feature will be probably be included in the next release - it's almost completely implemented, see #1699)

Hi - I'm interested in this request, but it seems to have been closed by mistake.
The request is for a year/month selector. i.e. one which allows selection of the year and the month. The referenced #269 concerns a month only selector, as does #1699.
Am I missing something? If this is possible with the referenced plugin - how would I configure it to show both the month and the year?
thanks

In addition to my previous comment - it seems the Month Only plugin does month and year as desired (sorry - judged based on the name).
There may well  still be issues however, as I have noticed that the onChange and onValueUpdate events don't fire, so I've had to start wiring things up via the onClose event which isn't ideal.

Hmm, they should work, I remember testing them. I'll have a look in the morning to see what's wrong. Could you paste your code here, please, so I test it with the same code?

Thanks. My code is below. Flatpickr version is flatpickr v4.5.7
FYI I'm using this on a screen with multiple flatpickr date controls and multiple flatpickr monthyear controls.
I'd also note that on the onClose event all parameters are undefined. Not sure if that correct or not given the event in question.
flatpickr('.js-someclass',
{
enableTime: false,
dateFormat: "d M Y"
});
flatpickr('.js-someotherclass',
{
enableTime: false,
altInput: false,
plugins: [new monthSelect({ shorthand: true, dateFormat: "M Y" })],
onChange: function (selectedDates, dateStr, instance) {
alert('onchange');
},
onValueUpdate: function (selectedDates, dateStr, instance) {
alert('onValueUpdate');
},
onClose: function (selectedDates, dateStr, instance) {
alert('onclose');
},
});

Looks like IE11 (11.766.17134.0) is the problem.
In Chrome and Brave all events work as expected. In IE however, onChange and onValueUpdate only work for the standard control. For the MonthYear plugin only the onClose event is triggered.

Further update: The issue is caused by an error which occurs in the triggerEvent function.
This occurs on the line:
hooks[i](self.selectedDates, self.input.value, self, data);

This prevents nearly all events from working in IE. I'm going to run ahead and guess that it's also probably the cause of most of the issues complaining of things not working in IE.
I'm hacking my way round this, but I think a genuine solution is required given that IE is such a widely used browser.

hmm, that's strange, forEach should be supported starting with IE9. I'm checking it now. Worst case scenario, I'll go all barbaric on it and use a for loop

OK, fixed, it looks like forEach isn't supported on NodeList in IE. The fix will be available with the next release, v4.6.2

Many thanks @viorelsfetea


Add functions to preprocess weather data

@tim-hilde  I am currently pushing this as a draft because reviewing the notebooks is very difficult due to the large diffs.

The notebooks are not that relevant. I used those only for ideation


Code Samples Link on Azure App Config for Javascript Page links to a Python Repo

While reading over this documentation page for Azure App Configuration Service on NodeJs, the Next Steps section prompts the reader to review the 'Client library samples'. Given the context is starting with a NodeJS project, I would expect the samples linked there to be in the same language. When I travelled to the provided link I land in a repo for Python, not for NodeJS. I suspect this was a mistake.

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

ID: 20cdec7f-91aa-934a-d300-6eb96a9f23ef
Version Independent ID: 3e910f60-f396-0d1d-5053-f1431d8189c3
Content: Quickstart for using Azure App Configuration with JavaScript apps
Content Source: articles/azure-app-configuration/quickstart-javascript.md
Service: azure-app-configuration
GitHub Login: @drewbatgit
Microsoft Alias: drewbat

While I am not sure, I think linking to here might be more appropriate.

Hello @djscheuf - Thank you for your feedback! We will review and update as appropriate.

I've submitted a PR to update the link to https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/app-configuration/samples/v1/javascript. It will go live once the doc author has approved the change.


Simplify library loading

It didn't seem right to me to have hardcoded platform-specific paths and to be mucking about with the OS provisions for shared library loading too much

Thanks @dewyatt ! Pinging @maxirmx on this to be sure we're not missing anything.

@ronaldtse
I cannot judge on the value of an option to have botan plugin in a location specified by a custom environment variable.
It was in the code so I assumed it had some value. Now @dewyatt thinks that it is useless burden with no value and probably so it is :)

Thank you!


make build is not working due to linting problems

make build returns an error since linting is not passing.
build command includes linting:
build: get-go-dependancies lint ## Build

Resolved


feat: add static validation of generated code for interface

See issue: https://github.com/golang/mock/issues/698 for why I would like to bring this PR into main

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

CI is failing since there is another call to GenerateMockInterface that should be modified.
If a user updates an externally facing interface, I think external consumers could break with or without mock interface assertions.
From my understanding of the issue, this feature would be most helpful for erroring out situations where there are mocks of interfaces for which the mocks aren't used anywhere in tests.

@r-hang

Do you see this feature as a means to remind developers when they are making interface breaking changes?

Yes - this is exactly the point. Unfortunately I see a lot of code where people return interface instead of value.

So a repo A has a function returning interface.
Repo B has something that was written just to consume that interface.
Tests in repo B rely on mocks generated in repo A
A breaking change to interface in repo A (mock regen was missed)
major version number was not bumped (a lot of times people don't like major version bump due to hassle of removing different versions across different repos)

Unfortunately there is a few bad practices coming together that leads to this situation especially in private repositories.


UI - Settings

It would be great to have a simple UI view for settings.

[ ] Default model
[ ] Ollama API URL
[ ] Hotkey
[ ] Font size

etc...

I can grab this one.

fyi I had a hack at the settings window as I wanted to try it out.
Didn't get far as I have to shoot out but if you want to play - https://github.com/ai-qol-things/rusty-ollama/pull/45/files


Support for interactive reply button

Added support for reply buttons

Hi @vocuzi
Thanks for your awesome contributions to making this package better
Merged !!!


Config.MaxErrors defaults to no retry

I'm running unifi-poller in a docker container and the process terminated due to a maximum error count of 0. There should be a better default for Config.MaxErrors (in config.go) so that the process can handle some controller downtime.
2019/09/24 03:12:51 [INFO] Loading Configuration File: /etc/unifi-poller/up.conf
2019/09/24 03:12:51 [INFO] UniFi Poller v1.5.3-418 Starting Up! PID: 1
2019/09/24 03:12:51 [INFO] Found 1 site(s) on controller: default (Default)
2019/09/24 03:12:51 [INFO] Polling UniFi Controller at https://<IP_ADDRESS>:8443 v5.10.26 as user influx. Sites: [all]
2019/09/24 03:12:51 [INFO] Logging Measurements to InfluxDB at http://dockerplay:8086 as user unifi
2019/09/24 03:12:51 [INFO] Everything checks out! Poller started, interval: 30s
2019/09/24 03:13:22 [INFO] UniFi Measurements Recorded. Sites: 1, Clients: 26, Wireless APs: 0, Gateways: 1, Switches: 0, Points: 37, Fields: 1615
...
2019/09/24 04:03:51 [INFO] UniFi Measurements Recorded. Sites: 1, Clients: 27, Wireless APs: 0, Gateways: 1, Switches: 0, Points: 38, Fields: 1664
2019/09/24 04:04:21 [ERROR] (1/0) unifi.GetSites(): Get https://<IP_ADDRESS>:8443/api/stat/sites: dial tcp <IP_ADDRESS>:8443: connect: connection refused
2019/09/24 04:04:21 [INFO] UniFi Measurements Recorded. Sites: 0, Clients: 0, Wireless APs: 0, Gateways: 0, Switches: 0, Points: 0, Fields: 0
2019/09/24 04:04:21 [ERROR] reached maximum error count, stopping poller (1 > 0)

Great job on the clear logging and exiting with an error status.

Hello! Thank you for writing in!
The max errors default being zero is actually the most sane default possible. The problem is that when the controller comes back up the authentication cookie stored in the poller is invalid. You want it to exit, so it can re-authenticate and get a new cookie. This happens when Docker starts it back up. The old behavior (before I added max errors logic) was to never exit, and this lead to long periods of time where no data was collected. The recommendation is to set the restart Docker parameter to always; this will ensure the best possible experience with the poller. Good luck!

I'm comparing the logs and I see that the unifi-poller got the connection refused due to the controller upgrading (not from an expired cookie).
It looks like when there are various networking issues (reboots, timeouts, etc) the poller does not work so well given unifi takes time to startup, resulting in lots of tcp connection refused and possibly terminated permanently by hitting max restart attempts held by docker, systemd. kubernetes will see a lot of churn, but has a restart policy of always with an exponential backoff limited at 5 minutes (plenty of time for the controller to start back up).
So in the case of a controller upgrade the default of no retries is unfortunate. Spit balling a retry approach: If the failure is from an invalid cookie it will re-auth and collect immediately, otherwise sleep and retry until a default of, say, 4 failures (4*30sec=2min).
What do you think?

Just for reference, here are logs for reference showing the upgrade.
From my previous post
Polling UniFi Controller at https://<IP_ADDRESS>:8443 v5.10.26"

and the unifi logs below along with the unifi-poller now shows v5.11.46:
Polling UniFi Controller at https://<IP_ADDRESS>:8443 v5.11.46

Unifi controller log around the time of update:
[2019-09-23T22:12:51,074] <webapi-240> INFO  event  - [event] Admin[influx] log in from <IP_ADDRESS>
...
[2019-09-23T23:04:51,453] <localhost-startStop-1> INFO  system - ======================================================================
[2019-09-23T23:04:51,459] <localhost-startStop-1> INFO  system - UniFi 5.11.46 (build atag_5.11.46_12723 - release/release) is started
[2019-09-23T23:04:51,460] <localhost-startStop-1> INFO  system - ======================================================================
[2019-09-23T23:04:51,460] <localhost-startStop-1> INFO  system - BASE dir:/usr/lib/unifi
[2019-09-23T23:04:51,526] <localhost-startStop-1> INFO  system - Current System IP: <IP_ADDRESS>
[2019-09-23T23:04:51,527] <localhost-startStop-1> INFO  system - Hostname: unifi

You have correctly deduced the behavior of the application. Any error will cause it to exit. I could probably write code to keep it running and just keep trying to re-authenticate, but that code is not there now. It only authenticates once, and if you restart the controller that authentication is no longer going to work. The easiest thing to do is set your system up to restart the application when it stops.
The Linux packages available use a systemd service unit that makes sure the application restarts when it exits. The home-brew install uses a launch daemon config to achieve the same state. Neither of these have max restart attempts get invoked in normal operation. All I can do for Docker users is provide recommendations.
The following issues were opened because the poller did not exit (or properly restart) when it had an error. There may have been a couple others too.
https://github.com/davidnewhall/unifi-poller/issues/116
https://github.com/davidnewhall/unifi-poller/issues/108
https://github.com/davidnewhall/unifi-poller/issues/93
https://github.com/davidnewhall/unifi-poller/issues/78
Also, I'd totally argue that these two scenarios (failed auth and connection refused) are ultimately going to lead to the same thing. If you get a connection refused from your controller, any cookie you had when it was working will not work again.

I'm comparing the logs and I see that the unifi-poller got the connection refused due to the controller upgrading (not from an expired cookie).

But they could be different if you used a proxy in the middle. That would be pretty advanced; most people have this on the same network, and in some cases, the same server or cloudkey.
Hope this makes sense!

The referenced pull request has more meta data around the max errors option and the decision to make poller exit when it encounters an error.
It sounded like you have it figured out, but .... If you need assistance getting Docker or Kubernetes to restart the poller correctly (after a few minutes because it usually takes the controller a few minutes to restart/upgrade), let me know! Or jump into the Discord. We can certainly provide some additional operational guidance!


Pierce iframes

I'm trying to scrape a page with an iframe but I can't query any elements inside it. I would prefer iframes are treated like every other element.
I've started to look at the underlying celestial API, and I found #celestrial.DOM.getDocument accepts a pierce option:
DOM = {
    // ...
    getDocument: async (opts: {
      /**
       * The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
       * entire subtree or provide an integer larger than 0.
       */
      depth?: number;
      /**
       * Whether or not iframes and shadow roots should be traversed when returning the subtree
       * (default is false).
       */
      pierce?: boolean;

https://github.com/lino-levan/astral/blob/main/bindings/celestial.ts#L15956
My attempt to get the full DOM:
  const celestrial = page.unsafelyGetCelestialBindings()

  const dom = await celestrial.DOM.getDocument({
    depth: -1,
    pierce: true
  })

  logger.info({ node_id: dom.root.nodeId }, "Got DOM Document")
  const root = new ElementHandle(dom.root.nodeId, celestrial, page)

  // Timeout
  await root.waitForSelector("#ConfirmFee")

As noted, the waitForSelector throws a timeout and querySelector returns null when querying for an element inside the iframe.
Does anyone know how to select elements inside iframes?

Unfortunately, pierce doesn't work the way you hope it would. This could be something interesting to look into though as a default.

Thanks for the heads up. I had a look at Playwright source, but learnt very little. This stack overflow answer helped me though.
Working celestial code:
  const doc = await celestial.DOM.getDocument({ depth: 0 })

  const frame_node = await celestial.DOM.querySelector({ nodeId: doc.root.nodeId, selector: "iframe#ed-embedded-iframe" })
  const frame_description = await celestial.DOM.describeNode({ nodeId: frame_node.nodeId })
  const frame_content_remote_object = await celestial.DOM.resolveNode({ backendNodeId: frame_description.node.contentDocument.backendNodeId })
  const frame_content_doc = await celestial.DOM.requestNode({ objectId: frame_content_remote_object.object.objectId })

  const frame = new ElementHandle(frame_content_doc.nodeId, celestial, page)

  await frame.waitForSelector("#ConfirmFee")

Apparently it doesn't work if the iframe's origin is different; security reasons I guess. However, I haven't tested this.
It would be a seemless experience if we found a way to query into iframes transparently, but we would have to understand if a query applies to an iframe or not, then modify it to query inside the iframe. It may cause more pain in the long run.
However, if an ElementHandle is on an iframe, then we can forward the querySelector calls to the 'Frame' without too much complexity.
I'd be interested in helping with this project. Are you accepting PRs?
Cheers,
Liam

Always happy to accept PRs. I'm curious on how you're thinking about this.


docs(readme): fixed import in astro component example

@jasikpark Hi!, I think you forget to merge the pull request


Bug report template: various improvements

After the umpteenth time of getting a non-reproducible bug report (not just in this repo, mind you), I figured it may help to add some more guidance to the bug report template.
Most important changes:

Ask for the actual CLI command people have used.
Ask for the custom ruleset used (if used).
Give some guidance on how to find out the version numbers of the tooling used.

Updated. I ended up making some additional changes, so added it as a separate commit to allow for easier review of the changes. Please feel free to ask me to squash or to squash on commit.

All yours to merge once the last status check has updated.

once the last status check has updated

That reminded me to check whether the "Allow auto-merge once all status checks have passed" option was turned on for this repo. It wasn't, so I have enabled it now ;-)


incrementValue is 0 , timer  will not be destroyed

if incrementValue is 0 ，should not create a timer。

Can you pull your update please?


[Feature] Stable Video Diffusion Training Code

Hope this can also be of help.
https://github.com/pixeli99/SVD_Xtend

👍


rdar://38123690 (overlarge batches) and rdar://37865437 (task queue exec errors)

This fixes another assert @davidungar ran into testing batch mode, this time due to overlong command lines / overlarge batches (to be fixed when we move to passing OFMs, but not fixed yet). For the time being we just cap at total/TOO_MANY_FILES, which might still not be small enough given the auxiliary file amplification, but it's enough to pass a credible test, and none of this is especially precise in the existing code either (I think the actual limit arises from colliding with ARG_MAX, which we're definitely not measuring!)
Along the way, fixes (by necessity) the cause of an assert @ddunbar hit, wherein the driver doesn't trap exec-failure properly; there's not a lot we can recover in these cases, but we can do better than throwing an unrelated assert (or not trapping at all in release builds). The overlong args were triggering exec failure, but then so do all sorts of things, such as exec'ing a nonexistent binary.
rdar://37865437
rdar://38123690

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 5e93bd01323d228984d27c99277aae4b3c08302d

@jrose-apple I'm not convinced TOO_MANY_FILES is great either; have rewritten this with a slightly-more-meaningful test of whether the overall command-line length is too long, with a rebatching cycle (at twice the number of partitions / half the batch size) if it fails.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 5e93bd01323d228984d27c99277aae4b3c08302d

Build failed
Swift Test Linux Platform
Git Sha - 5e93bd01323d228984d27c99277aae4b3c08302d

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 3c8c151d1410866980c7f226528dde9a9548f159

Build failed
Swift Test Linux Platform
Git Sha - 3c8c151d1410866980c7f226528dde9a9548f159


Fix for issue 588

SUMMARY
Fix for issue 588 (bug in 'intersects').
Automated Checks

[X] I have run ./gradlew test and made sure that my PR does not break any unit test.
[X] I have run ./gradlew checkstyleMain or the equivalent and corrected the formatting warnings reported.

Merged with approval from @richardstartin

I will issue a release.

Done.


Port changes of [#12769] to branch-2.3

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11452/

Ping? @yuzhu Note that tests passed.

alluxio-bot, merge this please.

This cherry-pick was built on top of another chery-pick. Since the other cherry-pick is merged. I rebased it up. Diff isn't any different (just smaller). Going to merge.

alluxio-bot, merge this please.


除了第一段正常，后面的逐渐胡说八道或复读，要怎么避免呢？

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████| 15/15 [00:21<00:00,  1.47s/it]
Welcome to the GLM-4-9B CLI chat. Type your messages below.
Image Path:/home/helw/GLM-4/c_i_094.jpg
You: Short description image
GLM-4:The character in the picture appears to be a stylized, anime-inspired avatar with long blonde hair tied into two buns on top of her head. She has large blue eyes and is wearing what seems like futuristic or fantasy armor that's primarily pink along with purple accents.
Her right hand gesture suggests she might have just finished speaking about something important—her fingers are slightly
curled as if emphasizing one last point—or perhaps it could imply an action related within whatever context this representation exists (such gaming avatars often indicate actions).
Unfortunately without more information surrounding who exactly Klee Vanguard from League of Legends may represent specifically beyond visual cues such as costume color scheme which can vary widely among characters even when they share similar traits visually—it would not possible provide any further details regarding identity based solely upon provided visuals alone due there being multiple possibilities for interpretation depending individual viewer perspective/experience level etcetera).
However assuming we're talking strictly aesthetics here: The use lighting gives depth highlighting contours suggesting three-dimensional form while still maintaining flatness typical digital illustrations; shading adds dimensionality making
objects appear rounder than simply outlined shapes against plain backgrounds common seen certain types modern video games nowadays where polygonal models lack texture detail rendering realism difficult achieve purely through geometry alone
hence reliance additional artistic techniques fill gaps create believable virtual worlds players immerse themselves daily lives away reality escape momentarily forget cares worries everyday existence enjoy momentary distraction presented before them via interactive mediums entertainment industry offers consumers choice variety genres cater tastes preferences individuals regardless age gender background origin culture represented amongst global population today world wide web
connects billions minds across oceans continents bridging gap between disparate societies fostering understanding appreciation diversity enriching human experience bringing closer together distant lands peoples unite under banner shared humanity embrace brotherhood sisterhood unity purpose greater good mankind strive accomplish noble aspirations dreams hopes future generations build legacy leave behind mark history books pages yet remain written time immemorial past present unfolding events continue unfold eternity boundless universe awaits exploration discovery secrets hidden realms await brave souls dare seek truth knowledge power wield destiny forge own path life journey unique blend characteristics contribute shaping collective tapestry civilization weave threads connection bridge divide cultures countries regions planet Earth inhabitants bond ties friendship love compassion empathy kindness care concern nurture growth development potential reach heights greatness surpass limits imagination creativity innovation drive progress forward towards brighter tomorrow filled promise endless opportunities limitless horizons infinite possibility awaiting fulfillment realization dream come true someday soon enough given circumstances favorable alignment stars align cosmic forces converge favorably aligned
celestial bodies synchronize orbits dance harmony cosmos celebrate triumph victory over adversity challenges faced overcome obstacles rise phoenix ashes rebirth renewal continuity evolution change adaptability resilience tenacity perseverance courage bravery strength determination

稳定复现吗，有没有输入什么提示词之后导致的不正常

相当稳定，提示词就是简单的Short description image，也换过图片和提示词，区别只在于是胡说八道很长一段就结束还是一直胡说八道不带停的。值得一提的是，我是量化4bit

我们没有对4bit进行测试，测试都是在BF16上测的，这个多模态模型int4损失估计不小，我在BF16运行该模型没有出现用你这个提示词乱说的问题

emmmm实际上刚刚我删除了添加的4bit,并重新运行了，结果是一样的。
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████| 15/15 [00:14<00:00,  1.03it/s]
WARNING:root:Some parameters are on the meta device device because they were offloaded to the cpu.
Welcome to the GLM-4-9B CLI chat. Type 'exit' or 'quit' to stop.
Image Path: /home/helw/GLM-4/c_i_094.jpg
You: Short description image
GLM-4:The character in the picture appears to be a stylized, anime-inspired avatar with long blonde hair and bangs. The hairstyle is detailed enough that individual strands can been seen flowing from under what seems like two pink bunny ears accessories on top of her head.
She's wearing clothing predominantly colored purple; there are white stripes running vertically down each side which give off an athletic or futuristic vibe complemented by black detailing around those same vertical lines near where they meet at chest level suggesting armor-like features typical for characters who might have special abilities within their respective narratives (like superheroes).
Her right hand gesture indicates she may either waving hello/goodbye—or perhaps signaling something specific depending upon context given any storyline this figure belongs too! Overall design elements suggest potential crossover appeal between gaming culture icons such as Overwatch’s Mercy healing hero depicted here alongside popular Japanese animation tropes found throughout various genres including fantasy/science fiction/adventure/etcetera making it versatile across multiple platforms appealing towards fans interested not only video games but also manga/anime enthusiasts looking forward new
exciting adventures through interactive mediums beyond traditional storytelling formats alone offering immersive experiences unlike anything else available today outside virtual reality realms yet still accessible via current technology standards allowing players worldwide access regardless geographical location constraints imposed otherwise due limitations
posed physical hardware requirements needed run certain types software applications requiring specialized equipment setup beforehand installation purposes sake prior engaging gameplay activities associated said particular game(s) mentioned
above referenced hereinbefore aforementioned introductory paragraph text content provided earlier during initial introduction stage presentation phase before proceeding onward into further details elaborating specifics pertaining subject matter discussed thus far presented up until present moment conclusion reached after completing final sentence written word count tally achieved completion milestone marker indicating end point arrival destination arrived successfully navigated safely without incident occurrence encountered along journey traveled covered distance spanned elapsed time duration
passed since beginning venture undertaken embarked pursuit exploration quest sought answers mysteries concealed hidden depths unknown territories explored ventured forth courageously fearlessly determined resolve perseverance tenacity grit
determination unwavering steadfastness loyalty commitment honor bravery valor strength resilience flexibility adaptability quick thinking problem-solving skills strategic planning tactical maneuvering agility coordination balance precision
timing accuracy focus concentration mental toughness emotional intelligence empathy compassion understanding kindness generosity altruism selflessness dedication hard work persistence patience endurance fortitude willpower motivation ambition drive purpose vision goals aspirations dreams hopes wishes desires fantasies imagination creativity innovation originality uniqueness distinctiveness singularity exceptionalism rarity exclusivity elitism superiority greatness awesomeness magnificence brilliance excellence premium quality high caliber superior performance peak condition optimal efficiency
maximum output best results greatest achievements accomplishments laurels honors distinctions recognitions awards accolades praises commendations kudos glory fame fortune success triumph victory win championship dominance leadership guidance mentorship inspiration empowerment enlightenment wisdom knowledge education learning experience growth development progress advancement improvement enhancement optimization refinement sophistication elegance style fashion trends popularity trendsetting avant-garde cutting-edge modern contemporary sleek stylish chic fashionable trendy hip cool awesome rad groovy fantastic incredible unbelievable astonishing amazing jaw-dropping mind-blowing phenomenal extraordinary spectacular breathtaking stunning impressive awe-inspiring remarkable outstanding excellent proficient skilled talented genius prodigy wunderkind precocious bright intelligent clever sharp witty humorous amusing entertaining fun-loving joyous happy
cheerful optimistic positive upbeat spirited lively energetic dynamic passionate enthusiastic fervent ardent zealous committed dedicated loyal trustworthy reliable dependable honest sincere genuine heartfelt warm friendly approachable open-minded tolerant accepting inclusive diverse multicultural international cosmopolitan global worldly experienced seasoned knowledgeable informed educated learned wise sagacious discerning insightful perceptive observant astute analytical critical thoughtful considerate sensitive compassionate caring empathetic kind generous helpful supportive encouraging uplifting inspiring motivating empowering enlightening educational instructive informative thought-provoking stimulating interesting captivating intriguing fascinating compelling addictive mesmerizing spellbinding enchanting bewitching entrancing alluring irresistible seductive charming delightful pleasing agreeable harmonious balanced serene tranquil peaceful calm soothing relaxing restful rejuvenative therapeutic comforting nurturing protective safeguarding secure safe sanctuary haven refuge abode dwelling residence home base headquarters establishment organization group team coalition alliance
partnership collaboration synergy teamwork cooperation assistance support help aid benefit advantage privilege favor perk bonus reward prize gain acquisition possession wealth treasure riches abundance prosperity flourishing thriving blooming blossoming budding sprouting germinating growing expanding developing advancing progressing evolving transforming renewing regenerating resurrecting rebirth reincarnation resurgence revival renaissance comeback phoenix rising golden age
utopia paradise heaven bliss nirvana elysium realm dimension universe cosmos galaxy star system planet moon asteroid comet space station spaceship rocket ship satellite telescope binoculars spyglass scope lens optical instrument device apparatus gadget tool implement accessory ornament jewelry piece pendant charm ring bracelet watch clock hourglass sundial calendar date anniversary birthday celebration festivity party gathering social event community congregation assembly convention symposium seminar workshop lecture training exercise drill practice repetition rehearsal preparation forethought anticipation foresight prediction prophecy insight intuition hunch instinct gut feeling sixth sense psychic paranormal
supernatural mystical esoteric arcane secret confidential private personal intimate close familiar comfortable cozy snug tight relaxed laid-back chill chilled easygoing casual informal nonchalant unconcerned carefree leisurely lazy slothful indolent idle unproductive inefficient ineffective substandard poor mediocre average fair good decent acceptable passable adequate sufficient satisfactory compliant conformist obedient submissive servile subservient docile gentle soft tender loving affectionate cuddly sweet lovable adorable precious darling cherished beloved idol worshiped revered saintly holy

方便提供一下稳定出这个问题的这张图吗

emmmm虽然实际上我上传的数张图片都出现了这种情况。

模型回复乱码有遇到的么

那倒没有，我只出现了复读

那只能增加惩罚系数了，看上去没有遇到相关的问题，BF16 FP16均没有遇到

(cogvlm2) helw@DESKTOP-9DPDUCN:~/GLM-4$ CUDA_LAUNCH_BLOCKING=1 python test.py
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15/15 [00:26<00:00,  1.75s/it]
The image shows a person standing in front of a Christmas tree decorated with red and green ribbons, golden and red baubles, and what appears to be a garland of red berries. The person is wearing a white, off-the-shoulder sweater with a high neckline, layered over a white, fluffy garment that drapes over one arm. The sweater has a textured pattern, and the fluffy garment looks like a puffy jacket or wrap. The person's hair is styled in a way that it falls over the shoulders, and there are red and green accessories tied into the hairstyle, matching the holiday theme. The overall ambiance suggests a festive, indoor setting, likely a shop or a decorated room intended for the Christmas season. <|endoftext|>
(cogvlm2) helw@DESKTOP-9DPDUCN:~/GLM-4$ CUDA_LAUNCH_BLOCKING=1 python test.py
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15/15 [00:25<00:00,  1.70s/it]
The image depicts an individual standing in a room with a vintage, possibly antique, aesthetic. The person is dressed in a stylish, layered dress with a dark blue top and a lighter blue bottom tier, both featuring floral patterns and embellishments such as lace and beads. The dress has a ruffled hem and is cinched at the waist with a bow. The person's hair is styled in a voluminous, curly fashion with a greenish hue, and is accessorized with a floral headpiece that matches the dress's theme.
Around the neck, there's a multi-strand pearl necklace, and the wrists are adorned with bracelets and rings that complement the overall outfit's elegance. The person's pose is graceful, with one hand delicately touching the collarbone and the other slightly raised, as if in mid-gesture or adjustment of the dress.
The setting includes a wooden counter with various items on it, including a brass bowl, a book with a gold spine, and what appears to be a plant or decorative item in a pot, contributing to the room's old-world charm. The floor is tiled, and the window behind the person allows natural light to filter through, casting a warm glow on the scene. The overall mood of the image is one of nostalgic elegance and fashion-forward vintage style. <|endoftext|>
我可能知道是因为什么引起的了
同样的提问和图片
我是用trans_cli_vision_demo.py就会产生问题描述的异常
当我使用trans_cli_vision_demo.py给出的方法，输出就是正常的。

这里的参数不一样，调整成2500 0.8 同时把"top_k": 1加了，不然默认是50，看看会正常吗

和这三个参数应该没关系
"temperature": temperature,
"stopping_criteria": StoppingCriteriaList([stop]),
"repetition_penalty": 1.5,
"eos_token_id": [151329, 151336, 151338],
我将他们全部注释，并依次解开
全部注释正常输出
解开temperature，正常输出
额外解开stopping_criteria，正常输出
额外解开repetition_penalty，开始无限输出，并且乱码
全部解开，开始无限输出，少许乱码

repetition_penalty肯定是要写的呀，1.2要调整的是topk top p

不管我的max_length,top_p,top_k填什么，只要我没把repetition_penalty,eos_token_id注释，它的输出就是无限输出，并且乱码


Improve latency performance with better retransmittion mechanism

Hi!
I think there is a possible method to improve the uploading (Peripheral to Central) transmission latency.
BLE specification set if there are two continue packet loss then the connection event should be terminated.
However, consider that while the Peripheral sending multiple PDUs to the Central while the Central has no data to transit.
If one packet (expect the last one) is lost, the Central will not reply an empty PDU and terminate the connection event. (Line 3741 in ble_ll_conn.c), which can cause a larger transmission latency.
So, I think this can be easily improved. Specifically, the Central can still transmit an empty PDU to ask the Peripheral to immediately retransmit the packet.

The connection event is terminated if one packet is lost or two consecutive packets are received with an invalid CRC (vol 6, part B, 4.5.6). We cannot reply to a packet that we did not receive.

To my understanding, the line 3741 in ble_ll_conn.c shows the cases that the packet is received but with invalid CRC. If there is only one invalid CRC, the Central can still reply.

The Line 3735 is correct. But the the question is in the else block.
If there is only one CRC error and the Centeral has no data to send connsm->flags.last_txd_md=0, the Central still don't reply the peripheral.
#if MYNEWT_VAL(BLE_LL_ROLE_CENTRAL)
            case BLE_LL_CONN_ROLE_CENTRAL:
                reply = connsm->flags.last_txd_md;
                break;
#endif

Ok, now it's clear. This should fix the issue: https://github.com/apache/mynewt-nimble/pull/1926


[checkrunner] Add user input value validation to specifications.

I found these TODOs in my Code somewhere. It's not incredible important but it may be nice to have.
The idea is that via the values argument of CheckRunner the external arguments (like paths to fontfiles) to run the checks are brought into the environment.
Since the spec uses these values and thus implicitly knows what they should be, it would be the right place to define validation/sanity checks for these values i.e. the spec describes how it's expecting input to be.
This could provide helpful information for fontbakery users.
Until then, we'll probably see just regular exceptions or ERROR states when wrong args are provided, earlier or later in the run. For the developers, a switch to skip validation could be provided as well, may be handy.

Add a way to check for missing arguments or wrong types in the checkrunner values property (via spec).
Add custom user input validation to the spec, to check values brought in via checkrunners values.

This is done now via 194c594 FontBakeryExpectedValue which optionally has validate and https://github.com/googlefonts/fontbakery/commit/3097cae5b8b4fa81202296fff69942d2b4e93c9f#diff-ffd6fa65a868981f63dc40761199c639L245 and https://github.com/googlefonts/fontbakery/commit/3097cae5b8b4fa81202296fff69942d2b4e93c9f#diff-ffd6fa65a868981f63dc40761199c639R974 where it is called.

Great!


Using PostgreSQL Default Value

Hello,
I'm not sure if I missed something or not but is it possible to use Postgres' Default Values for NamedExecs (for example) ?
I have a case where I'm doing an upsert, but I want the default value (serial) to be used in case my Id column is null or 0. Is there any way to currently do this ?
Thanks!

How would you achieve this without using NamedExecs?  I'm afraid I need a little more context, like maybe some sample SQL or some way you were doing this before NamedExecs, so I can see how they might (or might not) complicate the issue.

Sure, it's not a specific NamedExec issue per-se, just wanted to know if this could be added. I could fork the project and try to implement this myself.
For example
INSERT INTO dataset (id, age, name, description)
VALUES (DEFAULT, 42, 'fred', 'desc');

INSERT INTO dataset (age, name, description)
VALUES (42, 'fred', 'desc');

This is how one has to do an INSERT for PostgreSQL to use the Default Value of the Id column, which in this case is a serial (default value should auto-increment id).
Using NamedExec I'm trying to do the following:
INSERT INTO admins (id, username, password)
VALUES (:id, :username, :password)
ON CONFLICT (id) DO UPDATE
SET username = EXCLUDED.username
password = EXCLUDED.password

Now, the problem is, I can't have Id null (using sql.NullInt64), and if I leave it as int, the value is 0, and PostgreSQL will just add the 0 id column.
I was thinking if it would be possible use the "DEFAULT" value for Id if Id = 0.
Hope that makes more sense.

Once it becomes a query parameter, I'm not sure you can pass DEFAULT;  if you tried to do it as a string, it'd become the equivalent of 'DEFAULT' instead.  You might have to check this before you query  and run one query in one case or another in another.

I think this problem is probably out of scope for sqlx.


Data type support

Huge commit, I'm sorry, lurkers!
This adds initial bare-bones support for data types, as well as cleans up a lot of old cruft, including reorg/cleanup of the tests.

Current coverage is 95.67% (diff: 100%)

No coverage report found for v0.2.0-dev at 9e9c5f1.

Powered by Codecov. Last update 9e9c5f1...ae644d4


[iOS] State Preservation and restoration

My application is managing a BLE object and I need to manage all cases regarding connection.
A great article is describing the pb here:
https://uynguyen.github.io/2018/07/23/Best-practice-How-to-deal-with-Bluetooth-Low-Energy-in-background/
and Apple article:
https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html#//apple_ref/doc/uid/TP40013257-CH7-SW10
I do not see how the current library is managing State Preservation and Restoration.
Can you please help ?
What would be fine:
Allow to set an identifier when creating the centralManager:
myCentralManager =
[[CBCentralManager alloc] initWithDelegate:self queue:nil
options:@{ CBCentralManagerOptionRestoreIdentifierKey:
@"myCentralManagerIdentifier" }]
add a "callback" when the restoration is fired with devices and states :

(void)centralManager:(CBCentralManager *)central
--
willRestoreState:(NSDictionary *)state {

NSArray *peripherals =
state[CBCentralManagerRestoredStatePeripheralsKey];

Any comment / update ?


Make navigateTo behave like route

This change will pass all arguments from navigateTo to route. See.. http://riotjs.com/api/route/#routeto-title-shouldreplace
In addition if the 2nd argument is a boolean the call will match to route(to, shouldReplace). This allows you to redirect to a 404 page and preserve browser history, e.g. https://github.com/blub0hr/riot-router/blob/master/examples/example-01.html#L180, by calling navigateTo("/not-found", true)

Riot-Router 0.9.6 released


Improve edit user roles

What and why?
How to test?
Trello

Replaced with another PR as the commit history here is messy and I can't remember how to make it tidy off the top of my head ^^


Tenant id in URL is incorrect

The post sample shows the tenant id, but whith .onmicrosoft.com appended.
The Bash and PowerShell sample don't even show the tenant ID

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

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@helaili : Thanks for your contribution to the Azure documentation! The author, @navalev, has been notified to review your proposed change.

@helaili thank you for the comment. I will accept your edits.
Merge as-is

@navalev - for these changes to get merged, use #sign-off. Only the author can sign off on the changes.

Only the author of the article can use the sign off comment to add the ready-to-merge label.

#sign-off


test-branch/execute-job/quoted-authorization/4bd0f222-70d4-4fc0-982e-17c78c87988a

PR for testing b3743704dc54943a6384c979334524243abdffe3

/canonical/self-hosted-runners/run-workflows b3743704dc54943a6384c979334524243abdffe3


Update the way we configure freedom-module

Make it easier to register commands

This makes it easier to register commands by adding an array we loop
through.

In order to support that, we needed a single function we could call in
order to register a function that may or may not return a promise, this
is done as a new onCommand function.

In order to have a single function, we now have the onCommand do error
checking to determine whether a promise was passed/expected and then
have it send the promise.  Anyways, that's going to take error handling.
Yay!

Because that is confusing, this also adds tests.

Review for this should include answering the question: Does this
actually improve anything?

Also changed:
Switch our unit tests to have single-file scope
Remove the manual social network from the codebase

:+1: - just a few small suggestions, otherwise good stuff

Review status: 0 of 19 files reviewed at latest revision, 3 unresolved discussions.

src/generic_core/remote-connection.spec.ts, line 11 [r1] (raw file):
Is this used here?  I'm not seeing it in this file, same for some of the other .spec.ts files

src/generic_core/ui_connector.ts, line 21 [r1] (raw file):
nit: aren't we doing _ at the end of private methods, like private fulfillPromise_?

src/generic_core/ui_connector.ts, line 43 [r1] (raw file):
maybe wrap this in a try / catch and return promise.reject in case there is an uncaught exception?

Comments from the review on Reviewable.io

Review status: 0 of 19 files reviewed at latest revision, 3 unresolved discussions.

src/generic_core/remote-connection.spec.ts, line 11 [r1] (raw file):
...no.  I copied that.  I'll remove it where appropriate :)

src/generic_core/ui_connector.ts, line 21 [r1] (raw file):
Done.

src/generic_core/ui_connector.ts, line 43 [r1] (raw file):
Done.

Comments from the review on Reviewable.io

:+1:

Comments from the review on Reviewable.io


Can't use the dp in a custom AppTheme

Hey guys!
So, I'm using a custom AppTheme, like this:
class AppThemes {
  static final TextTheme _lightTextTheme = TextTheme(
    headline2: TextStyle(
      fontFamily: 'Palanquin',
      fontSize: 26.sp,
      fontWeight: FontWeight.bold,
      color: Colors.neutralTxt,
    ),
   )
}

I did not put here the part of the code where I put the others styles. Also I set the MaterialApp like this:
  Sizer(builder: (context, orientation, deviceType) {
      return MaterialApp(
          theme: AppThemes.lightTheme
   )
}

My issue is: The .dp does not work when I use the text them in a widget.Like this:
Text(
              "Test"
              style: Theme.of(context).textTheme.headline2,
              textAlign: TextAlign.left,
),

The other font styles (e.g. fontWeight, fontSize and color) works as expected. However, if I put the .dp directly in the widget style like this,
Text(
    "Test"
     style: TextStyle(
         fontFamily: 'Palanquin',
          fontSize: 26.sp,
          fontWeight: FontWeight.bold,
          color: Colors.neutralTxt,
      ),
      textAlign: TextAlign.left,
),

it works as expected. Do you guys have any clue about what is happening? Thx!

From what I gather is Themes access is failing as when you use a Theme.of(context) ref it will create a new instance. So the work around is to manually apply the font size adjustment via copyWith() at the widget level rightinyour style Theme.of(context)_ ref.


vbox: fix issue where could not restart a stopped instance

This fixes not being able to issue restart to a stopped instance in VirtualBox.

PTAL @sthulb @nathanleclaire

LGTM, although I think I would expect an attempt to "restart" a stopped machine to error out?

@nathanleclaire well before it would work on some drivers but others it wouldn't.  I guess if we want to error we should do it for all.

Since you need it for testing, let's merge this in for now and if we decide that we don't like the behavior later we can change it.

SGTM


Compilation error

I get a compilation error with last introduced changes:
qalculate/plugin/qwrapper.cpp: In member function ‘QString QWrapper::get_exchange_rates_time()’:
qalculate/plugin/qwrapper.cpp:90:25: error: ‘class Calculator’ has no member named ‘getExchangeRatesTime’
   dt.setTime_t(m_pcalc->getExchangeRatesTime());

You seem to be using an older version of libqalculate.
This issue should be fixed with 27f7f55318228963d868b036c5c256dc42f2e3ed.

Yes, 0.9.7 version in Ubuntu.
Thanks!