text:
How to use Python 3.11?

I want to use Python 3.11 for a project.
I've enabled the python language support but that gives me python 3.10. I've tried adding it to the packages via
{ pkgs, ... }:

{
  packages = [ pkgs.git  pkgs.python311 ];

  languages.python.enable = true;
  languages.python.poetry.enable = true;
}

But python3 --version still gives me version 3.10. I additionally tried running nix-shell -p python311, which then gives me python 3.11 in the shell, but poetry still uses version 3.10. I then managed to make poetry use that python version by running -
 which python3
/nix/store/9fa9qmx4bv12d58m7s26b1mnw6643f3w-python3-3.11.1/bin/python3

[nix-shell:~/src/finances]$ poetry env use /nix/store/9fa9qmx4bv12d58m7s26b1mnw6643f3w-python3-3.11.1/bin/python3

Is there any easier way?

hello,
and adding this :
languages.python.package = pkgs.python311;
?

It keeps getting stuck here -
[1/0/7 built, 0.0 MiB DL] building python3.11-cherrypy-18.8.0 (buildPhase):   warnings.warn(msg, wardirenv: ([/opt/homebrew/Cellar/direnv/2.32.2/bin/direnv export fish]) is taking a while to execute. Use CTRL-C to give up.
[1/0/7 built, 0.0 MiB DL] building python3.11-cherrypy-18.8.0 (pytestCheckPhase): cherrypy/test/test

[1/0/7 built] building python3.11-cherrypy-18.8.0 (fixupPhase): stripping (with command strip and fldirenv: ([/opt/homebrew/Cellar/direnv/2.32.2/bin/direnv export fish]) is taking a while to execute. Use CTRL-C to give up.
error: builder for '/nix/store/1hjxbcmxba0w3q7fybfj0fq968ixqdi3-python3.11-cherrypy-18.8.0.drv' failed with exit code 1;
       last 10 log lines:
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_no_content_length
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_post_filename_with_special_characters
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_post_multipart
       > FAILED cherrypy/test/test_iterator.py::IteratorTest::test_iterator
       > FAILED cherrypy/test/test_request_obj.py::RequestObjectTests::testErrorHandling
       > FAILED cherrypy/test/test_session.py::SessionTest::test_1_Ram_Concurrency
       > FAILED cherrypy/test/test_session.py::SessionTest::test_2_File_Concurrency
       > FAILED cherrypy/test/test_tools.py::ToolTests::testHookErrors
       > = 12 failed, 260 passed, 9 skipped, 13 deselected, 2 errors in 301.61s (0:05:01) =
       > /nix/store/qrz2mnb2gsnzmw2pqax693daxh5hsgap-stdenv-darwin/setup: line 1601: pop_var_context: head of shell_variables not a function context

Can you attach your devenv.{nix,lock} and which OS?

The lock file -
{
  "nodes": {
    "devenv": {
      "locked": {
        "dir": "src/modules",
        "lastModified": 1678703653,
        "narHash": "sha256-pUJwMOXAv1boXQW97VtZgoVc/tIU5O0nf6k7ivFsbMM=",
        "owner": "cachix",
        "repo": "devenv",
        "rev": "2ef261dcdf5cb025d0fcb0275a34228cfceb7228",
        "type": "github"
      },
      "original": {
        "dir": "src/modules",
        "owner": "cachix",
        "repo": "devenv",
        "type": "github"
      }
    },
    "flake-compat": {
      "flake": false,
      "locked": {
        "lastModified": 1673956053,
        "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
        "owner": "edolstra",
        "repo": "flake-compat",
        "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
        "type": "github"
      },
      "original": {
        "owner": "edolstra",
        "repo": "flake-compat",
        "type": "github"
      }
    },
    "flake-utils": {
      "locked": {
        "lastModified": 1667395993,
        "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "gitignore": {
      "inputs": {
        "nixpkgs": [
          "pre-commit-hooks",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1660459072,
        "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1678631509,
        "narHash": "sha256-+eyd+CJUAZbk0KqqhyJtai+BmiM2/K54xE91fI2eGD0=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "b38db2c901b30a37d345751f4f6418d416e7e46e",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs-stable": {
      "locked": {
        "lastModified": 1673800717,
        "narHash": "sha256-SFHraUqLSu5cC6IxTprex/nTsI81ZQAtDvlBvGDWfnA=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "2f9fd351ec37f5d479556cd48be4ca340da59b8f",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-22.11",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "pre-commit-hooks": {
      "inputs": {
        "flake-compat": "flake-compat",
        "flake-utils": "flake-utils",
        "gitignore": "gitignore",
        "nixpkgs": [
          "nixpkgs"
        ],
        "nixpkgs-stable": "nixpkgs-stable"
      },
      "locked": {
        "lastModified": 1678376203,
        "narHash": "sha256-3tyYGyC8h7fBwncLZy5nCUjTJPrHbmNwp47LlNLOHSM=",
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "rev": "1a20b9708962096ec2481eeb2ddca29ed747770a",
        "type": "github"
      },
      "original": {
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "devenv": "devenv",
        "nixpkgs": "nixpkgs",
        "pre-commit-hooks": "pre-commit-hooks"
      }
    }
  },
  "root": "root",
  "version": 7
}

The nix file -
{ pkgs, ... }:

{
  packages = [ pkgs.git pkgs.jq pkgs.nodePackages.prettier ];
  languages.python.enable = true;
  languages.python.poetry.enable = true;
}

I'm on OSX arm64 - A Macbook Air M2.

I'm running into this issue as well on an M1 pro. Did you find any work around @vHanda?

I ran into the same issue. Apple M1 Pro w/ Ventura 13.2.1
Error:
error: builder for '/nix/store/b0hwqhr1jsldh35932w65ws54171j4h5-python3.11-cherrypy-18.8.0.drv' failed with exit code 1;
       last 10 log lines:
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_no_content_length
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_post_filename_with_special_characters
       > FAILED cherrypy/test/test_http.py::HTTPTests::test_post_multipart
       > FAILED cherrypy/test/test_iterator.py::IteratorTest::test_iterator
       > FAILED cherrypy/test/test_request_obj.py::RequestObjectTests::testErrorHandling
       > FAILED cherrypy/test/test_session.py::SessionTest::test_1_Ram_Concurrency
       > FAILED cherrypy/test/test_session.py::SessionTest::test_2_File_Concurrency
       > FAILED cherrypy/test/test_tools.py::ToolTests::testHookErrors
       > = 12 failed, 260 passed, 9 skipped, 13 deselected, 2 errors in 10878.95s (3:01:18) =
       > /nix/store/5pq0sy4haiy4rb2chya6qq72w95ci2dp-stdenv-darwin/setup: line 1602: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/b0hwqhr1jsldh35932w65ws54171j4h5-python3.11-cherrypy-18.8.0.drv'.
error: 1 dependencies of derivation '/nix/store/alddm2566zl717sbm476pr3qdyyrlps9-python3.11-cachecontrol-0.12.11.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wrjkjqgavwx91rw1sk648g4ygrmrwpk7-python3.11-poetry-1.4.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r302xwrblkm28gffzxx61kh998hmw55s-devenv-profile.drv' failed to build
error:
       error: 1 dependencies of derivation '/nix/store/9s01il9h4hxd33ggimh72gsgghsg348q-devenv-shell-env.drv' failed to build
direnv: error exit status 1

devenv.nix:
{ pkgs, ... }:

{
  packages = [
    pkgs.git
    pkgs.jq
    pkgs.zlib
  ];

  languages.python = {
    enable = true;
    poetry.enable = true;
    package = pkgs.python311;
  };
}

devenv.lock
{
  "nodes": {
    "devenv": {
      "locked": {
        "dir": "src/modules",
        "lastModified": 1680271030,
        "narHash": "sha256-w1Y/S3TylKylTHCp+YkOJbiAE2LBBF1sKIKuLDW4fkU=",
        "owner": "cachix",
        "repo": "devenv",
        "rev": "52232ba41b7c531eacec4cf192d87241bef1a0d1",
        "type": "github"
      },
      "original": {
        "dir": "src/modules",
        "owner": "cachix",
        "repo": "devenv",
        "type": "github"
      }
    },
    "flake-compat": {
      "flake": false,
      "locked": {
        "lastModified": 1673956053,
        "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
        "owner": "edolstra",
        "repo": "flake-compat",
        "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
        "type": "github"
      },
      "original": {
        "owner": "edolstra",
        "repo": "flake-compat",
        "type": "github"
      }
    },
    "flake-utils": {
      "locked": {
        "lastModified": 1667395993,
        "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "gitignore": {
      "inputs": {
        "nixpkgs": [
          "pre-commit-hooks",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1660459072,
        "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1680273054,
        "narHash": "sha256-Bs6/5LpvYp379qVqGt9mXxxx9GSE789k3oFc+OAL07M=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "3364b5b117f65fe1ce65a3cdd5612a078a3b31e3",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs-stable": {
      "locked": {
        "lastModified": 1678872516,
        "narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-22.11",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "pre-commit-hooks": {
      "inputs": {
        "flake-compat": "flake-compat",
        "flake-utils": "flake-utils",
        "gitignore": "gitignore",
        "nixpkgs": [
          "nixpkgs"
        ],
        "nixpkgs-stable": "nixpkgs-stable"
      },
      "locked": {
        "lastModified": 1680170909,
        "narHash": "sha256-FtKU/edv1jFRr/KwUxWTYWXEyj9g8GBrHntC2o8oFI8=",
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "rev": "29dbe1efaa91c3a415d8b45d62d48325a4748816",
        "type": "github"
      },
      "original": {
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "devenv": "devenv",
        "nixpkgs": "nixpkgs",
        "pre-commit-hooks": "pre-commit-hooks"
      }
    }
  },
  "root": "root",
  "version": 7
}

I'm running into this issue as well on an M1 pro. Did you find any work around @vHanda?

I did not. For this project, it was fine to downgrade to Python 3.10 since it's a pet project.

Using both Python 3.11 and Poetry from nixpkgs-22.11 seems to work.
devenv.nix
{ inputs, pkgs, ... }:

let
  pkgs-stable = import inputs.nixpkgs-stable { system = pkgs.stdenv.system; };

in
{
  # https://devenv.sh/basics/
  env.GREET = "Welcome to the Vest development environment!";

  # https://devenv.sh/languages/
  languages.python = {
    enable = true;
    package = pkgs-stable.python311;
    poetry = {
      enable = true;
      package = pkgs-stable.poetry.override
        {
          python = pkgs-stable.python311;
        };
    };
  };
...

devenv.yaml
inputs:
  nixpkgs:
    url: github:NixOS/nixpkgs/nixpkgs-unstable
  nixpkgs-stable:
    url: github:NixOS/nixpkgs/nixos-22.11

@workflow Worked perfectly, and also makes so much sense! Thanks!

I just ran into this issue and had seen this before as well. I think the problem is that I opted to override the python version of poetry to be config.languages.python.package, but the version of poetry that is in nixpkgs isn't always compatible with a different python version.
I've now opted to use pkgs.poetry as-is in https://github.com/cachix/devenv/pull/522. That means that poetry itself will potentially run under a different version of python compared to the python package you'd like to use for your application. This should be fine, since poetry already does this when using its virtualenvs.
In versions before https://github.com/cachix/devenv/pull/522, the workaround that worked for me was to set languages.python.poetry.package = pkgs.poetry (a non-overridden version of poetry).

Nowadays you can do
   languages.python.version = "3.11";

authors: Paul75 benaduggan bobvanderlinden domenkozar shyim vHanda workflow ziyunli

repo: cachix/devenv


text:
Writing files to .devenv/state/

Cheers for all the efforts here.
I'm trying to understand how to work around a problem where I want to customise the pg_hba.conf. Normally this could be done via the standard mechanism provided via the authentication attr, but this doesn't seem to be exposed in devenv.
So rather than hack things in and have to fork. I thought maybe I could do this as a script in enterShell:
echo ${my_config} > ''${PG_DATA}/pg_hba.conf

This seems to fail though with:
/Users/test/.cache/direnv/cas/cde945d2f2db125e6e6aaadf2336e03732561a62f30a66009089e3fcb371bcab:258: /nope.txt: Read-only file system

So my question is what's the best way to do this using a proper nix-store ref? Happy to use flake.nix here if this is required. However, that would raise a further question about how to access the attribute holding the postgres state path given it's higher up.
nix-repl> outputs.devShells.aarch64-darwin.default.config.env.PGDATA
"/Users/test/src/flake_devenv/.devenv/state/postgres"

An example would be most welcome.
Thanks :)

The best way would be for services.postgres to expose an option to append entries to pg_hba.conf.

I think it might be worth it to consider abstracting this to beyond the postgres example.
I have a similar issue where I would like to include a krb5.conf file for kerberos configuration; kerberos does not have a service configuration option.  In this case, I feel it would be very useful to have something like home-manager's home.file available.

source: gharchive/issue

authors: ahgraber domenkozar loadx

license_type: permissive

license_source: github-api


text:
crypto/ecdh: package crypto/ecdh is not in GOROOT (/usr/local/go/src/crypto/ecdh)

Dockerfile:

FROM caddy:2.7-builder-alpine AS app_caddy_builder

RUN xcaddy build v2.6.4 \
	--with github.com/dunglas/mercure/caddy \
	--with github.com/dunglas/vulcain/caddy

##############
docker compose up -d:
[caddy app_caddy_builder 2/2] RUN xcaddy build v2.6.4  --with github.com/dunglas/mercure/caddy  --with github.com/dunglas/vul  114.8s
##############
error:
#0 777.9 github.com/dunglas/mercure/caddy imports
#0 777.9        github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile imports
#0 777.9        github.com/caddyserver/caddy/v2/modules/caddytls imports
#0 777.9        github.com/smallstep/certificates/authority/provisioner imports
#0 777.9        github.com/slackhq/nebula/cert imports
#0 777.9        crypto/ecdh: package crypto/ecdh is not in GOROOT (/usr/local/go/src/crypto/ecdh)
failed to solve: process "/bin/sh -c xcaddy build v2.6.4 \t--with github.com/dunglas/mercure/caddy \t--with github.com/dunglas/vulcain/caddy" did not complete successfully: exit code: 1

See https://github.com/api-platform/api-platform/issues/2452

authors: dlfree-xzn-ir francislavoie

repo: caddyserver/xcaddy


text:
Provide for a graceful exit

This PR adds a third option to the dev interface to allow a graceful exit instead of requiring the user to use ctrl+c. I'm a little mixed on this one because ctrl+c is pretty natural for most developers and adding another option here takes up more screen space, but I'm content to open the pull request and let you decide what makes sense. 😄

Thank you for the suggestion, I added it as a part of a bigger change.

source: gharchive/pull-request

authors: caderek mgwalker

repo: caderek/aocrunner

license: ISC


text:
v2.2.0

woohoo 2.2.0 lets gooo

shut up codacy 🤓🤓🤓

repo: caffeine-moe/CHAOS

license: MIT


text:
Laptop screen stays black after re-opening

Describe the bug
Laptop screen stays black after re-opening (Not sleep mode, see below 2nd step) with Cairo running. Nothing but force power off can fix it. Tried Ctrl+Alt+Delete as well, didn't work.
Steps to reproduce

Install Cairo
Set laptop to NOT sleep (Do nothing) when lid is closed in power settings, so it just turns off the screen. (My preference)
Start Cairo
Close laptop lid and open after about 10 seconds.

Expected behavior
N/A
System information:

Windows version: 10 x64 1909
Cairo version: M3.7174
32-bit or 64-bit: 64
In Cairo Settings > Advanced, is Cairo set as shell?: No

Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.

I LOVE Cairo Shell BTW 👌🏻😎

I LOVE Cairo Shell BTW 👌🏻😎

Thanks for the report! It seems odd that Cairo would cause this, does it occur if you exit Cairo before sleep?

I will test this more! I set my laptop to never sleep (even when closing the lid). I will report back soon.

You were right, of course. It happened without Cairo installed yesterday. You can close this!

authors: FiddleStickers dremin

repo: cairoshell/cairoshell


text:
Add possibility to generate documentation on source-changes

currently Publish-Documentation checks for changes to documentation files in the current commit:
https://github.com/cake-contrib/Cake.Recipe/blob/1.1.2/Cake.Recipe/Content/wyam.cake#L33-L46
It would be nice to have the ability to check for source-file changes, too. Probably add a new BuildParameter ShouldGenerateDocumentationOnSrcChange ?
One would have to include the sourceDirectoryPath and possibly exclude the testDirectoryPath.

Never mind. Should be possible, when https://github.com/cake-contrib/Cake.Recipe/commit/a042e8a8b0882eb34c64f5a8dcc519f744ce333a is released

@nils-a I think we should open this again, just to make sure that it works as intended, once things have shipped.  That way, it won't drop off the radar.

@gep13 agreed. From looking at the diffs again I'm no longer sure whether the changes do what I suspected them to do at first glance or rather whether they enable/disable generation of source documentation at all.

I'm guessing something like https://github.com/cake-contrib/Cake.Recipe/compare/develop...nils-a:feature/GH-615 is needed.
However, I can not get the current develop-branch of cake.recipe to work (i.e. not even the integration tests) so I'm not sure "what" the code does... (Hence, no PR at the moment...)

@nils-a what issues are you seeing?  If you can provide some more information we should hopefully be able to help.

@gep13 on a vanilla clone, running .\build.ps1 ; .\build.ps1 -Script test.cake the error is
========================================
Tests: Cake.Twitter
========================================
Testing c:/CakeRecipeTests/repos/Cake.Twitter/recipe.cake...
Could not load c:\CakeRecipeTests\repos\Cake.Twitter\tools\Addins\Cake.Issues.Reporting.Generic.0.9.0-beta0001\lib\netstandard2.0\Microsoft.CodeAnalysis.Scripting.dll (missing System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
Using Local Build Provider...
Testing to see if valid git repository...
Unable to find git, setting default values for repository properties...
Printing Build Parameters...
IsLocalBuild: True
IsPullRequest: False
IsMainRepository: False
IsPublicRepository: True
IsTagged: False
BranchType: Unknown
TreatWarningsAsErrors: True
ShouldPublishToMyGetWithApiKey: True
ShouldSendEmail: True
ShouldPostToGitter: True
ShouldPostToSlack: True
ShouldPostToTwitter: True
ShouldPostToMicrosoftTeams: False
ShouldDownloadFullReleaseNotes: False
ShouldDownloadMilestoneReleaseNotes: False
ShouldNotifyBetaReleases: False
ShouldDeleteCachedFiles: False
ShouldGenerateDocumentation: False
ShouldDocumentSourceFiles: False
ShouldRunIntegrationTests: False
ShouldCalculateVersion: True
BuildAgentOperatingSystem: Windows
IsRunningOnAppVeyor: False
RepositoryOwner: cake-contrib
RepositoryName: Cake.Twitter
TransifexEnabled: False
CanPullTranslations: False
CanPushTranslations: False
PrepareLocalRelease: False
BuildAgentOperatingSystem: Windows
ForceContinuousIntegration: False
PreferredBuildAgentOperatingSystem: Windows
PreferredBuildProviderType: AppVeyor
WyamRootDirectoryPath: c:/CakeRecipeTests/repos/Cake.Twitter/docs
WyamPublishDirectoryPath: c:/CakeRecipeTests/repos/Cake.Twitter/BuildArtifacts/temp/_PublishedDocumentation
WyamConfigurationFile: c:/CakeRecipeTests/repos/Cake.Twitter/config.wyam
WyamRecipe: Docs
WyamTheme: Samson
WyamSourceFiles: ../../Source/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs
Wyam Deploy Branch: [NULL]
Wyam Deploy Remote: [NULL]
WebHost: cake-contrib.github.io
WebLinkRoot: Cake.Twitter
WebBaseEditUrl: https://github.com/cake-contrib/Cake.Twitter/tree/develop/docs/input/
NuSpecFilePath: c:/CakeRecipeTests/repos/Cake.Twitter/Cake.Recipe/Cake.Recipe.nuspec
NugetConfig: c:/CakeRecipeTests/repos/Cake.Twitter/NuGet.Config (False)
NuGetSources: https://api.nuget.org/v3/index.json, https://www.myget.org/F/cake-contrib/api/v3/index.json
RestorePackagesDirectory: [NULL]
EmailRecipient: [NULL]
EmailSenderName: [NULL]
EmailSenderAddress: [NULL]
Setting up tools...

----------------------------------------
Setup
----------------------------------------
Initializing Cake.Issues.Recipe (Version 0.4.0-beta0001)...

----------------------------------------
Setup
----------------------------------------
Error: Could not find an installer for the 'dotnet' scheme.

----------------------------------------
Teardown
----------------------------------------
An error occurred in a custom teardown action.
Teardown error: System.InvalidOperationException: The context data has not been setup.
   at Cake.Core.CakeDataService.Get[TData]()
   at Cake.Core.CakeEngineActions.<>c__DisplayClass21_0`1.<RegisterTeardown>b__0(ITeardownContext context)
   at Cake.Core.DefaultExecutionStrategy.PerformTeardown(Action`1 action, ITeardownContext teardownContext)
   at Cake.Core.CakeEngine.PerformTeardown(IExecutionStrategy strategy, ICakeContext context, Stopwatch stopWatch, CakeReport report, Boolean exceptionWasThrown, Exception thrownException)
Error: One or more errors occurred.
        Cake: Process returned an error (exit code 1).
Cake.Twitter: Cake.Core.CakeException: Cake: Process returned an error (exit code 1).
   at Cake.Core.Tooling.Tool`1.ProcessExitCode(Int32 exitCode)
   at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction)
   at Cake.Common.Tools.Cake.CakeRunner.ExecuteScript(FilePath scriptPath, CakeSettings settings)
   at Submission#0.<>c__DisplayClass0_1.<<Initialize>>b__8(ICakeContext context) in D:\_dev\Cake.Recipe\test.cake:line 125

========================================
Tests
========================================
An error occurred when executing task 'Tests'.

----------------------------------------
Teardown
----------------------------------------
Error: One or more errors occurred.
        https://github.com/cake-contrib/Cake.Gulp.git
        https://github.com/cake-contrib/Cake.Http.git
        https://github.com/cake-contrib/Cake.Twitter.git

and while I'm guessing the error originates at https://github.com/cake-build/cake/blob/3e8bd7a7589d0e38e819011230aff215f8eef4ce/src/Cake.Core/Scripting/ScriptProcessor.cs#L104 I'm currently somewhat lost in tracking it down.

Ah, so the build itself works, but the included integration tests don't.  I "think" that actually makes sense.  Those projects won't have been updated to include the Cake.Recipe 2.0 related changes, and likely other things, so I don't think that this is a showstopper.  @AdmiringWorm has another repository that we have been using for testing out the changes to Cake.Recipe (https://github.com/cake-contrib/Cake.Recipe.Tests).  For now, I wouldn't worry about running the local integration tests, but we will need to get these fixed up.

@gep13 Thanks for the pointer - I wasn't even sure my code worked in the slightest (and it didn't..). So I needed some tests :-)

license: mit

license_source: bigquery


text:
🛑 XMR Asia Servers is down

In 1acd04e, XMR Asia Servers ($XMR_ASIA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: XMR Asia Servers is back up in 94fecc2 after 15 minutes.

repo: cake-tech/upptime-cakewallet


text:
🛑 xmr-node.cakewallet.com:18081 is down

In 59c4d17, xmr-node.cakewallet.com:18081 (xmr-node.cakewallet.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: xmr-node.cakewallet.com:18081 is back up in c8ba48e after 6 minutes.


text:
A column can not be "NOT NULL" unless it has a default value (SQLite)

In the SQLite adapter you can not use just array('null' => false) to specify that a column is "NOT NULL", you also have to specify a default value[1].
$def .= ($column->isNull() || is_null($default)) ? ' NULL' : ' NOT NULL';

This behavior is different from the other adapters[2][3], so I am assuming it is a bug.
$def .= ($column->isNull() == false) ? ' NOT NULL' : ' NULL';
$buffer[] = $column->isNull() ? 'NULL' : 'NOT NULL';

I've merged a test which is reproducing this behaviour, but I've marked it as skipped for now.
I tried to fix this bug but it turns out its not as simple as it seems. I can make it work when creating a table, however altering one is a different story. SQLite only supports a limited subset of ALTER TABLE:

The new column may take any of the forms permissible in a CREATE TABLE statement, with the following restrictions:

If a NOT NULL constraint is specified, then the column must have a default value other than NULL.

See: http://www.sqlite.org/lang_altertable.html for more information.
I guess Phinx would have to work around this behaviour and inject a default value say an empty string or 0 depending on the column type when altering a table.
I'll leave this open for now.

Hi, do we have any progress with that bug?

having ['null' => false, 'default' => '']in DDLs created by create table is pretty insane. basically you allow creating rows with almost as bad as with null values enabled.
Maybe getColumnSqlDefinition could know in which ddl context it is called (CREATE/ALTER/...) and in sqlite not force you to use default?

I would like to point out that Sqlite ALTER TABLE does not support altering existing column. So there is no way you could alter NOT NULL column to NULL value - therefore I think CREATE should not force column NOT NULL with DEFAULT set.
and adding new column with NOT NULL and without DEFAULT would trigger database level error anyway
create table person (
   id integer PRIMARY KEY  NOT NULL,
   name text NULL
);

alter table person add column age integer not null;

SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL

there is no need to hold Phinx user hand as sqlite will do it itself if query is faulty.

Running into the same issue. I'd lilke to use Phinx to "migrate" from no database to a full up to date database with SQLite. The resulting SQLite "CREATE TABLE" syntax has issues...
$table = $this->table('foo');
$table->addColumn('bar', 'string', ['limit' => 255])->create();

CREATE TABLE `foo` (`id` INTEGER NULL PRIMARY KEY AUTOINCREMENT, `bar` VARCHAR(255) NULL);

The primary key has NULL which makes no sense, and the bar column has NULL even though that was not specified.
Expected behavior: no NULL for the primary key, and a NOT NULL instead of NULL for the bar column.

in my PR this is fixed.
        $table = new \Phinx\Db\Table('testtable', array(), $this->adapter);
        $table->addColumn('realname', 'string')
              ->save();

would result executed

CREATE TABLE testtable (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, realname VARCHAR(255) NOT NULL);

I point out that by design Phinx assumes that by default every column is defined as NOT NULL
https://github.com/robmorgan/phinx/blob/0.6.x-dev/src/Phinx/Db/Table/Column.php#L55
protected $null = false;

even tho Sqlite/Mysql defaults to NULL if NULL/NOT NULL is specified in DDL.

even tho Sqlite/Mysql defaults to NULL if no NULL/NOT NULL is specified in DDL.

I don't see this in my local MariaDB server though, there everything is NOT NULL as it should be, it is just in SQLite that the columns become/are NULL by default.

PR open and waiting to be merged.

authors: K4T aldas dereuromark fkooman nixxquality robmorgan

repo: cakephp/phinx


text:
Rollback with target id

There is an issue with rolling back using the -t option and not passing a valid parameter. If passing a string or a number with a missing digit it will rollback all migrations. This is because from https://github.com/robmorgan/phinx/blob/0.6.x-dev/src/Phinx/Migration/Manager.php#L390 to line 409 the logic is wrong. As long as any number supplied is less than the first migration, it will rollback all. It should be an explicit check for 0, not a comparison against the first migration id.
The current concept of rolling back to a target "id" doesn't make much sense anyway. Would it not be better to specify the migration name rather than the migration id since the -d date parameter basically does what -t does?

Can you take a look at 0.7.x-dev branch. A LOT of reworking has been done there. It isn't released yet as we are still testing. More eyes on it would be REALLY useful.

And can you rebase your code onto the 0.7.x-dev branch. :-)

Yeah I'll take a deeper look. I've already seen that this fix isn't implemented yet. Will do!

#945 seems to fix this but for some reason was closed. The failing tests in #945 just need to be re-triggered.

@tariquesani would you like to fix that PR?

@tariquesani as in, clone his branch and open another pull request that will trigger new tests.

Project owners could just hit retest in this thread or Travis. Or I could try re-pushing to trigger the webhooks if that's easier?

+1 there will be a retest option available to you @lorenzo or @jradtilbrook could push something again. I don't need to takeover the PR

@jradtilbrook please re-push, I currently have no access to travis

I'm closing this as there is a candidate PR that solves the issue

authors: jradtilbrook lorenzo rquadling tariquesani


text:
SMTP server configuration only working/used when running on Laptop, but not virtual host

The SMTP configuration only works when I run the Docker container on my laptop, but when I move the same configuration to my virtual host, the IP address 127.0.1.1 is used as SMTP server.
The error I am receiving is the following:
calcom-docker-calcom-1  | @calcom/web:start: 22:38:46:302	WARNorgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed {
calcom-docker-calcom-1  | @calcom/web:start:   WEBAPP_URL: 'https://cal.XXXX.de',
calcom-docker-calcom-1  | @calcom/web:start:   ALLOWED_HOSTNAMES: [
calcom-docker-calcom-1  | @calcom/web:start:     'cal.XXXX.de'
calcom-docker-calcom-1  | @calcom/web:start:   ]
calcom-docker-calcom-1  | @calcom/web:start: }
calcom-docker-calcom-1  | @calcom/web:start: 22:38:59:465	WARN[[SyncServiceManager]  updateWebUser:noUser {"user":null}
calcom-docker-calcom-1  | @calcom/web:start: 22:39:00:275	WARNEventManager No destination Calendar found, falling back to first connected calendar {"calendarCredentials":[]}
calcom-docker-calcom-1  | @calcom/web:start: SEND_BOOKING_CONFIRMATION_ERROR Error: connect ECONNREFUSED 127.0.1.1:465
calcom-docker-calcom-1  | @calcom/web:start:     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
calcom-docker-calcom-1  | @calcom/web:start:     at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
calcom-docker-calcom-1  | @calcom/web:start:   errno: -111,
calcom-docker-calcom-1  | @calcom/web:start:   code: 'ESOCKET',
calcom-docker-calcom-1  | @calcom/web:start:   syscall: 'connect',
calcom-docker-calcom-1  | @calcom/web:start:   address: '127.0.1.1',
calcom-docker-calcom-1  | @calcom/web:start:   port: 465,
calcom-docker-calcom-1  | @calcom/web:start:   command: 'CONN'
calcom-docker-calcom-1  | @calcom/web:start: }
calcom-docker-calcom-1  | @calcom/web:start: sendEmail from: Cal.com cal@XXXX.de subject: 30 Min Meeting between Heiko Joerg Schick and t Error: connect ECONNREFUSED 127.0.1.1:465
calcom-docker-calcom-1  | @calcom/web:start:     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
calcom-docker-calcom-1  | @calcom/web:start:     at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {
calcom-docker-calcom-1  | @calcom/web:start:   errno: -111,
calcom-docker-calcom-1  | @calcom/web:start:   code: 'ESOCKET',
calcom-docker-calcom-1  | @calcom/web:start:   syscall: 'connect',
calcom-docker-calcom-1  | @calcom/web:start:   address: '127.0.1.1',
calcom-docker-calcom-1  | @calcom/web:start:   port: 465,
calcom-docker-calcom-1  | @calcom/web:start:   command: 'CONN'
calcom-docker-calcom-1  | @calcom/web:start: }
My configuration is:
EMAIL_SERVER_HOST=XXXX.de
EMAIL_SERVER_PORT=465
EMAIL_SERVER_USER=cal@XXXX.de
EMAIL_SERVER_PASSWORD=XXXXXXXXXXXXXX
It seems the configuration is used to verify the SSL certificate of the SMTP server but not for sending.
Thank you very much for your help.

I'm facing the same issue @schihei were you able to figure this out?

authors: pramodith schihei

repo: calcom/docker


text:
error at building docs

Hi, i get an error when i'm trying to install the docs in the way as it is described in the docs readme:
[Compile Error] Cannot find module 'react-tap-event-plugin' from '/home/.../material-ui/docs/src/app'
What can i do wrong?

react-tap-event-plugin is a peer dep. Try installing react-tap-event-plugin.

I had tried to install it under the /docs module and it thrown other errors, but now i installed it under the root material-ui/docs/ and it's working! :) Thanks!

Having issues with this, cannot build docs, error is due to react-router
Uncaught TypeError: Cannot read property 'isActive' of undefined

@theunexpected1 Are you still having an issue with this?

I had the same problem.
"Uncaught TypeError: Cannot read property 'isActive' of undefined."
npm install react-router
then
console log output : muiTheme component undefined.

@cangyan This likely because there are multiple versions of react in your project. See #608

@hai-cea Thank you for answer.
I remove react from docs project.
npm uninstall react
It's OK now.

Fixed with #656

authors: azazdeaz cangyan hai-cea jkruder mmrtnz theunexpected1

repo: callemall/material-ui


text:
[IconMenu] desktop prop support

Problem description
Not provided desktop prop from IconMenu to Menu component,
Steps to reproduce
<IconMenu
  iconButtonElement={
    <IconButton>
      <Build/>
    </IconButton>
  }
  anchorOrigin={{horizontal: 'left', vertical: 'top'}}
  targetOrigin={{horizontal: 'left', vertical: 'top'}}
  desktop={true}
>
  <MenuItem leftIcon={<Delete/>} primaryText="Remove"/>
</IconMenu>

Versions

Material-UI: 0.15.0

PS. Why? https://github.com/callemall/material-ui/issues/4408#issuecomment-223142813

Why?

I do not know why it happened. It stopped. Sorry.

Thanks for updating with some detail. Almost there. Please add some kind of description of the issue / use case so we know what you're trying to achieve.

👍

authors: gastonbesada ivansglazunov mbrookes


text:
ListItemIcon shrink when there's multi lines primary text

Problem description
Left icon in a list item (ListItemIcon) shrink when primary text extend to multi lines.
Steps to reproduce
Just like the example in the doc site ( https://material-ui-1dab0.firebaseapp.com/demos/lists/ ), We can change the primary text in chrome dev console and see that the icon shrink.

Versions

Material-UI: beta.6
React: v16
Browser: chrome v60 on windows 10

I think that we should be adding flexShrink: 0, to ListItemIcon.js. Do you want to take care of it?

@oliviertassinari no, sorry that i'm not good at github things.

authors: leedstyh oliviertassinari


text:
[Tests] Add unit tests for AppBar

Initial work by @pradel from #3445

Thanks @pradel, thanks @alitaheri!

authors: alitaheri newoga


text:
[TextField] Follow the spec more closely

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@leMaik It should be better like this.
This new focus test might be flaky. Will see how it evolves. Otherwise, we need to use
<TextFieldLabel required focused>Foo</TextFieldLabel>

I had this in the original implementation but forgot in in next. Glad to see it fixed. :)

authors: leMaik oliviertassinari


text:
Upgrade to Webpack 4

@czystyl can you make me a favor and test it once more? I've updated webpack to stable v4.1.0

For now I've verified iOS works, with HMR too.
I get these deprecation warning though:
(...) Tapable.plugin is deprecated. Use new API on `.hooks` instead
(...) The callback argument was splitted into resolveContext and callback.
(...) The type arguments (string) is now a hook argument (Hook). Pass a reference to the hook instead.

It appeared just after the update

It looks like everything works except HRM with a Chrome debugger on Android

As a followup we'll migrate to new plugins API (ref: https://github.com/webpack/webpack/search?utf8=✓&q=Compiler.hooks&type=)

authors: czystyl thymikee

repo: callstack/haul


text:
Repack Navigation From Mini App To Main APP

Ask your Question

I am wondering how navigation works in repack. I am certain the back button navigation takes me back to the previous route on the stack but i am wondering how i can take a user from the mini page for example to the main page directly without using the back button.
In my use case, i want to go back to the main app because the navigations of the main app are not in the mini app when the mini app launches and i want them to be able to move back to the main app because of how my app is designed

Hi @Nazehs,
if your NavigationContainer is in the host app and the mini-app is rendered within the component tree, then you could just do navigation.navigate() to any screen in the app that you want. Not much changes in that respect when using MF.

authors: Nazehs jbroma

repo: callstack/repack


text:
feat: support bridgeless

Summary
add support for bridgeless in new arch for RN >= 0.74 with compat for all other variants. RN 0.74 introduced way more compatibility layers to handle bridgeless on new arch which was not possible on 0.73. Since there is no way to get into the runtime on bridgeless on 0.73, it is excluded from support (it was not turned on by default before 0.74 so it's a rare scenario). This seems to be rather common amongst other libraries having similar issues.
Notes

CPP Native Turbomodule would be nice but we still need to support old arch, at least for now
Implemented using CallInvoker API on both platforms
Android uses BridgelessCatalystInstance since it was introduced in 0.74 - thanks to that we don't need to fork the code (at least for now)

Test plan

Platform
0.74
0.73
0.72

Android OldArch
✅
✅
✅

Android NewArch
✅
✅
✅

Android NewArch Bridgeless
✅
❌
-

iOS OldArch
✅
✅
✅

iOS NewArch
✅
✅
✅

iOS NewArch Bridgeless
✅
❌
-

Everything looks green, except for the RN 0.73 bridgeless which is expected.
I've also fixed multiple issues on Android:

Kotlin jvmTarget incosistencies
used backwards compatible ReactModuleInfo constructor (issue from #623)
marked newArchEnabled as cache invalidating

Canary build for testing available here: https://www.npmjs.com/package/@callstack/repack/v/4.0.1-canary-20240603172122

cpp & objc is now reformatted with clang-format 🎉


text:
Move URL parsing to action creators

I am enjoying your minimal but effective library. However, I am having difficulty with this use case: I have a middleware that examines the authentication state and the current navigation path to decide if to send the user to a sign in page. It's based on this example for a similar but neglected library.
The problem is that the URL isn't parsed until it passes through the middleware. This means that the content of the action differs based on the order that middlewares are added when creating the store.
I suggest moving the URL parsing bit from the middleware to the action creators so that the action payload is always in its final form. I also recommend exporting the constants.
I'd be glad to put together a pull request if you like.

I've only just noticed this issue - I'm really sorry for the delay. Turns out I hadn't been watching my own repo.
Correct me if I'm wrong but my understanding is that middlewares cascade. Could you not always ensure that the routing middleware comes first, and have your redirection come next?
https://github.com/callum/redux-routing/blob/master/src/createMiddleware.js#L32-L37
You can see the the result of the routing middleware is passed as arguments to next, which in this case refers to the next middleware. So in theory, your redirection can be handled there. Here's an example:
import { navigate } from 'redux-routing'

const authMiddleware = store => next => action => {
  // location is a parsed url
  const { location } = action

  if (!loggedIn && location.href !== '/login') {
    store.dispatch(navigate('/login'))
  }
}

Then it's just a case of composing your middlewares in the correct order:
import { middleware as routingMiddleware } from 'redux-routing'
import { authMiddleware } from './authMiddleware'

const createStoreWithMiddleware =
  applyMiddleware(routingMiddleware, authMiddleware)(createStore)
const store = createStoreWithMiddleware(reducer)

Hope that helps.

Yes, you are correct that it can be handled by changing the order of the middlewares.  However, the parsing work can just as easily be done in the action creators so that the action payload never changes through the life of the action. It is a friendlier, less surprising way that doesn't require any special treatment to play well with others.

From what I can see there's not a very strong case for this. In this instance my preference is to keep the actions as simple as possible and have the middleware do the rest.

hmmm i tried this and have strange message about undefined 'href':
/**
 * Created by andrey on 26/01/16.
 */
import { applyMiddleware, createStore, compose } from 'redux'
import { createMiddleware, Hash, navigate, reducer, route } from 'redux-routing'
import { authMiddleware } from './authMiddleware'
import rootReducer from 'reducers/rootReducer'
import thunk from 'redux-thunk'

function withDevTools (middleware) {
	const devTools = window.devToolsExtension
		? window.devToolsExtension()
		: require('containers/DevTools').default.instrument();

	return compose(middleware, devTools);
}

export default function configureStore () {
	const routerMiddleware = createMiddleware(Hash);

	let middleware = [thunk, routerMiddleware, authMiddleware ];

	if (__DEBUG__) {
		var createLogger = require('redux-logger');
		middleware.push(createLogger());
	}

	middleware = applyMiddleware(...middleware);

	if(__DEBUG__) {
		middleware = withDevTools(middleware);
	}

	const store = middleware(createStore)(rootReducer);

	if (module.hot) {
		module.hot.accept('reducers/rootReducer', () => {
			const nextRootReducer = require('reducers/rootReducer').default;
			store.replaceReducer(nextRootReducer);
		})
	}

	return store;
}

and auth:
import { navigate } from 'redux-routing'

export const authMiddleware = store => next => action => {
	const { location } = action;
	const { currentUser } = store.getState();

	if (!currentUser && location.pathname !== '/login') {
		store.dispatch(navigate('/login'));
		return;
	}

	return next(action);
};

i'm getting error about history:
Cannot read property 'type' of undefined @ History.js?5edb:40

What do i miss?

authors: callum patrick-jones plandem

repo: callum/redux-routing

license: isc


text:
Incoming function is applied more than once

I am using crypto-pouch with Ionic Framework and i have noticed the incoming function (when you save some data with Put) is applied more than one time per document so the data is re encrypted. The consequence is that when i want to read with get or allDocs, the outgoing function is applied  only one time and the result is data still encrypted.
this is my method to add records:
 self.put = function(object){
            if (!db){
                    self.init();
                }
            db.crypto(params.getDbkey())
                .then(function(){
                db.put(object).then(function(response){
                    console.log('Insert Ok'+ JSON.stringify(response));
                }).catch(function(err){
                    db.get(object._id).then(function(response){
                        response = object;
                        return db.put(response);
                    }).then(function(response){
                        console.log('Update Ok '+ response);
                    }).catch(function(err){
                        console.log('Error al actualizar: '+err.toString());
                    });
                });
            });

Testing with a new database everytime, so all documents are inserted.
To read, i am using:
self.getAll = function(query){
            return db.crypto(params.getDbkey())
                .then(function(){
                var res =db.allDocs(query);
                return res;
            })
        };

Inserting a new document is handled in the bundle.js with the function:
line 17321:
handlers.bulkDocs = function (orig, args) {
    for (var i = 0; i < args.docs.length; i++) {
      args.docs[i] = incoming(args.docs[i]);
    }
    return orig();
  }

What i have found is that after the for is completed, the line return orig() restart the function and the bucle start all over again, firing the encrypt() function in the line 19922 before saving it to the database.

you should only be calling db.crypto(params.getDbkey()) once, so put that inside the conditional it's right bellow so it's only called when the db is created

Done. I changed my init function to this:
self.init = function() {
if (!db) {
console.log('database is closed');
db = new window.PouchDB(dbName,{
adapter: 'websql',
size: 50,
auto_compaction:true});
if (!db.adapter){
db  = new window.PouchDB(dbName,{
size: 50,
auto_compation: true
});
console.log('Usando: ' + db.adapter);
} else {
console.log('Usando websql');
}
return db.crypto(params.getDbkey())
.then(function(){
return db;
});
};
};

authors: calvinmetcalf vpease

repo: calvinmetcalf/crypto-pouch


text:
Minutes of QoD Meeting 2023-09-08

What type of PR is this?

documentation
subproject management

What this PR does / why we need it:
Minutes of QoD Meeting on September, 8th
Which issue(s) this PR fixes:
na
Special notes for reviewers:
na

Will merge it, one review is enough for MoMs ... if there is need for corrections there is still the option to create a short PR.

repo: camaraproject/QualityOnDemand


text:
API definition Yaml of Site to cloud VPN

What type of PR is this?
Add one of the following kinds:

enhancement/feature

What this PR does / why we need it:
Provide yaml of Site to Cloud VPN for resource assessment,creation, modification, query and deletion operation, to discuss and determine the proper input parameters and output parameters of each API request/response
Which issue(s) this PR fixes:

Fixes #9
Special notes for reviewers:
None
Changelog input
 release-note

Additional documentation
This section can be blank.
docs

Hi Dan @DanXu-ChinaTelecom , is https://github.com/camaraproject/SiteToCloudVPN/pull/10/files still valid? There is some collisions between #13 and #10.

authors: DanXu-ChinaTelecom ShutingQing

repo: camaraproject/SiteToCloudVPN


text:
Make height/width fit screen

Hi,
Nice work on this. I'd like to make this mobile response. So is there a way to make it fit 100% height/width?
As per your instructions, the refinements seem to be in pixels.

100% width works for me by passing null for the width prop
<CardStack height={400} width={null} hoverOffset={25}>             {renderStack}   </CardStack>

authors: rawbknalb yarnball

repo: cameronbourke/react-cardstack


text:
View and delete filters, crash mitigation, update blocklist

add ability to view and delete user filters: in a dialog list accessible from Main
postpone a crash from app start to enabling blocking: I was getting a NullPointerException when opening the app, so I added a try/catch that postponed it to enabling blocking. I solved it by clearing app data.
update blocklist

Thanks for the good work.

authors: cameroncam leapwill

repo: cameroncam/SpotifyAdBlocker


text:
[docs] アーキテクチャのドキュメントを作成

概要
アーキテクチャに関するドキュメントを作成する。
要件

どのようなミドルウェアや外部APIを使っているかが分かる。

タスク

[x] docs/architecture.md に内容を書く
[x] 本番環境のアーキテクチャを書く

対し書く内容が無いのでclose

repo: camphor-/relaym-server


text:
feat: add Azure example

Description of the changes
Adding a working DevOps Stack on Azure example with step-by-step setup instructions.

I'll close this PR because the new example has been added in the #1150 merged today.

authors: lentidas modridi

repo: camptocamp/devops-stack


text:
Need new version with important fix

Hi, we need an important fix in KeycloakUserService.java.
else if (query.getIds() != null && query.getIds().length == 1) {
    response = requestUserById(query.getIds()[0]);
}

When is the next release planned?

Hi @antoshkab,
this is already availabe within the current snapshot. I will trigger a new minor release soon. Should be officially available within next week. Does that help?
Gunnar

Hi @antoshkab,
see #78. Release 2.2.2 is triggered and will be available soon.

Yeah, thx a lot :)

authors: VonDerBeck antoshkab


text:
ProcessEngineExtension should inject ProcessEngine in Superclasses

ProcessEngineExtension::109 does not consider the class hierarchy for injection. That would be very nice in examples like the following:
@ExtendWith(ProcessEngineExtension.class)
public class ProcessEngineTestBase {
    protected ProcessEngine processEngine;

    @BeforeEach
    void setupBpmnAssert() {
        BpmnAwareTests.init(processEngine);
    }

    // some more convenience
}

public class MyTest extends ProcessEngineTestBase {
    @Test
    void test() {
           assertNotNull(processEngine); // NPE
}

@ingorichtsmeier would it be possible to include superclass - injection in the next release?

Hi @criew,
We have moved the codebase of this extension into the core product at: https://github.com/camunda/camunda-bpm-platform/tree/master/test-utils/junit5-extension.
With that, we are no longer using this repository, including its issues. If your request is still relevant, please consider raising a ticket in the CAM JIRA issue tracker: https://jira.camunda.com/browse/CAM.
Cheers,
Thorben

authors: ThorbenLindhauer criew


text:
Support completion condition for multi-instance

Is your feature request related to a problem? Please describe.
Zeebe will gain support for completion condition for multi-instance with https://github.com/camunda-cloud/zeebe/pull/8321. Users should be able to model this expression in the modeler, instead of having to change the XML directly.
Describe the solution you'd like
I want to be able to set the completion condition expression for multi-instance elements from the modeler's properties panel.
In the properties panel, under Multi-Instance, a new input field could be added that:

when some text is entered, it creates the <completionCondition> element inside the <multiInstanceLoopCharacteristics> element if the completionCondition element does not yet exist, and always  updates the content of the element with the provided text
when the text is removed, it removes the <completionCondition> element from the <multiInstanceLoopCharacteristics> element.

Describe alternatives you've considered
None
Additional context
In the xml, a multi-instance element has a <multiInstanceLoopCharacteristics> child element. This multiInstanceLoopCharacteristics element should have a child element <completionCondition> which itself contains the expression as content. See BPMN/2.0.2 pages 192, 198, 432 and 433.
Zeebe expects the completion condition to be a FEEL-expression that evaluates to a boolean value.
Zeebe expects FEEL-expression to be prefixed by =.
See: https://github.com/bpmn-io/bpmn-js-properties-panel/issues/530

@barmac Thanks for the fix. I see that this is connected to the 5.0.0-alpha release. Will that be the next generally available modeler version? Or will there be a stable release that will contain this feature?

@barmac I'm asking because of https://github.com/camunda-cloud/camunda-cloud-documentation/pull/509#pullrequestreview-843413303. We want to publish the documentation once this feature is supported by the modeler. Is the alpha release a real release, or just something to try out stuff?

Let's sync via DM.

authors: barmac korthout

repo: camunda/camunda-modeler


text:
Internationalize BPMN diagrams (i18n)

Updated Description (based on discussion below)
Is it possible to internationalize BPMN diagrams with the modeler similar to this example?

Referenced in SUPPORT-5422

How would you like it to be used?

@nikku how do you switch languages in the Modeler?  Assume you already have the .properties files in same folder as bpmn file, with mimicking setup of: https://github.com/camunda/camunda-consulting/tree/master/snippets/i18n-process-model
Is there a variable to set?

@nikku pref use case is ability to add translations directly in Modeler and those translations export to properties file and allow user to switch languages in modeler.  But most basic usage would be to have properties files and the ability to switch lang in modeler.  Translations would still have to be made directly in properties files.

Some misunderstanding here, let me try to clarify...
bpmn-js provides basic i18n features for diagram controls. The example you referenced provides internationalization for diagrams. Both are not yet functionally integrated into the Modeler, yet.
From what I understand you'd like to have internationalization of BPMN diagrams in the modeler?
It would be interesting to learn more about the stuff you'd like to achieve and how you think I18N in the  modeler would help you doing that.

@nikku for I18n support what I am looking to do is be able to translate/internationalize a bpmn so it can be read in different languages (English, French, spinach, etc).  In many cases it is a multi-language working environment and having the ability to read the bpmn in the language you understand best it very helpful.

All right, I updated the issue title and description accordingly.
This is something we may or may not have in the future.

Is this something that could be added/you would accept through PR?  Any thoughts on implementation preferences?

Yes, this is something we accept as a PR.
Some notes on feature / implementation:

localizations should reside next to diagrams (same folder)
feature is non-intrusive; controls for selecting / changing the are added when localization files are present, only
implementation is tested

Any progress with this issue?
We also need multi-language support for diagrams.
In our system user selects the language during log in - everything changes except WFs.

We do not plan to work on this topic any time soon.

authors: StephenOTT nikku slizenko


text:
Scrollbar flickers on the help button in variables outline

Describe the bug
It's not a single pixel but an area:
https://github.com/user-attachments/assets/1a2c1299-6001-4038-ab29-6644f45729bc
Steps to reproduce

Replicate from recording
now this happens

Expected behavior
No flickering
Environment

OS: [e.g. MacOS 10.2, Windows 10]
Camunda Modeler Version: 5.28 / nightly
Execution Platform: [e.g. Camunda 7, Camunda 8]
Installed plug-ins: [...]

Additional context
Related to https://github.com/camunda/camunda-modeler/issues/4496, and requires the same fix.

This is not happening when the outline is big enough to accommodate the tooltip.

Needs rather expensive workaround, cf. https://github.com/camunda/camunda-modeler/issues/4496#issuecomment-2357722354 for prior investigation in this topic.

authors: barmac nikku


text:
Candidate users

Follow-up to https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/78.
Includes some housekeeping. 🧹

Depends on https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/78
Related to https://github.com/camunda/camunda-modeler/issues/3385

I rebased this on top of 4801180c85a3c5e310e3ea7bb6fa5f165c23a4a0 to include the bpmnlint-plugin-camunda-compat release.

authors: barmac philippfromme

repo: camunda/linting


text:
New Team "Help Text"

Looks like the BCDevEx folks left placeholders for the help text when creating a new team:

@RachelMuston do you have any text we can put here instead?

Don't have any text right now but is a good idea to add it.... I'm thinking we'll come up with help text based on what we hear from the the first round of folks who are onboarded.
Is this only on the +new team page or also on the + new project and +new opportunity?

Only on the new team page fortunately, thanks.

Ok cool.  Also weird though as imho that is the easiest page to fill out.  Where help would really be useful is on the +opportunity page.

Well the New Project and New Opportunity have these info boxes as well, but those already have content by default. Now that I'm thinking about it, we should probably get those translated...

Oh man.  How is it that I never clicked on those "?" ?!?!  On it re: translation.

authors: RachelMuston markwooff

repo: canada-ca/devex


text:
Cookie token code seems to have stopped working

Only returns "ltoken=undefined; ltuid=undefined;"

i test is works.
maybe you should try to log in again.
hoyolab

token
f12>console>Paste>get token
function getCookie(name) {
  const value = `; ${document.cookie}`;
  const parts = value.split(`; ${name}=`);
  if (parts.length === 2) return parts.pop().split(';').shift();
}
let token = 'ltoken=' + getCookie('ltoken') + '; ltuid=' + getCookie('ltuid') + ';';
let ask = confirm(token + '\n\nPress enter, then paste the token into your Google Apps Script Project');
if (ask == true) {
  copy(token);
  msg = token;
} else {
  msg = 'Cancel';
}

ok yeah relogging worked thank you, didnt try that because genshin wizard which also uses tokens has disabled token stuff temporarily to fix things


text:
A code review on portfolio setup desktop version

You leave many lines of empty lines in your code.
https://github.com/canon20paul/My-Portfolio-setup-Desktop-version/blob/main/index.js#L10-L25
I think it would be better if you avoid unnecessary empty lines.
Further, it would be better to avoid unused (commented lines of code).
https://github.com/canon20paul/My-Portfolio-setup-Desktop-version/blob/main/index.js#L43-L49
That keeps your code source clean.

Thank u so much


text:
🛑 Ubuntu.com is down

In 4d4724c, Ubuntu.com (https://ubuntu.com) was down:

HTTP code: 500
Response time: 351 ms

Resolved: Ubuntu.com is back up in 6cc3a2a.

Resolved: Ubuntu.com is back up in 6cc3a2a.

Issue comes from discourse.ubuntu.com version upgrade. We were getting 429 because of some API rate limit
Other docs went down: multipass, anbox-cloud.
ubuntu.com homepage went down because of it's hard dependency to discourse. We disabled the engage pages on the homepage with this PR.
This discourse upgrade seems to be the origin.
Discourse redeployed with configuration updated.
Mattermost discussion
Actions

Enable again engage pages on the homepage
Handle engage pages failing on homepage to avoid bringing down ubuntu.com homepage. Issue opened

Issue comes from discourse.ubuntu.com version upgrade. We were getting 429 because of some API rate limit
Other docs went down: multipass, anbox-cloud.
ubuntu.com homepage went down because of it's hard dependency to discourse. We disabled the engage pages on the homepage with this PR.
This discourse upgrade seems to be the origin.
Discourse redeployed with configuration updated.
Mattermost discussion
Actions

Enable again engage pages on the homepage
Handle engage pages failing on homepage to avoid bringing down ubuntu.com homepage. Issue opened

repo: canonical-web-and-design/upptime


text:
Redundant command in certs generation scripT

Hi,
following line
https://github.com/canonical/microk8s/blob/9536527e31d0d4d9c59f529d247c152625e68af5/build-scripts/build-certs.sh#L9
is redundant, and was introduced in https://github.com/canonical/microk8s/commit/f77eb17d7227dec5534e838375527fad60979eb3

Thank you for bringing this to our attention @cg-cri-gl . We will take care of it. Thanks.

authors: cg-cri-gl ktsakalozos


text:
How to forward address of the worker node using port-forwarding

My setup:
I have a microk8s cluster with 8 nodes. The formation of the cluster consist of 2 master nodes (control plane), and 6 worker nodes.
NAME            STATUS   ROLES    AGE     VERSION                    LABELS
controlplan1    Ready    <none>   2d2h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=controlplan1,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-controlplane=microk8s-controlplane
medusa          Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=medusa,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
circe           Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=circe,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
lachesis        Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=lachesis,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
atropos         Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=atropos,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
clotho          Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=clotho,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
calypso         Ready    <none>   2d1h    v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=calypso,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-worker=microk8s-worker
controlplane1   Ready    <none>   2d21h   v1.24.0-2+59bbb3530b6769   beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=controlplane1,kubernetes.io/os=linux,microk8s.io/cluster=true,node.kubernetes.io/microk8s-controlplane=microk8s-controlplane

The further break down of the cluster is as follows
controlplane1(192.168.1.81) is the main master node and is comprised of 3 worker nodes: atropos(192.168.1.83), clotho(192.168.1.84), and lachesis(192.168.1.85).
controlplan1(192.168.1.82) is the 2nd master node and is comprised of other 3 nodes: circe(192.168.1.86), calypso(192.168.1.87), and medusa(192.168.1.88).
What I want:
Currently I have Cassandra database pods deployed on these worker nodes. I want to implement such strategy that if my both control-planes go down then I still want to be able to connect to my Cassandra pods because they are still up and running. I read somewhere that if control-plane goes down then the worker nodes should still perform their job that was defined by the control-plan earlier.
What I am doing:
I am forwarding the address of the both control-planes with port forwarding command.
microk8s kubectl -n control-plane-1 port-forward --address 192.168.1.81 pod/demo-dc1-default-sts-0 44441:9042
microk8s kubectl -n control-plane-2 port-forward --address 192.168.1.82 pod/demo-dc1-default-sts-0 44442:9042
These command are working fine but when my control-planes go down then I lose access to the whole datacenter. Then I thought what if I forward the address of the worker node instead of the control-plane. In this way, if my control-plane goes down then I will still have the IP for external connection.
What I am getting:
When I run the port forward command (microk8s kubectl -n control-plane-2 port-forward --address 192.168.1.83 pod/demo-dc2-default-sts-0 44441:9042) from the worker node then I get the following error:
This MicroK8s deployment is acting as a node in a cluster. Please use the microk8s kubectl on the master.
and
When I run the above command from the control-plane then I get the following error
Unable to listen on port 44441: Listeners failed to create with the following errors: [unable to create listener: Error listen tcp4 192.168.1.83:44441: bind: cannot assign requested address]
error: unable to listen on any of the requested ports: [{44441 9042}]

And if use sudo before microk8s sudo microk8s kubectl -n control-plane-1 port-forward --address 192.168.1.85 pod/demo-dc1-default-sts-0 44441:9042 then I get the following stopped job
jobs -l
[1]+ 38319 Stopped (tty output)    sudo microk8s kubectl -n control-plane-1 port-forward --address 192.168.1.85 pod/demo-dc1-default-sts-0 44441:9042

Is there anything that I am not doing correctly or there is an other way to do this?
Thanks
Uchiha Pain!

Hi @uchiha-pain, this looks more like a question than an issue.
TL;DR: You should be using Service definitions to access Cassandra from outside the cluster. See Service | Kubernetes for details.
Longer version:
I will try and address some of your points inline

I read somewhere that if control-plane goes down then the worker nodes should still perform their job that was defined by the control-plan earlier.

This is correct, the Kubernetes control plane is running independently from the workloads. Even if the control plane goes down, this should not affect the workloads.

microk8s kubectl -n control-plane-1 port-forward --address 192.168.1.81 pod/demo-dc1-default-sts-0 44441:9042

Port forwarding is mostly meant for local development and debugging purposes, not for accessing production workloads. For this, you should instead be using Service definitions. Reading your post, the easiest way to get started is to use a NodePort service. This will expose a specific port from your workloads on a specific high port on all your cluster nodes (both control plane, and worker nodes).
This works great if you already have a "load balancer" of sorts outside of the cluster. Alternatively, a more complex setup would be to configure MetalLB and use a LoadBalancer service.
I would suggest starting simple and seeing what works for you. Feel free to keep the discussion going here, or in the #microk8s channel on Slack. Welcome to Kubernetes!

authors: neoaggelos uchiha-pain


text:
test-branch/execute-job/wrong-comment-on-pr/e707152f-f5f1-47f2-83bc-deab6cc1dc4d

PR for testing 58e8961520c62ba844ef816dc53627f759924d98

comment 1

repo: canonical/repo-policy-compliance-tests


text:
test-branch/execute-job/fork-branch/2dd070b0-a3c5-4d70-8ff2-be2f0d426212

PR for testing 1545f68fea847c67e8235bbf21db829946ae2b06

padding /canonical/self-hosted-runners/run-workflows 1545f68fea847c67e8235bbf21db829946ae2b06 padding

repo: canonical/repo-policy-compliance


text:
Create top level folder platform-integration-tests for all Integratio…

Create top-level folder platform-integration-tests for all Integration Module. (issue#608)

This change is

Coverage remained the same at 59.275% when pulling 6e5e2b2ae1d312210fc2163373f73b388a04790c on TopLevelFolderForAllIntegrationModule into 017ce96c99c25ef5989ccc0bfe50c784fc41073e on master.

repo: canoo/dolphin-platform


text:
question: Is the default hash a sha256 or blake3 or something else?

The description on the okra repo says the hash at each node of the tree is a sha256 tree. In places in this repo I see sha256 commented out and blake3 used.
Just so I understand what the 'hash' bytes are: is it a blake3 hash when using okra-js?
Secondarily, will this hash from okra-js be consistent with what folks get from the okra zig repo?
Thank you. This library works really well.

thanks for asking, I forgot to update the readme to be clear about this!
The answer is blake3 - we had switched to sha256 for an earlier version but have reverted everything back to blake3 for the current database version (3).
There were some other features in okra v3 that I haven't finished implementing for the Zig version, so it's still on sha256 / v2 at the moment, but I will get back to it soon.

authors: gobengo joeltg

repo: canvasxyz/okra-js


text:
Update documentation: --output-file no longer supported in cds bind

Documentation Link: Hybrid Testing: With Profile and Output File
--output-file no longer supported in cds bind and should be changed to --out

Hi @AjitKP91 ,
thanks for sharing your finding. I'll fix it.
All the best,
René

repo: cap-js/docs


text:
add allowForSilence during recording

Responding to this issue: https://github.com/capacitor-community/speech-recognition/issues/102
We don't want the recording to stop immediately after the user stops to talk for a few milliseconds.
Since API 33 we need to use EXTRA_SEGMENTED_SESSION together with EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS to achieve this goal.
https://developer.android.com/reference/android/speech/RecognizerIntent#EXTRA_SEGMENTED_SESSION
Segmented session uses different callbacks on the RecognitionListener:
onSegmentResults which wors a bit like onPartialResults and onEndOfSegmentedSession.
If you want to use allowForSilence in the config you have to listen to this events in order to get the results.
This is a first proposal and I'm still questioning if there's not a simpler interface for the plugin users. Reusing the onPartialResults even though it works a bit different. Collecting all results on the java side and pushing them back in the classic promise resolve of the start function?
I'm not at all a java developer but it works. On the iOS side I haven't tested yet if there is a similar problem.

@tobika can you share working example with EXTRA_SEGMENTED_SESSION ?

On the iOS side I haven't tested yet if there is a similar problem.

I have not observed the same problem on iOS after testing my app on both devices.

authors: msty tobika vovanb

repo: capacitor-community/speech-recognition


text:
bundle: command not found

bundle_unicorn method seems not using bundle installed from rbenv when deploying
INFO [31c3caec] Running /usr/bin/env service unicorn_abc_staging restart as root@111.111.111.111
DEBUG [31c3caec] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.2 /usr/bin/env service unicorn_abc_staging restart )
DEBUG [31c3caec] 	Couldn't reload, starting 'cd /var/www/abc/current; bundle exec unicorn -D -c /var/www/abc/shared/config/unicorn.rb -E staging' instead
DEBUG [31c3caec] 	stdin: is not a tty
DEBUG [31c3caec] 	-su: bundle: command not found

I tried the same commands manually, unicorn servers starts without any errors.

ln  rbenv bundle to /usr/bin solves problem


text:
Added functionality for client SSL certificates to be passed to Rails

This commit makes it possible to perform client authentication via SSL certificates. The
client provides an SSL certificate which is passed to Rails. Based on custom computation,
controllers can decide whether to grant access.
This commit changes the following:

It adds a new option nginx_pass_ssl_client_cert. If true, nginx is configured to pass
the SSL certificate of the client to Rails. Rails receives these as
request.headers['X-Client-Cert'] or request.headers['rack.session']['X-Client-Cert']
It enables local variables to be passed via the template method.
If nginx_pass_ssl_client_cert is true, an additional server directive is generated for
port 444, which accepts SSL client certificate authentication.

If this pull request is accepted. I will add additional documentation and information on how to create controllers for validating the SSL certificate of the client. The main benefit of passing SSL certificates to Rails, instead of configuring these in nginx, is that no nginx configuration has to be changed when adding or revoking SSL certificates. Moreover, different controllers can allow different SSL sets of certificates, without creating additional server or location directives in nginx conf.

Note that the biggest change is a refactor of the nginx_conf.erb. SSL client authentication operates on a different port. Since the server directives of the main port (443) and the SSL client authentication port are almost identical, I dried the code a little by rendering the server directive template twice.

Hi @rhomeister,
the feature blows my mind since I'm not sure I understand what to use it for. But I'm okay this gets merged if you use this.
I left 2 minor comments in the code. It would be great if you fixed those.
Also, can you please update the CHANGELOG file?
Other than this, merge when you're ready.

Hi @rhomeister,
I've also added you as a gem owner in #49 :tada: :tada:
That way you can make a new release to rubygems.org when this is merged.

@bruno- Done. I've also added a lot more documentation and explanation about this feature to the wiki.

Released as 3.3.0

authors: bruno- rhomeister


text:
Urgent any help would be appreciated - there will be any manual like creating a collector but for creating a UI with a widgetUI

Anyone any ideas to build a UI from scratch

Hi @daniuniperu ,
Can you please elaborate more on this, as we are customising the widgets UI according to our need.
Thanks,
Vishal

See #837

authors: daniuniperu mrpudn vishalbisa

repo: capitalone/Hygieia


text:
High-fidelity CPU core ignores expand-down segment flag when "accessed" bit is set

If a data segment has both the "expand down" and "accessed" bits set, then the high-fidelity CPU core will treat it as a normal expand-up segment and fault for reads at offsets above rather than below the segment limit. (It appears the "default" core doesn't yet try to honor the expand-down flag on segments at all.) Looking through the source, it appears that this happens because the segment type (bits 40 through 44 of the GDT entry, including the "accessed" bit) is tested here without masking out the accessed bit:
https://github.com/captainys/TOWNSEMU/blob/d5c53f00dc68736fa4e400f7ec786ed12914d6b9/src/cpu/i486fidelity.h#L396
although In SegmentProperty::GetType(), it appears to try to mask out the "accessed" bit for types >= 8 (which would correspond to code and data segments):
https://github.com/captainys/TOWNSEMU/blob/d5c53f00dc68736fa4e400f7ec786ed12914d6b9/src/cpu/i486.h#L279
I'm using the 20240223 automated release on macOS 23D60, Apple silicon.

Thank you for finding an issue!  But, isn't it the other way?  I realized the condition in the GetType should be 16<=type since I am taking low 5 bits of the attribute byte, and the 0x10 bit distinguishes the system and application, and accessed bit is only for the application segment types.  I rather feel that GetType was never returning Available 32-bit TSS, Busy 32-bit TSS, and 32-bit Trap Gate.  (Looks like it never happens during Windows 3.1 and WIndows 95 boot process).
Also realized was line 453 of i486fidelity.h was only checking SEGTYPE_DATA_EXPAND_DOWN_RW and not checking SEGTYPE_DATA_EXPAND_DOWN_READONLY, if you were having an issue with read-only expand-down segment, probably the error in line 453 was the culprit.
I've made above changes and at least confirmed Windows 3.1 L12 Enhanced Mode/Standard Mode, and Windows 95 starts OK. I'm going to push changes soon.

Update:  I had separate GetType() for InterruptDescriptor, that's why the error in the SegmentProperty::GetType was not doing anything.  I've fixed it anyway.  I've pushed the source.  Thank you!

Thank you for the quick fix!

authors: captainys jckarter

repo: captainys/TOWNSEMU


text:
Fix this TODO

https://github.com/carbon-app/carbon/blob/6fd6d99a8004f7ce258e27fa26956a526956a5cb/components/Editor.js#L140
Combine type and format to just use one param: type

Hi, I would like to help with this.

repo: carbon-app/carbon


text:
feat(CardRangePicker): allow for custom time range options

Closes #1485
Summary

Allows the CardRangePicker to receive custom timeRangeOptions

Change List (commits, features, bugs, etc)

Added a new prop timeRangeOptions that is identical to the current implementation of the default options to Card, CardToolbar, and CardRangePicker (so that it can be passed all the way through)
Moved the current default options to CardToolbar so they could get their default i18n labels and so that other components using CardToolbar can receive the same default options
Updated tests to use the new prop
Added a test to ensure the custom option does display
Added a story for custom timeRangeOptions

Acceptance Test (how to verify the PR)

Go to Card / custom range selector story and see that the options are customizable with the knob

Lets hold this. Need to test another scenario first

:tada: This PR is included in version 2.108.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


text:
TimePicker input verification

It would be very convenient to have something like the code below being part of the TimePicker component.
  function processTimeString(time: string): string {

    // Check for invalid characters.
    if(!/^[0-9:]*$/.test(time)){
      return "";
    }

    // Reject input that is too long or short.
    // Return empty string here to avoid : insertion.
    if(time.length > 5 || time.length == 0){
      return "";
    }

    // Regular expression to check if time is in hh:mm format.
    const timeFormat = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/;

    // Check if time is in hh:mm format.
    if (!timeFormat.test(time)) {
      // Add missing colon if only hours are provided.
      if (time.length === 2) {
        time = time + ":00";
      } else if (time.length === 1) {
        time = "0" + time + ":00";
      } else if (time.indexOf(':') === -1) {
        time = time.slice(0, 2) + ":" + time.slice(2);
      }
      // Check if hour is between 0 and 23.
      const hour = Number(time.slice(0, 2));
      if (hour < 0 || hour > 23) {
        return "";
      }
      // Check if minute is between 0 and 59.
      const minute = Number(time.slice(3, 5));
      if (minute < 0 || minute > 59) {
        return "";
      }
    }
    return time;
  }

Thanks for the suggestion! It looks like the supplied function performs input masking, and I couldn't find information on Carbon's official stance on input masking. It appears that input masking should be suggested, but not enacted as part of an input's helperText—which TimePicker seems to be missing.
It's implied that formatting user input while typing causes screen reader issues, but is acceptable on blur. If you're interested in having input masking be supported by Carbon components, I suggest opening an issue in the flagship repository https://github.com/carbon-design-system/carbon/
I think formatting on blur should be an acceptable enhancement since DatePicker does that today.
References:

https://carbondesignsystem.com/components/text-input/accessibility
https://css-tricks.com/input-masking/
https://github.com/carbon-design-system/carbon/issues/11805
https://react.carbondesignsystem.com/?path=/story/components-timepicker--default

It is not meant to run onKeyUp, I run the above function onChange hooked up to the input reference of the component, it only needs to run when the user is done inputting and has actually made a change. This is to make it consistent with the DatePicker which I have next to it in the form. Although DatePicker runs onBlur I think.

From a UX perspective I find onChange better for form validation. It gives the user a chance to do things before nagging her or him to fix stuff. I prefer then to run all validators on submission to catch any un-changed required fields that the user didn't fill out.

I agree, running this onChange sounds good to me; and your UX opinion aligns with me and Carbon guidelines: https://carbondesignsystem.com/patterns/forms-pattern/#behavior

authors: gohde theetrain


text:
fix(scss): re-add eyeglass support

Overview
Resolves https://github.com/carbon-design-system/carbon-components/issues/286
Looks like eyeglass support was added when we were still on GitHub Enterprise but went missing when we migrated to public.

👍

repo: carbon-design-system/carbon-components


text:
Determine what needs indexed from Carbon for IBM Products

https://github.com/carbon-design-system/ibm-cloud-cognitive#-getting-started
Chat with David Levinson and a top contributor to determine what should be indexed in Carbon's platform.
https://github.com/carbon-design-system/ibm-cloud-cognitive/graphs/contributors

Hey team! Please add your planning poker estimate with ZenHub @alisonjoseph @andreancardona @francinelucca @jdharvey-ibm

After initial indexing PRs are opened by the Carbon Platform team, determine what assets will need thumbnails so we can plan accordingly.

Closing this as the two follow-on issues are ready for dev.

repo: carbon-design-system/carbon-platform


text:
feat!: rewrite

Closes #44, closes #46, closes #53, closes #52, closes #50, closes #48, closes #47, closes #46, closes #40, closes #26, closes #24, closes #19, closes #18, closes #17, closes #28
optimizeImports

Completely re-written imports optimizer
Only supports latest major versions of icons/pictgrams

Notes: for best DX, also instruct Vite to optimizeDeps.ignore
optimizeCss

Vite/Rollup plugin, enforced in build phase

Steps:
The potential for false positives is too high (relying on any and all selectors). Instead, focus on class names as this is much more defensive (e.g., .bx--). The goal is to still remove the bulk of unused .bx-- selectors without needing to stress about false positives.

Pre-index the used class names per Carbon component.
Gather the resolved component names in the plugin.transform hook.
In the generateBundle hook, read in all generated .css files.
Traverse the CSS AST and remove all .bx-- selectors that are not included in the map.

What's blocking this PR is that some Carbon components that employ custom styling (e.g., HeaderSearch) does not correctly prune this.


text:
feat(tutorial): complete step 1

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

👍 Looks good - 🎉 You are now 1/5th of the way to completion of the Carbon React tutorial and earning the digital credential.

authors: kellychurchill lee-cotton

repo: carbon-design-system/carbon-tutorial


text:
[Carbon site] Series of issues

@jeanservaas

[ ]  The Accessibility color blindness chart is a strange size in desktop and mobile.

https://www.carbondesignsystem.com/guidelines/accessibility/color#designing-for-color-blindness

—————

[x]  Some spacing/padding issues here. The space above caption is tight and space after caption too tight

@aagonzales @jeanservaas

Transferred this issue to the correct repo, and removed comments that already had existing issues or belong in the GTC repo. Let's try to keep issues scoped to one specific thing going forward, it's easier for us to keep track of them that way.

I’ll do my best

This is what I'm seeing for desktop. What exactly is wrong about this? I have no idea what the image should look like. :eyes:

And should it just be full screen on mobile or something else entirely? Are we supposed to be using art direction with different images on this?

@jeanservaas do you know what the correct images should be?

The width needs to follow the body copy widths. And in mobile it should span margin to margin

repo: carbon-design-system/carbon-website


text:
Pattern: CTA section visual design & design spec Services template changes provided by Reboot designers

Notes

The Reboot team is responsible for creating the visual designs and design specs for most of the patterns included in the Services template.  This issue is to track the transition of the Reboot design work to the DDS design & engineering team members.

Additional Information

Scheduled delivery date:  June 22
Visual Designs & Design Specs Box folder
Links to the visual designs and design specs will be updated once received and reviewed by the Reboot designers.

Acceptance Criteria

[ ] Visual designs and specs received from Reboot designers
[ ]  A pdf file is created and placed in the Box folder with the updated Sketch file
[ ] Meetings conducted with DDS team members to review the designs

6/22/2020:  Designs reviewed with Lila in the engineering meeting for a sizing.

@RobertaJHahn Design spec PDF and Sketch files are now posted here:
https://ibm.ent.box.com/folder/109648616047

authors: RobertaJHahn ltitle

repo: carbon-design-system/ibm-dotcom-library


text:
chore: release  operator-chart 0.1.1

:package: Staging a new release
0.1.1 (2023-03-14)
Bug Fixes

mp-spdz/operator-chart: empty commit to trigger publication of artifacts (#30) (f9beb81)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/carbynestack/klyshko/releases/tag/operator-chart-v0.1.1 :sunflower:

repo: carbynestack/klyshko


text:
🛑 blockchain-follower-api is down

In 00bf350, blockchain-follower-api (https://follower-api.voting.summit.cardano.org/api/blockchain/tip) was down:

HTTP code: 200
Response time: 318 ms

Resolved: blockchain-follower-api is back up in 183823b after 4 minutes.


text:
Modify announcement bar to be closable

Modify announcement bar to be closable

Just noting @KtorZ's comment that the survey is running through the 29th (4 more days from now) (#704 (comment)) but does not say the bar cannot be closable before then; only that it should remain there. 🤔

I believe in case someone already did the survey, it would be annoying to constantly see the announcement bar on top

in case someone already did the survey, it would be annoying to constantly see the announcement bar

I agree & have display: none'd web site components in browser style sheets for less... it would be a shame for people to have to do that to the Developer Portal 💔

Note that the survey is ending tomorrow. So we might as well remove the bar 😅

So we might as well remove the bar

Fine to remove a closeable bar. ☝😁

authors: KtorZ fill-the-fill katomm rphair

repo: cardano-foundation/developer-portal


text:
Invalid content /en/shelley/about/supported-platforms/

Where does the issue occur?
https://testnets.cardano.org/en/shelley/about/supported-platforms/
Describe the issue
"It is also possible to run a testnet node on any platform using a virtual machine or Docker image."
Expected changes
Docker images are architecture bound. amd64 docker images will not run on aarch64. Hence, the specification of docker images on this page could be rephrased to "...or applicable Docker CPU architecture image"? At least, I advise this until all architectures are supported by Docker images.
Additional context
I tried deploying the amd64 docker image on aarch64, which failed.

Thank you for your feedback, the PR for an update is created and changes will be visible after merging.

Thank you for your feedback, the PR for an update is created and changes will be visible after merging.

authors: dmindfuse olgahryniuk

repo: cardano-foundation/testnets-cardano-org


text:
Variable in ubind optimized at the basic optimization level

Code:
unit = @poly
ubind(unit)

Compiles to:
set unit @poly
ubind @poly

Expected:
set unit @poly
ubind unit

This is an expected behavior. The protection granted to main variables (unit is a main variable in this code) at the basic optimization level only ensures the last value written to the variable is preserved even if it isn't subsequently used, as described in Data Flow Optimization/Optimization levels.
What is not explicitly mentioned in the documentation is that all other optimizations can be performed on main variables (it might be a good idea to expand the documentation). In this particular case, constant propagation was performed. set unit @poly is left in the code, because it is the last value assigned to unit, as mentioned above; on aggressive optimization level, this instruction would be removed.
To get the behavior you describe, you need to use a global variable - UNIT = @poly; ubind(UNIT) compiles to:
set UNIT @poly
ubind UNIT
end

In other words, if you want to be able to change a value assigned to a variable in compiled code, you need to use a global variable. This is also mentioned in the documentation, in the note in this chapter, but it would deserve a more prominent placement.
I plan to overhaul the Mindcode syntax, hopefully in the next few months, and one of the changes I want to do is to require special declaration for values that should support reassignment in the compiled code; something like this:
param unit = @poly
ubind(unit)

The param keyword will declare a constant, just like the const keyword, but will also create a variable holding the value of the constant and the compiler will ensure that changing the value assigned to the resulting variable in the compiled code is supported. This will (hopefully) make the feature more prominent and will allow more thorough optimization of global variables.

repo: cardillan/mindcode


text:
Marshalling?

How would one Marshal and uninstall the dealer to JSON?

@delaneyj the Dealer itself isn't designed to be specifically marshaled. if one needs to reconstitute the state, the best way would be to create a separate type that manages the shuffle seed (or the specific card deck), the game/hand type that played, the players, and the specific run out state (eg, what street is it on).
this is how we use this in production.
we have not made public the code for handling the game state, as it's very specific to our backend, but it should be relatively straight forward. after you reload the variables, the way the cards are dealt is easy managed by just calling Next() to the appropriate street.
gl

authors: cardrank delaneyj

repo: cardrank/cardrank


text:
Mark all exceptions in http-request constructor as WARN

@tomaszdurka @dlondero please review
There's no simple way to mock the response (because of static methods), so I'm using an actual resource-response.

@njam lgtm!

Looks good!

authors: dlondero njam tomaszdurka

repo: cargomedia/CM


text:
Does the new release of carla has mapping coordinates on Town1 and Town2?

I just upgraded to the new carla release to use the LiDAR sensors.
However, In the old release, I used the
x          =             measurements.player_measurements.transform.location.x
y          =             measurements.player_measurements.transform.location.y
Then
x_pixel = (x + 1643) // 16.43
y_pixel = (y + 1643) // 16.43
pixel = Town_image[int(y_pixel), int(x_pixel)]
Which will give me the mapping of the exact pixel in the Town1 from the world coordinates.
Suddenly when I switched to the new Carla release this mapping factor does not work.
Please advice.

The measurements are now sent in meters (previously it was in centimeters) #273. That's probably it.

Fixed. Thank you.

authors: LoayMAmin nsubiron

repo: carla-simulator/carla


text:
Windows named pipes

This is a feature request to support named pipes on Windows.

It should be possible to support this in a standalone crate. I don't know if I want to add too much more to Mio in favor of keeping it small as a building block.

This is located at https://github.com/alexcrichton/mio-named-pipes, but thanks for the report!

authors: DemiMarie alexcrichton carllerche

repo: carllerche/mio