Add OS details in Nodes view

In v1.6, we have a Infrastructure -> Hosts view showing us:

Host OS
Host kernel
Docker version

This makes it easy to spot differences in OS/kernel/Docker when troubleshooting a cluster.
"os": {
"dockerVersion": "17.3.2",
"kernelVersion": "4.4.0-119-generic",
"operatingSystem": "Ubuntu 16.04.4 LTS"
}

Version - 2.0 master 4/25
Verified fixed

This was added in the Node view and not in the Nodes view.
To emphasize why this is important to have:

Easily see OS in a cluster (possibly problems related to OS)
Easily see kernel in a cluster (possibly upgraded and activated on reboot, can be source of many issues)
Easily see Docker version (Could also be upgraded, can be source of many issues)

In 1.6 a great amount of issues was discovered just by checking the Hosts view and seeing those variables.

Docker version has been added in node list view. it's already a very busy table.
@vincent99 should we add OS and kernel info in node list view? If yes, where should we put them?


adapt logs accordingly

The purpose of the pull request is to correct inconsistent messaging in SDCcc logs, in particular "No problems were found" together with "Test run was invalid" one after another.
Checklist
The following aspects have been respected by the author of this pull request, confirmed by both pull request assignee and reviewer:

Adherence to coding conventions

[x] Pull Request Assignee
[x] Reviewer

Adherence to javadoc conventions

[x] Pull Request Assignee
[x] Reviewer

Changelog update (necessity checked and entry added or not added respectively)

[x] Pull Request Assignee
[ ] Reviewer

README update (necessity checked and entry added or not added respectively)

[x] Pull Request Assignee
[x] Reviewer

config update (necessity checked and entry added or not added respectively)

[x] Pull Request Assignee
[x] Reviewer

SDCcc executable ran against a test device (if necessary)

[x] Pull Request Assignee
[ ] Reviewer

What about marking the test run as invalid in the xml files? Will you open a different PR for that?

Since this was reported by a user, I would suggest solving both issues in the same PR and adding a Changelog entry as this will help the user to see in which release this has been fixed.

Also give this PR a better title, as "accordingly" does not have any reference.


In DM Escort, the former civilian player is given a random class on team change.

When attempting to make a "Mercenary VIP" map (VIP Escort where Mercs guard [and attack] the Civilian), the player assigned to Civilian will become a random, possibly non-Merc class on teamchange. This can be caused by scramble, or by map logic declaring teams switch after a victory. In addition, this player can often be misattributed as still being the VIP despite the team and class change, allowing for the attackers to win by their own player being killed as a non-Civ.
Entity affected: of_logic_esc
Images: Non-Civilian "VIP" moved to RED after a round completes, who has been given a new class.

Suiciding as the fake VIP allows RED to win because the game thinks I'm still a Civ on BLU.

Killing the new real Civilian will not work.

Internally Fixed, class change and force class gamemodes have been cleaned up.


Add aktualizr-check-discovery to shipped files

Actually, I was a bit too fast, it needs a commit bump as well...

Oh, right, I have that in my local.conf right now. I was the one that was too fast...


add ernie-func-8k model

 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.


Doesn't update to 2.9 in Sketch Runner in Sketch 72.1

2.9 is displayed as available and ready to update in Sketch Runner but update is not possible.

I have the same issue. Looks like @sonburn forgot to update the version inside manifest.json.

@Tafkadasoh You're right. That's still at 2.8.

@F-DK, @Tafkadasoh, thanks guys, should be fixed now. Sorry for the annoyance!

@sonburn Thank you for the quick resolution


Cannot compile example

Hi,
I'm trying to compile the "show_sprite" sms example, but I cannot do it. I have wla-dx in the system path.:
C:\Users\ANSJ\Documents\GitHub\MAPeD-SPReD\samples\sms\show_sprite>wla-z80 -I ..\common\ -I .\data\ -o ..\bin\show_sprite.o main.asm
WLA Z80 Macro Assembler v9.7b
Written by Ville Helin in 1998-2008 - In GitHub since 2014: https://github.com/vhelin/wla-dx
USAGE: wla-z80 -[iMqtvx]{lo} -I[INCDIR] [DEFINITIONS]  [OUTPUT FILE]
Commands:             Options:
l  Library file       i  Add list file information
o  Object file        M  Output makefile rules
q  Quiet
t  Test compile
v  Verbose messages
x  Extra compile time definitions
I  Include directory
linking...
C:\Users\ANSJ\Documents\GitHub\MAPeD-SPReD\samples\sms\show_sprite>wlalink -i -r -v main.link ..\bin\show_sprite.sms
WLALINK GB-Z80/Z80/6502/65C02/6510/65816/HUC6280/SPC-700 WLA Macro Assembler Linker v5.8b
Written by Ville Helin in 2000-2008 - In GitHub since 2014: https://github.com/vhelin/wla-dx
USAGE: wlalink [-bdirsSv] -L[LIBDIR]
Options:
b  Program file output
d  Discard unreferenced sections
i  Write list files
r  ROM file output (default)
s  Write also a NO$GMB symbol file
S  Write also a WLA symbol file
v  Verbose messages
L  Library directory
Ok!
Could Not Find C:\Users\ANSJ\Documents\GitHub\MAPeD-SPReD\samples\sms\bin\show_sprite.o
C:\Users\ANSJ\Documents\GitHub\MAPeD-SPReD\samples\sms\bin>show_sprite.sms
'show_sprite.sms' is not recognized as an internal or external command,
operable program or batch file.

Hi,
I tried to reproduce the same situation, with your data path and WLA-DX v9.7b ( instead of  v9.10 I used for the SMS samples; you can read it in the readme file ). And it works well. The sample compiles and runs.
It looks like wla-z80 can't make output file - 'show_sprite.o' in the '..\bin' directory.
So, I don't know... there are several options:

May be something is wrong with your rights in the 'Documents' directory. Try to copy 'MAPeD-SPReD\samples' into any other directory outside of the system 'C:\Users\' and try there to recompile.

May be your security software runs 'compile.bat' in a sandbox. And you need to exclude the 'compile.bat' running from the sandbox. For example, I use the COMODO Security software and it uses sandbox to run unknown programs ( and .bat files too ). And I need to manually ignore running a program in the sandbox.

p.s.: And please use at least WLA-DX v9.10 to compile all samples successfully. I've found compile errors in other samples with WLA-DX v9.7b.
Let me know.

Ah - then it might be something related to my version of WLA. I'm running an older version - but I cannot upgrade at the moment.


Adding short format to tele ls

Description

Adds missing short format output to tele ls to coincide with the tele help description.
Type of change

Bug fix (non-breaking change which fixes an issue)

Linked tickets and other PRs

Closes #1816

TODOs

[ ] Self-review the change
[ ] Write tests
[ ] Perform manual testing
[ ] Write documentation
[ ] Address review feedback
[ ] Update upstream references / tags / versions after upstream PR merges (linked above)

Implementation

Outputs a single column list of images without header.
Ex:
# ./build/tele ls --format=short --all | head
Displaying all available application and cluster images in hub.gravitational.io.

gravity:7.1.0-alpha.5
gravity:7.0.30
gravity:7.0.29
gravity:7.0.28

Performance/Scaling

Testing done

Built and tested tele ls --format=short
Additional information

@zeelewis I've fixed CI with external PRs, but it looks like the recently added golint is failing on this patch, as seen at:
https://drone.teleport.dev/gravitational/gravity/222/1/6
lib/catalog/lister.go:248: File is not `gofmt`-ed (gofmt)

Would you give make lint a run and fix the issues?  Or if you're not interested in carrying this forward, let me know.

@wadells thanks. I've updated the branch after running it through gofmt. It was complaining that I used spaces instead of tabs.

Thanks for your contribution!


Bug: top level directories are removed if there is only one

stacker version
v0.30.1-15-gdc0ada0
Describe the bug
If you attempt to build the stacker.yaml below it will fail.
The reason is that the /files directory is stripped away in the 'mybuild'  layer.  The files 'subuid' and 'subgid' are directly in /.
$ stacker build --layer-type=squashfs --layer-type=tar
...
error: lstat /files/subuid: no such file or directory
error: execute failed: exit status 1
error: exit status 1

$ cat stacker.yaml
mybuild:
  from:
    type: scratch
  import:
    - path: /etc/subuid
      dest: /files/
    - path: /etc/subgid
      dest: /files

mytest:
  from:
    type: docker
    url: docker://ubuntu:latest
  import:
    - stacker://mybuild/files/subuid
    - stacker://mybuild/files/subgid
  run: |
    ls -l /stacker

To reproduce
No response
Expected behavior
No response
Screenshots
No response
Additional context
No response

