0ad: fix build by using gcc9Stdenv

Motivation for this change
The 0ad build fails since gcc 10 was made default with this error:
CommonConvert.cpp
DLL.cpp
Decompose.cpp
StdSkeletons.cpp
PSAConvert.cpp
XMLFix.cpp
precompiled.cpp
PMDConvert.cpp
Maths.cpp
GeomReindex.cpp
Linking Collada
/nix/store/4l1qrgxfy171bngpphp4p9wj7bhrlfn3-binutils-2.34/bin/ld: ../../../libraries/source/fcollada/lib/libFColladaSR.a(FAXInstanceExport.o): in function `FArchiveXML::WritePhysicsRigidBodyInstance(FCDObject*, _xmlNode*)':
FAXInstanceExport.cpp:(.text+0xc69): undefined reference to `_xmlNode* FArchiveXML::AddPhysicsParameter<FMVector3, 0>(_xmlNode*, char const*, FCDParameterAnimatableT<FMVector3, 0>&)'
/nix/store/4l1qrgxfy171bngpphp4p9wj7bhrlfn3-binutils-2.34/bin/ld: FAXInstanceExport.cpp:(.text+0xc7f): undefined reference to `_xmlNode* FArchiveXML::AddPhysicsParameter<FMVector3, 0>(_xmlNode*, char const*, FCDParameterAnimatableT<FMVector3, 0>&)'
collect2: error: ld returned 1 exit status
make[1]: *** [Collada.make:98: ../../../binaries/system/libCollada.so] Error 1
make: *** [Makefile:173: Collada] Error 2
error: --- Error ------------------------------------------------------------------------------- nix-build
builder for '/nix/store/ybyi0amjy8il1ycmkx6qmq0kshd13dnc-0ad-0.0.23b.drv' failed with exit code 2
error: --- Error ------------------------------------------------------------------------------- nix-build
1 dependencies of derivation '/nix/store/f9aab3b5b74s7lp5k0l541ajwfpg5hms-zeroad-0.0.23b.drv' failed to build

This changes the 0ad derivation to use the gcc9Stdenv.
Things done
Played a few games using this build method.

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

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

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

@IvarWithoutBones I didn't realize gcc10Stdenv is default now (yuzu).
@charvp sorry for the noise 😄

@IvarWithoutBones I didn't realize gcc10Stdenv is default now (yuzu).
@charvp sorry for the noise 😄

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

1 package marked as broken and skipped:

zeroad

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

1 package marked as broken and skipped:

zeroad

Note that the package is not actually broken, it just depends on something marked as insecure.

Note that the package is not actually broken, it just depends on something marked as insecure.

builder for '/nix/store/sqn534jb4zl5sikbyshhf74z3hwi7bjj-0ad-0.0.23b.drv' failed with exit code 2; last 10 log lines:
  NetClient.cpp
  In file included from ../../../source/scriptinterface/ScriptVal.h:21,
                   from ../../../source/network/NetClient.h:24,
                   from ../../../source/network/NetClient.cpp:20:
  ../../../source/scriptinterface/ScriptTypes.h:60:10: fatal error: jspubtd.h: No such file or directory
     60 | #include "jspubtd.h"
        |          ^~~~~~~~~~~
  compilation terminated.
  make[1]: *** [network.make:139: obj/network_Release/NetClient.o] Error 1
  make: *** [Makefile:71: network] Error 2
cannot build derivation '/nix/store/nk6rfk14dk742mj0dgrz00k224pdwgcx-zeroad-0.0.23b.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hci8pi1afrjlpg4xv52bk720z2c3zm7f-env.drv': 1 dependencies couldn't be built

builder for '/nix/store/sqn534jb4zl5sikbyshhf74z3hwi7bjj-0ad-0.0.23b.drv' failed with exit code 2; last 10 log lines:
  NetClient.cpp
  In file included from ../../../source/scriptinterface/ScriptVal.h:21,
                   from ../../../source/network/NetClient.h:24,
                   from ../../../source/network/NetClient.cpp:20:
  ../../../source/scriptinterface/ScriptTypes.h:60:10: fatal error: jspubtd.h: No such file or directory
     60 | #include "jspubtd.h"
        |          ^~~~~~~~~~~
  compilation terminated.
  make[1]: *** [network.make:139: obj/network_Release/NetClient.o] Error 1
  make: *** [Makefile:71: network] Error 2
cannot build derivation '/nix/store/nk6rfk14dk742mj0dgrz00k224pdwgcx-zeroad-0.0.23b.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hci8pi1afrjlpg4xv52bk720z2c3zm7f-env.drv': 1 dependencies couldn't be built

Huh, that's weird. When I run NIXPKGS_ALLOW_INSECURE=1 NIX_PATH=nixpkgs=$PWD nix-build -A zeroad in a nixpkgs checkout of this branch the build succeeds.

Huh, that's weird. When I run NIXPKGS_ALLOW_INSECURE=1 NIX_PATH=nixpkgs=$PWD nix-build -A zeroad in a nixpkgs checkout of this branch the build succeeds.

Looks like 9bb3fcc broke the build by renaming a few too many things. I added a commit that fixes this.

Looks like 9bb3fcc broke the build by renaming a few too many things. I added a commit that fixes this.

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 108761 run on x86_64-linux 1

1 package built:

zeroad

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 108761 run on x86_64-linux 1

1 package built:

zeroad


CMake Error at cmake/FindPLY.cmake:24 (message):   ply import failure:

Hello,
Under a ubuntu 14.04 64bit,I tried to compile shogun from source,but got error:
...
-- Could NOT find MOSEK (missing:  MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY)
.....
-- Could NOT find CPLEX (missing:  CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
.....
CMake Error at cmake/FindPLY.cmake:24 (message):
  ply import failure:

Call Stack (most recent call first):
  CMakeLists.txt:682 (FIND_PACKAGE)

Questions are:
Do these two "Could NOT find"s cause this error?
if there are,how to install them?(as you may knew,by default,much more "Could Not find"s will occur,and I have installed these missings by googling,but can't find a way to install these two)
Is  "ply import failure:" the only reason that caused this failure?If it is,how to fix it?It seems that no solution can be found by googling?
If "ply import failure:" do cause the problem,after fixed it,can I ignore the two "Could not find"s to install?any consequence?

Hey!
You just need to install python-ply, using sudo apt-get install  python-ply.  The other two (MOSEK, CPLEX) can be safely ignored.
Cheers
Björn
Am 08.04.2016 um 16:35 schrieb Alex Luya:

Hello,
Under a ubuntu 14.04 64bit,I tried to compile shogun from source,but
got error:
...
-- Could NOT find MOSEK (missing:  MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY)
.....
-- Could NOT find CPLEX (missing:  CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
.....
CMake Error at cmake/FindPLY.cmake:24 (message):
ply import failure:
Call Stack (most recent call first):
CMakeLists.txt:682 (FIND_PACKAGE)
Questions are:
Do these two "Could NOT find"s cause this error?
if there are,how to install them?(as you may knew,by default,much more
"Could Not find"s will occur,and I have installed these missings by
googling,but can't find a way to install these two)
Is "ply import failure:" the only reason that caused this failure?If
it is,how to fix it?It seems that no solution can be found by googling?
If "ply import failure:" do cause the problem,after fixed it,can I
ignore the two "Could not find"s to install?any consequence?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/shogun-toolbox/shogun/issues/3149

I improved the situation in https://github.com/shogun-toolbox/shogun/commit/d2e1beacd9a156be2fb50c6c5f12269508224cab
It now tells the user to de-activate meta examples or install ply

Sorry for interrupting, I met the issue "Python module ply required for meta examples.  Disable meta examples or install python-ply" even if I installed the python-ply. What does the "meta example" mean?

It is these guys: shogun.ml/examples
If you want to generate the code for those locally, you need ply. If you have it installed and it is not detected, please send a report with details of your setup in a new issue.


take default branch from a GitHub api. close #786

Deploy preview for landscape ready!
Built with commit 42adbd2ea8288097c1dcd6e8e3d3fbababfd992f
https://deploy-preview-837--landscape.netlify.com


Fhimi2 mk

Expect 3 fatal (known) errors in with 5.12.0-beta.4. Expect Travis to fail. Anyway, good for IG.

Fixed conflict in ig-oncocore-config.json so there are no more conflicts with fhimi2

I confirmed the fatal errors in the compile. The IG still generates, missing the logical and reference models, but still being able to view FHIR profiles (with a couple of cosmetic issues showing missing icons).  Will merge (without rebasing) per discussion with @markkramerus on what is acceptable for the fhimi2 at this time.


Move port control logic into PeerConnectionClass

Currently, only Churn connections benefit from port control, and each Churn implementation has to copy the port control logic.  It would be better if we moved this code into PeerConnectionClass, so all PeerConnections can benefit.

I don't think we'd move any more logic into PeerConnectionClass.


Use Texture's format when creating an Image from Canvas

Instead of creating images hardcoded as RGBA, always use the selected texture's format.

Thanks!


super not behaving as expected

let a = {
  name () {
    return 'Suyash';
  }
};

let b = {
  name () {
    return super() + ' Verma';
  }
};

Object.setPrototypeOf(b, a);

console.log(b.name());

compiles to
"use strict";

var a = {
  name: function name() {
    return "Suyash";
  }
};

var b = {
  name: function name() {
    return super() + " Verma";
  }
};

Object.setPrototypeOf(b, a);

console.log(b.name());

which generates an error
    return super() + " Verma";
           ^^^^^
SyntaxError: Unexpected reserved word

super() currently isn't supported in object literals. It'll be trivial to add after #411 is merged however.

@sebmck This is #411.

Woops... Meant #408

I think it's worth pointing out thatsuper() only works inside a constructor method. In all other methods it has to be super.methodName().

return super() + " Verma";

also, isn't supported syntax. currently it would be super.methodName()
If someone is interested, they should skim the homeObject stuff in the spec. This allows for super that doesn't always walk the logical prototype chain, thereby enabling super through a series of mixins that are merged into a single prototype level.
Polyfill of toMethod and the homeObject concept is complicated, but likely possible.
I have an example of various super techniques https://github.com/stefanpenner/perf-scratch/blob/master/super.js#L79-L87


Make sure users can override template elements if they need to

For example:

open graph image
crown copyright
OGL
skiplink location
page language
custom attributes on body tag

This issue has come up a number of times:

https://github.com/alphagov/govuk_template/issues/188
https://github.com/alphagov/govuk_template/issues/137
https://github.com/alphagov/govuk_template/issues/271
https://github.com/alphagov/govuk_template/issues/342
https://github.com/alphagov/govuk_template/pull/285
https://github.com/alphagov/govuk-frontend/issues/813

Split this into cards (apart from the skiplink location one as that functionality already exists):
https://trello.com/c/GbXpmjYJ/1420-add-ability-to-override-or-remove-open-graph-meta-tag-in-template
https://trello.com/c/ZB1o8lcI/1421-add-ability-to-override-or-remove-crown-copyright-in-footer
https://trello.com/c/8VjEokHR/1426-add-ability-to-override-or-remove-ogl-logo-in-footer
https://trello.com/c/Be65Mgph/1429-add-ability-to-override-language-for-page-title-and-main-in-template
https://trello.com/c/nVhT0Foq/1431-add-ability-to-set-attributes-on-body-in-template
Closing this card as there doesn't seem to be any value in tracking these changes as a single item.

This just came up on my service. We'd been using the footer without thought to the OGL text. I'm so used to seeing it I didn't think about whether it was correct to use.
Some services contain official / confidential information and it would be inappropriate to release under the OGL.

Closing this issue as these have been split out into separate tickets


[feat] Unmet peer dependencies issue with ESLint v9

Describe the problem
Follow-up #554.
Currently, typescript-eslint v7 -> ESLint v8 and typescript-eslint v8 -> ESLint v9.
Combining typescript-eslint v7 and ESlint v9 is not officially supported (although it mostly works).
Package managers will complain about unmet peer dependencies if we install eslint@9 and @eslint-react/react-plugin@1 together (either with or without @typescript-eslint/parser@rc-v8).
Until we solve the problem, we should leave an open issue for tracking.
Describe the solution you'd like
.
Alternatives considered
No response
Additional context
Package tmp@workspace:. is requested to provide eslint by its descendants

tmp@workspace:.
└─ @eslint-react/eslint-plugin@npm:1.5.14 [90168] (via ^8.57.0 || ^9.0.0)
   ├─ @typescript-eslint/parser@npm:7.12.0 [81f9e] (via ^8.56.0)
   ├─ @typescript-eslint/type-utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │  └─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │     └─ @eslint-community/eslint-utils@npm:4.4.0 [fe5b0] (via ^6.0.0 || ^7.0.0 || >=8.0.0)
   ├─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │  └─ ...
   ├─ eslint-plugin-react-core@npm:1.5.14 [81f9e] (via ^8.57.0 || ^9.0.0)
   │  ├─ @typescript-eslint/type-utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │  │  └─ ...
   │  └─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │     └─ ...
   ├─ eslint-plugin-react-dom@npm:1.5.14 [81f9e] (via ^8.57.0 || ^9.0.0)
   │  └─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │     └─ ...
   ├─ eslint-plugin-react-hooks-extra@npm:1.5.14 [81f9e] (via ^8.57.0 || ^9.0.0)
   │  ├─ @typescript-eslint/type-utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │  │  └─ ...
   │  └─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
   │     └─ ...
   └─ eslint-plugin-react-naming-convention@npm:1.5.14 [81f9e] (via ^8.57.0 || ^9.0.0)
      ├─ @typescript-eslint/type-utils@npm:7.12.0 [81f9e] (via ^8.56.0)
      │  └─ ...
      └─ @typescript-eslint/utils@npm:7.12.0 [81f9e] (via ^8.56.0)
         └─ ...

✘ Package tmp@workspace:. provides eslint with version 9.4.0, which does not satisfy all requests.
  The combined requested range is ^8.57.0

Reopening this issue for now, typescript-eslint v8 is not stable enough to run in production.

@Rel1cx Would you mind sharing the stability issue with typescript-eslint v8, or will it be reported to the upstream? Thanks

@Rel1cx Would you mind sharing the stability issue with typescript-eslint v8, or will it be reported to the upstream? Thanks

Of course, rules that require type-checking (no-leaked-conditional-rendering and prefer-read-only-props) sometimes fail on CI, but always pass on local machines (macOS M2 Pro and Win11).
https://github.com/Rel1cx/eslint-react/actions/runs/9811055284/job/27092520365?pr=615#step:6:38
 Test Files  65 passed (65)
      Tests  2072 passed (2072)
   Start at  00:17:49
   Duration  8.96s (transform 2.96s, setup 5ms, collect 54.99s, tests 11.74s, environment 8ms, prepare 4.13s)

eslint-react [ tseslint-v8][$!][ v22.4.0][⏱ 9s]
❯ fastfetch
                     ..'          Eva@Mac
                 ,xNMM.           -------
               .OMMMMo            OS: macOS Sonoma 14.6 arm64
               lMM"               Host: Mac mini (M2, 2023, Four Thunderbolt 4 ports)
     .;loddo:.  .olloddol;.       Kernel: Darwin 23.6.0

I am trying to find the root of the cause.

For anyone who just wants the warnings to go away in their project, you can add this to your package.json:
"overrides": {
	"@typescript-eslint/type-utils": "^8.0.0-alpha.47",
	"@typescript-eslint/utils": "^8.0.0-alpha.47"
}

@Rel1cx Would you mind sharing the stability issue with typescript-eslint v8, or will it be reported to the upstream? Thanks

Of course, rules that require type-checking (no-leaked-conditional-rendering and prefer-read-only-props) sometimes fail on CI, but always pass on local machines (macOS M2 Pro and Win11). https://github.com/Rel1cx/eslint-react/actions/runs/9811055284/job/27092520365?pr=615#step:6:38 https://github.com/Rel1cx/eslint-react/actions/runs/10003143872/job/27649565272?pr=650
 Test Files  65 passed (65)
      Tests  2072 passed (2072)
   Start at  00:17:49
   Duration  8.96s (transform 2.96s, setup 5ms, collect 54.99s, tests 11.74s, environment 8ms, prepare 4.13s)

eslint-react [ tseslint-v8][$+][ v20.15.0][⏱ 9s]
❯ fastfetch
                     ..'          Eva@Mac
                 ,xNMM.           -------
               .OMMMMo            OS: macOS Sonoma 14.6 arm64
               lMM"               Host: Mac mini (M2, 2023, Four Thunderbolt 4 ports)
     .;loddo:.  .olloddol;.       Kernel: Darwin 23.6.0

I am trying to find the root of the cause.

I found that the import statements in spec code could not be resolved when running tests in a CI environment https://github.com/Rel1cx/eslint-react/issues/677. This worked fine with v7.


Missing pdftotext dependency

It seems pdftotext is not mentioned in the readme and has to be installed on some systems.

It is fixed in develop branch. Next release 1.7 includes it

Next release 1.7 will not have that dependency


Feature/corner-radius-support

Looks good. Could you please also add the new setting to README before I merge it in? Thanks!

@gregttn ok, will do it tonight :)

@gregttn sorry for late updated, but I just updated README.md

Thanks!


Jenkins image on the marketplace uses dated and unofficial Jenkins distribution

The Jenkins image on the marketplace is dated: https://github.com/civo/kubernetes-marketplace/tree/master/jenkins . I am also not sure why the official Helm chart is not used
This issue is a:

[x] Bug Report
[ ] Enhancement suggestion
[ ] Feature request

If the issue concerns an existing Marketplace application, please tag the maintainer of the application (found in manifest.yaml) below: @
Current Behavior

bitnami/jenkins:2.190.1-debian-9-r14 is used as a base image
This Jenkins version is 2 years old and contains known security vulnerabilities: https://www.jenkins.io/security/advisories/
This distribution is not an official one maintained by the Jenkins community: https://www.jenkins.io/download/

Expected behavior

An official lated image is used: jenkins/jenkins:lts (there are version tags as well)
Nice2Have: An official Helm chart is extended: https://github.com/jenkinsci/helm-charts

CC @ruanbekker @saiyam1814

Ruan is the maintainer for the app but I agree to use official image/helm chart for the application install.
Feel free to raise the PR :)

Update the item to the official helm chart of jenkins -> https://github.com/civo/kubernetes-marketplace/pull/243
https://artifacthub.io/packages/helm/jenkinsci/jenkins


NumericUpDown has no :focus

Hello, there!
It seems impossible to style the NumericUpDown control differently when it is focused by the user, i.e.
<Style Selector="NumericUpDown:focus">
   <!-- NumericUpDown is not amused. -->
   <Setter Property="Background" Value="Red"/>
</Style>

whereas
<Style Selector="TextBox:focus">
   <!-- TextBox becomes red on focus like a charm. -->
   <Setter Property="Background" Value="Red"/>
</Style>

Is there any workaround?

This was blocked on not having the IsKeyboardFocusWithin property: https://github.com/AvaloniaUI/Avalonia/pull/2808
However that was implemented in https://github.com/AvaloniaUI/Avalonia/pull/2808 so it should not be possible using the :focus-within pseudoclass.


Delay in scan start and intermittent flyers

Intermittent flyer (diag6_flyer1):

And again + delay in scan start, as evidenced by topoff_inj happening already with 2 seconds delay after the ct(num=None) was called:

cc @tacaswell @stuwilkins
@cmazzoli perceives two problems here:

There is significant delay (3-4 seconds) before when the RunStart Document is generated and when the diag6_flyer1 collects its first data point.
The flyer seems to make two false starts, collecting two short burst before settling into steady collection.

Both of these effects are reproducible.
(Do not focus on the red line, marking the injection time, which is not related to this issue.)

Is something else using diag6 as part of the scan?

@ dallan
Thanks.
Other thing discovered, if you plot diag6_flyer5 you will something
interesting at the beginning (again reproducible): the false start is
concomitant with the first one of diag6_flyer1 but has just 1 and not 2
delayed zones.
Are they interfering one with the other?
About your comment on the red line: it is referred with the injection
(another flyer, topoff_inj) and it shows that it is actually active, it is
just diag6 which has a delay. Staging?
On Mar 16, 2016 5:37 PM, "Dan Allan"<EMAIL_ADDRESS>wrote:

cc @tacaswell https://github.com/tacaswell @stuwilkins
https://github.com/stuwilkins
@cmazzoli https://github.com/cmazzoli perceives two problems here:

There is significant delay (3-4 seconds) before when the RunStart
Document is generated and when the diag6_flyer1 collects its first data
point.
The flyer seems to make two false starts, collecting two short burst
before settling into steady collection.

Both of these effects are reproducible.
(Do not focus on the red line, marking the injection time, which is not
related to this issue.)
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NSLS-II/Bug-Reports/issues/92#issuecomment-197558936

Yes one detector, diag6_monitor but it being in or out our gs.DETS I don't
remember having noticed differences in the delay time at the start of the
scan
On Mar 16, 2016 5:46 PM, "Thomas A Caswell"<EMAIL_ADDRESS>wrote:

Is something else using diag6 as part of the scan?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/NSLS-II/Bug-Reports/issues/92#issuecomment-197562124


some node have long time to pull image

Question

I use pssh to pull a image of 5G in parallel through 100 nodes,it costs more than 20 minute on average,some need more time.What is the reason?if i use dragonfly on 20 nodes may need 6 minute,
Q1:How to distinguish between mirroring through p2p pattern or CDN pattern？
like this？docker exec dfclient grep 'downloading piece' /root/.small-dragonfly/logs/dfclient.log | grep -v cdnnode
Q2：what is mean?
2019-12-26 08:53:22.437 WARN sign:10 : peerID: 573ce53f939e-<IP_ADDRESS>-1577350372688863279 got errors for 8 times which reaches error limit: 5 for taskID(17fcfee1f44f9ea78185176bda16294c0e4c83032310873f167aa96133e809a6)

I use pssh to pull a image of 5G in parallel through 100 nodes,it costs more than 20 minute on average,some need more time.What is the reason?if i use dragonfly on 20 nodes may need 6 minute,

Could you please add more descriptions about your environment?

How to distinguish between mirroring through p2p pattern or CDN pattern？
like this？docker exec dfclient grep 'downloading piece' /root/.small-dragonfly/logs/dfclient.log | grep -v cdnnode

Please refer to https://github.com/dragonflyoss/Dragonfly/issues/1132#issuecomment-564399599.

Q2：what is mean?
2019-12-26 08:53:22.437 WARN sign:10 : peerID: 573ce53f939e-<IP_ADDRESS>-1577350372688863279 got errors for 8 times which reaches error limit: 5 for taskID(17fcfee1f44f9ea78185176bda16294c0e4c83032310873f167aa96133e809a6)

That means the peer(573ce53f939e-<IP_ADDRESS>-1577350372688863279) failed to download files form other peers for  8 times. And it will download files form supernode directly.

Shouldn't p2pmode have more nodes or be faster or stay the same?Why do i  spend more time with more nodes after use dragonfly?@Starnop

I pull the dragonflyoss/supernode:1.0.0 and dragonflyoss/dfclient:1.0.0 form dockerHub,it works for me.


Add team annotation

towards https://github.com/giantswarm/giantswarm/issues/28871
Testing
Description on how flamethrower can be tested.

[ ] fresh install works

[ ] AWS
[ ] Azure
[ ] KVM

[ ] upgrade from previous version works

[ ] AWS
[ ] Azure
[ ] KVM

Other testing
Description of features to additionally test for flamethrower installations.

[ ] check reconciliation of existing resources after upgrading
[ ] X still works after upgrade
[ ] Y is installed correctly

Checklist

[ ] Update changelog in CHANGELOG.md.
[ ] Make sure values.yaml and values.schema.json are valid.

If this tries to apply the team to rendered resources, this PR won’t work fully until the annotation from chart.yaml is used in actual helm templates

Nah, we mstly need that for app-exporter and it's only checking the chart annotation but you probably should use it in the templates :)


implement jsdoc -> markdown conversion & include within wiki

options:
https://github.com/cbou/markdox
https://github.com/sutoiku/jsdox
https://github.com/verbose/verb (has it's own rc dotfile, which is immediately interesting)
https://github.com/jsdoc2md/jsdoc-to-markdown
related discussion:
http://stackoverflow.com/questions/15694267/how-to-easily-create-github-friendly-markdown-for-documented-javascript-function

Per the stackoverflow discussion link above:

But verb also has advanced features if you need to generate multi-page TOCs, or create custom helpers, etc.
Regarding API documentation, see this example readme generated using code comments from index.js. Click on the headings, those are auto-generated too. Use this built-in helper to generate API docs from whatever file path is specified. You can also use glob patterns to pull in docs from multiple files.
Verb will build a .verb.md without any config. But if you need more, you can use a verbfile.js

Interesting b/c AOP markup per https://github.com/obimod/jsdoc/issues/1 would be an example of a useful custom tag, something verb apparently supports.


Fix update application badge issue

Update badge count of a tab to 0 (tab is visited) every time we click on a tab. This way we calculate and update application badge based on which tab you have visited.
This one was hard to repro on my device since I've already lost the update, but it did fix my badge issue first time I ran it. So hopefully this is the fix :)
fixes #724

Thanks! Can a test be written for this?

Looking at adding tests, first need to install 8.3 simulator :)

@ashkan18 Awesome, thanks! 💖
This shows me that the problem is definitely a logic error on my side. This issue, however, with this patch is that the count should not be removed until the responsible content view controller is satisfied that the content has been seen. In the case of the notifications tab, that’s at least not until the web view has finished loading, which it should have been doing here.
So more sleuthing will be required to figure out the exact logic error :)

Closing in favour of #758


map env vars into the popper container from current shell

Fix #856
Tested in Centos, Ubuntu and Mac

thanks a lot!


fix rep check clone error

fix repository check clone error

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

用junit写单测，不要用main函数

Codecov Report
Base: 58.83% // Head: 58.81% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (d99045f) compared to base (4cceceb).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5051      +/-   ##
============================================
- Coverage     58.83%   58.81%   -0.03%
- Complexity    26941    26942       +1
============================================
  Files          1278     1279       +1
  Lines        123144   123216      +72
  Branches      23175    23195      +20
============================================
+ Hits          72450    72464      +14
- Misses        41652    41698      +46
- Partials       9042     9054      +12

Impacted Files
Coverage Δ

.../com/alibaba/druid/sql/ast/statement/SQLCheck.java
57.89% <100.00%> (ø)

...alibaba/druid/support/profile/ProfileEntryKey.java
31.42% <0.00%> (-2.86%)
:arrow_down:

...ruid/sql/ast/statement/SQLAlterTableStatement.java
60.55% <0.00%> (-1.95%)
:arrow_down:

...ruid/support/spring/stat/DruidStatInterceptor.java
40.95% <0.00%> (-1.91%)
:arrow_down:

.../com/alibaba/druid/support/ibatis/IbatisUtils.java
52.83% <0.00%> (-1.89%)
:arrow_down:

...a/com/alibaba/druid/sql/ast/expr/SQLArrayExpr.java
36.92% <0.00%> (-1.54%)
:arrow_down:

.../main/java/com/alibaba/druid/sql/parser/Lexer.java
60.50% <0.00%> (-0.54%)
:arrow_down:

...n/java/com/alibaba/druid/pool/DruidDataSource.java
71.77% <0.00%> (-0.33%)
:arrow_down:

...va/com/alibaba/druid/sql/parser/SQLExprParser.java
67.26% <0.00%> (-0.16%)
:arrow_down:

...m/alibaba/druid/sql/parser/SQLStatementParser.java
55.64% <0.00%> (-0.08%)
:arrow_down:

... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

用junit写单测，不要用main函数

已经 fix 掉了

这个报错 应该和我提交的没有关系，DruidDataSource:1220 - testWhileIdle is true, validationQuery not set


Login dialog + credential store

Requirementes

User's should be "greeted" with a login dialog to enter mail credentials
Credentials should be stored (encrypted) in the Front End

AC

When loading the application, user is redirected to a login screen.
User is required to enter mail server host, mail server port, user and password.
User can submit the form and if credentials are valid is redirected to default application layout (folders+message list)
User is not able to see or retrieve the credentials as they should be encrypted during the rest of the application lifecycle.

New responsive login interface:

Login response only includes encrypted credential values:


Line feeds don't break lines in the license field.

Mod Menu version 5.0.2.
license is "Cloth Config: GNU LGPL v3.0 or later\nsnakeyaml: Apache License 2.0\ntoml4j and Jankson: MIT License".

This is not supported by the fabric.mod.json spec

license Defines the licensing information. Can either be a single license string or a list of them.

This should provide the complete set of preferred licenses conveying the entire mod package. In other words, compliance with all listed licenses should be sufficient for usage, redistribution, etc. of the mod package as a whole.
For cases where a part of code is dual-licensed, choose the preferred license. The list is not exhaustive, serves primarily as a kind of hint, and does not prevent you from granting additional rights/licenses on a case-by-case basis.
To aid automated tools, it is recommended to use SPDX License Identifiers for open-source licenses.


Overflow in Duration::new when parsing malformed duration

fn main() {
    rkyv::from_bytes::<std::time::Duration>(&[0xff; 16]);
}

This is using from_bytes, so this should be checked, but this still panics. Duration::new has an overflow condition that needs to be checked here.

Thanks for finding this issue. Fixed by ac62695d4e2fce0b9b5aadebd22063ee68151215


How to convert ScreenPoints to Coordinates?

How can I convert TouchedEventArgs's ScreenPoints property into LatLon or SphericalMercurial coordinates?
I need it for 2 pursposes when the Feature is dragged over the screen:

I need to know the coordinates of the user's position on the map upon TouchEnded event
I want to draw the dragged Feature while it is being dragged over the screen (TouchMove event)

The answer is: http://mapsui.com/api/Mapsui.Viewport.html#Mapsui_Viewport_ScreenToWorld_Mapsui_Geometries_Point_

The answer is: http://mapsui.com/api/Mapsui.Viewport.html#Mapsui_Viewport_ScreenToWorld_Mapsui_Geometries_Point_


Project: Learning Path Certifications Builder

Project Name
Learning Path Certifications Builder
Description
My non-technical friends are finding it difficult to transition into the tech industry, one of the challenges faced was creating a learning path customised to individual learning needs to their ideal job roles.
For the data source, certification information was scraped from the Microsoft Credentials page into a csv file. The data is seeded into an Azure SQL database using Azure Data Studio and FTS index was created via MS query. No embeddings were used.
For a full summary, please refer to the Github repo : https://github.com/elixias/learningpathbuilder
Thanks!
Technology & Languages

[X] JavaScript
[ ] Java
[ ] .NET
[ ] Python
[ ] AI Studio
[ ] AI Search
[ ] PostgreSQL
[ ] Cosmos DB
[X] Azure SQL

Project Repository URL
https://github.com/elixias/learningpathbuilder
Deployed Endpoint URL
Local only
Project Video
https://www.loom.com/share/0a5ae8b34b804b5985742a2f8db2e1e7?sid=9c05f681-bbeb-4559-9616-d4a275a58733
Team Members
elixias

Hello @elixias, thank you for participating in RAG Hack!
The team is working hard to distribute badges. Please have each team member fill out this form:
aka.ms/raghack/badge-dist
Thank you!


Simple test hangs up on Angular2 TodoMvc demo

Are you requesting a feature or reporting a bug?
bug
What is the current behavior?
Test hangs up. Todo list input is not rendered.
What is the expected behavior?
Test should run.
How would you reproduce the current behavior (if this is a bug)?
Run provided test.
Provide the test code and the tested page URL (if applicable)
Test code
fixture `TODO MVC - angular2`
    .page `http://todomvc.com/examples/angular2`;

