raise StopIteration

在训练的过程中，有这样的问题：
2020-07-19 19:56:00.637 | INFO     | videoanalyst.engine.monitor.monitor_impl.tensorboard_logger:update:75 - Tensorboard writer built, starts recording from global_step=0
2020-07-19 19:56:00.637 | INFO     | videoanalyst.engine.monitor.monitor_impl.tensorboard_logger:update:78 - epoch=0, max_epoch=20, iteration=0, max_iteration=2343
epoch 0, lr: 8.0e-02, cls: 0.106, ctr: 0.037, reg: 1.119, iou: 0.699, data: 1.7e-05, fwd: 1.7e-01, bwd: 9.1e-02, optim: 1.5e-01, : 100%|████████████████████████████████| 2343/2343 [34:56<00:00,  1.12it/s]
2020-07-19 20:29:51.807 | INFO     | videoanalyst.engine.trainer.trainer_base:save_snapshot:143 - Snapshot saved at: /home/ubuntu/Vincent/object_track/video_analyst-master/snapshots/siamfcpp_googlenet-lasot/epoch-0.pkl
  0%|                                                                                | 0/2343 [00:00<?, ?it/s]Traceback (most recent call last):
  File "./main/train.py", line 110, in <module>
    trainer.train()
  File "/home/ubuntu/Vincent/object_track/video_analyst-master/videoanalyst/engine/trainer/trainer_impl/regular_trainer.py", line 97, in train
    training_data = next(self._dataloader)
  File "/home/ubuntu/anaconda3/envs/vincent/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__
    data = self._next_data()
  File "/home/ubuntu/anaconda3/envs/vincent/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 831, in _next_data
    raise StopIteration
StopIteration
  0%|                                                                                | 0/2343 [00:00<?, ?it/s]
(vincent) ubuntu@ubun:~/Vincent/object_track/video_analyst-master$ python ./main/train.py --config 'experiments/siamfcpp/train/lasot/siamfcpp_googlenet-trn.yaml'

@jianjiandandande Have you changed any part of the code/configuration yaml file?

@jianjiandandande Have you changed any part of the code/configuration yaml file?

Just to mend the epoch

@jianjiandandande It would be better if you can provide the output of a simple "git diff".

I've only changed this part in video_analyst-master/experiments/siamfcpp/train/lasot/siamfcpp_googlenet-trn.yaml
and It basically only reported an error in the last epoch,so  I changed 20 to 21
# ==================================================
    data:
      exp_name: *TRAIN_NAME
      exp_save: *TRAIN_SAVE
      num_epochs: 21 # 20
      minibatch: &MINIBATCH 64  # 256
      num_workers: 32
      nr_image_per_epoch: &NR_IMAGE_PER_EPOCH 150000
      pin_memory: false
      datapipeline:
        name: "RegularDatapipeline"
      sampler:
        name: "TrackPairSampler"
        TrackPairSampler:
          negative_pair_ratio: 0.33
        submodules:
          dataset:
            names: ["LaSOTDataset",]  # (GOT10kDataset|LaSOTDataset)
            GOT10kDataset: &GOT10KDATASET_CFG
              ratio: 1.0
              max_diff: 100
              dataset_root: "datasets/GOT-10k"
              subset: "train"
            GOT10kDatasetFixed: *GOT10KDATASET_CFG  # got10k dataset with exclusion of unfixed sequences
            LaSOTDataset:
              ratio: 1.0
              max_diff: 100
              dataset_root: "datasets/LaSOT"
              subset: "train"
          filter:
            name: "TrackPairFilter"
            TrackPairFilter:
              max_area_rate: 0.6
              min_area_rate: 0.001
              max_ratio: 10
      transformer:
        names: ["RandomCropTransformer", ]
        RandomCropTransformer:
          max_scale: 0.3
          max_shift: 0.4
          x_size: 289
      target:
        name: "DenseboxTarget"
        DenseboxTarget:
          total_stride: 8
          score_size: 17
          x_size: 289
          num_conv3x3: 2
    trainer:
      name: "RegularTrainer"
      RegularTrainer:
        exp_name: *TRAIN_NAME
        exp_save: *TRAIN_SAVE
        max_epoch: 21  # 20
        minibatch: *MINIBATCH
        nr_image_per_epoch: *NR_IMAGE_PER_EPOCH
        snapshot: ""
      monitors:
        names: ["TextInfo", "TensorboardLogger"]
        TextInfo:
          {}
        TensorboardLogger:
          exp_name: *TRAIN_NAME
          exp_save: *TRAIN_SAVE

          # ==================================================

@jianjiandandande Inteed, there are some flaws in config and lacks of clarification. I have made this PR to fix it. You may checkout the file changes to fix you own branch, or just checkout my fork

ok ,thanks @MARMOTatZJU

@jianjiandandande Issue closed as it's been a long time without further reply. Wish that you've already fixed your issue. Feel free to reopen for further help.

@jianjiandandande Issue closed as it's been a long time without further reply. Wish that you've already fixed your issue. Feel free to reopen for further help.


Send credential's wallet id to issuer and holder

Send the credential's wallet id to both issuer and controller for tracking.
Previously (TOB) we used the wallet id.  In Indy Cat we implemented the credential_exchange id, but this is no longer valid since the credential exchange records are now getting deleted.