Part of the fix is this:
--- a/pkg/squashfs/squashfs.go
+++ b/pkg/squashfs/squashfs.go
@@ -135,7 +135,7 @@ func MakeSquashfs(tempdir string, rootfs string, eps *ExcludePaths, verity Verit
        tmpSquashfs.Close()
        os.Remove(tmpSquashfs.Name())
        defer os.Remove(tmpSquashfs.Name())
-       args := []string{rootfs, tmpSquashfs.Name()}
+       args := []string{rootfs, tmpSquashfs.Name(), "-keep-as-directory"}
        compression := GzipCompression
        if mksquashfsSupportsZstd() {
                args = append(args, "-comp", "zstd")

but I think the problem is also happening with tar layers. (fails to build with '--layer-type=tar' also).

When I was poking around trying to fix this, I noticed that each 'import' gets creates its own layer in the created oci.
i think it might be better to have stacker start populating the same overlay that the 'run' would be handed before 'run' (if present) occurs.
Given this stcker.lyaml:
mybuild:
  from:
    type: docker
    url: ubuntu:latest
  import:
    - my-file
    - path: /etc/passwd
      dest: /etc/passwd-host
    - path: /static/some-binary-here
      dest: /usr/bin/
  run: |
    ls -l /usr/bin/some-binary-here
    ls -l /etc/passwd /etc/passwd-host
    ls -l /stacker/my-file

When 'run' occurred:

there would be read-only bind-mount on /stacker (current behavior, i think)
/ would be a single overlay as if imports[1] and imports[2] were not present.
/usr/bin/some-binary-here would be present.

I know that @rchincha was interested in keeping the import logic as simple as possible, and for sure we have some corner cases to work out with the above. What I suggest to handle those edge cases (new file over existing directory, symlink following ...) is just to mimic what gnu 'tar' would do. And one path we could follow for implementation would be to have all the 'import' statements ultimately result in a tar archive, and then to just enter the filesystem view (including /overlay) and extract that tar archive .

quotes :\
rootfs/"/files/"
$ ls
subuid

quotes :\
rootfs/"/files/" $ ls subuid

The scourge of shell will never end.


@ApiParam("some-value") produces "param0" with @RequestBody in 2.8.0

Am I using the wrong construct in order to annotate @RequestBody?  When I used @ApiParam, the Description shows up correctly but the Name shows up as "param0" with "(body)" underneath it.

Could you share your method signature and what it looks like in the api-docs?

Here is a sample of what the JSON looks like:
{
"swagger" : "2.0",
"info" : {
"version" : "1.0",
"title" : "Avada Rest Api",
"contact" : {
"name" : "Avada Software",
"url" : "http://avadasoftware.com",
"email"<EMAIL_ADDRESS>},
"license" : { }
},
"host" : "localhost:9020",
"basePath" : "/Infrared360/rest",
"tags" : [ {
"name" : "avada-rest-api",
"description" : "Avada Rest Api"
} ],
"paths" : {
"/alerts" : {
"put" : {
"tags" : [ "avada-rest-api" ],
"summary" : "saveAlert",
"operationId" : "saveAlertUsingPUT",
"consumes" : [ "application/json" ],
"produces" : [ "application/json;charset=utf-8" ],
"parameters" : [ {
"in" : "body",
"name" : "param0",
"description" : "alert",
"required" : false,
"schema" : {
"$ref" : "#/definitions/Alert",
"example" : {
"$ref" : "swagger/jsonFiles/alertUrl.json"
}
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"schema" : {
"type" : "string"
}
},
"201" : {
"description" : "Created"
},
"401" : {
"description" : "Unauthorized"
},
"403" : {
"description" : "Forbidden"
},
"404" : {
"description" : "Not Found"
}
}
}
}
}

And the PUT method corresponding to /alerts/put above...
/**
     * Save an alert

     *

     * curl -X "PUT" -u sa:sa -H "Content-Type:application/json" http://localhost:9020/Infrared360/rest/alerts -d @someFile.json

     *

     *
     * @param alert json for the alert to be saved.

     * @return Result from saving the alert

     */
    @RequestMapping(value = "/alerts", method = RequestMethod.PUT)
    public <T extends Alert> ResponseEntity<String> saveAlert(
        @ExampleJson("alertUrl")
        @ApiParam("alert") @RequestBody
        Alert alert,
        HttpServletRequest request)
    {
        try {
            ConstantsHome.alertMgr.setAlert(getRequestUser(request), null, alert);
            return new ResponseEntity<>(mapper.createObjectNode().put("success", "alert saved successfully").toString(), HttpStatus.OK);
        } catch (Exception e) {
            return new ResponseEntity<>(mapper.createObjectNode().put("error", e.toString()).toString(), HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }

This isn't necessarily a bug but it isnt working as expected as well. This is what I believe is happening

The param0 is coming from not having the -parameteroption set in the compiler (assuming java 8)
There is most likely an Alert object as a parameter or response object  or may be a property of another object, that isnt annotated with @ApiParam("alert")
-If that was the case, whats happening is the other Alert object's name param0 is overriding your parameter in question.


Package ID parsing panics

Describe the bug
Parsing the package ID git+https://github.com/ComunidadAylas/glsl-lang#0.5.2 panics when krates 0.16.3 is used transitively by cargo deny with the following message:
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/krates-0.16.3/src/lib.rs:127:13:
unable to parse package id 'git+https://github.com/ComunidadAylas/glsl-lang#0.5.2'

As a consequence of this, cargo deny is currently non-functional in my environment.
To Reproduce
Steps to reproduce the behavior:

Run the CI workflow on https://github.com/ComunidadAylas/PackSquash/blob/master/.github/workflows/ci.yml on a commit push, which uses the EmbarkStudios/cargo-deny-action@c9a2a6316320da223aaf3b59d1ac70572e8cf1f8 GitHub action in a step, that has a transitive dependency on krates.
See error.

Expected behavior
Given that Cargo deals with these package IDs fine (i.e., my dependency metadata files are not corrupt), krates should just work, or at least not fail in this way (why was the Clippy lint warning against a panicking From implementation disabled?).
Screenshots

Device:

GitHub CI workflow runners
OS: Linux, Windows, macOS

Additional context
From the perspective of an user of the cargo deny GitHub Action, this is a fairly recent regression. EmbarkStudios/cargo-deny-action@1e59595 worked fine for me.
Rust version: 1.77.0-nightly (ef71f1047 2024-01-21)

I have just found this related issue that was closed, but it looks like the fix might not have been complete, as failures do still happen: https://github.com/EmbarkStudios/krates/issues/64

If you run cargo deny on stable cargo instead of nightly it will work.


Move examples to qoqo_examples

Move examples to qoqo_examples. Clean-up.

Codecov Report

Merging #209 (5610faa) into main (7792346) will increase coverage by 0.87%.
The diff coverage is n/a.

:exclamation: Current head 5610faa differs from pull request most recent head ed82156. Consider uploading reports for the commit ed82156 to get more accurate results

@@            Coverage Diff             @@
##             main     #209      +/-   ##
==========================================
+ Coverage   90.11%   90.98%   +0.87%
==========================================
  Files          33       17      -16
  Lines        5139     3251    -1888
==========================================
- Hits         4631     2958    -1673
+ Misses        508      293     -215

Flag
Coverage Δ

unittests
90.98% <ø> (+0.87%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

qoqo/src/quantum_program.rs

qoqo/src/lib.rs

qoqo/src/circuit.rs

qoqo/src/measurements/cheated_measurement.rs

...measurements/cheated_basis_rotation_measurement.rs

...src/measurements/classical_register_measurement.rs

qoqo/src/operations/mod.rs

qoqo/src/operations/two_qubit_gate_operations.rs

qoqo/src/operations/define_operations.rs

...oqo/src/measurements/basis_rotation_measurement.rs

... and 6 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 7792346...ed82156. Read the comment docs.


More VR performance!

Ping @remibergsma
Integration tests runnning now!

LGTM based on these tests:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=true \
component/test_vpc_redundant.py \
component/test_routers_iptables_default_policy.py \
component/test_routers_network_ops.py \
component/test_vpc_router_nics.py \
smoke/test_loadbalance.py \
smoke/test_internal_lb.py \
smoke/test_ssvm.py \
smoke/test_network.py

Result:
Check the password file in the Router VM ... === TestName: test_isolate_network_password_server | Status : SUCCESS ===
ok
Create a redundant VPC with two networks with two VMs in each network ... === TestName: test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | Status : SUCCESS ===
ok
Create a redundant VPC with two networks with two VMs in each network and check default routes ... === TestName: test_02_redundant_VPC_default_routes | Status : SUCCESS ===
ok
Create a redundant VPC with two networks with two VMs in each network ... === TestName: test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers | Status : SUCCESS ===
ok
Create a redundant VPC with 1 Tier, 1 VM, 1 ACL, 1 PF and test Network GC Nics ... === TestName: test_04_rvpc_network_garbage_collector_nics | Status : SUCCESS ===
ok
Create a redundant VPC with 1 Tier, 1 VM, 1 ACL, 1 PF and test Network GC Nics ... === TestName: test_05_rvpc_multi_tiers | Status : SUCCESS ===
ok
Test iptables default INPUT/FORWARD policy on RouterVM ... === TestName: test_02_routervm_iptables_policies | Status : SUCCESS ===
ok
Test iptables default INPUT/FORWARD policies on VPC router ... === TestName: test_01_single_VPC_iptables_policies | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_isolate_network_FW_PF_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_isolate_network_FW_PF_default_routes_egress_false | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false | Status : SUCCESS ===
ok
Test redundant router internals ... === TestName: test_03_RVR_Network_check_router_state | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test nics after destroy ... === TestName: test_01_VPC_nics_after_destroy | Status : SUCCESS ===
ok
Create a VPC with two networks with one VM in each network and test default routes ... === TestName: test_02_VPC_default_routes | Status : SUCCESS ===
ok
Check that the /etc/dhcphosts.txt doesn't contain duplicate IPs ... === TestName: test_router_dhcphosts | Status : SUCCESS ===
ok
Test to create Load balancing rule with source NAT ... === TestName: test_01_create_lb_rule_src_nat | Status : SUCCESS ===
ok
Test to create Load balancing rule with non source NAT ... === TestName: test_02_create_lb_rule_non_nat | Status : SUCCESS ===
ok
Test for assign & removing load balancing rule ... === TestName: test_assign_and_removal_lb | Status : SUCCESS ===
ok
Test create, assign, remove of an Internal LB with roundrobin http traffic to 3 vm's in a Single VPC ... === TestName: test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80 | Status : SUCCESS ===
ok
Test create, assign, remove of an Internal LB with roundrobin http traffic to 3 vm's in a Redundant VPC ... === TestName: test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 | Status : SUCCESS ===
ok
Test to verify access to loadbalancer haproxy admin stats page ... === TestName: test_03_vpc_internallb_haproxy_stats_on_all_interfaces | Status : SUCCESS ===
ok
Test to verify access to loadbalancer haproxy admin stats page ... === TestName: test_04_rvpc_internallb_haproxy_stats_on_all_interfaces | Status : SUCCESS ===
ok
Test SSVM Internals ... === TestName: test_03_ssvm_internals | Status : SUCCESS ===
ok
Test CPVM Internals ... === TestName: test_04_cpvm_internals | Status : SUCCESS ===
ok
Test stop SSVM ... === TestName: test_05_stop_ssvm | Status : SUCCESS ===
ok
Test stop CPVM ... === TestName: test_06_stop_cpvm | Status : SUCCESS ===
ok
Test reboot SSVM ... === TestName: test_07_reboot_ssvm | Status : SUCCESS ===
ok
Test reboot CPVM ... === TestName: test_08_reboot_cpvm | Status : SUCCESS ===
ok
Test destroy SSVM ... === TestName: test_09_destroy_ssvm | Status : SUCCESS ===
ok
Test destroy CPVM ... === TestName: test_10_destroy_cpvm | Status : SUCCESS ===
ok
test_01_vpc_privategw_acl (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_01_vpc_privategw_acl | Status : SUCCESS ===
ok
test_02_vpc_privategw_static_routes (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_02_vpc_privategw_static_routes | Status : SUCCESS ===
ok
test_03_vpc_privategw_restart_vpc_cleanup (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_03_vpc_privategw_restart_vpc_cleanup | Status : SUCCESS ===
ok
test_04_rvpc_privategw_static_routes (integration.smoke.test_privategw_acl.TestPrivateGwACL) ... === TestName: test_04_rvpc_privategw_static_routes | Status : SUCCESS ===
ok
Test for port forwarding on source NAT ... === TestName: test_01_port_fwd_on_src_nat | Status : SUCCESS ===
ok
Test for port forwarding on non source NAT ... === TestName: test_02_port_fwd_on_non_src_nat | Status : SUCCESS ===
ok
Test for reboot router ... === TestName: test_reboot_router | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_1_static_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_2_nat_rule | Status : SUCCESS ===
ok
Test for Router rules for network rules on acquired public IP ... === TestName: test_network_rules_acquired_public_ip_3_Load_Balancer_Rule | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 41 tests in 22405.035s

OK

And:
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=false \
smoke/test_routers.py \
smoke/test_network_acl.py \
smoke/test_privategw_acl.py \
smoke/test_reset_vm_on_reboot.py \
smoke/test_vm_life_cycle.py \
smoke/test_vpc_vpn.py \
smoke/test_service_offerings.py \
component/test_vpc_offerings.py \
component/test_vpc_routers.py

Result:
Test router internal advanced zone ... === TestName: test_02_router_internal_adv | Status : SUCCESS ===
ok
Test restart network ... === TestName: test_03_restart_network_cleanup | Status : SUCCESS ===
ok
Test router basic setup ... === TestName: test_05_router_basic | Status : SUCCESS ===
ok
Test router advanced setup ... === TestName: test_06_router_advanced | Status : SUCCESS ===
ok
Test stop router ... === TestName: test_07_stop_router | Status : SUCCESS ===
ok
Test start router ... === TestName: test_08_start_router | Status : SUCCESS ===
ok
Test reboot router ... === TestName: test_09_reboot_router | Status : SUCCESS ===
ok
Test reset virtual machine on reboot ... === TestName: test_01_reset_vm_on_reboot | Status : SUCCESS ===
ok
Test advanced zone virtual router ... === TestName: test_advZoneVirtualRouter | Status : SUCCESS ===
ok
Test Deploy Virtual Machine ... === TestName: test_deploy_vm | Status : SUCCESS ===
ok
Test Multiple Deploy Virtual Machine ... === TestName: test_deploy_vm_multiple | Status : SUCCESS ===
ok
Test Stop Virtual Machine ... === TestName: test_01_stop_vm | Status : SUCCESS ===
ok
Test Start Virtual Machine ... === TestName: test_02_start_vm | Status : SUCCESS ===
ok
Test Reboot Virtual Machine ... === TestName: test_03_reboot_vm | Status : SUCCESS ===
ok
Test destroy Virtual Machine ... === TestName: test_06_destroy_vm | Status : SUCCESS ===
ok
Test recover Virtual Machine ... === TestName: test_07_restore_vm | Status : SUCCESS ===
ok
Test migrate VM ... === TestName: test_08_migrate_vm | Status : SUCCESS ===
ok
Test destroy(expunge) Virtual Machine ... === TestName: test_09_expunge_vm | Status : SUCCESS ===
ok
Test to create service offering ... === TestName: test_01_create_service_offering | Status : SUCCESS ===
ok
Test to update existing service offering ... === TestName: test_02_edit_service_offering | Status : SUCCESS ===
ok
Test to delete service offering ... === TestName: test_03_delete_service_offering | Status : SUCCESS ===
ok
Test for delete account ... === TestName: test_delete_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for admin account ... === TestName: test_public_ip_admin_account | Status : SUCCESS ===
ok
Test for Associate/Disassociate public IP address for user account ... === TestName: test_public_ip_user_account | Status : SUCCESS ===
ok
Test for release public IP address ... === TestName: test_releaseIP | Status : SUCCESS ===
ok
Test create VPC offering ... === TestName: test_01_create_vpc_offering | Status : SUCCESS ===
ok
Test VPC offering without load balancing service ... === TestName: test_03_vpc_off_without_lb | Status : SUCCESS ===
ok
Test VPC offering without static NAT service ... === TestName: test_04_vpc_off_without_static_nat | Status : SUCCESS ===
ok
Test VPC offering without port forwarding service ... === TestName: test_05_vpc_off_without_pf | Status : SUCCESS ===
ok
Test VPC offering with invalid services ... === TestName: test_06_vpc_off_invalid_services | Status : SUCCESS ===
ok
Test update VPC offering ... === TestName: test_07_update_vpc_off | Status : SUCCESS ===
ok
Test list VPC offering ... === TestName: test_08_list_vpc_off | Status : SUCCESS ===
ok
test_09_create_redundant_vpc_offering (integration.component.test_vpc_offerings.TestVPCOffering) ... === TestName: test_09_create_redundant_vpc_offering | Status : SUCCESS ===
ok
Test start/stop of router after addition of one guest network ... === TestName: test_01_start_stop_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test reboot of router after addition of one guest network ... === TestName: test_02_reboot_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to change service offering of router after addition of one guest network ... === TestName: test_04_chg_srv_off_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test destroy of router after addition of one guest network ... === TestName: test_05_destroy_router_after_addition_of_one_guest_network | Status : SUCCESS ===
ok
Test to stop and start router after creation of VPC ... === TestName: test_01_stop_start_router_after_creating_vpc | Status : SUCCESS ===
ok
Test to reboot the router after creating a VPC ... === TestName: test_02_reboot_router_after_creating_vpc | Status : SUCCESS ===
ok
Tests to change service offering of the Router after ... === TestName: test_04_change_service_offerring_vpc | Status : SUCCESS ===
ok
Test to destroy the router after creating a VPC ... === TestName: test_05_destroy_router_after_creating_vpc | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 41 tests in 7422.073s

OK

I see no harm in these changes and as they are putting related code closer together it improves readability: LGTM
However I have a question: How is this improving performance? The title of the PR does not reflect what I see obviously.

@DaanHoogland It improves performance due to fact firewall rules are only created (in memory) once we expect a change. If for example a dhcp lease needs to be added, no firewall rules will be build or changed.
At first these were always executed:
-    # Always run both CsAcl().process() methods
 -    # They fill the base rules in config.fw[]
 -    acls = CsAcl('networkacl', config)
 -    acls.process()
 -
 -    acls = CsAcl('firewallrules', config)
 -    acls.process()
 -
 -    fwd = CsForwardingRules("forwardingrules", config)
 -    fwd.process()
 -
 -    vpns = CsSite2SiteVpn("site2sitevpn", config)
 -    vpns.process()
 -
 -    rvpn = CsRemoteAccessVpn("remoteaccessvpn", config)
 -    rvpn.process()
 -
 -    lb = CsLoadBalancer("loadbalancer", config)
 -    lb.process()

Now they are only executed if we expect change to the firewall rules.
Less execution == more performance!
Hope that clears up! :-)

@remibergsma already tested and code LGTM :+1:
We have this PR already running in out Beta environment, which is a copy of our production environment.
Please, proceed with merge.
Cheers,
Wilder

@boris, thanks. moving code to to be executed only conditionally is a very good idea, this is even better then seemed at first glance :)

FYI
This PR fixes the bug CLOUDSTACK-9255
https://issues.apache.org/jira/browse/CLOUDSTACK-9255
(perhaps need to backport this PR on 4.6 branch.)

@milamberspace I think we seriously need to consider if we are going to maintain 4.6 as in the beginning of 4.7 many bugs were fixed on master and later 4.7 instead of on 4.6, not just this one.

@milamberspace No back porting please :-) Just upgrade to 4.7, it's a painless 10min job.

@DaanHoogland @remibergsma I don't want backport this fix, my (new) current installation of CS is under 4.8, but this RV bug is coming with the new python script since systemvm 4.6. That was just a note if another user have this issue (and too because I don't know the current support of CS versions)

I am happy with this PR.  I believe I should be merging into 4.7 and then forward merging into 4.8 and master.  I am sorry this is a bit off topic, but should we be running integration tests for each forward merge or is that not necessarily required?  I am still ramping up as the RM, so bare with me.

@swill this PR has already been merged into 4.7 on 2016-01-23

Sorry, I missed that line in the comments.  :)  Thanks @ustcweizhou.  I will check and see if it has been forward merged.  It should be if it hasn't been, correct?

@swill Already merge to 4.8 (for next 4.8.1) and on master (4.9)
same commit id: 3eceb60f5ca8b86b3308243ae2905bbfbd54bc39

Sorry, my bad.  I have been disconnected for 3 days and my inbox has exploded and I am trying to work my way through everything and my brain is a bit fried.  Sorry for the spam everyone...

@milamberspace @swill @remibergsma @DaanHoogland, I am seeing a similar issue on master: https://issues.apache.org/jira/browse/CLOUDSTACK-9370
I have couple of questions regarding this issue:
Does this PR supposed to fix this issue as well, and is anyone else seeing this issue on master ?
Please excuse me, if this is not the correct platform for such questions. Let me know, where I can ask such questions.
Thank you !!

I am not seeing the issue on master.  It appears that your issue may be related to the Host(9) being unreachable.  I would validate the connectivity is all working as expected in your environment.


New Crowdin updates

@matmair  HELP! It is ALIVE!
Clearly I've set the file filters up incorrectly here...

@SchrodingersGat did you select Inventree/Inventree not Inventree/translation -> master? I can not open integrations as it would use your token for that

@SchrodingersGat did you select Inventree/Inventree not Inventree/translation -> master? I can not open integrations as it would use your token for that

that amount of changes is why I suggested a separate repo and squashing

Yes, I'm still playing around with it.
I'm not quite sure how it would work with a separate repo? After the commits are made back to the InvenTree/translation repo, how do those changes get merged back into the InvenTree/InvenTree repo?

Ah you've addressed this in the other issue thread I see

You could make a PR into the inventree master each time you want to get all updated translations


ARROW-10330: [Rust][DataFusion] Implement NULLIF() SQL function

This PR implements the NULLIF() SQL function in DataFusion.  It is implemented as a BuiltInScalarFunction, with a boolean kernel at the core which creates a new array with a modified null bitmap from the original array, based on the result of a boolean expression.   When an input data item is equal to the right side in NULLIF(), then the item's nullity becomes set in the output array.

@andygrove @nevi-me would love to hear your feedback on this....  this addition has been useful to us internally.

@jorgecarleitao and others:

All outstanding issues should be resolved now, including the nonzero array offsets
Rebased to latest master as of today
I did not make the nullif kernel more generic, the reason is that I took @vertexclique 's suggestion to slice the left array data buffer, which allows us to work with the shifted/0-based null combined bitmaps.  The result of this is that we must assume that the data buffers are primitive, otherwise shifting/slicing the data buffers might not work for non primitive types or be more complex.  Let me know what you think.
The alternative is to re-shift the combined bitmaps back to left.offset(), which might have space implications, but would be more generic (would not require any change of the left array's data buffers), and would have to wait for the other PR as well most likely....  I personally would prefer not to wait   :)

How does it get merged from here?  Sorry unclear on the process, thanks!

@velvia , just needs time from a committer: typically over the weekend I run through all PRs in order of appearenace and merge them if ready. Thanks a for the patience.

@jorgecarleitao I've just gone through this, and don't have anything else to add. Can I merge it?

@nevi-me , I went through it already. Thanks a lot!

Thanks everyone!


Support wait window setting for Lightspeed inline suggestion

For AAP-19633:
Add a wait window after a trigger (user pressing enter on matching the condition). If the user continues to type within the wait window the extension shouldn't send completion request.
The length of the wait window is configured using a new setting ansible.lightspeed.suggestions.waitWindow in milli-seconds. The default is set to 0, which let the extension send completion request immediately (=same as the current behavior).

@TamiTakamiya for the record, I've just done a rebase of your branch.


Set up AppVeyor tests

@adam-lynch has been speaking to them via email, apparently AppVeyor only looks at the master branch, so we'll wait till we release v1.0, after which the AppVeyor.yml file should be in the master branch too.

Seems to be working but failing hard thanks to css-sprite.


Provide helpful workaround for Yarn version mismatch.

This is a standard command offered by Yarn that provides a safe workaround rather than having to find a different version, uninstall and reinstall, etc.
https://yarnpkg.com/cli/set/version

Oh hang on. You will need to make a changeset (yarn changeset) for this to be shipped.

Sorry, I created the changeset but apparently didn't "sign off" and I've spent a while trying to get the rebase working, but I'm giving up now, not worth my time!


"SnackBar" doesn't work in MacOS Sonoma v.14.5 (Intel Processor)

Duplicate Check

[X] I have searched the opened issues and there are no duplicates

Describe the bug
Simply the control "SnackBar" doesn't work/appear
Code
page.snack_bar = ft.SnackBar(content = ft.Text("Hello world") , duration = 5000)
page.snack_bar .open = True
page.update()

To reproduce
page.snack_bar = ft.SnackBar(content = ft.Text("Hello world") , duration = 5000)
page.snack_bar .open = True
page.update()

Expected behavior
No response
Screenshots
No response
Operating System
macOS
Operating system details
14.5 (Intel Processor)
Flet version
0.22.1
Regression
No, it isn't
Suggestions
No response
Additional details
No response

I have thesame mac version but with m1 chip and the snackbar works.
Can you please some full code i directly run to test?
If possible, could you share screenshots?

Thank you very much for your response.
This weekend I'll try just a simple page with some code and I'm going to try again and will inform you.
Thanks.

Hello again.
Imposssible to try anything.
With Flet v.0.23.1 I can't even compile, dark screen with Visual Studio.
Just this code:
import flet as ft

def main(page: ft.Page):

    page.expand = True

    page.add(
            ft.Card(expand = True ,
                    content = ft.Container(expand = True ,
                                           content = ft.Row(alignment = ft.MainAxisAlignment.CENTER ,
                                                            expand = True ,
                                                            vertical_alignment = "START" ,
                                                            #scroll = "ALWAYS" ,
                                                            controls = [ft.Container(ft.Column(expand = True ,
                                                                                horizontal_alignment = ft.CrossAxisAlignment.START,
                                                                                scroll = "ALWAYS" ,
                                                                                controls = [ft.Image(src=f"https://picsum.photos/500?random",
width=500, height=500, fit=ft.ImageFit.NONE) ,
                                                                                ft.TextField(label = "Hello World" , width = 400)
                                                                                ]
                                                                                )
                                                                                ) ,

                                                                        ft.VerticalDivider() ,

                                                                        ft.Container(ft.Column(expand = True ,
                                                                                scroll = "ALWAYS" ,
                                                                                controls = [ft.Image(src=f"https://picsum.photos/500?random",
width=500, height=500, fit=ft.ImageFit.NONE) ,
                                                                                ft.TextField(label = "Hello World" , width = 400)
                                                                                ]
                                                                                )
                                                                                )
                                                                        ]
                                                            )
                                            )
                     )
            )

ft.app(target=main)

Even this code works on my end.

Can you please try the code on web?
ft.app(target=main, view=ft.AppView.WEB_BROWSER)

Hello,
Sorry for my delay, but I only have access to MacOS weekends.
This weekend I'll inform to you.
Thanks.

Reopen the issue once you try and still face issues.


Templates are loading from the wrong subfolders

The script try to load the templates from the root folder "/www/picker/date-picker.html"
but not from the vendor subfolder. It should look in my project like   "/www/vendor/...".
What was I doing wrong?

I am not sure about how that can happen, can you show me how u are using it?


Add missing RBI definitions to OpenSSL

Also include a couple of fixes on the file.

Internal stripe build: http://go/builds/bui_HHOvVIqcTSR1M0


Step 10: Create a database encryption key by using the ASYMMETRIC KEY (EKMSampleASYKey).

[Enter feedback here]
Missing 3rd line in SQL command
--Create an ENCRYPTION KEY using the ASYMMETRIC KEY (EKMSampleASYKey)
CREATE DATABASE ENCRYPTION KEY
WITH ALGORITHM = AES_256
ENCRYPTION BY SERVER ASYMMETRIC KEY EKMSampleASYKey;
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4997f245-c966-51a3-34c7-705c3cfbd4b0
Version Independent ID: 129fbe40-3b02-f2c1-ef13-b42d86ffdb77
Content: Set up Transparent Data Encryption (TDE) Extensible Key Management with Azure Key Vault - SQL Server
Content Source: docs/relational-databases/security/encryption/setup-steps-for-extensible-key-management-using-the-azure-key-vault.md
Product: sql
Technology: security
GitHub Login: @VanMSFT
Microsoft Alias: vanto

@jthompson-ghd -- Joe, thank you for finding this.  I am looking into the article.

@VanMSFT -- Van, please review private PR 16196.

@Rupp29 - Hey Adrian, can you please help review this, and also https://github.com/MicrosoftDocs/sql-docs-pr/pull/16196 for the additions? Thanks!


AGR-347 Links to references in disease table

Yeah, right now FlybaseDataGrid calls it as a plain function instead of expecting a component and passing a props object to it. But that's probably something we can look into changing over in that codebase.

@paaatrick yes, it's not something that can be done in this code base right now. I'm fine with it.
Another thing, also not necessary to fix before merging. I just wonder if we should discuss about using underscore as a group, because 1) the size of the library, hence potential impact on loading speed, 2) the amount of API people would need to learn to be productive on the codebase.


python script for display calendar

Hi @avinashkranjan
Aim

What is the objective of the Script
display calendar by providing mnth and year

Details

What the features will your script have
Using Pyhton file

Kindly Assign under gssoc23 label.
Thank You

This script has not real world use-case. If I'm wrong, kindly let me know what are you planning to do in this issue.

Hey, @avinashkranjan I am a contributor for GSSOC 2023, I would like to work upon this issue. I can make it a real world use case by integrating a clock along with the calendar GUI. It will fetch the current time as well as date for the user.


(BOLT-1403) Make bolt-server specs less task-specific

Refactors transport_app_spec tests in a way that should allow for easier
additions of other actions (like run_command, upload_file, run_script)
to the bolt server API alongside run_task.
app_integration_spec tests remain the same, except for a renamed helper
method.

:worried: I'm not sure I understand why there's a connection failure in appveyor -- the same test seems to be passing for me locally with vagrant

CLA signed by all contributors.

Hmm, now Appveyor is passing, but Travis is failing on docs generation -- I'm not sure what's up, since it was passing before

Uhh, my best guess is the newest yard gem release changes how puppet-strings works? Put up https://github.com/puppetlabs/bolt/pull/1061 but I want to verify that we actually want it. Sorry!


Configurable Classes

This is intended to solve #12
Each class name in the code base is now configurable via props (much like)
This has the nice side effect of fully supporting CSS Modules
I also went ahead and added the onlyClasses prop discussed in the issue

Also plan to tackle #11 if this looks good and add new docs then

@fatiherikli @strada can you take a look, pls?

@Jador thank you :100: :)
can you please pull the current state of the master, since it looks like there are conflicts with your's.

@burakcan should be good


Can dialogOpen() be opened by "async" mode?

Dear Volkan,
When use .dialogOpen() method to open one dialog, can I let it run in "async" mode. If the dialog need consume a lot of time, I need to wait it until it end.
so if .dialogOpen() can be run in "async", it's better to let user to know it's still at running status with on-process bar.
Thanks
Harry

It already runs async with pace progress

So how can insert some code before open the dialog?
Just like using "response => {
.....
}
, {async: true,
beforeSend: function () {
some coding....
}
Thanks,
Harry


SDP: add tests for sticky buffers v2

Ticket
If your pull request is related to a Suricata ticket, please provide
the full URL to the ticket here so this pull request can monitor
changes to the ticket status:
Redmine ticket:

https://redmine.openinfosecfoundation.org/issues/7291
https://redmine.openinfosecfoundation.org/issues/7305
https://redmine.openinfosecfoundation.org/issues/7325

Suricata PR: https://github.com/OISF/suricata/pull/11961


What happened to Archie.io

Bug or feature request?
feature
If it's a bug, please provide the full method to reproduce.
NA
PS. What happened to archie.io? btw.

Hey @saikarthikp9, I no longer work at that company but I still occasionally use and support this project personally. Because it has no dependencies, it's still safe to use as it relies on good ol' JavaScript. I may be pushing some updates and improvements to the repo this week.
I noticed that you were interested in implementing Google OAuth with chat-bubble. This implementation is up to your web app to handle, chat-bubble is just a front-end UI that can render your conversations for you.


An issue with grant_type password and a trusted client

I would like to get an access token with a password grant as described here, for example. This means that a similar request will be issued to get a token:
POST https://myserver.com/oauth/token
      grant_type=password&
      username=USERNAME&
      password=PASSWORD&
      client_id=CLIENT_ID

This seems OK and is hinted in the RFC. To implement all this it seems that I just should call allowFormAuthenticationForClients() of AuthorizationServerSecurityConfigurer which essentially enables ClientCredentialsTokenEndpointFilter in the filter chain. (a small javadoc would be very nice :-) ) See a sample configuration here. Now the problems:
Problem 1. I'm forced to permit the check access token end point ( checkTokenAccess("permitAll()") ) for anyone because the /oauth/check_token endpoint is not considered into ClientCredentialsTokenEndpointFilter. That is because of the internal class ClientCredentialsRequestMatcher. IMHO this is a bug - why should the filter be available only for the /oauth/token endpoint and what am I supposed to do with a token that can't be verified?
Problem 2. This comes from the previous problem. If I open the check token endpoint (which was not recommended by @dsyer at StackOverflow) then I'm running into the next issue, namely this one.
Is this really a bug or I miss something?

Fair enough I guess. Some comments:

You don't need to allowFormAuthenticationForClients() (and the RFC recommends that you don't). It's better to use HTTP Basic for client authentication.

Form-based authentication would be equally bad for /check_token, but if you want to enable it you could add your own filter. Enabling it with allowFormAuthenticationForClients() would be a new feature, but it probably won't be a high priority, unless there is a PR.

There's nothing forcing you to use RemoteTokenServices, and nothing preventing you from customizing it (as I pointed out in #717).

Dave, thanks for the quick answer!
I understand that it is better unless I have a client in which I can't hide the client secret. Well... I can use a "public" secret which is kind of funny workaround :-) I just wanted to go on without client_secret.
What I do not understand is why when I decide to allow form authentication for my client (allowFormAuthenticationForClients()) I can authenticate only for retrieving the token but not for checking it. You said that it is equally bad so why not? What can I do with a token that I can't verify?
If I have to implement my own filter I won't use allowFormAuthenticationForClients() at all. And as it seems to me if I want to use allowFormAuthenticationForClients() then I need to implement my own filter.
I'll think about the PR these days, 10x!

What can I do with a token that I can't verify?

Nothing. But no-one forces you to use RemoteTokenServices. You can implement that contract any way that you like.
A "public" secret might as well be empty. And you might as well use permitAll() at that point.

Dave, a basic auth with empty password and no form authentication may be a workaround. Then one may not call allowFormAuthenticationForClients(), the RemoteTokenServices will certainly work and the check token endpoint may still be secured. I want to thank you for your time. If you do not consider this a bug then please close the issue. If I ever have the time I'll try a PR someday.

Hi, I've added some lines of code that enable the form auth for the other endpoints. Hope I didn't screw something :-)