test('Add and remove TODO', async t => {
    await t.typeText('.new-todo', 'Write code')
});

Should be fixed in testcafe-hammerhead: https://github.com/DevExpress/testcafe-hammerhead/issues/923

Fixed with https://github.com/DevExpress/testcafe-hammerhead/commit/3d567d11c04da4124e9226d155bf2291a2813bd1


Create Vercel app for onefetch with ASCII preview

At the time of creation of this PR, there is absolutely nothing notable, hence why it is starting as a draft. I am creating this before any significant code is contributed so that I can document the steps as I go through them.
Setup

Create a Vercel account at vercel.com and link it to GitHub
Create a new project

set repo to onefetch
change the root directory from ./ to vercel/ascii-preview vercel/
set the framework preset to Vite

Change the domain in project settings(?)

My current URL is https://onefetch-spenserblack.vercel.app/

Resolves #696

I think I'll end up using TypeScript for this (using Vite as a build tool). Before I set up the preview, @o2sh do you have a preference between vanilla JS, React, Vue.js, Svelte, or anything else? I've used Vue.js and Svelte before (and obviously vanilla JS 😆), but I'm happy to use any tool that you and the team feel most comfortable with.

Codecov Report

Merging #701 (3bdc8c2) into main (debd453) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #701   +/-   ##
=======================================
  Coverage   13.36%   13.36%