Initial thoughts:
Currently have access to credential exchange id  in issuer controller, but this is an internal state id for the issuer agent only (can't correlate with holder exchange)
Possible solution:
Explicitly set credential_id to thread_id which would allow the issuer to know the holder's credential ids.

@ianco - what is the state of this issue?  Is there anything to be done? Most importantly, is there anything needed before we launch the live version of ICOB OrgBook.

I've updated Indy Catalyst to use the thread_id as the unique id for the credential (rather than generating a new uuid()) (note that I don't think this is actually displayed anywhere, just stored in the credential table in the database)
I also updated the BC Reg issuer to use the thread_id as the "returned identifier" from the credential submission process (previously it was using the credential_exchange_id).
The end result is we have the same identifier on both ends of the exchange (issuer and holder) so we can support some future audit report that might want to compare the set of credentials issued vs held and what is the difference.
Potentially we can use this id to support credential deletion as well (although I'm not sure the agent keeps the thread_id anywhere after the protocol is completed).


SDK: SC-257 TraceSpan implementation, unit tests

This PR is for SC-257 and it contains:

SC-292: Implement TraceSpan with exposed properties and methods
SC-293: Handle root TraceSpan and parentSpan with context variables
SC-294: Implement name, value and tags validation
SC-295: Expose createTraceSpan() on SDK object
SC-296: Implement unit tests
SC-297: Implement generation of protobuf intermediate object

It also includes exceptions that are raised that match the same errors that are thrown in the JS SDK, as well as a Tags implementation with unit tests.
Tests, validation, linting, formatting and CI automation all pass on my end for this PR.
You can browse through this branch here

@medikoo Looks like this PR passed CI validation and is good to go for review :+1:

@alexdelorenzo after merging #342 this needs to be rebased against main

@medikoo sc-257 was rebased with main 👍

@medikoo Made changes as per your comments, sans the final one about module names. Happy to change those if necessary, though 🙂


[Data Discovery] Remove projects that do not have samples passing filters.

Description
When using filters, we remove any projects that do not have any samples that pass the filters.
This can be tricky when considering empty projects. In that case we only filter them out if there are any filters defined.

Not sure what you mean about hidden projects in this context... maybe you can explain better in person.


router: improved logging

the router didn't print the stack trace

Just improve the other PR.

or you could click the button

push the button!!!!!!


Training feature request

Within the human resources module, while adding a skill to an employee.  Would it be possible to have a multiple selectable list to replace the dropdown list that is currently being used?  The dropdown list is becoming cumbersome due to multiple different products and stations we have within our process.

Sure
On Thu, Feb 17, 2022 at 6:33 AM adambaldauf @.***>
wrote:

Within the human resources module, while adding a skill to an employee.
Would it be possible to have a multiple selectable list to replace the
dropdown list that is currently being used? The dropdown list is becoming
cumbersome due to multiple different products and stations we have within
our process.
—
Reply to this email directly, view it on GitHub
https://github.com/kc9eye/UData/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2C2ZXGZ4XDOLDAUI43UGLU3TTKZANCNFSM5OURQUZA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fixed in da06bcf78bcd75a68edeb58149d8fe09e6bf1d1d


podman error with slirp4netns/pasta in systemd user services [nixos 24.11]

Describe the bug
The podman v5.2.3 provided by Nixos 24.11 has some serious issues.
Combining with systemd user service, it simply does not work.
Steps To Reproduce
Steps to reproduce the behavior:
    users.users.toto = {
        isNormalUser = true;
        linger = true;
        autoSubUidGidRange = true;
    };

    systemd.user.services.toto = {
        enable = true;
        unitConfig = { ConditionUser = "toto"; };
        wantedBy = [ "default.target" ];
        wants = [ "network.target" ];
        description = "toto container";
        path = [ "/run/wrappers" ];
        serviceConfig =
        let
            podmancli = "${config.virtualisation.podman.package}/bin/podman";
            podname = "nginx";
            image = "nginx";
            cid = "%t/podman/%n.cid";
            pid = "%t/podman/%n.pid";
            startpre = [
                "${pkgs.coreutils-full}/bin/rm -f ${cid} ${pid}"
                "-${podmancli} stop --ignore ${podname}"
                "${podmancli} rm --volumes --force --ignore ${podname}"
            ];
            stoppost = [
                "${podmancli} stop --ignore ${podname}"
                "${podmancli} rm --volumes --force --ignore ${podname}"
                "${pkgs.coreutils-full}/bin/rm -f ${cid} ${pid}"
            ];
        in
        {
            ExecStartPre = startpre;
            ExecStart = "${podmancli} run " +
                "--rm " +
                "--replace " +
                "--name=${podname} " +
                "--conmon-pidfile=${pid} " +
                "--cidfile=${cid} " +
                "--cgroups=split " +
                "--sdnotify=conmon " +
                "--log-driver=journald " +
                "--name=${podname} " +
                #"--net=slirp4netns " +
                "-p <IP_ADDRESS>:8082:80 " +
                "-d " +
                "${image}";
            ExecStop = "${podmancli} stop ${podname}";
            ExecStopPost = stoppost;
            Delegate="yes";
            Type = "notify";
            NotifyAccess = "all";
            SyslogIdentifier="%N";
            Restart = "no";
            TimeoutStopSec = 70;
        };
    };

Expected behavior
The toto container service should be started but it fails :
Dec 28 14:28:20 server systemd[2381]: Failed to start toto container.
Dec 28 14:28:20 server systemd[2381]: toto.service: Failed with result 'exit-code'.
Dec 28 14:28:20 server systemd[2381]: toto.service: Main process exited, code=exited, status=126/n/a
Dec 28 14:28:20 server toto[2588]: Couldn't set IPv4 route(s) in guest: Invalid argument
Dec 28 14:28:20 server toto[2588]: Error: pasta failed with exit code 1:
Dec 28 14:28:20 server pasta[2612]: Couldn't set IPv4 route(s) in guest: Invalid argument

Additional context
This a podman/pasta recent issue : the time the container is started, the network is not available for pasta but user service can't wait for systemd system target.
Workaround (update 2024-12-29)
cat /etc/nixos/podman-workaround.nix
#
# PODMAN WORKAROUND
#
{ config, pkgs, ... }:

{

    systemd.user.services.podmanworkaround = {
        enable = true;
        description = "User-level proxy to system-level multi-user.target";
        documentation = [
            "https://github.com/containers/podman/issues/22197"
            "man:podman-systemd.unit(5)"
        ];
        wantedBy = [ "default.target" ];
        after = [ "network.target" ];
        path = [ "/run/wrappers" ];
        serviceConfig = {
            Type = "oneshot";
            # Set a timeout as by default oneshot does not have one and in case network-online.target
            # never comes online we do not want to block forever, 90s is the default systemd unit timeout.
            TimeoutStartSec = 90;
            ExecStart = "${pkgs.bash}/bin/bash -c 'until systemctl is-active multi-user.target; do echo wait for multi-user.target; sleep 0.5; done; echo multi-user.target is active'";
            RemainAfterExit = "yes";
        };
    };

    systemd.user.targets.podmanworkaround = {
        enable = true;
        description = "User-level multi-user.target";
        documentation = [
            "https://github.com/containers/podman/issues/22197"
            "man:podman-systemd.unit(5)"
        ];
        requires = [ "podmanworkaround.service" ];
        wants = [ "podmanworkaround.service" ];
        after = [ "podmanworkaround.service" ];
    };

}

and then, change toto service to this
systemd.user.services.toto = {
        enable = true;
        unitConfig = { ConditionUser = "toto"; };
	wantedBy = [ "default.target" ];
	requires = [ "podmanworkaround.target" ];
        after = [ "podmanworkaround.target" ];
        ...
};

Notify maintainers
Please consider upgrading to the last version of podman and passt (pasta) in Nixos 24.11.

i close issue as the workaround is working.


RUMM 2167 Add sampling for rum2apm tracing

What does this PR do?
Implement sampling with dedicated header
Motivation
Additional Notes

I did a few refactorings to remove errors in the tests. I could do a bit more but I set a limit of 1 hour of refactoring per change for now to avoid spending too much time.
Hide whitespace changes for commits about tests hierarchy
I am not making any change to the calls to the native modules, tell me if it is needed

Review checklist (to be filled by reviewers)

[x] Feature or bugfix MUST have appropriate tests
[x] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[x] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
[x] If this PR is auto-generated, please make sure also to manually update the code related to the change

Still missing:

deprecate sampleRate and split it between sessionSamplingRate and tracingSamplingRate
add default value for tracingSamplingRate
update docs

@louiszawadzki This PR becomes quite big. WDYT about splitting it into 2 PRs: one is for the refactoring, another is for the actual tracing sampling implementation? The latter can target the former.


Docs Section: Why do you need differential privacy?

We should add a docs page that makes the case for why you need differential privacy in general, based John Abowd's suggestion in his talk.

overview of attacks
use cases
port attack notebooks from smartnoise-samples (could be a good base, but any attack is valid)

https://github.com/opendp/opendp/issues/335

link to notebooks from these docs
communicate how we perform a worst-case analysis

Closing for #998


feat(pixels): add my new pixel (3, 3)

Checklist

[x] I ran npm test locally and it passed without errors.

[x] I only edited the _data/pixels.json file.

[x] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

Did not realise I couldn't edit


Support remote IAM/assumed-role sessions

Allow the remote connection to use an assumed IAM role
Adds a new RemoteSessionRole to Credentials. The assigning
and management these roles is an implementation detail of the
user of the proxy. Credentials that have remote session roles
will get automatic IAM session management via the standard AWS
assume-role feature. The assume role session is managed and
renewed internally by the proxy.
Closes #22

@vagaerg and @mosiac1 - I refactored/reworked things based on comments. PTAL.

@vagaerg and @mosiac1 this is ready for re-review


ID verification won't go through. required parameter missing: back image

Note: for support questions, please join our Discord server
I've tried to upload my passport image and selfie multiple times yesterday but it kept saying to try again in a while. When I tried uploading them today, I got the "required parameter missing: back image" error multiple times.

I'm submitting a ...
[ x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Action taken (what you did)

Expected result (what you hoped would happen)

Actual result (unexpected outcome)

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
I've tried to upload my passport image and selfie multiple times yesterday but it kept saying to try again in a while. When I tried uploading them today, I got the "required parameter missing: back image" error multiple times.

Gekko is a small tool that you can download for free. It never asks for your password.
It sounds like you are having issues with an exchange instead. As such I am closing this issue.
If you do think Gekko asked you for a copy of your password please let me know where you downloaded it from. The official Gekko does not do this.


It seems that the default build type is not correctly set. When i configure a project created from the cpp-starter-project template and just configure it, i do not get the message  "Setting build type to 'RelWithDebInfo' as none was specified." from StandardProjectSettings.cmake:3.
I injected a message to check if those variables are already set to something:
message(STATUS "Got CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}' or CMAKE_CONFIGURATION_TYPES: '${CMAKE_CONFIGURATION_TYPES}'")

This got me the following message:
[cmake] -- Got CMAKE_BUILD_TYPE: '' or CMAKE_CONFIGURATION_TYPE: 'Debug;Release;MinSizeRel;RelWithDebInfo'

Because CMAKE_CONFIGURATION_TYPES is not empty the if evaluates to false and does not set a default for CMAKE_BUILD_TYPE. This later leads to the following error with conan:
[cmake] -- Conan: Adding bincrafters remote repository (https://bincrafters.jfrog.io/artifactory/api/conan/public-conan) verify ssl (True)
[cmake] -- Multi-configuration build: 'Debug;Release;MinSizeRel;RelWithDebInfo'!
[cmake] -- Running Conan for build type 'Debug'
[cmake] CMake Error at build/conan.cmake:71 (message):
[cmake]   Please specify in command line CMAKE_BUILD_TYPE
[cmake]   (-DCMAKE_BUILD_TYPE=Release)
[cmake] Call Stack (most recent call first):
[cmake]   build/conan.cmake:430 (_conan_detect_build_type)
[cmake]   build/_deps/_project_options-src/src/Conan.cmake:39 (conan_cmake_autodetect)
[cmake]   build/_deps/_project_options-src/src/Index.cmake:174 (run_conan)
[cmake]   CMakeLists.txt:22 (project_options)

By explicitly setting CMAKE_BUILD_TYPE the conan error is "fixed".
EDIT: After doing a clean configure the conan error vanished. And i cannot reproduce it.
I'm on Windows 10 using the Visual Studio 2019  BuildTools with the MSVC Version 19.29.30037.0.

Oh yes! My changes fix MANY issues with visual studio right now. I do need to get that merged. I assumed no one else was hitting them

I can work around it and only use RelWithDebInfo... As that is the only BUILD_TYPE working when building with VS Code (even the changes proposed have no effect... So i'll just keep on compiling directly in Powershell)
But maybe there are other people soon experiencing the same 😅

Oh yes! My changes fix MANY issues with visual studio right now. I do need to get that merged. I assumed no one else was hitting them

Does it make sens building Debug and RelWithDebInfo on All three OS in CI like i did? I could open a PR with that change if it is reasonable.

The project is very fast to compile, and I agree we should check as many things as we can. I know @aminya has another PR open that adds a whole lot more to the build matrix.
One thing that's in my PR is fixing WARNINGS_AS_ERRORS which was broken on all 3 platforms, but I don't really know how to test that.

We're continuing to enhance and double check the build matrix in #181


Add DeepReg to comparison table

Adding DeepReg to the comparison table (ggsheet) + mini typo.
Resolves
JOSS reviewer suggestion.

Pull Request Test Coverage Report for Build 476597988

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.071%

Totals

Change from base Build 476515920:
0.0%

Covered Lines:
5987

Relevant Lines:
6647

💛  - Coveralls

Pull Request Test Coverage Report for Build 476597988

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.071%

Totals

Change from base Build 476515920:
0.0%

Covered Lines:
5987

Relevant Lines:
6647

💛  - Coveralls


3 columns

how to use 3 columns of windows? i think it was available first time i installed this but not sure

You can archive this with a horizontal layout and by decreasing the number of master windows to 0.


[Test@Oracle] - FreemarkerSpec's Test failing

Hi @ipolevoy
Seems that it's not only SQLite who had issues with FreemarkerSpec's Test
Oracle is showing:
org.javalite.test.jspec.TestException:
Test object:
java.lang.String == <Person: John  Smith, graduation date:
Person: Leylah  Jonston, graduation date: Apr 3, 1974 12:00:00 AM
Person: Muhammad  Ali, graduation date: Jan 4, 1963 12:00:00 AM
Person: Joe  Pesci, graduation date: Feb 23, 1964 12:00:00 AM>
and expected
java.lang.String == <Person: John  Smith, graduation date:
Person: Leylah  Jonston, graduation date: Apr 3, 1974
Person: Muhammad  Ali, graduation date: Jan 4, 1963
Person: Joe  Pesci, graduation date: Feb 23, 1964>
are not equal, but they should be.
        at org.javalite.activejdbc.FreemarkerSpec.shouldRenderRowProcessor(FreemarkerSpec.java:107)

Keep in mind that although https://github.com/javalite/activejdbc/pull/755 improved the whole DATE situation with Oracle, it doesn't solve this case in particular...

I think this is related more to test than to the features. I do not feel that the framework should be responsible for data conversion, after all it is Pass-through, right? I think the test needs to be smarter, that's all.

Indeed I agree @ipolevoy

@jfcabral awesome work, all builds are up to date: https://travis-ci.org/javalite/activejdbc/builds/415767007


Integrate Node-RED directly into Conveyor API as a library

The current implementation of ingest requires that a standalone node-red be run in addition to ingest. The project would feel lighter-weight if node-red were directly integrated into ingest via the node-red library: https://nodered.org/docs/embedding

It is integrated - as a server - meaning we are still using the HTTP API to interact with it. per the Node-RED team the full node framework api is still not stable.


Manage endpoints updated to support Tokens

Manage endpoints that will likely change:

request - https://developers.deepgram.com/reference/get-request
requests  - https://developers.deepgram.com/reference/get-all-requests
usage - https://developers.deepgram.com/reference/summarize-usage
fields - https://developers.deepgram.com/reference/get-fields

I assume this means only the response body will change. Do we have any details on when that will be?

@lukeocodes  it looks like just the response shape is change for all 4 endpoints, Request / Requests has been released production and the Console team is still working on Usage & Fields, it show go to Production this week for those 3 remaining endpoints. cc @jasonmajors

did this go ahead?

@lukeocodes Here's the implementation approach in Python: https://github.com/deepgram/deepgram-python-sdk/pull/259
There was a change to the response shape to support tokens.


Web

Hi,
Skia supports web using wasm (canvaskit)  bindings. so  is it possible to use this same code on web?

It is possible. In fact the animations in this video are done using React Native Skia on the Web (via Remotion): https://www.youtube.com/watch?v=49QR0wUDMG0
We are currently investigating what is the best way to package such integration. One of the interrogation mark is that wasm modules are asynchronously loaded, whereas the Skia module in React Native is directly available.

thats really awesome ! @wcandillon


Front-end 404 after installing

Hello,
I cannot seem to install this LangSmith locally and have an operational server.
No problems indicated when starting:

Logs:

Front-end:

Is there some initialization procedure that I am missing?  I have also tried to send traces but receive messages regarding internal server errors.
Any help would be much appreciated.

Will investigate

@halyearzero should be fixed now. Could you try again?

instead of install with pip install langsmith I cloned the repo and installed via pip install -e ..  I'm still getting the error.

Is this the case if you run langsmith stop then restart with langsmith start ? What does it show if you run langsmith env?

Going to close as stale for now. Let me know if you still have issues


Improve Framebuffer performance

Hi @Viper2k4,
I finally got round to having a look at the framebuffer performance you're reported in #40 .
Here's what I found so far:

In the Visual Studio screenshot you've attached, you can see there's a lot of garbage collection activity going on (the triangles in the performance debugger)
Garbage collection happens typically when you create new objects and then throw them away. In SharpAdbClient, memory allocation happened in two different places:

When you call GetFramebuffer, a new byte[] array is created which holds the raw framebuffer data. This can be up to several megabytes of memory, which is allocated every time you call GetFramebuffer
The AdbSocket class wasn't (and still isn't) very good at managing memory either - when retrieving data, it allocated temporary buffers for holding data, and then copied that data around.

I've updated the AdbSocket implementation and created a new Framebuffer class with a Refresh method which should avoid most of the problems, and which you can call as such:
var device = AdbClient.Instance.GetDevices().First();

Framebuffer framebuffer = AdbClient.Instance.GetRefreshableFramebuffer(device);
while (true)
{
    await framebuffer.Refresh(CancellationToken.None).ConfigureAwait(false);
    // Only call this method if you want to process the data in .NET. If you don't, you can save
    // the raw data to disk by using framebuffer.Data
    // var img = framebuffer.ToImage();
}

I've refactored the code a big (see this PR) and I'm getting much better results now. Please note that you must not run the code under a debugger, because if you do so, .NET starts tracking a lot of things which consumes a lot of CPU cycles.
If I run the tests in release mode, I get about 2% CPU usage for SharpAdbClient and 4% CPU usage for adb, which seems OK.
I've seen your request for screenrecord support and it's something I plan to work on, too.
If you have time -- feel free to have a look at this pull request & let me know if you see the same performance improvements.
/cc @bartsaintgermain , we'll need to dive into the AdbSocket class and do some cleanup there, may also help us with upload (app to device) perf.

[Current coverage][cc-pull] is 83.95%

Merging [#43][cc-pull] into [master][cc-base-branch] will increase coverage by 5.95%

2 files in SharpAdbClient were modified. more

Misses -3
Partials -18
Hits +21

3 files (not in diff) in ...pAdbClient/Receivers were modified. more

Partials -2
Hits +2

3 files (not in diff) in SharpAdbClient/Logs were modified. more

Misses +7
Partials -6
Hits +23

10 files (not in diff) in ...lient/DeviceCommands were modified. more

Misses -2
Partials -24
Hits +39

20 files (not in diff) in SharpAdbClient were modified. more

Misses +11
Partials -50
Hits +144

@@           master        #43   diff @@
========================================
  Files          52         53     +1
  Lines        1596       1763   +167
  Methods         0          0
  Branches      228        246    +18
========================================
+ Hits         1245       1480   +235
- Misses        248        283    +35
+ Partials      103          0   -103

Powered by Codecov. Last updated by [60de289...d71a536][cc-compare]
[cc-base-branch]: https://codecov.io/gh/quamotion/madb/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/quamotion/madb/compare/60de289477c3d177d5e58e13e31755bb884054f2...d71a5369bf0c929813d05ba996dbbe1accb5dbc4
[cc-pull]: https://codecov.io/gh/quamotion/madb/pull/43?src=pr

Performance is now very very well. Now i got even better results, also on devices with an higher resolution.
Perfect work :+1:

@bartsaintgermain Can you review & approve? Thx!


reindex uses individual parameter table delete statements

Describe the bug
The reindex operation deletes all the resource parameter values before inserting them again. Currently, the delete is performed in the ParameterTableSupport class which executes individual delete statements for every parameter table.
This incurs a significant number of round-trips with the database (and hence overhead). For PostgreSQL, the delete should be performed using the stored procedure call delete_resource_parameters.  This replaces 16 database calls with 1.
Environment
Which version of IBM FHIR Server? main 5.0.0-SNAPSHOT
To Reproduce
Steps to reproduce the behavior:

Set up a PostgreSQL instance
Load data
Perform reindex

Expected behavior
Reindex should be performed efficiently.

Robin deployed to our cloud account and reindex throughput improved by almost 2x in this environment.


Help, does anyone have any examples created with the Lua programming language?

Hi
I’m learning Lua and would like to try out some example of pageres, but I’m struggling with understanding the api
Does anyone have any Lua api call examples they could share ?
Many thanks in advance

This is not the place to ask Lua questions. Pageres is a Node.js library and a command-line tool, which has nothing to do with Lua.

This is not the place to ask Lua questions. Pageres is a Node.js library and a command-line tool, which has nothing to do with Lua.

Ok sure, ultimately my goal is to find some good examples - as the Lua language is just the wrapper to make use of them.
I’ll tie it into this one then - https://github.com/sindresorhus/pageres/issues/321 which does not seem to have made any progress..

Ok sure, ultimately my goal is to find some good examples - as the Lua language is just the wrapper to make use of them.
I’ll tie it into this one then - https://github.com/sindresorhus/pageres/issues/321 which does not seem to have made any progress..


Update duplicatable.rb

before_filter has been deprecated in Rails 5.0 and removed in 5.1 using before_action

Do you know what version of Rails introduced before_action?

Tested this pull request in rails 5.1.4 and its working

@gabrieldesar thanks for confirming -- that's very helpful! Let's get this merged and released.

The method before_action was introduced in Rails 4.0.

https://apidock.com/rails/v4.0.2/AbstractController/Callbacks/ClassMethods/before_action


Add alarm for msgs in content data dead letter queue

This adds Icinga alarms for the Content Data Letter queue. They will be raised if the queue length reaches passed the specified thresholds.
We expect to have no and minimal message within this queue.

Not ready - for merging.


Unable to open socket to Hotspot

Hi
We are trying to leverage this log4j patch as a temporary measure in our AWS instance
We are stuck with two problems
First problem
Daemon set pods are running. However, there is a permission denied error in the pod logs
nsenter: failed to execute /tmp/install/wait.sh: Permission denied
nsenter: failed to execute /tmp/install/install.sh: Permission denied

Second problem
As a workaround to the above problem, we tried to execute the script (install.sh) manually on the nodes, and patching is not done. In the journalctl we see the following errors.
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Found JVMs with pids [11983 13164 13178 16203 16531 19582 25541]
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Attempting to patch 11983
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Running in a container with container pid: 7
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Found JVM for pid 11983 at /opt/java/openjdk/bin/java
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Found JVM running with effective UID of 1000
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] JVM version is openjdk version "11.0.10" 2021-01-19
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Identified JVM[openjdk] of (openjdk version "11.0.10" 2021-01-19) with major version 11
Dec 23 14:55:44 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Using Java 11 hotpatch
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/7/root/tmp/.java_pid7: target process 7 doesn't respond within 10500ms or HotSpot VM not loaded
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:100)
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: at Log4jHotPatch.loadInstrumentationAgent(Log4jHotPatch.java:207)
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: at Log4jHotPatch.main(Log4jHotPatch.java:298)
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: Error: couldn't loaded the agent into JVM process 7
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: Are you running as a different user (including root) than process 7?
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: Errors occurred deploying hot patch. If you are using java 8 to run this
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: tool against JVM 11 or later, the target JVM may still be patched. Please look for a message
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: like 'Loading Java Agent (using ASM 6).' in stdout of the target JVM. Also note that JVM 17+
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: are not supported.
Dec 23 14:55:55 ip-x-x-x-x.our-zone-n.compute.internal log4j-cve-2021-44228-hotpatch[27401]: [log4j-hotpatch] Hotpatch application returned 1

Is there a requirement of the availability of Java on the nodes for the install.sh to be executed?
Our containers run with different UID's, like 1000, 1003, etc. Should the patching be done by the same user?

@dheerajjoshim can you try the new version?

I had this same problem and the new version that includes the EGID fixes the issue.

@jicowan Will use the latest image and update the finding.

I have tried to use latest image and here is the update.
Looks like install.sh file in configmap still uses 1.1-6 rpm version. Where as it should be 1.1-12
PACKAGE="log4j-cve-2021-44228-hotpatch-1.1-12.$RPM_TYPE.noarch"
I tried to submit the PR but it looks like there is no permission to submit PR's.
I have fixed it locally and then tried to install the daemon set. I got the same error as above in the init container
nsenter: failed to execute /tmp/install/wait.sh: Permission denied
nsenter: failed to execute /tmp/install/install.sh: Permission denied
Waiting for 30 seconds...
Task Completed

Then I have tried to execute the install.sh manually on the node. And this time I didn't see any error and i see message like
Hotpatch application returned 0 in journalctl
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Attempting to patch 19582
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Running in a container with container pid: 7
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Found JVM for pid 19582 at /opt/java/openjdk/bin/java
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Found JVM running with effective UID of 1000
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] JVM version is openjdk version "11.0.10" 2021-01-19
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Identified JVM[openjdk] of (openjdk version "11.0.10" 2021-01-19) with major version 11
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Using Java 11 hotpatch
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal sudo[29113]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/nsenter -t 19582 -m -n -i -u -p -Z -S 1000 -G 1000 /opt/java/openjdk/bin/java -Xint -XX:+UseSerialGC -Dlog4jFixerVerbose=false -cp /dev/shm/Log4jHotPatch.jar Log4jHotPatch 7
Dec 24 08:58:35 ip-x.x.x.x.ourzone.compute.internal log4j-cve-2021-44228-hotpatch[28494]: [log4j-hotpatch] Hotpatch application returned 0

I could also see following fole created
/dev/shm/log4j-cve-2021-44228-hotpatch.good
Now it looks like the patch is applied.
I have few questions

Init container still fails with permission denied error
Is there a way to test that patch is indeed applied within the container?

Node linux version
$ cat /etc/*release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)

I don't know about userns.

On the EKS node nsenter gives following error
sh-4.2$ nsenter /tmp/install/wait.sh
nsenter: failed to execute /tmp/install/wait.sh: Permission denied

Looks like init container scrip only gives permission denied error while executing the script. But while running chmod it doesn't fail

Our pods are pretty much clamped down. No cURL or wget is available. So i can't download test code from https://github.com/corretto/hotpatch-for-apache-log4j2/tree/main/test and check if JVM is really patched. Any alternatives?

Is there a PSP in place or a security agent that would block chmod executions?

I don't think so. I could see, both wait.sh and install.sh has +x permission. So that's why I am guessing chmod actually ran successfully.

I would check with your security team. The command nsenter requires escalation of privileges. Although we create a PSP that allows privileged escalation for that specific container as part of this solution, your security team may have measures in place that prevent you from running nsenter from within a pod.

Are you hinting default PSP is denying privileges execution? Let me check with the platform team as well to see if there are any restrictions.
Is there a way we can pause the init container or something and debug the command? Or check journelctl for some errors?

Either that or a security agent like Aqua, Falco, or Prisma.


Support for async predicate

There are use cases that would need to repeatedly call an async operation until a certain condition is met. For instance, an API call.
something like:
await waitUntil( async ()=>{

   const response = await api.get(); //any async operations
   return response.status == 200;

})

Currently, having an async predicate skips the waitUntil predicate entirely

@louiealmeda Just add await  before predicate(); in line 36.
result = await predicate(); => result =predicate();

@louiealmeda PR created in https://github.com/devlato/async-wait-until/pull/4
I didn't use await in case the code is running in Node env that doesn't support async.

that's awesome @zorji I hope it gets pulled in.

Hi @devlato just wondering if you are going to merge this pull request? We have the same need. Thank you very much.

Hi @devlato just wondering if you are going to merge this pull request? We have the same need. Thank you very much.

Hello, I also have a need for this. Looking forward to getting the new changes. Do you know when it'll be available? Thanks for your hard work and making such a useful library.

Hello, I also have a need for this. Looking forward to getting the new changes. Do you know when it'll be available? Thanks for your hard work and making such a useful library.

@louiealmeda why don't you just do this 🙂
while (true) {
  const response = await api.get(); // Any async operation
  if (response.status === 200) {
    break;
  }
}

Otherwise, as per this library design, it should do the following:

Run the predicate.
Wait for it to complete and the returned Promise to resolve.
If the Promise returned from the predicate doesn't resolve within timeout ms, throw a timeout error.
If it gets resolved with a falsy value and there's still time for another attempt, retry the predicate and go to step 2.
If if gets resolved with a truthy value, return the last result.

If this behaviour is what you would expect from the library, I'm keen to make change and publish an updated version.

Hi @devlato, thanks for looking into this. Indeed, we can do the solution that you've posted, but it can quickly become messy when we need to do a lot of waits, especially when we want to set timeouts for them. I believe it is that problem that this library is actually solving...
Yes the flow seems correct to me, and looks aligned with @zorji's PR
Cheers.

Hi @devlato @louiealmeda
It seems it's possible to carry on the discussion in this thread, I'll close my PR
A better implementation should consider wait AFTER the previous Promise resolved but since I don't need the change any more I'll close mine.

Hey folks, have just merged #5 and will publish it to npm shortly. The updated documentation is available in the project README.

I'm closing this issue, please re-open or create a new one if this is still an issue after upgrading to 2.0.0.


[RSS] Have both content and embed in message

Is your feature request related to a problem? If so, Please describe.
Basically I want both of these at the same time:
a) the bot should ping me on new post in feed
b) the bot should show the post's data in embed using set template
Example:

Describe the solution you'd like
Possibility to set a template for both message's content and embed and new option in [p]rss embed that would allow me to have both enabled at the same time.
Describe alternatives you've considered if any
I don't have any alternatives in mind.

I won't put any time into this myself, but I don't have an issue with it being added if someone does it.

Won't be added


minor itso fix

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Add Frank Silver to Contributors list

@FrankSilver, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I merged it?


wallabag: apply patches to add missing migrations in initial setup

Motivation for this change
This adds a missing migration preventing new setups.
Fixes: https://github.com/wallabag/wallabag/issues/3662
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 92679 1

1 package built:
- wallabag


Binary Ninja not found

Version and Platform (required):

Binary Ninja Version: v4.1.5747-stable
OS: Ubuntu 22.04
CPU Architecture: x64

Bug Description:
when running scripts/install_api.py:
Found install folder of ~/binaryninja-api/python
Binary Ninja not found: ~/binaryninja-api/python
Please provide the path to Binary Ninja's install directory:
[~/binaryninja-api/python] :

Run the script from your Binary Ninja installation.
i.e. If you have installed Binary Ninja at ~/binaryninja:
cd ~/binaryninja/scripts/
./install_api.py

Another reason it's important to run the version from your install path is because there may be changes on the API repo that are at a different version from your local install.
Let us know if this resolves your issue.

Yes, API access is not available on the Free version. This is listed in the limitations at the bottom of the download page.


Integration Test - Release - 2022/01/19 06:16:18

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#please-close

GitHub user PRMergerTest2 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#unassign PRMergerTest1

#unassign NonAllowedUser


Compiling on ARM?

Hi completely new to Rust trying to compile a command-line utility referencing this package.
I'm getting back the following error:
   Compiling uchardet-sys v2.0.3 (file:///tmp/rust-uchardet/uchardet-sys)
error: failed to run custom build command for `uchardet-sys v2.0.3 (file:///tmp/rust-uchardet/uchardet-sys)`
process didn't exit successfully: `/tmp/rust-uchardet/target/debug/build/uchardet-sys-d16d68d835214470/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/tmp/rust-uchardet/uchardet-sys/uchardet" "-DBUILD_BINARY=OFF" "-DBUILD_STATIC=ON" "-DBUILD_SHARED_LIBS=OFF" "-DCMAKE_INSTALL_PREFIX=/tmp/rust-uchardet/target/debug/build/uchardet-sys-3093b62aee134c4c/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"

--- stderr
CMake Error: The source directory "/tmp/rust-uchardet/uchardet-sys/uchardet" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now', /home/rescue/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.28/src/lib.rs:631:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...

Any idea of changes needed that could get it running on my system?

I was able to get it to compile with 2 steps.

install sudo apt-get install libuchardet-dev which luckily was available for my system.
Use c_char instead of i8


add vh1 app

can you please add on for this one

Unfortunately, there’s no way to support apps for Viacom channels. Since VH1 is a Viacom channel, this cannot be done.
See issue #2 for a full explanation of why Viacom apps can’t be supported.
https://github.com/mludowise/AppleTV-XFinity-Activation/issues/2


Fix camera cards to use picture entity by default

Fixes #28

Note that this change will make the web-rtc requirement to optional/unused.
This should be corrected in the readme and mentioned in the release.


Multiple shadows in Box Shadow tokens - array bug

When creating a box shadow containing more than one shadow, it will put the values of the shadows in an array, but if you then delete one of the shadows, the array will still remain in the token.

Edit RB: below also a screenrecording showing the issue:
https://github.com/tokens-studio/figma-plugin/assets/109062656/a14ccc83-d582-4e8d-aa21-932d76d5ac05

This is reproducible in Prod 1.38.9 and Beta V2-rc5

Reproducible in 2.2.2.

Create 1 shadow token
Save token
Add another shadow to the same token
Save token
Delete one of the shadows of the token
Save token
See error - JSON retains the array that was created when a second shadow was added.

Marking as ready for dev. I'd say what we should do:

When using the UI and we go from 2 shadows to 1 shadow, change to not use an Array but rather use an Object.


Invalid font according to Windows 10?

Is there any fix for this?

Visit https://fonts.google.com/noto/specimen/Noto+Color+Emoji To Download


Slider response doesnt being recorded

Hi,
According to the "image-slider-response" (ver. 2.0.0.) documentation, I should get the user's choice for the slider's position in my data file. Yet, I don't get any values besides "slider_start". Therefore, I tried to manually add that value to my data file using:
"on_finish: function(data) { data.slider = data.response; } but i only get "null" values...
I would appreciate any help...
This is my code so far:
var imageDisplayTrial = {
type: jsPsychImageSliderResponse,
stimulus: function () {
var img = getRandomImage();
return img;
},
trial_duration: 5000,
post_trial_gap: 500,
stimulus_height: 400,
stimulus_width: 400,
labels: ['+', '-'],
prompt: "Emotion",
require_movement: false,
response_ends_trial: false,
min: 0,
max: 100,
slider_start: 50,
button_label: 'Continue', // This will be hidden via jQuery
on_load: function() {
$('.jspsych-btn').hide(); // Use jQuery to hide the button when the trial starts
},
data: {
task: 'image_display',
group: selectedGroup
},
on_finish: function(data) {
data.slider = data.response;
}
};
Thanks!

This is expected behavior of the image-slider-response plugin, as the participant ought to submit their response via a button click and the absence of that button click indicates no response. In your case, you just have to make some tweaks from within on_load and on_finish.
In on_load, add this:
document.querySelector('#jspsych-image-slider-response-response').addEventListener('input', (event) => {
    window.slider_value = event.target.value;
});

Then in on_finish, do this:
data.slider = window.slider_value ?? data.slider_start;


chore: update community qrcode

Checklist

[ ] Fix linting errors
[ ] Tests have been added / updated (or snapshots)

Change information

Codecov Report

Merging #581 (a631cc4) into dev (a50f735) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #581   +/-   ##
=======================================
  Coverage   95.93%   95.93%
=======================================
  Files         217      217
  Lines        5267     5267
  Branches      990      990
=======================================
  Hits         5053     5053
  Misses        207      207
  Partials        7        7

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 a50f735...a631cc4. Read the comment docs.


SqlServer Session Exception in RC2 ASP.NET Core Web Application (.NET Framework)

When trying to access the Session in a RC2 ASP.NET Core Web Application (.NET Framework) I get this exception:
Could not load file or assembly 'System.Collections.NonGeneric, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
It works in a RC2 ASP.NET Core Web Application (.NET Core).
Details:
Controller:
public class HomeController : Controller
{
public IActionResult Index()
{
HttpContext.Session.SetString("hello", "world"); // Exception
return View();
}
    public IActionResult About()
    {
        ViewData["Message"] = "Your application description page.";
        var x = HttpContext.Session.GetString("hello");
        return View();
    }

project.json:
{
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview1-final",
"type": "build"
},
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-final",
"Microsoft.AspNetCore.Session": "1.0.0-rc2-final",
"Microsoft.Extensions.Caching.SqlServer": "1.0.0-rc2-final"
},
"tools": {
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview1-final",
"imports": "portable-net45+win8+dnxcore50"
},
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview1-final",
"imports": "portable-net45+win8+dnxcore50"
}
},
"frameworks": {
"net461": { }
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"publishOptions": {
"include": [
"wwwroot",
"Views",
"appsettings.json",
"web.config"
]
},
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}
Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddMvc();
services.AddDistributedSqlServerCache(options =>
{
options.ConnectionString = "xxx";
options.SchemaName = "dbo";
options.TableName = "SessionData";
        });
        services.AddSession(options =>
        {
            options.CookieName = ".AdventureWorks.Session";
            options.IdleTimeout = TimeSpan.FromSeconds(10);
        });
    }

    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        loggerFactory.AddConsole(Configuration.GetSection("Logging"));
        loggerFactory.AddDebug();
        app.UseSession();

StackTrace:
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at Microsoft.Extensions.Caching.SqlServer.DatabaseOperations.GetCacheItem(String key, Boolean includeValue)
at Microsoft.Extensions.Caching.SqlServer.DatabaseOperations.GetCacheItem(String key)
at Microsoft.Extensions.Caching.SqlServer.SqlServerCache.Get(String key)
at Microsoft.AspNetCore.Session.DistributedSession.Load()
at Microsoft.AspNetCore.Session.DistributedSession.Set(String key, Byte[] value)
at Microsoft.AspNetCore.Http.SessionExtensions.SetString(ISession session, String key, String value)
at WebApplication2.Controllers.HomeController.Index() in C:\project\WebApplication2\src\WebApplication2\Controllers\HomeController.cs:line 14
at lambda_method(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.ExecuteAsync(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionExecutor.ExecuteAsync(ObjectMethodExecutor actionMethodExecutor, Object instance, Object[] orderedActionArguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__6.MoveNext()

@mupedersen Similar exception to when .NET 4.6.1 isn't installed on the machine. Check Programs & Features and confirm the framework is installed.

4.6.1 is installed (<IP_ADDRESS>5) on my machine:
PSChildName    Version          Release

Client         4.6.01055        394271
Full           4.6.01055        394271

Ok ... worth a check since a similarly-worded exception appears when the .NET Framework version isn't installed.

I receive this exact same error as well. My project has been working fine with session variables until I attempted to add a SQL Server store for session variables. This is done by adding in the package "Microsoft.Extensions.Caching.SqlServer". Try removing this from your project unless you wish to store sessions in the DB.
I would like to understand the issue behind this though as I am deploying my project to a web farm so I need to implement the Session State using SQL server

Not much out there on this one: http://stackoverflow.com/questions/37305514/asp-net-core-rc2-crashes-on-full-net-framework-when-using-distributed-caching ... and I noticed that caching samples are targeting net451. I recommend you close this issue here and re-open this over in https://github.com/aspnet/Caching/issues, where more caching pro :eyes: will see it.

Hello. HttpContext.Session.SetString("hello", "world");
always error: Session has not been configured for this application or request.
how you fix this. i have import aspnetcore.session.   and add the code in the startup.cs

     app.UseSession();
     app.addSession

Seems to be fixed in the RTM


Introduce ethereum

Description

walletconnect pairing
dapp listing
disconnect
folder management

Type of Change

[x] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Example dapp - https://example.walletconnect.org/


Integrate Pydantic

Integrate Pydantic to Flet for enhanced data/input validation.
Where?

[ ] Property setters
[ ] Control Methods
[ ] Dataclasses
[ ] ... (?)

msgspec is a good option too, but because Pydantic it's currently a dependency, it should be cool to integrate it

Hey uh i have a small question. How does this affect bundle size of the application? ( or is this optional? )

How does this affect bundle size of the application? ( or is this optional? )

Those are indeed good points you mentioned.
Further info will be provided when this issue will be worked on.


react/require-render-return should not warn if there is no render method (abstract component)

In case I use an "abstract" Component, I used to write them like this:
export default class AbstractComponent extends Component {
    abstractmethod = () => {
        // ...
    }
}

then use them
import AbstractComponent from './AbstractComponent';

export default class MyComponent extends AbstractComponent {
   // ...
}

With react/require-render-return, an error is raised: Your render method should have return statement
Should I use another way to use heritage? Is there a missing case in this rule?

+1. This is required as of 5.0.0. Abstract components were previously being correctly ignored in version 4.x.x but looks like something broke in 5.0.0

In my react project I have non-react ES6 classes that by chance have a render method, can the linter detect and shout when encountering only react classes ?
class MediaControl extends Clappr.UICorePlugin {
  get name() { return 'media_control'; }
  render() {
    this.rendered = true;
    this.update();
  }
}

@romainneutron and @iongion Can you test with the v5.1.1 to see if you still have the issue ?

@yannickcr I do not get it anymore, awesome!

@yannickcr Can confirm as well. Seems all good in v5.1.1

Sounds like this is fixed - I'll close this now. Please reopen if there's further issues.


Group - change widgets from SubUrbanWidget to AllLocationsWidget

Change those widgets to AllLocationsWidget:
injured_count_by_accident_year
accident_count_by_driver_type
accidents_heat_map
accident_count_by_day_night
accident_count_by_accident_year
accident_count_by_accident_type
and test each with street2_hebrew.
Epic: #2333

Not relevant


cacoo-ninja’s uninstall is calling a GUI

cacoo-ninja’s uninstall needs to be revised.

https://github.com/caskroom/homebrew-cask/pull/16109.


Switch to Travis container arch and test MRI 2.2.3

Good idea, I think I'll merge this and then drop 1.9 support since it's currently causing issues with Travis.  Sorry for the delay on replying.


fixing #20

see #20
cleanup Get-DefaultDisplayMembers (should we change that name? could be something shorter like Get-TableFormat)
fix Get-SpectreTable, to always run foreach in process block, as the [array] check wasn't working properly.
changed to [-1] incase any object has [0] as its typeof.
some minor tweaks.

cleanup Get-DefaultDisplayMembers (should we change that name? could be something shorter like Get-TableFormat)

I'm not really fussed on private function names being a bit verbose, it seems to describe what it does quite well the way it is. Do whatever you want with it though, I appreciate the work you've done on this 🙏

Most of the logic is in the column and row wrangling, it might be better to handle them independently i.e. set up the columns fully first then set up the row data. It could be broken out into a couple of functions like below to make the end {} block easier to read + the bits could be tested independently.
👇 this is pseudo-code as heck, I might have missed some things that make this not work the way I think it will...
End block:
end {
  if("nothing is in the collector") {
    # bail out
  }

  $standardMembers = Get-DefaultDisplayMembers # add the check here for .PSTypeNames[0] -notmatch 'PSCustomObject'

  Add-TableColumns -Property $Property -StandardMembers $StandardMembers -Table $table -Collector $Collector

  if($Property) {
    $collector = $collector | Select-Object -Property $Property
  } elseif($standardMembers) {
    $collector = $collector | Select-Object $standardMembers.Format
  }

  foreach ($item in $collector) {
    $row = New-TableRow -Item $item -AllowMarkup $AllowMarkup
    [TableExtensions]::AddRow($table, $row) # this works without casting the array of rows so no AllowMarkup check required
  }

  Write-AnsiConsole $table
}

Functions supporting the above:
# This is the bulk of the existing code in the end block
function Add-TableColumns {
  param (
    $property,
    $standardMembers
    $table,
    $collector
  )
  if("user requested a specific list of $property") {
    # select them from the items in the $collector
    # add them to the $table
  } elseif("$standardMembers are available / not null") {
    # add the columns to the $table with available formatting
  } elseif(Test-IsScalar $collector[0].PSObject) {
    # simple/scalar types show up wonky, we can detect them and just use a dummy header for the table
    $table.AddColumn("Value")
  } else {
    # no formatting found and no properties selected, enumerating psobject.properties.name
  }
}

# Check if the object type is scalar/simple
function Test-IsScalar {
  param (
    $Value
  )
  $matchedScalarTypes = $Value.PSObject.TypeNames | Where-Object {
    @("System.String", "System.ValueType") -contains $_
  }
  return $null -ne $matchedScalarTypes
}

# I should have done this when I smushed the AllowMarkup stuff into your branch, handling the allowmarkup inline makes the "end {}" block huge
function New-TableRow {
  param (
    [object] $Item,
    [boolean] $AllowMarkup
  )
  $columns = @()
  foreach($cell in $item.PSObject.Properties) {
    if([string]::IsNullOrEmpty($cell.Value)) {
      $Value = " "
    }
    if($AllowMarkup) {
      $columns += [Markup]::new([string]$cell.Value)
    } else {
      $columns += [Text]::new([string]$cell.Value)
    }
  }
  return $columns
}

The default behaviour for dumping an array of hashtables to a spectre table could also be cast to a pscustom object in the process block. I'm not sure of many situations where I would want to dump the properties of the hashtable vs it trying to output the actual hashtable entries
foreach ($entry in $data) {
    if($entry -is [hashtable]) {
        $collector.add([pscustomobject]$entry)
    } else {
        $collector.add($entry)
    }
}

Really like the proposed changes!
I'll try and add this to the pr, during the weekend.

Proposed changes look great IMO as well! Looking forward to trying it all out when implemented.

this test here works for me, im not sure if it covers all scenarios..
(and ofcourse the pester tests)
did i miss any object type we should render?
I need to do some cleanup before merge, theres alot of Write-Debug stuff in the code at the moment.
but prefer to keep it in while working on it.
[System.Collections.Generic.List[object]]$GenericList = @()
1..5 | ForEach-Object { $GenericList.Add([PSCustomObject]@{ Name = (Get-Random) }) }
[System.Collections.Generic.List[System.IO.DirectoryInfo]]$Files = @()
$path = $env:PSModulePath -split ([System.IO.Path]::PathSeparator) | Select-Object -First 1
1..5 | ForEach-Object { $Files.Add([System.IO.DirectoryInfo]"$(Join-Path $path ([string](Get-Random) + '.tmp'))") }
$sample = @{
    StringArray = @("one", "two", "three")
    GenericList = $GenericList
    hashtable = @{
        PwshSpectreConsole = "nice"
        pwsh = $PSVersionTable.PSVersion
        third = 'something'
    }
    Filesystem = $Files
    PSCustomObject = [PSCustomObject]@{
        Name = 'PwshSpectre'
        Version = '0.0.1'
        Description = 'A PowerShell module to display data in a table'
        dummy = 'dummy'
        dummy2 = 'dummy2'
        dummy3 = 'dummy3'
    }
}

foreach ($test in $sample.GetEnumerator()) {
    Write-SpectreHost -Message "Testing $($test.Name)"
    if ($test.Name -eq 'hashtable') {
        Format-SpectreTable -Data $test.Value -Title 'My hashtable'
        continue
    }
    if ($Test.Name -eq 'PSCustomObject') {
        Format-SpectreTable -Data $test.Value -Title 'My PSCustomObject' -Property Name, Version, Description
        continue
    }
    Format-SpectreTable -Data $test.Value
}

There are some psstyle options I think will need to be mapped/stripped
based on it failing in one of the tests I just pushed.
I think I might have a couple of your scenarios in those tests, if I missed
some just copy paste the basic test and pipe in different input types.
For validation the best you can do is check the row counts are correct on
the returned table object because not much else is exposed publicly in
spectre console.
If you’re running the tests locally you need to run build.ps1 first to
download the spectre libs.
You can leave write debug in there. I find it convenient, I used to cmdlet
bind everything and pass $verbose preference the whole way through 🤦♂
write-debug is much better.
On Mon, 8 Jan 2024 at 12:48 PM, trackd @.***> wrote:

this test here works for me, im not sure if it covers all scenarios..
(and ofcourse the pester tests)
did i miss any object type we should render?
I need to do some cleanup before merge, theres alot of Write-Debug stuff
in the code at the moment.
but prefer to keep it in while working on it.
[System.Collections.Generic.List[object]]$GenericList = @()1..5 | ForEach-Object { $GenericList.Add([PSCustomObject]@{ Name = (Get-Random) }) }
[System.Collections.Generic.List[System.IO.DirectoryInfo]]$Files = @()$path = $env:PSModulePath -split ([System.IO.Path]::PathSeparator) | Select-Object -First 11..5 | ForEach-Object { $Files.Add([System.IO.DirectoryInfo]"$(Join-Path $path (string + '.tmp'))") }$sample = @{
StringArray = @("one", "two", "three")
GenericList = $GenericList
hashtable = @{
PwshSpectreConsole = "nice"
pwsh = $PSVersionTable.PSVersion
third = 'something'
}
Filesystem = $Files
PSCustomObject = [PSCustomObject]@{
Name = 'PwshSpectre'
Version = '0.0.1'
Description = 'A PowerShell module to display data in a table'
dummy = 'dummy'
dummy2 = 'dummy2'
dummy3 = 'dummy3'
}
}
foreach ($test in $sample.GetEnumerator()) {
Write-SpectreHost -Message "Testing $($test.Name)"
if ($test.Name -eq 'hashtable') {
Format-SpectreTable -Data $test.Value -Title 'My hashtable'
continue
}
if ($Test.Name -eq 'PSCustomObject') {
Format-SpectreTable -Data $test.Value -Title 'My PSCustomObject' -Property Name, Version, Description
continue
}
Format-SpectreTable -Data $test.Value
}
—
Reply to this email directly, view it on GitHub
https://github.com/ShaunLawrie/PwshSpectreConsole/pull/21#issuecomment-1880222822,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADEMYIQPWLWR4L47BMH36KLYNMX27AVCNFSM6AAAAABBKXRFVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGIZDEOBSGI
.
You are receiving this because you commented.Message ID:
@.***>

I’ve had to take off to an appointment sorry to push broken tests and bail
😂
On Mon, 8 Jan 2024 at 1:10 PM, Shaun Lawrie @.***>
wrote:

There are some psstyle options I think will need to be mapped/stripped
based on it failing in one of the tests I just pushed.
I think I might have a couple of your scenarios in those tests, if I
missed some just copy paste the basic test and pipe in different input
types.
For validation the best you can do is check the row counts are correct on
the returned table object because not much else is exposed publicly in
spectre console.
If you’re running the tests locally you need to run build.ps1 first to
download the spectre libs.
You can leave write debug in there. I find it convenient, I used to cmdlet
bind everything and pass $verbose preference the whole way through 🤦♂
write-debug is much better.
On Mon, 8 Jan 2024 at 12:48 PM, trackd @.***> wrote:

this test here works for me, im not sure if it covers all scenarios..
(and ofcourse the pester tests)
did i miss any object type we should render?
I need to do some cleanup before merge, theres alot of Write-Debug stuff
in the code at the moment.
but prefer to keep it in while working on it.
[System.Collections.Generic.List[object]]$GenericList = @()1..5 | ForEach-Object { $GenericList.Add([PSCustomObject]@{ Name = (Get-Random) }) }
[System.Collections.Generic.List[System.IO.DirectoryInfo]]$Files = @()$path = $env:PSModulePath -split ([System.IO.Path]::PathSeparator) | Select-Object -First 11..5 | ForEach-Object { $Files.Add([System.IO.DirectoryInfo]"$(Join-Path $path (string + '.tmp'))") }$sample = @{
StringArray = @("one", "two", "three")
GenericList = $GenericList
hashtable = @{
PwshSpectreConsole = "nice"
pwsh = $PSVersionTable.PSVersion
third = 'something'
}
Filesystem = $Files
PSCustomObject = [PSCustomObject]@{
Name = 'PwshSpectre'
Version = '0.0.1'
Description = 'A PowerShell module to display data in a table'
dummy = 'dummy'
dummy2 = 'dummy2'
dummy3 = 'dummy3'
}
}
foreach ($test in $sample.GetEnumerator()) {
Write-SpectreHost -Message "Testing $($test.Name)"
if ($test.Name -eq 'hashtable') {
Format-SpectreTable -Data $test.Value -Title 'My hashtable'
continue
}
if ($Test.Name -eq 'PSCustomObject') {
Format-SpectreTable -Data $test.Value -Title 'My PSCustomObject' -Property Name, Version, Description
continue
}
Format-SpectreTable -Data $test.Value
}
—
Reply to this email directly, view it on GitHub
https://github.com/ShaunLawrie/PwshSpectreConsole/pull/21#issuecomment-1880222822,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADEMYIQPWLWR4L47BMH36KLYNMX27AVCNFSM6AAAAABBKXRFVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGIZDEOBSGI
.
You are receiving this because you commented.Message ID:
@.***>

There are some psstyle options I think will need to be mapped/stripped based on it failing in one of the tests I just pushed.

I think i just copied values from wikipedia/ANSI_escape_code
I'm sure we could tweak it a bit. those codes can be a bit spotty on the implementation side not all terminals use the same code for the same thing or implement all the codes.
hmm, looking at the test a bit i think we need to figure out a different way to test decorations.
PSStyle names dont match Spectre Names and we need to keep it as Spectre Style for it to work as a decoration.
styles
I did notice that i had wrong name for a few, gonna look them over and update the C# dictionary.
I think it would be better to just compare the ansi output if we could capture that and compare
maybe something like this would work?
function Get-AnsiEscapeSequence {
    param(
        [Parameter(Mandatory, ValueFromPipeline)]
        $String
    )
    process {
        $decoded = $String.EnumerateRunes() | ForEach-Object {
            if ($_.Value -le 0x1f) {
                [Text.Rune]::new($_.Value + 0x2400)
            } else {
                $_
            }
        } | Join-String
        [PSCustomObject]@{
            Decoded  = $decoded
            Original = $String
        }
    }
}
"$($PSStyle.blink) testblink $($PSStyle.Reset)" | Get-AnsiEscapeSequence

You can leave write debug in there. I find it convenient, I used to cmdlet bind everything and pass $verbose preference the whole way through 🤦♂ write-debug is much better.

it is quite alot at the moment though, but ill leave it in.

i looked over the TestHelpers module and added a new function, Get-SpectreRenderable
        Describe "Get-SpectreRenderable" {
            It "returns the correct output for a given renderable" {
                $renderable = [Spectre.Console.Text]::new("Hello, world!")
                $output = Get-SpectreRenderable $renderable
                $output | Should -Be "Hello, world!"
            }
        }
        Describe "Get-SpectreRenderable" {
            It "returns the correct output for a given renderable" {
                $renderable = [Spectre.Console.Markup]::new("[Yellow]Hello[/], [Green]world![/]")
                $output = Get-SpectreRenderable $renderable
                $output | Should -Be "Hello, world!"
            }
        }

gives this,

also this package exists Spectre.Console.Testing
could look at implementing that, not to ship with the module ofcourse.
was looking at this as well
Spectre Table tests
that's how spectre tests, should be possible to use Get-SpectreRenderable and compare with some saved .txt files but i havnt had the chance to test it fully

I havn't looked that closely at the build script, do i still need to run it or is it just the libs?
It just downloads the libs atm

ok i figured out whats wrong with a few of the tests..
testlog
added a small function Get-SpectreProfile
Seems the github runners are only running EightBit.
i tried setting $env:COLORTERM = 'truecolor' on a local linux machine but it doesn't seem to affect this,
relevant code
a bit curious...
this means that spectre console will automatically downgrade any 24bit colors to a color that is supported, which is pretty cool but makes this test a bit hard.
but the tests work locally, and did find a big bug in my converter code that im gonna try and fix.
Enrichers             : GitHub
ColorSystem           : EightBit
Unicode               : True
Ansi                  : True
Links                 : False
Legacy                : False
Interactive           : False
Terminal              : False
Writer                : System.IO.TextWriter+SyncTextWriter
Width                 : 80
Height                : 80
Encoding              : Unicode (UTF-8)
PSStyle               : Host
ConsoleOutputEncoding : System.Text.ConsoleEncoding
ConsoleInputEncoding  : System.Text.ConsoleEncoding

we should probably disable a few of the tests for CI as it requires truecolor?
but all tests work locally for me atleast
Tests completed in 13.12s
Tests Passed: 72, Failed: 0, Skipped: 0 NotRun: 0
Processing code coverage result.
Covered 43,46% / 75%. 1 560 analyzed Commands in 57 Files.

and all the examples from #20 work.

now the function maps console colors correctly, but Spectre dont use the same escape sequence so its gonnna be a bit harder to verify in tests.
Test-Colortable
that's just for console colors.
it'll adapt to the colors you have chosen in your color profile in your terminal.
example
my normal profile using Nord color theme.

noprofile and using One Half Dark color theme

@ShaunLawrie this is ready for prerelease.
I ran through Start-SpectreDemo and the Pester tests, all looks good.
CI tests failed but that's because they can only run 8bit so 24bit rgb is downgraded.

Testlog
Starting pwsh -noprofile and Running Pester tests...
Starting discovery in 21 files.
Discovery found 72 tests in 2.84s.
Starting code coverage.
Running tests.
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\ConvertTo-SpectreDecoration.tests.ps1 1.94s (1.33s|296ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreBarChart.tests.ps1 653ms (443ms|86ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreBreakdownChart.tests.ps1 369ms (167ms|63ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreJson.tests.ps1 302ms (127ms|46ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectrePanel.tests.ps1 215ms (57ms|40ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreTable.tests.ps1 504ms (307ms|69ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreTree.tests.ps1 234ms (76ms|41ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\new_Format-SpectreTable.tests.ps1 249ms (86ms|46ms)
Completing a single stage process ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
job 1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
job 2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\progress\Invoke-SpectreCommandWithProgress.tests.ps1 2.3s (2.14s|41ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\progress\Invoke-SpectreCommandWithStatus.tests.ps1 1.25s (1.09s|41ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreConfirm.tests.ps1 284ms (116ms|40ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreMultiSelection.tests.ps1 286ms (112ms|48ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreMultiSelectionGrouped.tests.ps1 364ms (204ms|42ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectrePause.tests.ps1 265ms (106ms|44ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreSelection.tests.ps1 216ms (54ms|42ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreText.tests.ps1 214ms (51ms|38ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Get-SpectreEscapedText.tests.ps1 171ms (8ms|42ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreCalender.tests.ps1 344ms (148ms|45ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreFigletText.tests.ps1 212ms (43ms|40ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreHost.tests.ps1 224ms (57ms|43ms)
[+] D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreRule.tests.ps1 175ms (18ms|40ms)
Tests completed in 10.83s
Tests Passed: 72, Failed: 0, Skipped: 0 NotRun: 0
Processing code coverage result.
Covered 43,21% / 75%. 1 560 analyzed Commands in 57 Files.

The publish won’t happen if the CI test fail, you could add a tag and
pester config to not run them in CI
On Fri, 19 Jan 2024 at 7:14 AM, trackd @.***> wrote:

@ShaunLawrie https://github.com/ShaunLawrie this is ready for
prerelease.
I ran through Start-SpectreDemo and the Pester tests, all looks good.
CI tests failed but that's because they can only run 8bit so 24bit rgb is
downgraded.
Testlog Starting pwsh -noprofile and Running Pester tests...
Starting discovery in 21 files.
Discovery found 72 tests in 2.84s.
Starting code coverage.
Running tests.
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\ConvertTo-SpectreDecoration.tests.ps1
1.94s (1.33s|296ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreBarChart.tests.ps1
653ms (443ms|86ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreBreakdownChart.tests.ps1
369ms (167ms|63ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreJson.tests.ps1
302ms (127ms|46ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectrePanel.tests.ps1
215ms (57ms|40ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreTable.tests.ps1
504ms (307ms|69ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\Format-SpectreTree.tests.ps1
234ms (76ms|41ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\formatting\new_Format-SpectreTable.tests.ps1
249ms (86ms|46ms)
Completing a single stage process ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
100%
job 1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
job 2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\progress\Invoke-SpectreCommandWithProgress.tests.ps1
2.3s (2.14s|41ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\progress\Invoke-SpectreCommandWithStatus.tests.ps1
1.25s (1.09s|41ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreConfirm.tests.ps1
284ms (116ms|40ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreMultiSelection.tests.ps1
286ms (112ms|48ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreMultiSelectionGrouped.tests.ps1
364ms (204ms|42ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectrePause.tests.ps1
265ms (106ms|44ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreSelection.tests.ps1
216ms (54ms|42ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\prompts\Read-SpectreText.tests.ps1
214ms (51ms|38ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Get-SpectreEscapedText.tests.ps1
171ms (8ms|42ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreCalender.tests.ps1
344ms (148ms|45ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreFigletText.tests.ps1
212ms (43ms|40ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreHost.tests.ps1
224ms (57ms|43ms)
[+]
D:\Code\PwshSpectreConsole\PwshSpectreConsole.Tests\writing\Write-SpectreRule.tests.ps1
175ms (18ms|40ms)
Tests completed in 10.83s
Tests Passed: 72, Failed: 0, Skipped: 0 NotRun: 0
Processing code coverage result.
Covered 43,21% / 75%. 1 560 analyzed Commands in 57 Files.
—
Reply to this email directly, view it on GitHub
https://github.com/ShaunLawrie/PwshSpectreConsole/pull/21#issuecomment-1899422192,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADEMYIRCW23TTO7RZQH2P4TYPG3F3AVCNFSM6AAAAABBKXRFVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGQZDEMJZGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

The publish won’t happen if the CI test fail, you could add a tag and pester config to not run them in CI

I've added a filter called 'ExcludeCI'to the 24bit tests and changed one of the tests a tiny bit.
need to look into why LastWriteTime gets truncated in CI..
I'm guessing its the width = 80 so would need to use a different command with formatting and less columns in CI.
I'm not getting the conflict with PwshSpectreConsole.Tests/formatting/Format-SpectreTable.tests.ps1 in my fork so it doesnt look like i can resolve it?

The publish won’t happen if the CI test fail, you could add a tag and pester config to not run them in CI

I think maybe i was a bit unclear earlier.
All CI tests pass now
So it should be able to merge now.
(sorry if you knew and just havnt had time, its no rush from me)
just thought that maybe my response might look weird on email as I had an expanding section.


[HW] Calvin Yan

Name: Calvin Yan
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/calvin-yan-9845b758/
Attach the homework step I screenshots below:

Attach the homework step II screenshots below:

Hey there Calvin, thank you for your submission. Nice job completing the scenario. The only thing we are missing is step 1 of the homework.

Complete the practice steps from this repository as described above.

Just post an image of the working application from the workshop.


os: opening/locating/copying system libraries is broken in macOS Big Sur beta

What version of Go are you using (go version)?

$ go version
go version go1.14.4 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/me/Library/Caches/go-build"
GOENV="/Users/me/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/me/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.4/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/77/cbrny7lx71vbbgw8jt0zt6x80000gn/T/go-build140751726=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
This recipe is very clear and I actually have an example with my own software:

Use the default go (or any tbh) library to copy a library that is part of the macOS operating system for example /usr/lib/system.b.dylib.
This will return a "No such file or directory".

There is a reason of why this happens, according to Apple, they changed how default system libraries work on macOS (example the C library).
Quote:

New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

My project can be located here
This code checks otool to get linked libraries and then copies them (The code might be bad).
What did you expect to see?

I expect to get no errors and have the library copied.

What did you see instead?

I get an error "no such file or directory" due to this change Apple made.

Proposed solution
Perhaps an idea of mine will be having an array of the default libraries of macOS (such as libsystem.b.dylib) and check at runtime if the OS is macOS if it is, and the user wants to copy some of this libraries, the solution is to syscall dlopen() instead of open(), hope this issue can help anyone and if not I guess I will have to fix it on my side.

I'm a bit confused as to what this implies. Does the Go toolchain not work? Do Go binaries not work? What about shared libraries and plugins?
Or is it just that os.Open("/usr/lib/libSystem.dylib") doesn't work?
Does the same problem happen in C? If so, I don't think there's anything for us to fix - this sounds like intentional behavior on Apple's part. (But why? Weird.)

Note that this problem is listed as a "known issue" of the beta, not as an intended feature. Maybe it will be fixed.

@randall77 Well what works is basically everything in Golang, however, yeah the os.Open("/usr/lib/libsystem.dylib"), is basically broken, I tested in C and yes the same happens unless I do dlopen(), that is Apple's new behavior, while the issue only affects systems libraries, means that without a workaround opening/copying default libraries on macOS will no longer work (in Go or other stuff that doesn't do a workaround)

If Go programs generally work, but they fail in exactly the ways that C programs fail, then I don't think there is anything we should or even can change in the Go project.

any updates on this?

@seiflotfy If there are updates, they will be posted here.
I don't think anyone knows if this should be fixed, and if so, what such a fix would look like.

There is a solution for this, and it is dumping the libraries, the tool is provided by Apple but not by default on macOS, I have the tool on my brew repository.
is dyld_shared_cache_util you can read more online

Still not an ideal solution, and I dont have the knowledge if we can interact with the cache, the cache is located at  /System/Library/dyld/dyld_shared_cache_x86_64

@DiegoMagdaleno could you step back a second and explain what not being able to open a system library is preventing you from doing? That would help @randall77 identify the answer to his question, https://github.com/golang/go/issues/39832#issuecomment-674540155

@davecheney I have a tool that makes Chroots, so this means, for example, binaries depend on libs they are linked to. Here is an example.
/bin/ls:
	/usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0)

As you can see this are linked to /usr/lib that are system libraries on macOS, however, when you try to copy them it is gonna fail saying there is no such file or directory.
I am trying to copy them from dir A to dir B

Is this a limitation of Go or are other utils like cp, rsync, or install also affected?

Other utilities also appear to be affected.
When I opened this issue this wasn't very know, so I thought it was Golang.

Given that this problem is not restricted to go, would you consider closing this. If Apple fixes the problem it will be fixed for all languages and tools simultaneously

Sure thing, I was considering closing it a few days ago.
Sorry for the inconvenience


Optimize nodes with a single shape

Currently a Maya transform node with child shape is exported as two glTF nodes (eg pCube1 and pCubeShape1). However, if the Maya transform only has a single shape (the common case), the second glTF node is redundant.

Implemented in 224bdcad245f1f1fde674e5fc1f24235901fff13


Failing to open files/documents (pdf,docx) on flutter web

I can't open pdf, docx, and other documents. I'm using chrome for development. when I pass the URL like this webviewController.loadContent(widget.fileUrl);
I get the following response "The Page has been blocked by chrome"

an alternative is by using google docs to view the files, like this
 webviewController.loadContent(                           'https://docs.google.com/viewer?url=${widget.fileUrl}');
which also is returning an error "docs.google.com refused to connect

@PHTremor that's because of COR policy not related to this library.


Named Entity Co-occurence

https://medium.com/low-code-for-advanced-data-science/extracting-insights-from-healthecco-knowledge-graph-4bbce3ade2ff

https://github.com/Pandora-Intelligence/crosslingual-coreference perhaps something like this might also be interesting.


Improve cross platform support for bosh cli

I've made some changes to my local install to bosh cli overall cross platform support. The main issue is differing behavior of tar across platforms.  By replacing calls to tar with Ruby code, I've been able to standardize behavior and reduce code paths. E.g., special handling for BSD vs GNU tar is no longer required. The most significant impact of the change is that bosh cli now works on Windows without hassle.
I'd like to submit my code for consideration. I am not suggesting bosh cli add "official" Windows support. Rather, I hope you'll consider the PR as a Rubification of existing archive handling logic that reduces external dependencies and provides better XP experience.

Moving to bosh-lite

Hi @0x1mason - glad to hear you were able to get CLI working locally on Windows! Windows support has come up a couple times over the years, but it hasn't been a high priority.
I think the CLI has some planned enhancements which may make the changes difficult to merge right now, but, community-wise, you could still push your changes to a branch in case others are interested in trying out the CLI on Windows in the meantime. I'd also personally be curious to see what kinds of changes you found were required.
Thanks for raising an issue to discuss this!

Thanks. I'll do that. It'll take me a bit--swamped at work and I need to jump thru some more hoops to get the lawyers to sign the CLA.
The heart of the changes were removing tar and using ruby instead. There is existing platform-specific handling for differences between BSD and GNU tar. My changes make all that unnecessary. . So you can think of this as a "make it work the same way for everyone regardless of OS" change.  It's basically just a drop-in for the tar invocations.

I have tar on Windows. It works great from the command line. The sys calls from Ruby, not so much.

Closing - we won't be making further changes to ruby CLI in favor of continuing development of our go-based bosh-cli. There is currently an open issue about enabling builds for Windows if you want to follow that there - https://github.com/cloudfoundry/bosh-cli/issues/53.


tlf_journal_test: Try to address the deadlock

cc @strib
I'm guessing that the journal just isn't blocking, and this should address that scenario.

I'm going to fix the comment myself since you're out tomorrow and we should get this in ASAP.


Trying to serve namespaces

Currently, a single "alice" is handled, instead of a captured namespace.
@asheshambasta I can't manage to make it work. I tried initially with Tagged m Application (which matches Raw I think), then I tried with https://hackage.haskell.org/package/servant-rawm-<IP_ADDRESS>/docs/Servant-RawM.html. The problem is to be able to use withMaybeUserFromUsername to lookup a user, together with serveDocumentation (as a fallback when there is no such user). Could you have a try at this ?
Previously I wanted to simply have serveNamespace fail "softly" so that Servant would try the next handler, but I didn't find how to make that work either.

Superseded by https://github.com/hypered/curiosity/pull/73


fix macOS software context

An issue appeared after removing support for framed windows on macOS which breaks the software context. It seems to originate from an invalid read in the platform structure, but the lack of functional memory debuggers on macOS makes it difficult to study.

Fixed as of 3f16097efdb463853eb4673d6738d9486adc10a0


Readme updates

Update the Readme file. TODO items are moved to issues in github. Add notes about cmake options and update the usage example.

TBR=dneto0


Remove redundant mongodb connection

Remove redundant mongodb connection
Summary
Fix warehouse service removin redundant mongodb connection.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


RadioButtonGroup: Allow giving label in constructor

With most components, you can add a label directly in constructor:
TextField firstName = new TextField( "First name");

But you can't do that with RadioButtonGroup as there is no constructor for it. You have to instead do:
RadioButtonGroup happiness  = new RadioButtonGroup<>();
happiness.setLabel("How excited are you?");

It is annoying when you can configure 10 components the same way, but then the 11th requires you to do the same thing in another way.

Closing as duplicate of #168


feat(RELEASE-230): update release service ref to konflux ci org

This commit updates the release-service reference
as result of migration to konflux-ci from redhat-appstudio
more details parent EPIC:
https://issues.redhat.com/browse/RHTAPREL-800
Checklist:

PR has reference to the issue(s) it resolves
Write / update unit tests
Write / update integration (envtest) tests
Ensure there is an issue for e2e tests if needed
Ensure make test passes
Ensure test coverage hasn't decreased
Test code changes manually
Update readme and documentation
Write PR description that highlights overall changes and add usage examples if applicable

The move to konflux-ci org of releaseapi dependency has already been done


consider untranslated preset name as search term for (non en-US) English locales

see https://github.com/openstreetmap/id-tagging-schema/issues/461#issuecomment-1129146212 for further details
closes https://github.com/openstreetmap/id-tagging-schema/issues/461

As a search term, or maybe even better as an alias, see https://github.com/openstreetmap/iD/issues/6139
Aliases are not implemented yet, but if they are implemented like in the screenshots shown by Quincy, the alias would be shown alongside the primary name in the search box.

Oh sorry, nevermind. I misread this ticket as this https://github.com/openstreetmap/id-tagging-schema/issues/461#issuecomment-1134045651