Hello , I also think this is a bug. And the workaround I see is to add a dummy client secret like you mentioned.  Not sure if the standard makes the client secret mandatory for Resource Owner Password Credentials Grant.
Another thing I see is that lets say if I want to create multiple clients. This setting is global. So lets say I want to have a client described here with no access to "/oauth/check_token", and a second client with access .
I think there should be something like .allowFormAuthenticationForClients("client_id...")

@luchob Please see comment.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


md5sum, bs problems on OS X

Davids-MacBook-Pro:v djs$ vagrant up --provider=xenserver
Bringing machine 'default' up with 'xenserver' provider...
sh: md5sum: command not found
dd: bs: illegal numeric value

Get the md5sum package for OSX using brew :
brew install md5sum

Change the bs=1M to bs=1m
This should help !

I'm too busy to make a pull request right now, but upload_vhd.rb could be made cross platform with
require "digest/md5"
md5=File.open(box_vhd_file) do |fh| Digest::MD5.hexdigest(fh.read(1024*1024)) end

Thanks @vivekjuneja, your tips got me through those bits, running on OS X. I can see the VHD of the machine has been uploaded to my XenServer but then it dies with more uploader errors. This seems to be where it dies:
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 40.0G    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

 INFO interface: detail: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
 INFO interface: detail:     default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
  0 40.0G    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0 subprocess: stderr:

 INFO interface: detail: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
 INFO interface: detail:     default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
    default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)DEBUG subprocess: stderr: curl: (55) SSL_write() returned SYSCALL, errno = 32
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31998
DEBUG subprocess: Exit status: 55
 WARN uploader: Uploader exit code: 55