=======================================
  Files          19       19
  Lines        1160     1160
=======================================
  Hits          155      155
  Misses       1005     1005

Continue to review full report at Codecov.

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

Before I set up the preview, @o2sh do you have a preference between vanilla JS, React, Vue.js, Svelte, or anything else?

Why the need of a front end framework/library for a serverless function?

Also, if we ever want other serverless onefetch web services, maybe it makes more sense to make the root directory vercel/ instead, and /ascii-preview can be an endpoint instead.

Aren't Vercel's serverless functions supposed to be  placed in the /api directory of the project's root. https://vercel.com/docs/concepts/functions/serverless-functions#deploying-serverless-functions

Why the need of a front end framework/library for a serverless function?

For ASCII previews itself, no big reason, just that it might be a bit easier to parse data into a template this way. Also, reactively changing the background from dark to light can be useful. While not impossible without a frontend framework, it's a bit easier, and also more readable for other potential contributors. Though if we decide to use any framework now, this simplifies adding anything else to a serverless web service. For example, https://github.com/o2sh/onefetch/issues/459#issuecomment-874654998 was suggesting moving the wiki to gh-pages, but something very similar can be accomplished using Vercel instead. Though I have no strong feelings, and would be happy to implement this with Vanilla JS (no frameworks/libraries).