Full log attached below. Any ideas?
fulllog.txt

@MichaelKraft , can you share the version details for cURL and OpenSSL on your OSX machine.
I will attempt to replicate this issue with the right version of the tooling.

@vivekjuneja Sorry for the delay, busy weekend. :) Versions follow:
curl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets

OpenSSL 0.9.8zh 14 Jan 2016


Fix Node LTS tag regex.

The grep regex we were using to get the latest LTS Node.js release broke down and stopped working.
Upstream, the moved the Docker tag "lts' to the end of the line, meaning there was no comma after it anymore, and so the regex broke. Apparently $ cannot be in a matching block such as [] but can be in (), which needs egrep.
So this PR switches over to egrep and improves the regex. We also want to make sure nothing but a space comes before the string "lts".

This PR only needs the jobs "generate_dockerfiles" and "generate_automated_build_images" to pass. I'm going to wait for one language image with a Node.js variant to also complete.


Ruby errors

Getting this when attempting to run the program. I freshly installed ruby and ran everything in the 'install' scripts.

[ ] internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- sys/proctable (LoadError)
[ ] from internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in `require'
[ ] from ./harpwise:13:in `'

Hi, thanx for reporting !
What did/do you get on:
sudo gem install sys-proctable
when executed manually ?

I'm running an arch linux derivative.  I eventually got 'sudo gem install sys-proctable' to run without obvious error, but still got the same error running harpwise, so apparently not. I may revisit it later.

This constellation could only happen if you (ordinary user) and root use different ruby installations (which perfectly okay by itself, but not expected by my installation procedure);
such a difference would show up when executing these two lines:
/usr/bin/env ruby -r sys-proctable -e ''  ## will probably fail for you, in the same way as harpwise does
sudo ruby -r sys-proctable -e ''  ## will work okay (no error message), because the gem has been installed fine before

in that case:
/usr/bin/env gem install sys-proctable
should fix the issue ...

harpwise no longer depends on sys/proctable; issue should be gone now.


Did not find changed meta data tags anymore

What happened?
Hello all,
when I change the meta tag "status" it is not found by dataview anymore. If I change the meta tag to the previous value, it is also not found anymore. Before the update everything was working fine.
Thank you in advance
DQL
Query 1:
table sub_category as "Kategorie",status as "Status", E-Mail-Kennung as "Mail ID" FROM "1 - website.de/1 - Aktuelle Projekte"
WHERE tags = "Projekt-Notiz" AND (status = "next" OR status = "nextstep") AND category = "website.de"
sort status, sub_category

Query 2:
table sub_category as "Kategorie",status as "Status", E-Mail-Kennung as "Mail ID" FROM "1 - website.de/1 - Aktuelle Projekte"
WHERE tags = "Projekt-Notiz" and (status = "open") and category = "website.de"
sort status, sub_category

JS
No response
Dataview Version
0.5.58
Obsidian Version
1.4.13
OS
Windows

Can you share steps to reproduce? We need stuff like your files and the metadata in them to try and understand what broke.

Found out that if I delete 'WHERE tags = "Projekt-Notiz"' everything works fine. It seems that the tag query did't work with the new Obsidian version.


Add CRA Support

Please add cra support, or tell me how use stylex it with cra without ejecting

@me16eskandari You can use craco and add stylex-webpack-plugin to the webpack config in that.


docs: Can't build when offline

khophi:Docs$ gulp watch
[14:03:24] Using gulpfile ~/Developments/Ionic/Docs/Gulpfile.js
[14:03:24] Starting 'ionicons'...
[14:03:25] Finished 'ionicons' after 34 ms
[14:03:25] Starting 'server:ionicons'...
ionicons built
[14:03:25] Finished 'server:ionicons' after 531 μs
[14:03:25] Starting 'styles:v1'...
[14:03:25] Starting 'styles:v2'...
[14:03:25] Starting 'images'...
[14:03:25] Starting 'jekyll-build'...
Configuration file: _config_development.yml
            Source: /home/khophi/Developments/Ionic/Docs
       Destination: /home/khophi/Developments/Ionic/Docs/_site
 Incremental build: enabled
      Generating...
                    done in 1.305 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
[14:03:28] Finished 'jekyll-build' after 2.96 s
events.js:159
      throw err;
      ^

Error: Uncaught, unspecified "error" event. (Broken @import declaration of "https://fonts.googleapis.com/css?family=Nunito:300" - getaddrinfo EAI_AGAIN fonts.googleapis.com:443)
    at DestroyableTransform.emit (events.js:157:17)
    at onwriteError (/home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/node_modules/readable-stream/lib/_stream_writable.js:250:10)
    at onwrite (/home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/node_modules/readable-stream/lib/_stream_writable.js:268:5)
    at WritableState.onwrite (/home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/node_modules/readable-stream/lib/_stream_writable.js:106:5)
    at afterTransform (/home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/node_modules/readable-stream/lib/_stream_transform.js:104:5)
    at TransformState.afterTransform (/home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/node_modules/readable-stream/lib/_stream_transform.js:79:12)
    at /home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/index.js:113:9
    at /home/khophi/Developments/Ionic/Docs/node_modules/gulp-minify-css/index.js:36:7
    at whenSourceMapReady (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/clean.js:89:16)
    at Object.whenDone (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/clean.js:98:14)
    at processNext (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/imports/inliner.js:105:13)
    at importFrom (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/imports/inliner.js:79:10)
    at processNext (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/imports/inliner.js:104:16)
    at handleError (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/imports/inliner.js:237:5)
    at ClientRequest.<anonymous> (/home/khophi/Developments/Ionic/Docs/node_modules/clean-css/lib/imports/inliner.js:273:5)
    at emitOne (events.js:90:13)
khophi:Docs$

Complains of not being able to access an import declaration.
If can't build locally when offline, then I guess it defeats the whole point of https://github.com/driftyco/ionic-site#local-build