Aren't Vercel's serverless functions supposed to be placed in the /api directory of the project's root.

Well, the serverless function don't need to be in /api. For example, github-profile-trophy is basically a single serverless function run with Deno that returns an SVG, and this serverless function exists in the root. E.g. https://github-profile-trophy.vercel.app/?username=o2sh (congrats on the achievements 😆 )
Personally, I'd put machine-readable responses in /api[:/endpoint], and human-readable responses anywhere else. We can split this up into, let's say, /api/languages which serves a JSON-ified version of languages.yaml, and /ascii-preview that fetches and consumes that JSON.
I think I may have been incorrectly using the phrase "serverless function." I was using it as a catch-all for static sites as well. Sorry for the confusion.

While not impossible without a frontend framework, it's a bit easier, and also more readable for other potential contributors. Though if we decide to use any framework now, this simplifies adding anything else to a serverless web service.

You're right about the need of being future proof.
I'm always anxious about bringing more complexity to a project. 😩
Concerning your original question - which framework/library to use -, you can pick the one you feel most comfortable with and is most adapted to the feature. I have a small preference for (Svelte + TypeScript) 😉 .

Personally, I'd put machine-readable responses in /api[:/endpoint], and human-readable responses anywhere else. We can split this up into, let's say, /api/languages which serves a JSON-ified version of languages.yaml, and /ascii-preview that fetches and consumes that JSON.

If we're adding folders to the project's root, we should keep it to a minimum. For example, a single folder named tools - or another name that better illustrate our intent - which can then hold as many folders as we consider necessary.

If we're adding folders to the project's root, we should keep it to a minimum. For example, a single folder named tools - or another name that better illustrate our intent - which can then hold as many folders as we consider necessary.

Oh yeah, right now I'm planning on putting everything in vercel/, so vercel/api/, vercel/index.html, etc. I think that's what you're saying you want, right?

This is really cool @spenserblack 😍
I am still working on the review. But it's already looking very promising.

@spenserblack I seem to have broken the serverless function 😓
Do you have access to the logs ?

:thinking: Looks like the /api/languages endpoint broke

Build log
[14:42:20.483] Cloning github.com/spenserblack/onefetch (Branch: main, Commit: 85c975a)
[14:42:20.887] Cloning completed: 403.888ms
[14:42:21.292] Installing build runtime...
[14:42:22.485] Build runtime installed: 1.192s
[14:42:22.518] Installing build runtime...
[14:42:23.477] Build runtime installed: 959.107ms
[14:42:23.506] Installing build runtime...
[14:42:26.518] Build runtime installed: 3.012s
[14:42:27.165] Looking up build cache...
[14:42:27.281] Looking up build cache...
[14:42:27.804] Looking up build cache...
[14:42:30.549] Build cache downloaded [37.30 MB]: 2931.452ms
[14:42:30.594] Build cache downloaded [37.30 MB]: 2934.876ms
[14:42:30.922] Build cache downloaded [37.30 MB]: 2818.664ms
[14:42:31.423] Installing dependencies...
[14:42:31.907] yarn install v1.22.17
[14:42:31.924] Installing dependencies...
[14:42:31.981] [1/4] Resolving packages...
[14:42:32.085] success Already up-to-date.
[14:42:32.089] Done in 0.19s.
[14:42:32.289] yarn install v1.22.17
[14:42:32.357] [1/4] Resolving packages...
[14:42:32.399] Running "yarn run build"
[14:42:32.426] Installing dependencies...
[14:42:32.452] success Already up-to-date.
[14:42:32.457] Done in 0.17s.
[14:42:32.638] yarn run v1.22.17
[14:42:32.686] $ yarn setup:data && yarn build:vite
[14:42:32.706] yarn install v1.22.17
[14:42:32.727] Using TypeScript 4.7.4 (local user-provided)
[14:42:32.793] [1/4] Resolving packages...
[14:42:32.932] success Already up-to-date.
[14:42:32.936] Done in 0.23s.
[14:42:32.983] $ js-yaml ../languages.yaml > languages.json
[14:42:33.231] Using TypeScript 4.7.4 (local user-provided)
[14:42:33.564] $ vite build
[14:42:34.197] vite v3.0.0 building for production...
[14:42:34.247] transforming...
[14:42:35.555] NowBuildError: api/languages/[key].ts(1,18): error TS2307: Cannot find module '../../languages.json' or its corresponding type declarations.
[14:42:35.555]
[14:42:35.555]     at createTSError (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305069:16)
[14:42:35.555]     at reportTSError (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305075:23)
[14:42:35.555]     at getOutputTypeCheck (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305162:17)
[14:42:35.555]     at compile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305239:109)
[14:42:35.555]     at compileTypeScript (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304587:31)
[14:42:35.555]     at Job.readFile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304614:30)
[14:42:35.555]     at Job.emitDependency (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:227618:39)
[14:42:35.555]     at async Promise.all (index 0)
[14:42:35.555]     at async Object.nodeFileTrace (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:227372:5)
[14:42:35.556]     at async compile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304596:49) {
[14:42:35.556]   hideStackTrace: true,
[14:42:35.556]   code: 'NODE_TYPESCRIPT_ERROR',
[14:42:35.556]   link: undefined,
[14:42:35.556]   action: undefined
[14:42:35.556] }
[14:42:35.681] 6:42:35 PM [vite-plugin-svelte] /vercel/path3/vercel/src/lib/AsciiPreview.svelte:37:2 A11y: A form label must be associated with a control.
[14:42:35.682] 35:     Dark
[14:42:35.682] 36:   </label>
[14:42:35.682] 37:   <label>
[14:42:35.682]       ^
[14:42:35.683] 38:     {#if hex != null}
[14:42:35.683] 39:       <input type="checkbox" bind:checked={trueColor} />
[14:42:35.956] ✓ 20 modules transformed.
[14:42:36.016] rendering chunks...
[14:42:36.035] dist/index.html                         0.51 KiB
[14:42:36.036] dist/ascii-preview/index.html           0.54 KiB
[14:42:36.076] dist/assets/main.a2c986bb.js            1.20 KiB / gzip: 0.65 KiB
[14:42:36.076] dist/assets/ascii-preview.5c75593a.js   5.31 KiB / gzip: 2.48 KiB
[14:42:36.077] dist/assets/Nav.0fa23d3b.js             6.09 KiB / gzip: 2.75 KiB
[14:42:36.077] dist/assets/index.bf0a7ac8.css          0.04 KiB / gzip: 0.06 KiB
[14:42:36.077] dist/assets/index.9483747b.css          0.31 KiB / gzip: 0.19 KiB
[14:42:36.077] dist/assets/Nav.5a5a1fc4.css            3.09 KiB / gzip: 1.05 KiB
[14:42:36.078] Done in 3.43s.
[14:42:36.078] NowBuildError: api/languages/index.ts(1,18): error TS2307: Cannot find module '../../languages.json' or its corresponding type declarations.
[14:42:36.078]
[14:42:36.078]     at createTSError (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305069:16)
[14:42:36.078]     at reportTSError (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305075:23)
[14:42:36.078]     at getOutputTypeCheck (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305162:17)
[14:42:36.078]     at compile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:305239:109)
[14:42:36.079]     at compileTypeScript (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304587:31)
[14:42:36.079]     at Job.readFile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304614:30)
[14:42:36.079]     at Job.emitDependency (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:227618:39)
[14:42:36.079]     at async Promise.all (index 0)
[14:42:36.079]     at async Object.nodeFileTrace (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:227372:5)
[14:42:36.079]     at async compile (/vercel/b1f299b72c92121c/.build-utils/.builder/node_modules/@vercel/node/dist/index.js:304596:49) {
[14:42:36.079]   hideStackTrace: true,
[14:42:36.079]   code: 'NODE_TYPESCRIPT_ERROR',
[14:42:36.080]   link: undefined,
[14:42:36.080]   action: undefined
[14:42:36.080] }
[14:42:39.290] Generated build outputs:
[14:42:39.290]  - Static files: 10
[14:42:39.290]  - Serverless Functions: 2
[14:42:39.290]  - Edge Functions: 0
[14:42:39.290] Serverless regions: Washington, D.C., USA
[14:42:39.290] Deployed outputs in 3s
[14:42:41.832] Build completed. Populating build cache...
[14:42:46.671] Uploading build cache [37.30 MB]...
[14:42:48.020] Build cache uploaded: 1.350s
[14:42:48.048] Done with "package.json"
[14:42:49.039] Build completed. Populating build cache...
[14:42:53.469] Uploading build cache [37.30 MB]...
[14:42:54.831] Build cache uploaded: 1.362s
[14:42:54.856] Done with "api/languages/index.ts"