Commenting out this line:
https://github.com/driftyco/ionic-site/blob/master/_scss/v2.scss#L9
folder gets the build to work when offline.
// @import url('https://fonts.googleapis.com/css?family=Nunito:300');
Any way to work around this, such as including the Nunito family icon locally?

Feel free to comment out the line for your own purposes. The primary purpose of developing locally is to see what your changes look like before publishing them, so requiring the developer be online to build isn't a major concern.
With that said, our primary font, Avenir Next, seems to be loading without issue for all of our users, so the Nunito fallback is unnecessary and I plan on removing it soon.


Update some prerelease packages on WebForms sample

@sayedihashimi I don't seem to have access to commit

@twsouthwick sorry about that, you should have an invitation in your inbox now.

Thanks! Must have missed it earlier if you sent one. Accepted

@twsouthwick I forgot to send it out previously, so you didn't miss anything, my mistake.


Unable to run command!

Hi Team,
I've Windows 10 VM and trying to run Powershell command but it's failing with following error message.
"Run command extension execution is in progress. Please wait for completion before invoking a run command."
Earlier I'd Stopped-deallocated and restarted the VM still the same issue. Earlier it was working until I ran a script which had interactive input with following command.
$Password = Read-Host -AsSecureString
Since then it's stuck and will never let me execute any new script. Please help!

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

ID: b3ff94e6-3c1f-b9e1-1a46-b75fe2ffca1b
Version Independent ID: 8f3ca735-ddd4-f4a9-4ee0-189604018784
Content: Run PowerShell scripts in an Windows VM in Azure
Content Source: articles/virtual-machines/windows/run-command.md
Service: automation
GitHub Login: @georgewallace
Microsoft Alias: gwallace

@KloudEzy, sorry for the issues you are experiencing. From the error you stated, looks like there's a active run extension in progress. You can only run one extension at a time. Try waiting for the extension to finish before proceeding. Alternatively, retest with a different VM to see if this is a persistent issue. If yes, please let me know and we can investigate further.

@KloudEzy Also to add, interactive cmdlets like Read-Host are not supported, I submitted an update to the doc this morning to make this clear, as the script is ran in a remote host there is no way for it to get information from a prompt.

Hi Team,
Thanks for the update! I did find out the problem. My script had input request from user and learned it hard way that system won't show input prompt and it'll only accept parameterized input. Anyways, my script i.e. invisible input prompt timed out in 90 minutes and then I could run another script.
Thanks for your help! Really appreciate it!

The docs have been updated to correctly reflect @KloudEzy 's experience, we now specify that interactive user prompts are not supported. #please-close

@georgewallace thanks for updating the documentation! Amazing customer experience and thank you for listening to customer's feedback!

@KloudEzy We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

@georgewallace, @vasivara-MSFT Hello George, Vairavan, Can you please tell me if there is a possibility to check what exactly is running? Because I'm getting the same exception and despite stopping and re-starting the VM again, I still keep getting the same exception. Is there a chance to see somewhere exactly what is running? and if possible some way to kill it?
Any help or pointers would be greatly appreciated!

Within the directory below, there are two batch files (disable.cmd and enable.cmd), executing these batch files has resolved issues for me in the past when the RunCommand when it goes into hung 'Running' state.
C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.0\Status

Within the directory below, there are two batch files (disable.cmd and enable.cmd), executing these batch files has resolved issues for me in the past when the RunCommand when it goes into hung 'Running' state.
C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.0\Status

This solution no longer works for me.  Is there any way to cancel an active command in progress?  This is especially annoying for timed out commands.  I shouldn't have to wait 90 minutes if I know the command is hanging due to an error.


Selecting the correct ABI tag

Selecting the ABI tag is not as straight forward as I hoped it could be.
Firstly, there are two main possible ABIs, the interpreter specific ABI, and the stable ABI. The stable ABI uses the abi3 tag and is compatible across Python minor versions.
Secondly, there are many variants of the interpreter specific ABI, we need to detect that. I think the easier way is to do this is by looking at the extensions of the native modules.
And lastly, we will need to detect the ABI via the file extensions, but this is only standardized on Posix, via PEP 3149. PEP 3149 is optional on Windows, but from what I have seen everyone seems to use it on Windows.
So, supporting this will consist on the following:

Identify and parse the ABI from native modules
Check incompatible that
Identify and select the more specific tag (interpreter tag over the stable ABI)

I am implementing this, but it's showing itself even more difficult than expected, as we need to hardcode support for all possible values, which is difficult to make sure we get right without anything important missing.

That sounds painful. Is there no place where this can be retrieved from? I've seen the "SOABI tags are incorrect for musl" thread, but I'd expect that aside from bugs like that it'd not be something that one would need to hardcode in every build system.

Well, usually build systems know what they are building, so they can generate the correct tag. Our problem is that we don't have any control over this, as one could build anything with Meson, which is a far more versatile and complex build system than any Python-specific one. We need to look at the files we get from Meson and figure out the correct ABI tag for the well.
This could have been a little easier if the PEP 3149 library name matched, or included, the ABI tag string, but it doesn't, it's a slightly different format. So we need to parse the names and generate the equivalent tag, and to make things more manageable, as Meson projects can be very complex, we should probably try to identify any incompatibilities and either fail or issue warnings to the user.

During this I have noticed that PyPy uses custom Python tags (eg, pp272), so we will need to handle that too :upside_down_face:

Opened  #17


Not loading on Bootstrap 5.3.2

Hi !
I'm having difficulties setting it up on Bootstrap 5.3.2.
I'm trying to load latest version from CDN :


feat: initial support for the V5 IMU

Adds high level bindings to the PROS IMU API through the InertialSensor struct. Currently untested on actual hardware.
Limitations:
- The fields on pros_sys::imu_raw_s appear to be private, making it impossible to implement the InertialSensor::gyro_rate and InertialSensor::accel without manually modifying the bindings. As such, i've left these methods commented out for now.
Let me know if any of the naming for things here seem off. (specifically, should data structs be InertialStruct or InertialSensorStruct?)

Your naming is perfectly fine as it is.

I think this is ready to merge unless lewis disagrees

Thanks for doing these bindings, I was putting it off.

Okay, seems we have a choice on how we want to handle calibration:

Any thoughts?

Ah, I say we use the blocking function for the sync API and the non blocking one to create a future for the async API.

Sounds good, will do.

Any thoughts on bringing in a crate like mint which provides standard containers types for math-related libraries to use?

Quaternion -> mint::Quaternion
InertialRaw is essentially a mint::Vector3, serving as either an angular velocity vector with gyro_rate or an acceleration vector with accel.
Could also make it an optional feature and just provide conversion types rather than straight up returning them.

I think that if we do that it should definitely be a feature. I also think that there are many crates that provide similar functionality to mint, such as nalgebra, so there should be discussion on which one we would use. For now I think we should continue without bringing in a library like that, but I am open for discussion about it later.

Everything looks good! If you think that testing isn't necessary I will approve and merge.

Still need to test the newer async stuff against the executor fix branch, which i'll try to get to tonight, tomorrow, or monday. Everything else has been tested to my knowledge.

Alright sounds good. I hope we can get this merged soon.


PROMs questionnaire demo

This PR is just to demonstrate what one of the PROMs questionnaires would look like in cards and what possible code changes would be needed to get it working.
To test, run cards in the test runmode and instantiate the "General Anxiety Disorder"  (GAD) questionnaire or the Patient Health Questionnaire (PHQ).
Functional changes included in this PR for demonstration purposes, to be discussed and evaluated (not intended to be merged yet):

support for making a section always visible and stick to the bottom of the form
support for marking a (computed) question as hidden
support for displaying a computed answer as formatted text (markdown formatting)

The GAD questionnaire is meant to replicate https://www.mdcalc.com/gad-7-general-anxiety-disorder-7.
The PHQ questionnaire is meant to replicate https://www.mdcalc.com/phq-9-patient-health-questionnaire-9

A teeny-tiny ui issue:

Otherwise it looks awesome. Would it be possible to include Sergiu's changes from https://github.com/data-team-uhn/cards/pull/713?

@sashaandjic

A teeny-tiny ui issue:

That's odd, I don't see this issue. Did you edit the questionnaires in any way in the wizard before the problem appeared?

Did you edit the questionnaires in any way in the wizard before the problem appeared?

No. I didn't even open the wizard. It is happening with this form only.

Otherwise it looks awesome. Would it be possible to include Sergiu's changes from #713?

We made the https://github.com/data-team-uhn/cards/tree/proms_demo branch with both #712 and #713 plus the smoking questionnaire.

Did you edit the questionnaires in any way in the wizard before the problem appeared?

No. I didn't even open the wizard. It is happening with this form only and only in view mode.

Right, my bad, wasn't paying attention. I see the problem in view mode.

Right, my bad, wasn't paying attention. I see the problem in view mode.

nope. my bad. i didn't specify the view mode.

No required fields? If user does not complete the form, the score may be misleading. Should we go with complete/incomplete thing in PROM?

For incomplete forms, should we only show the number of points + some kind of info stating all questions need to be completed before the score can be interpreted?

Tested. Looking good!

All code changes proposed here have been reworked and included in other PRs:

#726 for "Export as text" menu item
#724 for sticky footer sections
#718 for formatted and hidden computed questions

Questionnaires have been modified to match the newest code changes.
Everything is available in the branch proms_demo2.


[docs] fix route example in 10-advanced-routing.md

src/routes/[[a]]/foo/+page.svelte doesn't match the route /foo-abc , and there aren't any cases with parameter matcher, so I propose using src/routes/[[a=string]]/+page.svelte instead.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

thanks!


Question: conditional attributes

Could not find this in the docs anywhere, but is there any way to do conditional attributes along the lines of Laravel's resource attributes $this->when?
We know that we can do something like:
public function getAttributes($resource)
{
  return array_filter([
    'shortName' => $resource->short_name,
    'longName' => (Auth::check() && Auth::user()->isAdmin()) ? $resource->long_name : false,
    'banner' => $resource->banner
  ]);
}

However that also removes any other attributes with empty values which may not be desired.
We could also do something like:
public function getAttributes($resource)
{
  $arr = [
    'shortName' => $resource->short_name,
    'longName' => $resource->long_name,
    'banner' => $resource->banner
  ];
  if (Auth::check() == false || Auth::user()->is_epa() == false) {
    unset($arr['longName']);
  }
  return $arr;
}

... which preserves other attributes with empty values, but is not very clean , especially if you have many conditional attributes. Each would need it's own IF(s). Was hoping for a clean solution or plans to implement one. In real world apps, it's not likely that all users should see all attributes for all api resources  at all times.