Serverless Function Error
[GET] /api/languages
15:22:51:16
2022-07-22T19:22:51.333Z	undefined	ERROR	Cannot find module '../../languages.json'
Require stack:
- /var/task/vercel/api/languages/index.js
2022-07-22T19:22:51.333Z	undefined	ERROR	Did you forget to add it to "dependencies" in `package.json`?
RequestId: 36e7188d-882b-4fd7-ba3e-b4f1f2f30f12 Error: Runtime exited with error: exit status 1
Runtime.ExitError

I think the issue might be that the API and site are built in separate processes. We may have just been lucky that the site build, which included setup:data, completed first.
Useful notes: https://vercel.com/docs/runtimes#advanced-usage/advanced-node-js-usage/custom-build-step-for-node-js

That's weird, looking at the logs, "build": "yarn setup:data && yarn build:vite", seems to have run sequentially.
Seems like language.json wasn't found for some reason.

with d30407a I got rid of the API and read directly from the json file to see if it works and better
It may simplify things after all.
Feel free to revert if you think this is a bad idea.

Feel free to revert if you think this is a bad idea.

Oh, no, my original idea was actually to import the YAML directly. I did this by making a symlink to languages.yaml in vercel/, but it failed on deployment. I assume this was because files outside of the deployed directory weren't available, but maybe the problem was just the symlink itself :shrug:
It makes the bundled JS a bit large, but I think the simplicity is worth it 🙂

TypeScript is really giving a hard time with this import 😓

seems like it doesn't want me to import a file that is one level up from its root path 🤔

TypeScript is really giving me a hard time with this import

I had that issue too, which is why I caved in and made the YAML -> JSON a build step. TypeScript natively supports importing JSON, but the YAML import is handled by a Vite plugin, so I'm not sure if the TypeScript compiler is aware of that.
I think something like this might be necessary.
// types.d.ts
declare module '*.yaml' {
  const data: Record<string, any>;
  export default data;
}

https://github.com/o2sh/onefetch/pull/701/commits/c93ef824509317be687eaad598f7ce70084cb540 Resolved the type errors for me (running npm run check).

:thinking: I wonder if running npm run check should be made part of the CI. npm run build would be asserted by Vercel, so that might not be necessary.

:cry: Looks like nightly had a change that broke the CI.

I think the PR is ready to be merged

I think so, too! I'm fine to wait until the CI is fixed. Thanks for all your work updating the styling, simplifying the logic, etc.!

:thinking: Maybe we should add vercel/ to CODEOWNERS.

Should onefetch.dev be listed as one of the sites using sakura.css?

Sure! that's a good idea 👍

https://github.com/oxalorg/sakura/pull/97


Price calculation tasks delayed

Describe the bug
Price calculation tasks occasionally experience delays due to the execution of the reindex_contracts_without_metadata_task, which occurs on a weekly basis. This particular task often involves reindexing a large number of contracts, causing a significant workload.
Moreover, for each contract requiring reindexing, an additional task called create_or_update_contract_with_metadata_task is appended to retrieve contract information. In a recent instance, around 80,000 tasks were executed on Polygon.
The execution of these tasks is immediate, leaving little room for the price calculation tasks to run. Consequently, the price calculation process occasionally experiences delays of more than one day, resulting in token prices appearing as 0 when the cache of each price is expired.
Proposed solution
Modify the frequency of this task to every day or 2 days to reduce the number of contracts to be reindexed.

This might be fixed by https://github.com/safe-global/safe-transaction-service/pull/1520
I would analyze also if maybe we should have less Celery workers to be able to attend all the requests and not having a lot of tasks running at the same time that the service cannot handle

Currently concurrency is set to 1_000 tasks. Maybe that's too much concurrent gevent threads, and we could be more conservative and maybe get a speed up by reducing it

Price calculation was removed from the tx service in favour of the https://github.com/safe-global/safe-price-service/


[ALLUXIO-3341] Allow Alluxio to fallback to a configured UFS for storage

https://alluxio.atlassian.net/browse/ALLUXIO-3341

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/586/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/587/
Test PASSed.

@apc999 If you have time can you look at this?


⚠ ClamAV has degraded performance

In 67d49d5, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 209 ms

Resolved: ClamAV performance has improved in 1152af0.


Localtunnel returning a 502 bad gateway

Localtunnel is only responding with a 502 bad gateway page.

Should be fixed!

@TheBoroer Thanks!


Could you add in the docs an example with an arrow?

Is your feature request related to a problem? Please describe.
I've followed the popper docs https://popper.js.org/docs/v2/modifiers/arrow/, I'm trying with your custom UI example https://v-onboarding-docs.fatihsolhan.com/examples/custom-ui, but the arrow never appears.
That's my custom step:
  const steps = [
    {
      attachTo: { element: '#create_quest_button' },
      content: { title: 'Welcome!' },
      options: {
        popper: {
          modifiers: [
            {
              name: 'arrow',
              options: {
                padding: 5,
              },
            },
            {
              name: 'offset',
              options: {
                offset: [10, 20],
              },
            },
          ],
        },
      },
    },
  ]

Describe the solution you'd like
If possible, an example using arrow in the docs

@ibrunotome thank you for your interest in v-onboarding ❤
I've added a default arrow to v-onboarding. If you want to change its appearance, you can check this page

Thank you @fatihsolhan !


New test data for aroTHERM plus + multiMATIC 700 + sensoNET VR 921

Before submitting a new issue

[X] I'm using the latest version of myPyllant
[X] I've checked known issues
[X] I'm sure this problem is about the myPyllant library. For issues with the home assistant component, open an issue here

My setup

Vaillant aroTHERM plus VWL 75/6 A S2 R1 6,7 kW
Vaillant uniSTOR plus VIH RW 300/3 BR R1
multiMATIC 700
sensoNET VR 921

test data
06311a0a4a60d0b43e225afc4e99996fd2b12d23.zip
Problem description
I am providing this test data for my setup because even with the latest version, where I do have mpc and rts enabled I still can't see all sensors. mpc and rts both create 404 errors in the log, but when I run the service mypyllant.generate_test_data (output here: https://github.com/signalkraft/mypyllant-component/issues/119#issuecomment-1970002640 ) I can see the values for operationTime and onOffCycles. So it should be possible to fetch those data, even if the mpc and rtc endpoint return 404.

@signalkraft you haven't added an option to send you an coffee, I would want to send you one!


fix: CODE-128 barcode generates HRI with À

In the my bin file there is a CODE 128 type barcode, and the value of the barcode is {A4589696, with the thermal library the barcode is generated and when read its value is 4589696 and the HRI is the same as an À at the beginning, À4589696.

The CODE 128 barcode can represent all 128 ASCII code characters (numbers, upper/lower case letters, symbols and control codes.
The starting character can be of three types: “CODE A”, “CODE B” and “CODE C”. The character type determines the character composition of subsequent characters. In the binary barcodes.bin there is a barcode displaying “À” before other characters in the HRI.
In the binary code the value appears {A4589696:
The “{“ indicates that it is an alphanumeric sequence in ASCII.
The “A” indicates the type of code, which could be B or C as well.
The remaining characters are the barcode value.
In the thermal code, “{A” is replaced by “À”, “{B” by “Ɓ” and “{C” by “Ć”. And the code has the following comment: “//all code128 data has two bytes that set the type, we are converting this to the barcoders format”. If this conversion is not carried out, the barcode is not even generated.
The correction was not to use the same variable used to code the bars in HRI, in addition to taking the original data, it already replaces it by removing “{A”, “{B” or “{C”, as it only needs to be in the system that generates the barcodes. File: thermal_parser/src/commands/barcode.rs.
after the correction:

Thank you for doing this!!
I'm not familiar with the different barcode formats, so this is great.
Would love it if we can add tests for each of the barcode types that you fix into the barcodes.thermal file.  I would just add a header for each type under the the current hri tests.

I went ahead and added in the tests for these 3 barcode formats with some notes on how to add more. Also added a vcode syntax highlighter plugin for the thermal format which makes it easier to work with.


Podcast: add 255 recap

Going to merge for now and we can evaluate any duplicate word bypass for transcripts separately.


Issues with the Build.ps1 build system

I would like to test and probably help develop AngleSharp. Our company needs to programmatically access the CSS model of HTML documents. Florian suggested to look at the devel branch and build AngleSharp and AngleSharp.Css.
This brings me to the issue: I can build from within Visual Studio (except some NuGet UAP target framework issues), but I cannot build using the Build.ps1 script. The build script, among other things, generates the NuGet packages, which will be very-very handy for me while testing.
I have two options:

Have somebody explain to me what the Build.ps1 / Cake scripts are supposed to do, document this (so other people do not have the same issues) and help me fix the build scripts. If this is working, integrate the changes into the public branch.
Hack and manually change the references within AngleSharp and AngleSharp.Css and build only for a single target framework and only from within Visual Studio. Generate NuGet packages by hand. Cross fingers that nothing breaks after the next branch sync. This I can do without external help.

I would like to hear input on what people have done and recommend to do.

The problem is that you potentially have the wrong (more recent) NuGet.exe - it's a big problem. They broke compatibility and cannot build / support the multi-platform target.
One way forward is, e.g., to go to a single target (.NET Standard, preferred is 2.0 as it will already offer us the broadest / most accepted one) and drop all the other targets. As a side-effect using AngleSharp would no longer be possible with SL and older versions of .NET.

What I described is a brutal change to AngleSharp. For doing it now you would need to change the build.cake heavily.

Thanks. Re-writing the build.cake is currently out of my competence. I decided to locally reference the AngleSharp.Core project from within AngleSharp.Css and build from within Visual Studio. Obviously not a long term solution, but OK in the development phase.


Update: Ionic Framework, PouchDB, blobUtil, Cordova AppVersion

Updating Support for Ionic Framework, Adding promise support to PouchDB(in progress) and added blobUtil definition for @nolanlawson 's blobUtil, added appVersion to cordova definition

blob-util/blob-util.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/blob-util
http://bower.io/search/?q=blob-util
others?

[X] has a test file? (blob-util/blob-util-tests.ts or others)
[ ] pass the Travis-CI test?

cordova/cordova.d.ts
author: Microsoft Open Technologies Inc. (account can't detected)
check list

[ ] pass the Travic-CI test?

cordova/plugins/AppVersion.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/cordova
http://bower.io/search/?q=cordova
others?

[ ] has a test file? (cordova/plugins/AppVersion-tests.ts or others)
[ ] pass the Travis-CI test?

ionic/ionic.d.ts
to author(@spencerwi). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

pouchDB/pouch.d.ts
to author(@MrBigDog2U). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

The ionic changes look accurate to me, though I don't 100% understand the use of specific-string-value overloads with otherwise-identical signatures.

@spencerwi I may have missed the duplicate signatures, what line numbers are duplicated?

@jfspencer Lines 68-92 and 94-118 define lots of signatures for onGesture/offGesture. Might be a style difference, though; just curious about the decision there.

@spencerwi Ah, I see. I pulled the additions, with modification to be 1.1 compliant from https://github.com/danibo86/ionic-typescript-definitions/blob/master/beta14/ionic.d.ts where the onGesture/offGesture signatures were created. I tested to see if typescript would enforce the string literals in the gesture signatures, which it doesn't, so I'll remove all the duplicates. Thanks for catching that.

No problem! Looks good to me otherwise.

Added tests for AppVersion in in the cordova-tes.ts in the section with the other plugins

Can you please fix the failing Travis CI tests and update the PR!

@vvakame, @jfspencer, @mhegazy, I think I'd prefer to see typings for AppVersion plugin as a separate typings package (in a separate directory) similar to cordova-plugin-ibeacon or cordova-plugin-ms-adal, because cordova package was supposed to contain only cordova core API and core plugins.

Hello and thank you for your contribution!
Due to an excessively long queue of pull requests that have become stale, we are "declaring bankruptcy" and closing all PRs opened before May 1, 2016. If you'd still like to merge this code in, please open a new PR that has been merged and rebased with the master branch.
Going forward, we are committing to review or merge all PRs on a regular basis so this bankruptcy will not occur again. We apologize for the incovenience and hope you will continue to contribute to DefinitelyTyped in the future.
Thanks
The TypeScript and DefinitelyTyped teams


ENH: Allow further customisation of lapack input parameters for linalg.svd lapack_driver='gesvd'

Is your feature request related to a problem? Please describe.
As a follow-up to a ticket I logged as bug that wasn't a bug (18980) I've done further digging and after building numpy and scipy against Intel MKL in CONDA I can get the same results as my C++ if I utilise Cython to create my own wrapper for the lapack DGESVD function.
However, because of the way the 'full_matrices' method defines the values for both JOBU and JOBVT parameters in the lapack call here there isn't a way to call 'Path 1t' in the DGESVD function, which is designed for scenarios where the number of columns is significantly larger than the number of rows, natively using the SciPy linalg.svd function.
In order to call this particular path the inputs need to be definable as JOBU='S' and  JOBVT='N', which isn't able to be currently be done directly in SciPy, since 'full_matrices=True' appears to be used to set the values of JOBU and JOBVT together, so there's no way to set them independantly.
Describe the solution you'd like.
A kwarg that enables the use of this path natively in linalg.svd when using lapack_driver='gesvd'.
Describe alternatives you've considered.
I've been able to achieve what I required using Cython code, as per below - but it's considerably more messing around.
# cython: wraparound = False
# cython: boundscheck = False

from scipy.linalg.cython_lapack cimport dgesvd
from scipy.linalg.cython_blas cimport dgemm

cpdef lapack_dgesvd(
    char* JOBU,
    char* JOBVT,
    int M,
    int N,
    double[::1] A,
    int LDA,
    double[::1] S,
    double[::1] U,
    int LDU,
    double[::1] VT,
    int LDVT,
    double[::1] WORK,
    int LWORK,
):
    cdef int INFO
    dgesvd(JOBU, JOBVT, &M, &N, &A[0], &LDA, &S[0], &U[0], &LDU, &VT[0], &LDVT, &WORK[0], &LWORK, &INFO)

    return INFO

Additional context (e.g. screenshots, GIFs)
No response

This is typically not needed in the svd API but you should have been able to use the scipy.linalg.lapack.dgesvd. Unfortunately that one is also short-circuited at that wrapper.


feat: improve watch timeout

Hi @muka , just checking if you want this PR merged or you'd rather replace it with the switch from inotify to watchtower?

Personally not against inotify as long it does the job. Anyway would make sense to test a library with more adoption.
Can we merge this PR and track the lib switch as feature request?
If build fails once again, we'll prioritize it.
What do you think?

Works for me. Merging now.

Looks like the poll time increase isn't a reliable workaround. The main CI build failed again on the same test:
https://travis-ci.com/github/ambianic/ambianic-edge/jobs/372828550#L3776


[BUGFIX] Fix add-ons for master branch

📲 What
Same changes as what was made for release-3.20.0
🤔 Why
Need the changes everywhere
🛠 How
Cherry picked the commit onto a new branch pointed to master

Codecov Report
Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 67.29%. Comparing base (c6fe8d2) to head (74081a2).
Report is 1 commits behind head on master.

Files
Patch %
Lines

...kstarter/viewmodels/projectpage/AddOnsViewModel.kt
50.00%
2 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2020      +/-   ##
============================================
+ Coverage     67.17%   67.29%   +0.11%
- Complexity     2057     2062       +5
============================================
  Files           355      353       -2
  Lines         21481    21465      -16
  Branches       3030     3028       -2
============================================
+ Hits          14430    14444      +14
+ Misses         5443     5412      -31
- Partials       1608     1609       +1

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


Add a button to clear "lost" devices

Devices, while debugging, come and go and dashboard gets crammed pretty quickly.
Would be nice to have a way to manually clean them.

Maybe a button here?


New package: AdvancedPS v0.1.0

Registering package: AdvancedPS
Repository: https://github.com/TuringLang/AdvancedPS.jl
Created by: @yebai
Version: v0.1.0
Commit: c87cba73a30b3cf7e9b2ad207cceeaaae55de378
Reviewed by: @yebai
Reference: https://github.com/TuringLang/AdvancedPS.jl/commit/c87cba73a30b3cf7e9b2ad207cceeaaae55de378#commitcomment-44779378

@DilumAluthge Some ongoing work in Turing depends on this new package. It would be great if this PR can be merged as soon as possible, if nothing major stands in the way. Many thanks!


Uptade rack to 1.4.6

Rack 1.4.1 is vulnerable to CVE-2015-3225, CVE-2012-6109, CVE-2013-0183, CVE-2013-0184, CVE-2013-0262, CVE-2013-0263.

Thanks for letting us know, but rack is only used in testing when spinning up a temporary server bound to the local interface. It can't be an attack vector, unless someone wanted to hack into their own machine.


Unable to deploy Vyper contracts

I posted this issue in the hardhat repo, but upon inspecting the source code I think it might also be an issue of this package...? (I have no idea which part is correct behaviour and which is not)
The issue is that compiled vyper contracts don't have buildInfo .dbg.json files:

But the DeploymentsManager needs them in:

getExtendedArtifact
which calls utils.getExtendedArtifactFromFolder
which calls Artifacts.getBuildInfo (hardhat/internals/artifacts)
which fails as there is no build info for the vyper contracts

Workaround: set saveDeployments: false for the network
Log:
Error: ERROR processing /home/manu/dev/uniwine-contracts/deploy/001_deploy.ts:
Error: cannot find artifact "Uniwine"
    at Object.getExtendedArtifact (/home/manu/dev/uniwine-contracts/node_modules/hardhat-deploy/src/DeploymentsManager.ts:227:17)
    at _deploy (/home/manu/dev/uniwine-contracts/node_modules/hardhat-deploy/src/helpers.ts:450:32)
    at _deployOne (/home/manu/dev/uniwine-contracts/node_modules/hardhat-deploy/src/helpers.ts:679:18)
    at DeploymentsManager.executeDeployScripts (/home/manu/dev/uniwine-contracts/node_modules/hardhat-deploy/src/DeploymentsManager.ts:997:19)
    at DeploymentsManager.runDeploy (/home/manu/dev/uniwine-contracts/node_modules/hardhat-deploy/src/DeploymentsManager.ts:832:5)

Thanks for the report, I could make hardhat-deploy continue as indicated in https://github.com/nomiclabs/hardhat/issues/1365 but it would be preferable if hardhat-vyper add the necessary information..
I am not sure what vyper provide. from the doc I cannot find any reference to metadata that is used by hardhat-deploy to verify source code for solidity-based contract. So there might be some changes to do in hardhat-deploy to handle source verification for vyper contracts anyway

same issue here 👍🏻

Hey @kesar @TeNNoX just a message that I hope to tackle this next week. thanks for the report

fixed in v0.7.6 feel free to reopen if this does not work for you, thanks again for the report


Lab 4 "Execution failure in 'lookup': (TypeError)"

Lab: 04
Task: Deploy the flow
Step: 05
Description of issue:
I am getting the "Execution failure in 'lookup': (TypeError) unsupported operand type(s) for +: 'NoneType' and 'int'" after submitting the prompt as instructed in the step. When I submit the prompt multiple times, the error changes to "Execution failure in 'chat_with_context': (TypeError) unsupported operand type(s) for +: 'NoneType' and 'NoneType''".
I have attached screenshot for your reference below.
Screenshot:

@ivorb I just tested this lab for MJ and got the same error. Looking at the online deployment log it says that the endpoint is trying to use a deprecated library (Pydantic) and method (dict), so it switches methods and doesn't recognize the token attributes needed to finish the run successfully. Since the prompt flow worked correctly in the compute session, it seems to be a product issue in the endpoint deployment only.

thanks @usamabinrauf and @afelix-95 - given it's a product bug I'll add a note to exercise for now


Mac mini mid-2010 wireless bluetooth cards

It sounds like the only card that will work for the Mac mini mid-2010 is the: BCM94331PCIEBT4CAX. Is it possible to also use the Mac mini late-2012 card: BCM94331PCIEBT3B? This card looks to be a closer replacement than the BCM94331PCIEBT4CAX, and it is cheaper.
Any help on this would be appreciated.
Thanks

Ending up using BCM94331PCIEBT4CAX which works fine, but didn't fit perfect, but works :)


(#59) fix family numEntities

fix numEntities
add isEmpty and isNotEmpty
add first and firstOrNull

I also added a few utility functions to a family to easily check if it is empty or not. Also, it can be useful to get just a random single entity out of a family and do something with it. For that I introduced now first and firstOrNull.
My use case was that I check in a system if the family is not empty then I want to do something with the first entity. I did that e.g. for a camera system that updates the game camera and optionally can lock the camera to one specific entity.
Before I had to do an iteration via forEach. Now this can be solved via a call to first.
I will make the same changes to the KMP branch in the upcoming days and release a 1.4.1 version for both JVM and KMP.

I need to check the implementation of first in more detail because I think there might be issues when you iterate through a family with forEach and calling first on that same family while iterating.
I wasn't able to break it yesterday but I have some ideas now on how to break it.
I am not sure if we need to consider that because I cannot imagine a scenario where that makes sense but let me think about it some more ;)

No problem. Take your time.
I am in the meantime now also using FamilyListeners to initialize entities with a specific configuration of components. I like that approach very much. :)

I think I found a good solution and yes, indeed I was able to break it.
Removal of entities during iteration was actually not a problem because it is happening delayed.
Adding is also sometimes fine because according to the generated bytecode that I saw, Kotlin is getting the size of an array before it starts looping when you write array.forEach which is nice because it then uses the size before any modification during iteration.
With a combination of both I was able to break it as seen in the WorldTest test case but I changed the implementation of first and firstOrNull to fix that. We can use the delayRemoval flag of the entity service to check if an iteration is currently happening. In those cases we simply don't update the underlying entitiesBag and assume it is up to date because it an iteration is already in process.
There could be a potential second special case where users are iterating over a family and call first on another family. If the entities of that second family is still empty then it is also save to call updateActiveEntities.
The "tricky" part is that we actually need to call updateActiveEntities because it is possible to only make calls to first or firstOrNull and we need to update the family in those cases because otherwise those calls will never return anything. Until now this was only needed in the forEach function of the family.
Hope this makes sense :D I will leave this PR open for another day or two. If we don't see any issues with that then I will merge it and prepare the new version.

part of 1.5-JVM


Command prompt escaping in Process.quote_windows

From #13567 we know that Process.quote_windows, which only performs the opposite of CommandLineToArgvW, does not handle metacharacter escaping for the command prompt. We also need both kinds of escaping, and there isn't a one-size-fits-all solution. So I am proposing the following addition to the standard library:
class Process
  def self.quote_windows(args : Enumerable(String), *, c_runtime : Bool = true, shell : Bool = false)
    # if `c_runtime` is true, do what the method does right now; then
    # if `shell` is true, prepend a `^` to every metacharacter
    # (`(`, `)`, `%`, `!`, `^`, `"`, `<`, `>`, `&`, `|`), and also
    # raise if any `\n` appears
  end

  def self.quote_windows(args : String, *, c_runtime : Bool = true, shell : Bool = false)
    quote_windows({args}, c_runtime: c_runtime, shell: shell)
  end
end

Process.quote_windows(%q(foo <"bar">), c_runtime: false)              # => %q(foo <"bar">)
Process.quote_windows(%q(foo <"bar">), c_runtime: false, shell: true) # => %q(foo ^<^"bar^"^>)
Process.quote_windows(%q(foo <"bar">))                                # => %q("foo <\"bar\">")
Process.quote_windows(%q(foo <"bar">), shell: true)                   # => %q(^"foo ^<\^"bar\^"^>^")

Process.quote is not supposed to be used in platform-specific scenarios, so it doesn't have to expose those new parameters.
This still leaves some questions unanswered:

Should we continue to expect that the backtick is portable?
Should we continue to expect that Process.quote inside a backtick is portable?
Do these parameters' defaults for .quote_windows also hold for .quote?

And the big question that I keep insisting on...

Should we assume that the "cmd" shell is the shell and deserves to be tied to a boolean shell: true

It might be cool to instead expand Process.run to accept an enum as the shell argument, which would then have implementations for sh, cmd, windows backed by corresponding quote implementations.
As for backticks, I don't have much hope of them ever doing anything sensible...

Sometimes I've been thinking what the shell would be for a hypothetical MinGW-based toolchain. Crystal programs built with it can definitely expect the availability of sh.exe as a default POSIX shell. So maybe replacing shell: true with an enum isn't a bad idea after all...?

#15111 establishes the use of cmd.exe as the default shell even for x86_64-windows-gnu programs built inside MSYS2, because we are still targetting Win32.
Reading https://stackoverflow.com/a/4095133 it seems environment variable substitution occurs before the special rules for ^, which explains why this won't be enough:
Process.run("cmd.exe", ["/c", "foo.cmd", "^%cd^%"], output: :inherit, env: {"cd^" => "1 && calc.exe"})

Maybe this is why the workaround mentioned in #14536 is necessary?

We don't need to spend any time thinking what happens in this scenario:
Process.run("cmd.exe", ["/c", ...])

(i.e. passing an array of args)
because it's complete nonsense in the first place. cmd.exe simply doesn't accept an array of arguments, it accepts a single command line.
There is no possible level of workarounds that would make this make any sense.
In https://github.com/crystal-lang/crystal/pull/14557 we simply made it so that an equivalent scenario doesn't get created implicitly (in supported scenarios). But if someone spells that out explicitly, that's totally on them.

#15111 establishes the use of cmd.exe as the default shell even for x86_64-windows-gnu programs

I didn't understand, in which way does it establish that?

Then what about Process.run("cmd.exe /c foo.cmd %cd%", shell: true)? Is it Crystal::System::Process or the user's responsibility to do the correct shell escaping in place of %cd%?

"cmd.exe /c foo.cmd %cd%" is a way to run a Batch script with the content foo.cmd %cd%. I'd say it's a user's responsibility to ensure they wrote a correct Batch script and whether they meant for the variable to be expanded or not. If there's a way to safely escape values to be inserted into Batch syntax, we could provide a helper for that.

And it seems in your example you've shown that there actually isn't a way to ensure that an arbitrary string will not result in variable expansion in the Batch syntax.
Say we want to pass the literal string "%cd%" to a process.
Currently we can achieve it like this:
`some_process #{Process.quote("%cd%")}`

With cmd involved, there's no way to do that.
`cmd.exe /c #{quote_batch("%cd%")}`

If the quote_batch function does nothing then this is an expansion of the variable %cd%
If it attempts to turn that string into ^%cd^% then this is an expansion of the variable %cd^% - do I understand correctly?

But hold on - according to the same link, it seems to say that %% is a way to escape a single % character. Maybe that can still be achieved, then?


I can't connect impala

connect string is:
impala://xxx.xx.xx:21050/default?auth_mechanism=NOSASL&user=hive
when I test connect
the error is
ERROR: {"error": "Connection failed!\n\nThe error message returned was:\n(exceptions.AttributeError) TBufferedTransport instance has no attribute 'trans' [SQL: u'SHOW TABLES IN default']"}
superst log:
2017-03-09 15:10:17,317:DEBUG:impala.hiveserver2:Connecting to HiveServer2 xxx.xxx.xxx:21050 with NOSASL authentication mechanism
2017-03-09 15:10:17,317:DEBUG:impala._thrift_api:get_socket: host=xxx.xxx.xxx port=21050 use_ssl=False ca_cert=None
2017-03-09 15:10:17,317:DEBUG:impala._thrift_api:get_transport: socket=<thrift.transport.TSocket.TSocket instance at 0x7fd28ed69f38> host=<IP_ADDRESS> kerberos_service_name=impala auth_mechanism=NOSASL user=hive password=fuggetaboutit
2017-03-09 15:10:17,317:DEBUG:impala.hiveserver2:sock=<thrift.transport.TSocket.TSocket instance at 0x7fd28ed69f38> transport=<thrift.transport.TTransport.TBufferedTransport instance at 0x7fd28ed69518> protocol=<thrift.protocol.TBinaryProtocol.TBinaryProtocolAccelerated instance at 0x7fd28ed691b8> service=<impala._thrift_gen.ImpalaService.ImpalaHiveServer2Service.Client object at 0x7fd28ed5dc90>
2017-03-09 15:10:17,317:DEBUG:impala.hiveserver2:HiveServer2Connection(service=<impala.hiveserver2.HS2Service object at 0x7fd28ed5d150>, default_db=default)
2017-03-09 15:10:17,318:DEBUG:impala.hiveserver2:Getting a cursor (Impala session)
2017-03-09 15:10:17,318:DEBUG:impala.hiveserver2:.cursor(): getting new session_handle
2017-03-09 15:10:17,318:DEBUG:impala.hiveserver2:OpenSession: req=TOpenSessionReq(username='root', password=None, client_protocol=5, configuration=None)
2017-03-09 15:10:17,318:DEBUG:impala.hiveserver2:Attempting to open transport (tries_left=3)
2017-03-09 15:10:17,318:DEBUG:impala.hiveserver2:Transport opened
Superset version
superset (0.17.0)

the reson thrift version,0.9.3 version can fix

the an other problem is username cannot specify

you can see specify user is 'hive' ,but username show in log is still 'root'

Can you help me? I can not connect to impala.  What's wrong with it?

@Edenhe wrong protocol in database uri

Notice: this issue has been closed because it has been inactive for 297 days. Feel free to comment and request for this issue to be reopened.


ESC15/EKUwu PR

Initial PR of ESC15 attack discovered and disclosed by Justin Bollinger from TrustedSec (https://x.com/Bandrel)

Crazy that you snitched. 😭

Crazy that you snitched. 😭

Hello, @daddycocoaman/Ohm-I!
I have published my fork of Certipy for several reasons:

Details about the attack have already been publicized.
Other people have already figured out how to replicate it.
Due to the overwhelming amount of bad vendor documentation encouraging people to misconfigure templates, a way to test and validate this vulnerability needed to be brought to light.

I wrote this code based on information that was made public over a month ago and have provided credit to the original researcher who discovered it. It's still their work and I'm not taking that away from them. However, this is my work and I have a right to publish it.
Thanks!

Crazy that you snitched. 😭

Hello, @daddycocoaman/Ohm-I!
I have published my fork of Certipy for several reasons:

Details about the attack have already been publicized.
Other people have already figured out how to replicate it.
Due to the overwhelming amount of bad vendor documentation encouraging people to misconfigure templates, a way to test and validate this vulnerability needed to be brought to light.

I wrote this code based on information that was made public over a month ago and have provided credit to the original researcher who discovered it. It's still their work and I'm not taking that away from them. However, this is my work and I have a right to publish it.
Thanks!

You do you. Many of us have implementations but I just hope that you discussed the impact on the researcher and their company before dropping this specifically for public consumption because some things go beyond technical implications.
PR looks great though!

First off, this is awesome. Wanted to point out though that the PR has some comments removed that are links to the official documentation related to the functionality, specifically in req.py. Probably worth sticking those back in.

I recommend rejecting this commit and accepting a commit from Bandrel instead, as he already has a version, releasing a fork that was still under responsible disclosure at Microsofts Request to another researcher seems shady at best

First off, this is awesome. Wanted to point out though that the PR has some comments removed that are links to the official documentation related to the functionality, specifically in req.py. Probably worth sticking those back in.

@linuxkd - I have added those comments back. That was a Copilot thing as I was trying to ensure my additions were in the style of the original project.

 Not shocked he figured it out.  Credit to him for finding this <3

After playing around with this, I've noticed there are currently false positives in regards to the identification of ESC15 templates as there is no check against the msPKI-Certificate-Application-Policy attribute values.
In this example I have a template which is reporting as vulnerable:

However, when requesting a certificate, authentication does not work as the application policy overrides any additional polices:

This is confirmed in the issued certificate:

Removing the application policies from the certificate results in obtaining a certificate with the requested client authentication policy
Get-ADObject "CN=ESC15,CN=Certificate Templates,CN=Public Key Services,CN=Services,$((Get-ADRootDSE).configurationNamingContext)" -Properties * | Set-ADObject -Clear 'msPKI-Certificate-Application-Policy', 'pKIExtendedKeyUsage'

@spyr0-sec It's known that requesting the cert can't be used for PKINIT client auth (it works for SChannel, so you can use that original cert with -ldap-shell), so that's not an issue.
However, you might have just solved the PKINIT issue by removing the application policies all together. 😂

Thats what I get for jumping in with two feet before getting to the end of the blog post!
I've just tried -ldap-shell and I get an error 😕
LDAPS is definitely configured in the lab

I've tried with all the different options available. Will have to come back to it tomorrow

@spyr0-sec Just to clarify, you still need the cert to have Client Auth app policy (from your second screenshot). It cannot be used for PKINIT but it can be used with -ldap-shell.

You can also request a certificate enrollment agent certificate and then direct request a certificate on behalf of any other user which can pkinit

Has anyone got this implemented into relay, or do I need to volunteer? Thanks!

Has anyone got this implemented into relay, or do I need to volunteer? Thanks!

@vysecurity - I haven't really come back to this since the initial release and have been swamped with work since. If you can get it sorted, I think we'd all appreciate it.

Everyone’s saying it’s dead so they’re saying no point implementing. Let’s see how often ESC15 works in coming months and I’ll see if I want to invest time for this.


Registering Indexers with NativeCallContext argument

I believe this is possible via registering a plugin, but not via the raw engine API, the type signature of all indexer registering functions does not allow a NativeCallContext argument

You're right.  I should rework the types allowed.  Right now indexers and getters/setters do not allow for NativeCallContext.

Hmm I see, is there any workaround I can use, short of defining a plugin (I have to do this in a trait method with a generic type) I can use for now ?

You can use the register_fn_raw API for now?

Do indexers get a special function name, or do the types solely determine if a function is an indexer ?

Or alternatively, you can just register these: index$get$ for get indexers and index$set$ for set indexers.
Just register them as normal functions under this name and it should work fine...
The API functions are simply wrappers that register under these names.

perfect! I wasn't sure, but it seemed like this would be the case!

This is the implementation of register_indexer_get:
self.register_fn("index$get$", get_fn)

That should be me sorted then, thanks for the quick response!

The latest drop should have resolved this issue.  Thanks for catching this.


Add ARROW_R_WITH_JSON flag

As part of https://github.com/apache/arrow/pull/11046, I'm adding the ARROW_R_WITH_JSON flag. I would like to include it here as well.
I used https://github.com/autobrew/scripts/pull/10 as a template, but please let me know if you'd like this PR in a different format.

Thanks, @jeroen!


request support for Honor Scale 2 (LUP-B19)

Hi,
would it be possible to read the BLE advertisments of the honor scale 2 (LUP-B19) with this component?

Hello, sorry this component does not recover bluetooth data. You have to look at ble-monitor if they can integrate it.


feat(jellyfish-transaction-builder): Extend createDeFiTx to allow for custom vins and vouts

What this PR does / why we need it:

Allow use of custom vins and vouts for updatemasternode dftx in #1863 to provide collateral tx when updating owner address

I will build the updatemasternode transaction from scratch in #1894 in txn_builder_masternode.ts, no need for an abstraction with this PR


Added solution for Euler number 28

[Current coverage][cc-pull] is 97.09% (diff: 100%)

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

@@             master      #1458   diff @@
==========================================
  Files            86         86
  Lines         10410      10410
  Methods           0          0
  Messages          0          0
  Branches       1823       1823
==========================================
+ Hits          10105      10108     +3
+ Misses          177        176     -1
+ Partials        128        126     -2

Powered by Codecov. Last update [c896f81...2fdd2f4][cc-compare]
[cc-base-branch]: https://codecov.io/gh/javaslang/javaslang/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/javaslang/javaslang/compare/c896f81da11be0560c4d5202bd609da65f9b35f6...2fdd2f40af0414ab877e8179a08edad21fe14eb8?src=pr
[cc-pull]: https://codecov.io/gh/javaslang/javaslang/pull/1458?src=pr

Thanks!


Restart Content Performance Manager Sidekiq workers on deployment

We previously made a change to instantiate two Sidekiq
workers, rather than one. Each of these has different settings
and different names.
Since we deployed it, the Sidekiq workers have not been restarting on
redeploys, because they do not conform to the
convention used by govuk-app-deployment.
This change adds rake tasks specifically for restarting the Content
Performance Manager workers, and executes them after a restart.
A test run on Integration was performed here

 Restart our Sidekiq workers on deploy


ResolveError: Failed to load https://.*****.com//****: 404 Not Found

Description
After updating the package from 6.7.6 to 7.3.0 I see the below error log when fetching data from certain URLs that I need to build my app with,
Basically it is a simple npm i which inside runs npm run tsDefinition:****:****.
When I curl -I my-url  , I get a 200 OK message but during the build it fails and returns 404 Not Found.
I am not sure where this issue is arising from so I would appreciate some insights/ideas for a solution.
Works perfect until version 6.7.6
But breaks from 7.0.0
npm run tsDefinition:****:**** exited with code 1
/builds/*****/******/node_modules/@redocly/openapi-core/lib/resolve.js:113
 throw new ResolveError(error);
 ResolveError: Failed to load https://****.******.com/****/****: 404 Not Found

Name
Version

openapi-typescript
7.3.0

Node.js
20.11.1

OS + version
Windows 11

Reproduction
described in the description
Checklist

[ ] My OpenAPI schema passes the Redocly validator (npx @redocly/cli@latest lint)
[ ] I’m willing to open a PR (see CONTRIBUTING.md)

Hi, it is hard to debug your issue without any proper way to reproduce it.
There is a really high chance that the problem is on your side. When using curl, make sure that you also use the same method and headers.
If you have access, you could also try to trace the request from the backend to see why it returns a 404.

This is the command that returns the error :
openapi-typescript https://****.****.com/*****/***** --output<EMAIL_ADDRESS>-m POST
I thought maybe removing -m POST would have an effect but it did not.
What do you think can help me address this issue better ?
PS.
I saw this change on the version 7.0.0

And I prefer not the create a separate config file if there is another way to address this error.

Hi, it is hard to debug your issue without any proper way to reproduce it, can you include the code that triggers the request?
There is a really high chance that the problem is on your side. When using curl, make sure that you also use the same method and headers.
If you have access, you could also try to trace the request from the backend to see why it returns a 404.

And to answer your last question , I have no access to the BE at all .

So the fetch mechanism technically changed from 6.x to 7.x, but only in that it moved from undici to node-fetch via Redoy. Redocly is a very widely-used tool though, and nothing it’s doing is nonstandard that I can see, and this is the first report we’ve gotten. So it could be possible that your backend os responding in a very nonstandard way from the slightest difference in request, and not giving you any hints.
Fortunately, you can specify customFetch in your Redoc config, so you can start debugging by replacing that with undici to see if you get a response again. But I agree with @kerwanp in that this seems like a problem to this specific endpoint which other users aren’t having, and we can’t debug ourselves without more info. But hopefully this gives you a lead to figure out what’s different yourself.

Since this issue appears to be related to either a specific OpenAPI endpoint or a network failure, it seems unlikely that openapi-typescript is causing the issue.