So I'm not massively inclined to support conditional attributes. The reason is because it is really inefficient to have to loop over all the attributes to check if they are conditional or not, and filter them out. Doing this when you're serializing lots of resources for a single response is going to take a big hit.
So for the current version of the package, you will need to use the `if statements - though I do agree they are not clean!
For v2, I'll investigate whether I can support conditional attributes - but will only do so if they do not have a performance impact. I can think of potential ways of dealing with them though, but it depends on hooking into the internals of the encoder - which is exceptionally difficult to do because it is provided by another package that has an aversion to such internal modifications!
You might want to take a look at #411 as what you're asking is kind of related to that!

Thanks, will leave open on the 2.0 milestone so I don't forget about it!

Conditional atttributes are fully implemented in the new package laravel-json-api/laravel - see https://laraveljsonapi.io


Switch old-witx-compat over to the witx crate on crates.io

This implements the changes mentioned in https://github.com/bytecodealliance/witx-bindgen/issues/85#issuecomment-945938217 for switching witx2's old-witx-compat parser back to using the witx crate from crates.io.
Fixes #85.

@alexcrichton, how would I handle an old::DeclSyntax::Module(_)? From the source code, it looks like a module is some sort of namespacing feature, but it doesn't look like there is any equivalent in witx2.
I could implement some sort of "Scope" mechanism where entering a module pushes onto the stack and we use that stack whenever we need to convert names, but I have no idea if that makes sense for witx2.

IIRC you can transparently step into a Module since a document contains at most one module, so I think it's basically just peeled? I forget precisely what it corresponds to though...

I'm going to close this since the old-witx-compat feature has since been removed and I don't think we are going to want to add it back soon either.


Pushdown $eq on 'String' not working properly

FerretDB version
v1.20.1
Backend
PostgreSQL
Environment

OS: CentOS8
Deployment: ghcr.io/ferretdb/ferretdb:1.20.1
Deployment details: k8s 1.25.x

What did you do?
I ran db.my_collection.findOne({'some_key' : 'match_value'}), it took many time to complete . And I found output like below:
Query	{"commandTag": "SELECT 1", "pid": 44279, "sql": "SELECT  _jsonb FROM \"my_db\".\"my_collection_xxxx\" WHERE _jsonb->$1 @> $2", "args": ["some_key","\"some_value\""], "time": "457.106837ms"}

note that it  use @> (means "contains") other than = operator.
I ran explain:
db.runCommand({ explain: { findOne: "my_collection", query: { "some_key": {$eq: "match_value"}} }} )
What did you expect to see?
"filterPushdown" : true
What did you see instead?
"filterPushdown" : false

That should be solved by the upcoming 2.0


Slow performance with multiple realms / Caching RLMRealm objects

I have data structure like this:
Trick : RLMObject {
    trickID, // primary key
    name,
    ...
    @readonly progress {
        return [TrickProgress objectForPrimaryKey:self.trickID];
    }
}

TrickProgress : RLMObject {
    trickID, // primary key
    progress
}

I have table view with data source like this:
- cellForRowAtIndexPath {

    Trick *trick = tricks[indexPath.row];
    something = trick.progress; // Some computes with Trick `progress` property
    ...
}

The question is:
If I store Trick and TrickProgress entities in the same realm the performance is really great, but if i store them in the different realms (what I want to do) the performance is so bad (even on iPhone 6s) so I can't scroll table view without visible lagging.
Yeah, maybe this is not so great idea to fetch entity from database in the cellForRow, but the question is why this is such a big difference in performance?

Note: realms have default configuraton except file path

Hmm, as i can see, you are caching realms with weak reference, so if it not referencing with strong anywhere in user code it creates every time. For my objects i create realms dynamically with realmWithConfiguration and don't store this realms with strong reference. So realm for TrickProgress creates for every cellForRowAtIndexPath call.
Is it a good idea to cache realms with weak? Maybe it should be strong? Becuase otherwise this is not very usefull if i should store strong reference to realm at the same time in my code.

I think your cachng policy looks a little bit strange:

I can't create two different objects of RLMRealm for the same thread (because the second realmWithConfiguration will return the first created object)
Cache work only if i already have strong reference to RLRealm object in my code (what in fact is a cache on my side, not yours)
If i don't want to recreate RLMRealm objects every time for different threads i should implement my custom logic to store them with strong references (but you already have this logic in realmWithConfiguration but it's not working in fact without strong references in my code)

I can't create two different objects of RLMRealm for the same thread (because the second realmWithConfiguration will return the first created object) — is it a core limitation?

That's not the case. You can have multiple different objects of RLMRealm on the same thread. Realms are cached by their path.

Cache work only if i already have strong reference to RLRealm object in my code (what in fact is a cache on my side, not yours)

Yup, that's intentional. Otherwise you would have no chance to close a Realm, which is in some cases necessary. It's your responsibility to hold it as long as you want to have access to it.

If i don't want to recreate RLMRealm objects every time for different threads i should implement my custom logic to store them with strong references (but you already have this logic in realmWithConfiguration but it's not working without strong references in my code)

That's right. It would be already sufficient in your case, if you store the realm in a property of your view controller. This shouldn't hurt or disturb to much.

That's not the case. You can have multiple different objects of RLMRealm on the same thread. Realms are cached by their path.

Yeah, I said a little bit incorrect. So I can't create two different objects of RLRealm for the same path on the same thread, why this limitation is exist?

Yup, that's intentional. Otherwise you would have no chance to close a Realm, which is in some cases necessary. It's your responsibility to hold it as long as you want to have access to it.

Asa i see there is no public method to close a realm.

That's right. It would be already sufficient in your case, if you store the realm in a property of your view controller. This shouldn't hurt or disturb to much.

I can't see any useful cases for this type of caching RLMRealm objects by realm. As for me it is creating more misunderstading than benefits.

Yeah, I said a little bit incorrect. So I can't create two different objects of RLMRealm for the same path on the same thread, why this limitation is exist?

There are not too many valid cases, I can come up where it would make sense to allow accessing the same realm with different configurations and there would be some problems you can easily hit, if we would allow that (different schema (/versions)). If you have anything in mind where it restricts you currently, please explain how and why.

I can't see any useful cases for this type of caching RLMRealm objects by realm. As for me it is creating more misunderstading than benefits.

It's a significant performance improvement and workaround for limitations of the supported platforms. Without that ypu can easily un out of mmapped memory regions.

Okey, I have a case for you.
I have to realm files in documents folder. One is completely empty Empty.realm and another one has some data Data.realm. I have this code:
#define FileInDocuments(file) [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject stringByAppendingPathComponent:file]

[[NSFileManager defaultManager]<EMAIL_ADDRESS><EMAIL_ADDRESS>                                         error:nil];
RLMRealm *realm = [RLMRealm realmWithPath:FileInDocuments(@"Current.realm")];
NSLog(@"%d", realm.isEmpty); // 1 — this is correct

[[NSFileManager defaultManager]<EMAIL_ADDRESS>error:nil];
[[NSFileManager defaultManager]<EMAIL_ADDRESS><EMAIL_ADDRESS>                                         error:nil];
realm = [RLMRealm realmWithPath:FileInDocuments(@"Current.realm")];
NSLog(@"%d", realm.isEmpty); // 1 — for this time this is not correct

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
    RLMRealm *realm2 = [RLMRealm realmWithPath:FileInDocuments(@"Current.realm")];
    NSLog(@"%d", realm2.isEmpty); // 0 — this is correct
}];

So as you can see first i've opened an empty file, then replaced it with file with data, but realmWithPath: returned to me a cached RLMRealm object referencing an old empty file.
How can i avoid or fix this issue if don't understand internal structure of realmWithConfiguration: method with it caching strategy?
This is just one strange case with caching but I think it can be much more.

How can i avoid or fix this issue without knowing the internal structure of realmWithConfiguration: method with it caching strategy?

You should always close a Realm file by not retaining anymore any accessor to it, before making modifications to the file on disk.
For your fix I'd recommend using a dedicated autoreleasepool like seen below:
@autoreleasepool {
     RLMRealm *realm = [RLMRealm realmWithPath:FileInDocuments(@"Current.realm")];
     NSLog(@"%d", realm.isEmpty); // 1 — this is correct
}

I'm closing this issue as @mrackwitz's suggestion is correct. @Rusik please let us know if there's anything more we can do to help you!

The OP noted that doing realmWithConfiguration is slow, but thats the way how the default realm is implemented
+ (instancetype)defaultRealm {
    return [RLMRealm realmWithConfiguration:[RLMRealmConfiguration rawDefaultConfiguration] error:nil];
}

does this mean that using the provided defaultRealm is a slowdown?

No, the default Realm helper is not any slower than the configuration-based initializer (or any other initializer). However, the first initialization of a Realm will always be slower than subsequent inits because the file has to be mmapped initially, whereas that doesn't need to be done afterwards.

No, the default Realm helper is not any slower than the configuration-based initializer (or any other initializer).
Thats exactly what i mean, if the configuration-based initializer is slow, than the default Realm helper is slow... and the OP indicated, that the configuration-based initializer is slow, while calling it multiple times in a loop

Not sure what your question is. "if the configuration-based initializer is slow", what does slow mean in your context? Slower than what? There's no alternative initializer that will be faster...

well, it is not implicitly clear that when calling defaultRealm a new realm is constructed each time when calling defaultRealm, so the user would expect the performance of a reference retrieval, not the performance of object construction

it is not explicitly clear that when calling defaultRealm a new realm is constructed each time when calling defaultRealm

That is not generally the case. The file mapping is only unloaded if all in-memory references to the Realm are entirely freed.


Build standalone raptor, libxml2, iconv, zlib dependencies with CMake

Currently Windows build of libSBOL depends on precompiled raptor binaries.  Mac OSX build depends on 3rd party package distribution of raptor.  Building raptor from source and integrating with libsbol build would simplify a lot of problems with distributing libSBOL.

Provide librator as a binary.

I have actually built raptor with some other dependencies on Windows. I don't think this is an issue with other OSs? Anyway, will to rolling out update in CMake to integrate everything.

Delayed for a while.


500 Internal Server Error When hit oauth/token endpoint

I install flask-sentinel and use the
curl -k -X POST -d "client_id=DN1KJb5kxpSUYxOSn8MZVLvXrtvPKjqqZ69GakjR&grant_type=password&username=test&password=test" https://<IP_ADDRESS>:5000/oauth/token
the username and password and client_id is created by the management, and the error is
The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.
Then I try the Postman tool, and the same error occured.
Please help me, Thanks a lot!

Hello, I'm facing the same problem.
This is the stack trace, with DEBUG enabled.
<IP_ADDRESS> - - [07/May/2016 10:27:05] "POST /testauth/testtoken HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/flask_oauthlib/provider/oauth2.py", line 489, in decorated
    uri, http_method, body, headers, credentials
  File "build/bdist.linux-x86_64/egg/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper
    return f(endpoint, uri, *args, **kwargs)
  File "build/bdist.linux-x86_64/egg/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response
    request, self.default_token_type)
  File "build/bdist.linux-x86_64/egg/oauthlib/oauth2/rfc6749/grant_types/resource_owner_password_credentials.py", line 101, in create_token_response
    if not self.request_validator.authenticate_client(request):
  File "/usr/local/lib/python2.7/dist-packages/flask_oauthlib/provider/oauth2.py", line 607, in authenticate_client
    if client.client_secret != client_secret:
AttributeError: 'Client' object has no attribute 'client_secret'

Please, point me out where should I work on and I will try to fix this.
Thanks.

Me too, exceptions.AttributeError: 'Client' object has no attribute 'client_secret', after debugging it a bit the retrieved client in oauth.py line 603 doesn't have the .client_secret attribute.
Any suggestion about how to fix that?

https://github.com/nicolaiarocci/flask-sentinel/pull/10
It can be fixed by this pull request.

Hello folks, sorry I did not have the the time to check into this, but I plan on doing that soon! Hang in there!

Ah I see, it happens with Flask-Oauthlib 0.9.2. That teaches me not pinning the requirements (works fine with 0.8.0)

Actually, it also work with 0.9.1. Looks like they have a regression going on here, see https://github.com/lepture/flask-oauthlib/issues/246.

I am going to pin 0.9.1 it is fixed upstream.

Also see #5

@lepture was really fast at looking into this. I just tested the now updated master branch of Flask-OAuthlib, and it is working fine. Next Flask-OAuthlib release will have the fix. Until then, just fallback to Flask-OAuthlib v0.9.1.

Tested and works! Thanks guys for your support.

FYI Flask-Sentinel 0.0.5 was released.

I'm still having the same error ( i dont know how to see the complete stack trace though).


docs: remove coreos-specific wording

fleet is no longer shipped within Container Linux.

@crawford
Starting which container linux version fleetd would not be packaged?

@Vishant0031 https://coreos.com/releases/#1675.0.1

@lucab
thanks for pointing to the release notes.
I see the etcd2 binary is also removed, which mostly removes etcd2.service and another references.
Would the etcd binary and service file would be etcd3* or just etcd (and etcd.service)?
any breaking changes in command line parameters from etcd2 to new etcd?
there isn't outline here explicitly https://coreos.com/blog/toward-etcd-v3-in-container-linux.html.


Swag decision ( tshirts, stickers,...)

Updates from @KatharinaSick:
T-Shirts: samples are currently produced and will be sent to my place. I'll send you pictures as soon as I have them
Print materials & assets: I have created a list of assets that we still need to create until the conference. It would be great if you could take a look at it in the sync today and ping me if there is anything missing.
Print materials & assets we need for the conference:

Badges
Rollups
1 big rollup to place somewhere for people to take pictures
2 smaller rollups so that we can place one on each stage
Image/Video to show on the monitors in front of the cinema rooms (does somebody know the exact resolution of those monitors?)
Image/Video to show on the reception monitor (does somebody know the exact resolution of this monitor?)
T-Shirts
Stickers
Slide template for intro/outro slides
Intro/Outro video for recordings
Event Info page on website

Tshirts for everyone who wants via registration form
stickers for sticker table
little speaker swag


[BUG] Roster page cuts off top

Contact Details
discord: liteborder
What happened?
It appears that the roster page is cutting off some of the controllers at the top of the list
How can it be reproduced?
Go to the controller roster page on the website
What browsers are you seeing the problem on?
Chrome, Firefox
Screenshots
https://files.matthewbinkowitz.com/uploads/yvM1sn3x6I.png

Thanks Matt. I see what you're talking about. Karl changed a bunch of formatting the other day and this looks to be an unfortunate side effect. I'll see if I can resolve. appreciate the report.

Logged in ZWM-321
Resolved in PR 738 Merged 8/7/2023


Support encrypted connection via phpredis

Fixes https://github.com/snc/SncRedisBundle/issues/562

Can you rebase your branch? I fixed the CI.

Could you also add some tests too please?

I has originally added a test, but then realized Travis only spins up a
basic Redis service, so I'm not sure how I'm able to test the tls
connection. Open to ideas..
I'll rebase when I'm back in the office later this morning.
Thank you!
On Thu, Mar 12, 2020, 3:19 AM Benoit GALATI<EMAIL_ADDRESS>wrote:

Could you also add some tests too please?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/snc/SncRedisBundle/pull/563#issuecomment-598110352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAMXTY2W2JD5Y4FFXF2BQ3RHCZM7ANCNFSM4LF7YLPA
.

I has originally added a test, but then realized Travis only spins up a basic Redis service, so I'm not sure how I'm able to test the tls connection. Open to ideas..

Yea you're right. I have no idea as I am not using this feature myself.

Yea you're right. I have no idea as I am not using this feature myself.

Yeah, with the ease of services like Elasticache (and enabling encryption with a simple option), it's now a hassle to stand up your own Redis instance with custom configs.
Hoping we can just merge this with the caveat that tls via phpredis is not fully tested.
Thanks for your help and maintenance of this very useful package!

Thanks @benburleson


Update outdated NPM dependencies

Updates tween.js, markdownlint-cli, esbuild, and jasmine-core.
Resolves https://github.com/CesiumGS/cesium/issues/11324.
Resolves https://github.com/CesiumGS/cesium/issues/11322.

Thanks for the pull request @jjhembd!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Thanks @jjhembd!
I think we can also update jasmine-core. Jasmine dropped support for Node 16, which is no long in LTS anyway. We can update the build guide to be consistant with a minimum of Node 18 to build and test CesiumJS.  The versions of node which can run CesiumJS are not affected. (Soon we should bump our travis verification script NodeJS versions to reflect to current and LTS versions as well).

Thanks @jjhembd!


[deployment] 502 Bad Gateway

Describe the bug

I'm having some random 502 Bad Gateway errors on deployments, even if it works perfectly locally.
I can't figure where it's coming from.
Big problem with screenshot #1 is that Hasura schema is up to date with the errored deployment.
To Reproduce
Steps to reproduce the behavior:

I don't know

Expected behavior
Not having error | Having a much comprehensive message
Screenshots
See above
Desktop (please complete the following information):
It's working locally
Smartphone (please complete the following information):
Additional context

My theory is that you have a lot of migrations and metadata that consume too much memory when they are applied, which causes Hasura to get OOM killed.
Do you see anything in the logs, specifically Hasura logs, while deploying?

Yes, I get OOM killed.
Like Hasura logs says "Killed"  😅
What I don't understand is why does this happens during the step "reloading metadata", and not during first apply.
Also, when Hasura respawns about 10s after, migration & metadata are well applied.
At the end, nhost deployment has failed (and is marked as failed in the dashboard), but my database schema and GQL APi are updated, resulting in a very fuzzy state where nhost and Hasura are not agreeing 😶🌫 .
I patched the problem with a creaky process where I:

Export local metadata in JSON format using Hasura Metadata API
Delete public metadata in nhost folder
Push to github / deploy with nhost action
Send JSON metadata to Hasura using Metadata API
... which is terrible.

I also thought to chop my database and use federation, but it seems that in production, you set HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS to true, as permission on remote schema are enable even if Hasura says it is disabled by default.

ENABLE REMOTE SCHEMA PERMISSIONS
Remote Schema permissions are not enabled by default.
To enable them, you will have to run the GraphQL Engine either with the server flag --enable-remote-schema-permissions or environment variable HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS set to true.
When Remote Schema permissions are not enabled, all Remote Schemas are considered to be public entities, i.e. all roles will have unrestricted access to the Remote Schemas. Once enabled, access to Remote Schemas will be restricted for all roles (other than admin) unless explicit permissions for the Remote Schema fields are granted to the roles.
https://hasura.io/docs/latest/remote-schemas/auth/remote-schema-permissions/

Maybe here is not the right place to ask this question, but does the paid plan allows more memory?

Yes, you get more memory (and CPU) on the Pro plan. We're also working on custom resource allocation plans.

If you need more resources that what's on the Pro plan, then you can reach out to us via Discord or email<EMAIL_ADDRESS>and we'll help you with a bigger plan until we have this feature in our dashboard.

I can confirm you that migrations are ok with pro plan.
We are starting to migrate more tables, so I won't hesitate to reach out to you soon.
Thanks for this amazing work.

Perfect!


Icon Links Being Shown Twice

About this discussion
If you open an icon with 2+ links on the Lawnicons homepage and expand the links, the first link is being shown twice.
Example:

(The first two links are exactly the same)

Fixed on latest debug


Enable collaboration

I think https://docs.yjs.dev/ can help this project with collaboration. Maybe look into this when available.

Too expensive and currently out of scope. Let's look into this again once I have enough resources.


Halting at OpenPassiveDataStream when downloading from OS400

FTP OS: IBM i
FTP Server: IBM OS400
Computer OS: Windows 10
Hi. I am using FluentFTP in some open-source software that I am writing (ILEditor) and a lot of people using the software are getting stuck when downloading a file. Notice how all the logs get stuck at OpenPassiveDataStream.
Not every user it getting this. It's only the odd few, which makes me thing it's either an IBM i setup issue OR perhaps a Windows firewall issue. Are you able to help me determine the issue?
Logs :

https://pastebin.com/raw/KHhGJQk7
https://pastebin.com/raw/XMb8XKR7
https://pastebin.com/raw/q61Z7wkR

The fix for this issue was changing the DataConnectionType to AutoActive.


Update styled applied comments

Fixes #238

Codecov Report

Merging #239 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #239   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines         142    142
  Branches       36     36
=====================================
  Hits          142    142

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 34a161f...3c870b0. Read the comment docs.

Would you like to add yourself to the contributors table?

Thanks. Sure. I will do it in another PR.