CVE-2023-2976 has not been fixed on f40

Hello, a vulnerability CVE-2023-2976 was recently reported in Guava. The upstream community suggests upgrading to version 32.0.1, but the latest version in Fedora is still 31.1 and there is no patch to fix this vulnerability in Fedora. May I ask why Fedora has not fixed this vulnerability?
References:

https://github.com/google/guava/issues/2575
https://github.com/advisories/GHSA-7g45-4rm6-3mm3

First, Fedora bugs are tracked in Red Hat Bugzilla at https://bugzilla.redhat.com/.
In case of CVE-2023-2976, the bugs are:

https://bugzilla.redhat.com/show_bug.cgi?id=2232209
https://bugzilla.redhat.com/show_bug.cgi?id=2232210

We are planning to fix the issue in Fedora, but it has moderate severity, so it was preempted by more important work.
As for javapackages-bootstrap, the use of guava is very limited and therefore has low severity. It will be fixed eventually by updating Guava to newer version, but it's not a priority for the project.

First, Fedora bugs are tracked in Red Hat Bugzilla at https://bugzilla.redhat.com/. In case of CVE-2023-2976, the bugs are:

https://bugzilla.redhat.com/show_bug.cgi?id=2232209
https://bugzilla.redhat.com/show_bug.cgi?id=2232210

We are planning to fix the issue in Fedora, but it has moderate severity, so it was preempted by more important work.
As for javapackages-bootstrap, the use of guava is very limited and therefore has low severity. It will be fixed eventually by updating Guava to newer version, but it's not a priority for the project.
Thanks.

Hi Fedora team,
We are using a very old jpb-bootstrap version in Azure Linux i.e 1.5.0. I was updating the source to guava source 2.1.3 for this exact CVE.
I update the guava.xml and guava.properties in projects. 1.5.0 did not have jurand hence I had to still use the older guava.properties from 1.5.0 .
The build fails at the guava compilation stage. Ant stage went fine. There is no log or anything to debug this error.
time="2024-03-22T15:00:01Z" level=debug msg="guava: compiler"
time="2024-03-22T15:00:02Z" level=debug msg="Failed to execute tool compiler on module guava: Compilation failed"
time="2024-03-22T15:00:02Z" level=debug msg="BUILD FAILURE"

As it failed during the compile time, It may be jsr-305 version incompatibility with guava which is causing it.  I have updated other sources which did not have this issue. Any input?

Using jurand solves this. Probably new annotations were added which is not replaced I guess.


Cube cannot be processed in Visualize

Describe the bug
When trying to create a visualizations with the dataset WASTA_Test the editor mode doesn't appear, but the user is taking back to the data set search page.
Steps to Reproduce

Go to int.visualize.admin.ch
Search for the draft data set WASTA_Test dated 12.09.2024 (Draft data set so be sure to include drafts in the search!)
Select the data set and see the preview
Click on "Start a visualization"
See that the page loads and then goes back to the dataset search page.
See that no error message is shown.

Expected behavior
After clicking on "Start a visualization" the user can start creating and editing a visualization with the data set. (e.g. is taken to the editor mode). If the editor mode cannot be initiated, the user receives some feedback to understand the behaviour.
Screenshots or video
https://github.com/user-attachments/assets/63e2df44-c732-4aba-874f-c3d49d088cd0
Environment (please complete the following information):

Visualize environment and version: [e.g. INT v4.9.2]
Browser and version Chrome

Additional context Add any other context about the problem here.

Link to the cube https://int.cube-creator.lindas.admin.ch/app/cube-projects/cube-project!!bfeogd40wasserstatistik-glpyg6apey6/metadata. It is unclear if this is Visualize or an upstream issue -the cube has empty dimensions values.
This issue was reported by Silvan auf der Maur via Zulip: https://zulip.zazuko.com/#narrow/dm/113-Silvan-Auf-der-Maur-(BAR)

Thanks for the input and hint @Rdataflow. This issue was initially reported by Silvan, so I will let him know.

just guessing, maybe some mapping is broken - as dimsions are kind of mixed up and don't provide neither Literal nor IRI ...?

I had already ran it through cube validator and tried to fix some of the more glaring mistakes with the cube (such as missing data types) but I wasn't sure what was causing the lack of Literal or IRI for some values.
I thought it may be caused by the fact that in two columns there are empty values, but I was mainly curious about the behaviour of visualize and why it was not throwing an error when failing to load the cube.
Do you think that is the most likely explanation? In that case I will forward that information to the user and encourage them to try with a different CSV to fix the error.
Thank you for your feedback!

@AdMSilvan I guess the mapping of some shared dimension is still incomplete, you or the publisher may check and fix this 👍
International isn't mapped yet 👁
... or for an alternative quick fix they may simply drop those values which are not mapped 😉


Taskcat basic CloudFormation resource check failing on valid resource

Describe the bug
A clear and concise description of what the bug is.
While testing the VMware Tanzu Application Platform Quick Start for interop in GovCloud in PR #93, I received the following error indicating that Route 53 private hosted zones aren't supported in GovCloud, which is inaccurate. Afterward, I re-ran with the --lint-disabled parameter, and the deployment completed successfully.
version 0.9.31
[INFO   ] : Linting passed for file: /mnt/c/Users/trlindsa/git/quickstart-vmware-tanzu-application-platform/templates/aws-tap-entrypoint-new-vpc.template.yaml
[ERROR  ] : ---
[ERROR  ] : Linting detected issues in: /mnt/c/Users/trlindsa/git/quickstart-vmware-tanzu-application-platform/templates/aws-tap-entrypoint-existing-vpc.template.yaml
[ERROR  ] :     line 765 [3001] [Basic CloudFormation Resource Check] Invalid or unsupported Type AWS::Route53::HostedZone for resource
                                                            PrivateHostedZone in us-gov-east-1
[WARN   ] : No stacks were created... skipping cleanup.
[ERROR  ] : Lint failed with errors

To Reproduce
Steps to reproduce the behavior:

Are you testing a QuickStart or Custom template? https://github.com/aws-quickstart/quickstart-vmware-tanzu-application-platform/
Attach or link a copy of the template if possible (remove any sensitive info) https://github.com/aws-quickstart/quickstart-vmware-tanzu-application-platform/blob/main/templates/aws-tap-entrypoint-new-vpc.template.yaml
Provide the parameters that you passed. (remove any sensitive info) Same as in SwingLine CI.
How did you install taskcat? (docker or pip3) pip3
Are you using a profile, an instance role or  access keys to run taskcat? Profile
Is your AWS environment configured via aws configure? Yes

Expected behavior
A clear and concise description of what you expected to happen.
The taskcat basic CloudFormation resource check should not fail for valid resources.
Screenshots
If applicable, add screenshots to help explain your problem.
With linting enabled, the linter failed on the resource check

With linting disabled, I made it through a full deploy & destroy

**Version (Please make sure you are running the latest version of taskcat)

Taskcat Version (ex: [2018.817.210357]) v0.9.31

Note: Python Version (python3 required) 3.8.10
To find versions:
Via taskcat: taskcat -V
taskcat -v
 _            _             _
| |_ __ _ ___| | _____ __ _| |_
| __/ _` / __| |/ / __/ _` | __|
| || (_| \__ \   < (_| (_| | |_
 \__\__,_|___/_|\_\___\__,_|\__|

version 0.9.31
0.9.31

Via pip3: pip3 show taskcat
pip3 show taskcat | head -2
Name: taskcat
Version: 0.9.31

Note: both version should match
To update taskcat run:
for docker : docker pull taskcat/taskcat
for pip3: pip3 install --upgrade taskcat
Additional context
Add any other context about the problem here.

Are you able to verify independently with cfn-lint specifying the us-gov region in question?
What version of cfn-lint?

Whoops! Didn't know taskcat leveraged cfn-lint for that functionality. I'm able to reproduce in both us-gov-east-1 & us-gov-west-1 for cfn-lint versions 0.61.1 and 0.61.4. I'll open an issue over there when I'm back on Monday. Thanks @andrew-glenn!
$ cfn-lint -t ./templates/aws-tap-entrypoint-existing-vpc.template.yaml -r us-gov-west-1
E3001 Invalid or unsupported Type AWS::Route53::HostedZone for resource PrivateHostedZone in us-gov-west-1
./templates/aws-tap-entrypoint-existing-vpc.template.yaml:765:5

$ cfn-lint -t ./templates/aws-tap-entrypoint-existing-vpc.template.yaml -r us-gov-east-1
E3001 Invalid or unsupported Type AWS::Route53::HostedZone for resource PrivateHostedZone in us-gov-east-1
./templates/aws-tap-entrypoint-existing-vpc.template.yaml:765:5


SEHException (0x80004005) on OCRTesseract.Run(...)

Summary of your issue
I have a application which runs fine on my development machine and most user machines.
Some users are however reporting that the application terminates with this error:
Fatal error. System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at OpenCvSharp.NativeMethods.text_OCRTesseract_run1(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Int32)
   at OpenCvSharp.NativeMethods.text_OCRTesseract_run1(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Int32)
   at OpenCvSharp.Text.OCRTesseract.Run(OpenCvSharp.Mat, System.String ByRef, OpenCvSharp.Rect[] ByRef, System.String[] ByRef, Single[] ByRef, OpenCvSharp.Text.ComponentLevels)

Environment
Windows 10 x64
What did you do when you faced the problem?
Verified the function is called correctly ( not with null values ) and checked that the .net core 3.1 dependency is correctly installed.
Code causing the issue
https://github.com/Blightbuster/RatScanner/blob/3ea387b9687fbfe44d5a19b640ae5eb3cecd7ea7/RatScanner/Scan/ItemNameScan.cs#L166
Output:

Fatal error. System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at OpenCvSharp.NativeMethods.text_OCRTesseract_run1(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Int32)
   at OpenCvSharp.NativeMethods.text_OCRTesseract_run1(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, Int32)
   at OpenCvSharp.Text.OCRTesseract.Run(OpenCvSharp.Mat, System.String ByRef, OpenCvSharp.Rect[] ByRef, System.String[] ByRef, Single[] ByRef, OpenCvSharp.Text.ComponentLevels)
   at RatScanner.Scan.ItemNameScan.OCR(System.Drawing.Bitmap)
   at RatScanner.Scan.ItemNameScan..ctor(System.Drawing.Bitmap, RatScanner.Vector2)
   at RatScanner.RatScannerMain.NameScan(RatScanner.Vector2)
   at RatScanner.RatScannerMain+<>c__DisplayClass17_0.<OnMouseEvent>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task+<>c.<.cctor>b__274_0(System.Object)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread)
   at System.Threading.Tasks.Task.ExecuteFromThreadPool(System.Threading.Thread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

I have encountered this as well, on Windows 10 x64, .Net Framework 4.7.2 and OpenCvSharp <IP_ADDRESS>10210. Whether the exception gets thrown depends at least in part on the content of the image. I've whittled down a sample image that reliably causes this exception, along with this code:
using(var image = new Mat("SEHException minimum.png"))
using(var engine = OpenCvSharp.Text.OCRTesseract.Create(@"Data\tessdata", oem: 1))
    engine.Run(image, out var text, out _, out _, out _, OpenCvSharp.Text.ComponentLevels.TextLine);

The Data\tessdata folder contains a single file, eng.traineddata, obtained here (the file is LSTM only which is why oem is 1 in the above code).
I assume there's an underlying exception that indicates the actual error. Is there any way to expose it to C# instead of just getting an E_FAIL HResult?

I am seeing this on Win10 x64 as well. I am using .Net 4.8 + OpenCvSharp 4.5.2. Only happens with tessdata_best and not with tessdata. Same code  works fine on Mac and Ubuntu though. There is not any information on the inner exception.

I can confirm that this only happends with my custom trained lstm for a specific fint. It seems to fix the problem when using the pretrained eng.traineddata.

This still happens for me as described, in OpenCvSharp <IP_ADDRESS>11207.

Does it resolve the issue if you use Mat as follows instead of wrapping up that in using?
varocr = OpenCvSharp.Text.OCRTesseract.Create();
var mat = new OpenCvSharp.Mat(file);
ocr.Run(mat, out var outputText, out var componentRects, out var componentTexts, out var componentConfidences);
textBox.Text = outputText;
mat.Release();
mat.Dispose();

I've used these:
<ItemGroup>
  <PackageReference Include="OpenCvSharp4" Version="<IP_ADDRESS>11231" />
  <PackageReference Include="OpenCvSharp4.runtime.win" Version="<IP_ADDRESS>11231" />
</ItemGroup>

in a WPF project and it works BUT in most of the cases it doesn't put space in between words.

Does it resolve the issue if you use Mat as follows instead of wrapping up that in using?
var ocr = OpenCvSharp.Text.OCRTesseract.Create();
var mat = new OpenCvSharp.Mat(file);
ocr.Run(mat, out var outputText, out var componentRects, out var componentTexts, out var componentConfidences);
textBox.Text = outputText;
mat.Release();
mat.Dispose();

I've used these:
<ItemGroup>
  <PackageReference Include="OpenCvSharp4" Version="<IP_ADDRESS>11231" />
  <PackageReference Include="OpenCvSharp4.runtime.win" Version="<IP_ADDRESS>11231" />
</ItemGroup>

in a WPF project and it works BUT in almost all cases it doesn't put space in between words.

how does that make a difference? The using discards the allocated object only after the ocr.Run(...) and it already crashes before the end of the block is even reached.

@Blightbuster, few hours ago I got the same error somewhere in my code, can't remember where exactly. Google/Bing brought me to this page and as I was reading suddenly the idea of using Mat that way came to my mind and gave that a shot and here's the result in my side:

On the left the image and on the right the extracted Text. I've added these values in Constructor:
var ocr = OpenCvSharp.Text.OCRTesseract.Create(
    "tessData",
    "eng",
    "01234567890.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -:'\"`~@#$%^&*()-=+_/<>?\\|",
    1);

to get space and other characters from image.

But doesn't your code also work when not manually managing the allocated object by using the using, keyword?

@Blightbuster, yes it does now, funny. At that time it didn't! I think, I also deleted bin, obj and .vs file after changing the code and closing the Visual Studio. This
using var mat = new OpenCvSharp.Mat(file);
ocr.Run(
    mat,
    out var outputText,
    out var componentRects,
    out var componentTexts,
    out var componentConfidences,
    OpenCvSharp.Text.ComponentLevels.Word
);
box.Text = outputText;

now works as well.
Do you still have the issue?

@Blightbuster, yes it does now, funny. At that time it didn't! I think, I also deleted bin, obj and .vs folders after changing the code and closing the Visual Studio. This
using var mat = new OpenCvSharp.Mat(file);
ocr.Run(
    mat,
    out var outputText,
    out var componentRects,
    out var componentTexts,
    out var componentConfidences,
    OpenCvSharp.Text.ComponentLevels.Word
);
box.Text = outputText;

now works as well.
Do you still have the issue?

Yes I do. It seems to be an issue with the model used as described above.

@Blightbuster, I also have tried it without any trained data like this:
ocr = OpenCvSharp.Text.OCRTesseract.Create(null, null,
    "01234567890.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -:'\"`~@#$%^&*()-=+_/<>?\\;,|");

and it works fine without that. Looks like, all that it needs is a long string of characters you want to parse.

It would be nice if at least (in case the issue cannot get properly fixed) the error message could become less obscure.


get_chat_template breaks when using add_prefix_space

When tokenizer is provided with add_prefix_space=True, get_chat_template throws an error. Having add_prefix_space=None works fine.
Code to reproduce:
from unsloth.chat_templates import get_chat_template
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1", add_prefix_space=True)
tokenizer = get_chat_template(
    tokenizer,
    chat_template="chatml",
    map_eos_token=True
)

Error message:
TypeError: Couldn't build proto file into descriptor pool: duplicate file name sentencepiece_model.proto

Apart from this issue, there seems to be some quirk with loading a modified tokenizer from a folder with trained lora adapters.
In my case at the end of training I save tokenizer in the same folder as the adapters. When loading lora I give path to the folder with adapters (which also contains saved tokenizer) and it seems that unsloth tries to load the saved tokenizer instead of loading the one from the base model. The most confusing thing is that it thinks I set add_prefix_space=True, since I didn't
Moving tokenizer files into a separate folder fixes things, unsloth loads base tokenizer as expected. But the mystery still remains

Related issue https://github.com/unslothai/unsloth/issues/291
This one possibly can be solved by upgrading sentencepiece library to the latest version.

@oKatanaaa Possibly fixed hopefully! Your code runs now - it seems like I'm dumb and using from transformers.utils import sentencepiece_model_pb2 solved the issue

Sadly, the issue still persists for me. I tried both main and nightly branches. I also tried upgrading protobuf version to the latest. Nothing helped.
 It should be mentioned in the patch notes in the next release since the issue still persists with newest protobuf versions.

@oKatanaaa You're correct! I updated the pyproject.toml to use < 4.0.0. I'm not sure why its erroring out - it seems like protobuf does not like people creating new sentencepiece tokenizers from scratch


AttributeProperty shows the properties of Dataset in observation branch

Problems with the components defines in sdmx-dimension like ferq, refArea, and timePeriod


Add multiroom support

This is the last step I need to switch completely from lms to music-assistant and this slimproto integration here.
I really need a chance to create group of my squeezelite-esp32 clients.
Have no plan how difficult this is but this is really my last puzzle. :)
I am running squeezelite-esp32 on five ESP32-A1S modules. These modules a ready usable for non technical dudes who are not able to solder little boards. :) And easy flashable with usb, a chrome browser and this:
https://raspiaudio.github.io/
(You need to choose I2S and setup then some parameters, thats all)
I think these modules are ideal to enable anyone to build a multiroom system. Unfortunately, I think that lms is too old-fashioned for some users, so slimproto together with homeassistant could be an ideal solution.

multi room sync is in the works as we speak. It takes a bit longer than I hoped but the results are going to be great.
I replay hope to release the first beta version within 1...2 weeks

This sounds awesome! I am already looking forward to trying out the first beta versions. I have the releases here on the watchlist.
Thank you for this great project <3

multi room sync is in the works as we speak. It takes a bit longer than I hoped but the results are going to be great. I replay hope to release the first beta version within 1...2 weeks

I don't want to be intrusive. I would just be interested to know if there has been any progress here.

Yes, but multiroom.grouping support will be implemented in Music Assistant and not in the slim-proto integration.

Is there any beta or similar? I really wanna test it.

No, keep an eye on the Music Assistant discord and beta versions.
I think somewhere like halfway November

I see you closed this issue on may 29. Does that mean that music-assistant is now able to handle my squeezelite-esp32 clients with multi-room and in sync?

Correct


Add Support page

The Support page was removed from the initial launch to allow time to build infrastructure. Team must decide who will field public inquiries and an appropriate response time.
Building this page will require both content and engineering.
Content

draft content for page
add page to top menu navigation
add metadata

Engineering

Build "other" option in drop down menu so that users can write in their responses

Not sure on status of "Other" - let's flag for review

@ashleydraper  - Does the Contact us page have the correct metadata you wanted?


Adding remaining HappyBase table helpers.

LGTM

I'm merging with the LGTM but am still interested and your answer to my bigtable._helpers question.

In general it's just a question of where you draw the "API boundary" - at the module level or at the package level. If you draw it at the package level, then what we're doing now is fine. If you draw it at the module level, then importing private members from other modules is a no-no, because you're overstepping the boundary. IMO, if a module's private function is useful outside of that module it should either be public or moved into a shared dependency.
/opinion /rant


Add mutable array/object literals

Sometimes you need to make mutable arrays and objects. It shouldn't be hard to do in Squiggle. I'm thinking something like mutable[] and mutable{}. Should be pretty clear what it means, and ugly enough to discourage use unless necessary.

Currently you can use the globals Array() and Object() to make empty mutable values, but it's annoying to fill them.

There's also Object.seal which changes prevents new properties from being added, and makes it impossible to delete existing ones. This fits in with the struct use case of objects.

I'm thinking maybe !{k: v, k: v} and ![x, y, z]

Related: Need a syntax for obj[key] = val and array[index] = val in Squiggle.

I think I'll go with &{} and &[]

This needs a mutation syntax to go along with it. Currently thinking:
assign obj.foo = val
assign obj{key} = val
assign ary[idx] = val

I'll move assignment into a separate ticket.


activate_physical broken for Xmega

It seems that the function activate_physical is broken when called for an Xmega device and all other instances where the command CMD_AVR8_ACTIVATE_PHYSICAL does not actually return a device ID. The culprit is very likely found in the lines 296/297 where the device ID is logged despite being checked to not be there (if not device_id).

Logged as DSG-3327


fix(atomic): render result list content when it's ready

https://coveord.atlassian.net/browse/KIT-2035
Easy fix, but hard to find! The result templates (default template included) did not have time to register before the render was trigger. There seem to already have a ready variable available.

Good find !


Game needs hugging/help stand up when you click someone with no intents on.

Need "help to stand up" and done


createTRPCProxyClient from @trpc/client does not respect the openapi path field

To take the example from the README, if I create a router with the endpoint:
...
    sayHello: t.procedure
        .meta({ openapi: { method: 'GET', path: '/say-hello/{name}' /* 👈 */ } })
        .input(z.object({ name: z.string() /* 👈 */, greeting: z.string() }))
        .output(z.object({ greeting: z.string() }))
        .query(({ input }) => {
            return { greeting: `${input.greeting} ${input.name}!` }
        }),

And then later I create a client from this router like this:
const client = createTRPCProxyClient<AppRouter>({
    links: [httpBatchLink({ url: "..." }),
    ],
})

And then finally invoke the client on this endpoint like this:
await client.sayHello.query({ greeting: 'hello', name: 'foobar' })

the client his an url at /sayHello?batch=1&input=%7B%220%22%3A%7B%22greeting%22%3A%22hello%22%2C%22name%22%3A%22foobar%22%7D%7D rather than /say-hello?/foobar.

This is correct. The trpc-openapi handler exposes your @trpc/server procedures as REST-compliant endpoints. It does not affect the behavior of @trpc/client


Add LCD Options in pp_stack scene

Added basic LCD options for newbies to find this functionality.

@MenacingMecha what do you think about this commit?

All looks good, will merge :+1:
I'll rearrange some of the UI to fit together more


Improved: page name in side menu navigation from catalog to audit(#265)

Related Issues

Closes #265
Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

Closing as will be handled in https://github.com/hotwax/preorder/pull/309


Provide README that helps people get started or contribute

Signed-off-by: Tom Kerkhove<EMAIL_ADDRESS>

Any feedback @zroubalik @ahmelsayed ?

Thanks @ahmelsayed!
Ignoring linting since it's covered in #63 and not changed here.


A big "Thank You" to Kefir developers

I'd like to thank you for this library. It fulfils its promise of being high performance.
Also, it is user friendly (fluent API) and the documentation is clear to me.
RxJS brought me far but I reached a point where I need to scale up. Memory and CPU cycles became precious.
RxJS due to its poor performance for big data sets made me look for something more efficient.
I picked up a high-performance language Nim and tried to rewrite my data processing algo.
It turned out that I Nim is so slow while reading from a file that my as-in-the-nodejs-docs JS implementation outperforms it by a factor of 5x or more (reading line by line from ~200MB file). Funny..
I even tried to write my own streams library based on callbacks. It performed well but writing everything from scratch was a big time consumer.
And then I found Kefir and I fell in love with it...
I never thought NodeJS can be that fast and that performant

Thank you so much for the kind words!


Making YAHPO benchmarks available in benchmarking/common/benchmark_de…

…finitions/. Refactoring to accommodate more benchmarks
Issue #, if available:
Description of changes:
First of two PRs on refactoring benchmarking/commons and accomodating YAHPO.

Refactored benchmark_definitions to accommodate more blackboxes
Refactored requirements.txt files
yahpo_import: choice variables with 1 entry become constant entries
Fixing minor issues

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Results of experiments are very different to what we get with our lcbench and 1-nn surrogates. Needs more comparisons!


Uncaught TypeError: Cannot read property 'canvas' of undefined

I'm getting a TypeError
html2canvas.js:2264 Uncaught TypeError: Cannot read property 'canvas' of undefined
    at html2canvas (html2canvas.js:2264)
    at demo.html:176

while trying to call
html2canvas(document.body).then(function(canvas) {
    document.body.appendChild(canvas);
});

as described in the documentation

Which version are you using?

@niklasvh v1.0.0. But it is a common problem with master branch too

Neither of those are stable yet. Releases can be found under https://github.com/niklasvh/html2canvas/releases or npm

@niklasvh, if i want to contribute, what branch should i use?

For contributing, the master branch is the way to go as the whole library has been rewritten


fix(flake): Deduplicate flake-utils

Both us and poetry2nix use flake-utils, let's ensure it's the same version.

Thanks for noticing! ❤


Change the study tag in sample sheet  (Submission id: 5f58f4d2fa551c0001ca61dc)

Need to change the study tag in the sample sheet from Type 2 diabetes to type 2 diabetes to match the study sheet.

Note, this is causing study to appear with no ancestry. Reported in Daniel's list gwas-info 27 May

@Santhi1901 please confirm is it good to close

@sajo-ebi yes it is resolved.


Search is broken on qiskit-ibm-runtime doc

Describe the bug
Search is broken on qiskit-ibm-runtime doc.
Steps to reproduce
Go to https://qiskit.org/documentation/partners/qiskit_ibm_runtime/, type keywords into search box and press Enter.

Expected behavior
Search results should be shown
Suggested solutions
This was a bug in qiskit.sphinx.theme 1.10.0 which has been fixed in 1.10.1. Rebuild the docs (probably just trigger the workflow again is enough since there is no version pinning) using the latest qiskit-sphinx-theme 1.10.1 should fix it.
Additional Information

qiskit-ibm-runtime version:
Python version:
Operating system:

Redeployed the docs, fixed now


tiaoma:0.1.0

I am submitting

[x] a new package
[ ] an update for a package

Description: tiaoma is a barcode generator library using zint as backend. The name tiaoma is how barcode pronounce in Chinese. Comparing to existing qrcode and barcode libraries, tiaoma supports much more barcode types.

I have read and followed the submission guidelines and, in particular, I

[x] selected a name in conformance with the guidelines
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] ensured that my submission does not infringe upon the rights of a third party
[x] tested my package locally on my system and it worked
[x] named this PR as name:version of the submitted package
[x] agree that my package will not be removed without good reason

About license:
https://zint.org.uk/manual/chapter/7

Versions 2.5 and later are released under a dual license: the encoding library is released under the BSD (3 clause) license whereas the GUI, Zint Barcode Studio, and the CLI are released under the GNU General Public License version 3 or later.

Only the encoding library is compiled and linked here, so it is ok to license this package with MIT.


Using video and image capture use-cases together causing front camera preview lag on HUAWEI P40 PRO

CameraX video capture use case preview is causing lag when switched to the front-facing camera on HUAWEI P40 PRO with Android OS 12.0
Issue has been observed in official CameraXVideo sample and in the latest release as well.

Thank you for filing the issue. Would you please provide a bit more information?

What Quality setting are you using for the Recorder? Does the lag occur with different Quality?
Do you observe the lag before, during or after starting a recording?
Does the recorded video also appear laggy when it is played back?

I have created an issue on the issue tracker to follow this bug: https://issuetracker.google.com/226136997
Feel free to respond here or on that bug.

Hi @temcguir, I have tried following solutions so far

Setting quality highest (UHD) and lowest (SD) , issue still persists.
Lag is coming before and after recording both and back camera is working fine and as soon as I am switching to front camera, it is laging.
Yes video is also laggy

Here is my implementation :
QualitySelector.fromOrderedList( ArrayList(filteredQualities),  FallbackStrategy.lowerQualityOrHigherThan(Quality.SD) )
val camera = cameraProvider.bindToLifecycle(                     this,                     cameraSelector,                     preview,                     imageCapture,                     videoCapture                 )

Thanks for the follow-up. I'm trying to get one of these devices and will try to reproduce once I can.

Anyone know what www. file magic.com is I keep seeing it in my chrome
history
On Wed, Mar 23, 2022, 1:17 AM Muhammad Ali @.***> wrote:

Hi @temcguir https://github.com/temcguir, I have tried following
solutions so far

Setting quality highest (UHD) and lowest (SD) , issue still
persists.
Lag is coming before and after recording both and back camera is
working fine and as soon as I am switching to front camera, it is laging.
Yes video is also laggy

Here is my implementation :
QualitySelector.fromOrderedList( ArrayList(filteredQualities),
FallbackStrategy.lowerQualityOrHigherThan(Quality.SD) )
val camera = cameraProvider.bindToLifecycle( this, cameraSelector,
preview, imageCapture, videoCapture )
—
Reply to this email directly, view it on GitHub
https://github.com/android/camera-samples/issues/476#issuecomment-1075960300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOIM457KCL2TJUDTSZKPHTDVBKZODANCNFSM5RKDGN3Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


change in cursor:pointer in style.css

#148
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes:  #(issue no.)#148

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[ ] I have made this from my own
[ ] I have taken help from some online resourses
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK (if applicable)

Please attach a video sample of the changes

Assign this issue to me I am from GSSoC'24 . I am good in CSS I can change the cursor to pointer

The current cursor does not change when hovering over the cube. Change in the cursor style when hovering over the Cube to something more distinct will help the user to differentiate. Please assign me this I want to fix this issue.

hi, I have been following your project and would love to contribute, please assign me the issue.


EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.

Hi, I migrated to v0.8.0, and now I get this error on a realtime subscription: EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection..
Setup
package main

import (
	"log"

	"github.com/labstack/echo/v5/middleware"
	"github.com/pocketbase/pocketbase"
	"github.com/pocketbase/pocketbase/core"
)

func main() {
	app := pocketbase.New()

	app.OnBeforeServe().Add(func(e *core.ServeEvent) error {
		e.Router.Use(middleware.CORS())
		e.Router.Static("/", "public")
		return nil
	})

	log.Fatal(app.Start())
}

Frontend
    client.realtime.subscribe('products', (data) => {
       // ...
    })

Versions:
PocketBase: v0.8.0
PocketBase JS SDK: v0.8.1

There are no changes to the returned realtime response headers in the latest release - https://github.com/pocketbase/pocketbase/blob/master/apis/realtime.go#L47.
I think probably the CORS middleware is interfering. Please note that PocketBase uses by default the CORS middleware in https://github.com/pocketbase/pocketbase/blob/master/cmd/serve.go#L55 and I'm not what the behavior would be if you try to register twice the same middleware. If you want to change the allowed origins, you can pass the --origins="domain1.com,domain2.com" flag.


Allo guest agent or guest agent stable to be the package path

The guest-agent and guest-agent-stable pipelines upload to different paths. Since it is passed in, use the passed in package variable as the GCS path.

/hold

/unhold

/lgtm


feat: template for slides

this adds the slides template from https://github.com/parcio/templates written in typst

Good start. Will switch out some of the older utility functions, like the code blocks, and bring it closer to the original design.
Already started with the footer, outline and current section on the right side of the header.
We should also create some additional user-facing functions to hide some of that.

Added a lot of doc comments and reordered some stuff for both usability and readability. I also modified the progress bar and page counter to only start after the outline and to not count the reference (bibliography slide) though I kept it somewhat customizable.
Should be as close to the LaTeX template as possible, feel free to take a look.


feat: expose schema and createGetLoader

Summary
This allows to use checkpoint via ApolloServer (and possibly other clients).
Test plan
Build checkpoint from this PR and copy files over (instead of linking, as GraphQL depends on instance equality which doesn't work when linked) to sx-api, setup ApolloServer there like this:
import Checkpoint, { LogLevel, createGetLoader } from '@snapshot-labs/checkpoint';

import { ApolloServer } from '@apollo/server';
import { startStandaloneServer } from '@apollo/server/standalone';

// Same checkpoint initialization here as before.

async function run() {
  const server = new ApolloServer({
    schema: checkpoint.getSchema()
  });

  const { url } = await startStandaloneServer(server, {
    listen: { port: 3000 },
    context: async () => {
      const baseContext = checkpoint.getBaseContext();
      return {
        ...baseContext,
        getLoader: createGetLoader(baseContext)
      };
    }
  });

  console.log(`🚀  Server ready at: ${url}`);
}

run();

Run sx-api, execute sample query:
{
  proposals(first: 100) {
    id
    proposal_id
    space {
      id
      name
    }
  }
}

Screenshots

Nice, Apollo explore UI looks much better than GraphiQL.
Not sure what I'm missing in my setup but when I try the test plan I got this error:

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

Using resolutions doesnt seem to help, I keep having same error.

@bonustrack You have to copy the package manually, linking doesn't work (more context in the test plan).

Yes I did that, also tried with link but doesnt work for me

Yes I did that, also tried with link but doesnt work for me

Most likely because there is graphl in node_modules of checkpoint package after copying. Can you remove it from node_modules/@snapshot-labs/checkpoint/node_modules? Alternatively remove it, run yarn and then copy just dist directory instead of entire thing.


WinAppSDK packages package native assets in OS-version-specific RID folders

Describe the bug
The NuGet packages for WinAppSDK package their native assets in win10-arch-specific directories. Starting with .NET 8, the .NET Runtime will not respect these directories and will only look in win-arch directories. As a result, all WinAppSDK packages consumed on .NET 8 will fail to run in a non-self-contained build. Additionally, the .NET SDK is also switching to the simplified RID graph by default, so building apps with WinAppSDK will not be able to publish for OS-version-specific RIDs.
Steps to reproduce the bug
Build a new WinAppSDK with .NET 8.
The native assets will not be able to be resolved at runtime without explicitly opting out of the breaking change at runtime.
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Packaging type
No response
Windows version
No response
IDE
No response
Additional context
No response

Additionally, the .NET SDK is also switching to the simplified RID graph by default, so building apps with WinAppSDK will not be able to publish for OS-version-specific RIDs.

https://learn.microsoft.com/dotnet/core/compatibility/sdk/8.0/rid-graph

Can be closed as a related issue resolve this. https://github.com/microsoft/WindowsAppSDK/pull/4020


Branch0.1.1

Refactoring, added SSL support, added setting of port

Refactoring, added SSL support, added setting of port


stream error Error during WebSocket handshake: Unexpected response code: 301

After installing meteor add xolvio:cucumber
Getting the above error after I run meteor

Ok wow it stop occuring after i restarted my Mac.
I20150226-13:04:56.287(8)? [xolvio:cucumber] Cucumber is running
I20150226-13:04:58.560(8)? [xolvio:webdriver] PhantomJS started.
I20150226-13:05:07.844(8)? .............................


Debeziumio PoC

Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Thanks for the review @pabloem. I've addressed some comments (resolved) and I will be working on those that left pending.

LGTM

LGTM

@juanitodread let me know if you need help making the pull request against the Beam repository

@juanitodread let me know if you need help making the pull request against the Beam repository

@juanitodread let me know if you need help making the pull request against the Beam repository

Thank you @pabloem (and sorry for the delay). We were working on addressing your last comments and testing them in GCP a little bit more.
The code refactors you suggested are in this PR: https://github.com/wizeline/beam/pull/17 (where you can check the changes in more detail) I'll complete that one and merge it with this and after that create the PR against the Beam repo.
Thanks.

@juanitodread let me know if you need help making the pull request against the Beam repository

Thank you @pabloem (and sorry for the delay). We were working on addressing your last comments and testing them in GCP a little bit more.
The code refactors you suggested are in this PR: https://github.com/wizeline/beam/pull/17 (where you can check the changes in more detail) I'll complete that one and merge it with this and after that create the PR against the Beam repo.
Thanks.

You may have figured this out already, but I recommend running the check task on gradle. Something like this:
./gradlew :sdks:java:io:debezium:check
If you see spotless errors - spotless is the autoformater that we use. You can fix those via
./gradlew :sdks:java:io:debezium:spotlessApply


Production Release 2023-07-16

@TylerHendrickson looks like I have been resolving merge conflicts appropriately when we cherry-picked the last couple of pushes to main so we should be merge this as-is.


Improve CAST string to float implementation to handle more edge cases

Signed-off-by: Andy Grove<EMAIL_ADDRESS>Closes #2900

Thanks @jlowe this is ready for another review.

build

Build failed with unrelated test failure:
[2021-07-19T16:37:26.722Z] - Cast from string to date using random inputs with valid year prefix *** FAILED ***
[2021-07-19T16:37:26.722Z]   Mismatch casting string [2021-012] to DateType. CPU: 2021-12-01; GPU: null (CastOpSuite.scala:235)

I am investigating.

build

build


🔥  added markup support

Description
Pr for #33 added editor.vue components to right places and made html display on product pages

I see several problems:

The editing block is attached to the previous block and it is not clear what can be edited in it. I suggest adding indents, adding a separator before the buttons, and trying to highlight the editing field somehow.
The editing field contains formatted text, but it is not displayed on the actual website. It is necessary to add formatting styles in the website's CSS as well.

Oh
Thought I added the styling for the main site, will check it out and the other problem

I added a placeholder to make it clear where to type in the inputs.

and the description on the site has formatting, i added that in the first pr

and also added design for description in site

Looks cool!


Add authentication to ProjectFacadeRest

Authenticates calls made to the ProjectFacadeRest, verifying that the user is logged in, has access to the project or is an administrator depending on the endpoint.
The authentication is done by calling methods in Authentication.java (e.g. Authentication.assertUserIsAdmin()), which will throw a relevant ServiceException if the user does not have the required permissions to access the resource.
I am planning to add authentication to the other API endpoints soon (in UserFacadeRest, etc)

Hi @lucasjones, I like to see you working on this!


gm-connector for e2e testing in Rust

Crate
relayer
gm-connector
Summary
gm-connector is a Rust library that allows Rust tests to start/stop/manage SDK networks through gm (Gaiad Manager).
Problem Definition
e2e testing in Rust is complex and it has dependencies completely unrelated to Rust (or to the code we oversee): network binaries, configuration, ports, etc.
During developer testing it is possible to contain these dependencies with gm Gaiad Manager. gm allows the user to describe multiple network nodes and their dependencies on each other in a simple TOML file.
gm-connector should allow the developer to do the same in Rust tests either ran locally or in CI. gm-connector deals with telling gm to start/stop any network nodes as well as it returns endpoints to the developer for RPC, gRPC and other connection types.
Subsequently, gm-connector should also allow the developer to read/change the network configuration of each node.
What problems may be addressed by introducing this feature?
e2e testing now uses a lot of different kind of dependencies (Python, network binaries, etc). The relevant dependencies are lowered.
What benefits does IBC-rs stand to gain by including this feature?
Easier e2e testing using Rust native tools.
Are there any disadvantages of including this feature?
Yet another Rust library to maintain. (Fortunately, it is only used in testing.)
Proposal
Write an initial version of gm-connector and see if it resolves dependencies as expected.

Acceptance Criteria
At least one e2e test can be run successfully without invoking Python.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

After discussing with @soareschen and @greg-szabo, we have concluded that:

There is no need for gm-connector, so we can close this issue;
gm definitely valuable now, and will definitely be needed in the future for developer network setup & manual/complex tests
gm may grab new users in the future (e.g., gaiad or ibc-go team) and then we may consider moving it in its own repo to cover those use-case.


Add SDK e2e tests

Context
With the introduction of the Turing SDK, there has yet to be a set of e2e tests implemented to ensure that the SDK is always in sync with the development of the Turing API. This PR thus introduces a suite of e2e tests, based upon the API e2e tests, that utilise the SDK to interact with the API. Additional updates to the CI/CD workflows are also introduced to ensure that this suite completes successfully before allowing any merging/deployment from taking place.
Modifications

.github/actions/setup-test-cluster/action.yaml - Creation of a new reusable workflow from the chunk of steps found in .github/workflows/turing.yaml to create a test cluster; used when setting up a test cluster for the regular API e2e tests and the SDK e2e tests
.github/workflows/turing.yaml - Introduction of a test-e2e-sdk job to set up the test cluster and to run the test suite
sdk/Makefile - Minor redefinition of the makefile to ensure that there are 2 different makefile targets, 1 for running the SDK unit tests and the other for running the SDK e2e tests
sdk/e2e/* - Addition of the e2e test suite for the SDK; based upon the API e2e tests

Thanks a lot for all the detailed comments! Just merged this! 🚀


[Macros] Always visit macro-produced decls as auxiliary decls

Always use Decl::visitAuxiliaryDecls to visit decls produced by macros, including peer macros and declaration macros. Use name-driven expansion for peer macros. Remove MacroExpansionDecl::getRewritten().
Also make ExpandMacroExpansionDeclRequest cache the buffer ID (similar to other macros) instead of an array of decls.

@swift-ci please smoke test

@swift-ci please smoke test


create a plugin.json?

Mind following the plugin creation process and adding a plugin.json and creating a release so we can add this plugin to the UI Plugin Manager?

Hey Jordan !
I just added the plugin.json and created a release tag according to the process. Let me know if I missed something

You've got to actually create a release, not just the tag. You can do that through the UI or the hub CLI tool. See: https://binary.ninja/2019/07/04/plugin-manager-2.0.html#5-create-a-release

You can tell it's working when: https://api.github.com/repos/matteyeux/seprom-loader/releases has content

Okay, release created. And the URL returns the JSON content.

Added, thanks. :-)


Basic setup of handlebars and route structuring

Added tailwindcss, express, express-session, express-handlebars, mongodb, and bcrypt to package.json
Set up views/ directory with a main layout
Added MongoDB config files and a seed.js file
Added helpers.js
Set up app.js
Added a .prettierignore file that ignores html and handlebar files to prevent formatting

issue marked as complete


Sorcerer + warlock multiclass question (bug)?

Hello! I'm using the Community mod warlock class, multiclassed with my sorcerer (lock 2 + sorc 3, total level =5 ). RAW for sorlocks in 5e, I thought taking the 3rd level in sorcerer should give me 'normal' sorcerer spell progression (2 second level spell slots and can learn sorc spells from 2nd level set.
I have the 2 second level spell slots, but i couldn't learn any 2nd level spells known when i took the 3rd level in sorcerer. Is this intended or a bug?
Can attach extra info if this is considered an issue to look into. Thanks, cheers!

We cannot reproduce so a save always help

Hmm, I reloaded my save before the levelup and now I do see the 2nd level spell selections - having trouble reproducing myself.
I'll throw the saves here, but at least it looks like I'm not stuck on my character build since I can redo the levelup sequence
AutoSave_3.zip
If this isn't enough to go on, feel free to close this out for now

I did reproduce again: when i levelled up to lv 6, my sor/lock cannot select to learn a new level 2 spell (spells known).
And curiously, when I opted not to complete the level, and instead saved my game - then closed the game client completely and reopened my save, then re-initiated the levelup -- only then can i select new level 2 spells to learn.


How to control access to the console for regular users

I use casdoor as a public unified login service, and I've found that even if a user isn't an organization administrator, they can modify other users' information. This permission is not appropriate. I tried to use casbin to control the permissions of normal users. But it didn't work. Please tell me how to manage the permissions of normal users in the control panel. To prevent someone from messing up. Thanks!

See docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself


Native MPRIS support starting Firefox 75

Hi,
just to let you know, it seems as initial MPRIS support has landed in Firefox 75 a week ago.
https://bugzilla.mozilla.org/show_bug.cgi?id=1353652
https://hg.mozilla.org/integration/autoland/rev/e7e12a4881b8
Best wishes

Did you try it? I'm running 75.0b4 now but don't see it working yet, not sure what I'm missing :thinking:

Nope, still on Firefox 74.

Did you try it? I'm running 75.0b4 now but don't see it working yet, not sure what I'm missing thinking

For now it's only in the nightly, however there seems to be some problem with the play-pause functionality (at least for me)

I'm on 75.0 right now and mpris functionality does not seem to be enabled. Playing a video firefox will not show up on playerctl -l.

Works after toggling media.hardwaremediakeys.enabled.

Here is an interesting read: https://docs.google.com/document/d/1c4FivJpvAjjw9Uw-jn7X1UjGOoWkANXOulNyqDWs83w/edit#bookmark=id.pib0vhqfh6hi


tensorrt-8.6.1-cp311

After updating to latest vs-dpir vs-gmfss_fortuna doesn't work anymore when tensor is used.
Would be nice if you could update the project to work with tenorrt 8.6.1.
Thanks

No code change is required and the trt engine for both models can be built successfully here.

Okay, then it's probably something with my setup.
Using:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
import site
import os
import ctypes
# Adding torch dependencies to PATH
path = site.getsitepackages()[0]+'/torch_dependencies/bin/'
ctypes.windll.kernel32.SetDllDirectoryW(path)
path = path.replace('\\', '/')
os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]
os.environ["CUDA_MODULE_LOADING"] = "LAZY"
path = site.getsitepackages()[0]+'/torch_dependencies/'
os.environ["CUDA_PATH"] = path
# Loading Plugins
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'G:\TestClips&Co\files\test.avi'
# current color space: YUV420P8, bit depth: 8, resolution: 640x352, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: progressive
# Loading G:\TestClips&Co\files\test.avi using LWLibavSource
clip = core.lsmas.LWLibavSource(source="G:/TestClips&Co/files/test.avi", format="YUV420P8", stream_index=0, cache=0, fpsnum=25, prefer_hw=0)
# Setting detected color matrix (470bg).
clip = core.std.SetFrameProps(clip, _Matrix=5)
# Setting color transfer info (470bg), when it is not set
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
# Setting color primaries info (), when it is not set
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0) # progressive
from vsgmfss_fortuna import gmfss_fortuna as GMFSSfortuna
# adjusting color space from YUV420P8 to RGBH for vsGMFSSfortuna
clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, matrix_in_s="470bg", range_s="limited")
# adjusting frame count&rate with GMFSSfortuna
clip = GMFSSfortuna(clip, trt=True, trt_cache_path=r"J:\tmp", sc_threshold=0.150) # new fps: 50
# adjusting output color from: RGBH to YUV420P8 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited", dither_type="error_diffusion")
# set output frame rate to 50fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=50, fpsden=1)
# Output
clip.set_output()

now takes ~15min to start/create the 'model', this was faster before.
Thanks for looking into it.


Wrong response code after new resource is created

JSON API specification says:

If a POST request did not include a Client-Generated ID and the requested resource has been created successfully, the server MUST return a 201 Created status code.

But LaravelJsonApi\Laravel\Http\Controllers\Actions\Store::store() method returns a response with 200 status code.
https://github.com/laravel-json-api/laravel/blob/develop/src/Http/Controllers/Actions/Store.php#L74
So the following test fails with message Response status code [200] does not match expected 201 status code.:
$this->jsonApi()
    ->withData([
        'type' => 'tags',
        'attributes' => [
            'title' => 'foo',
        ],
    ])
    ->post('/api/v1/tags')
    ->assertCreated();

Is it a bug or is 200 status code returned specially for some reasons?
Thank you in advance.

The DataResponse class will detect if the model was created during the HTTP and use a 201 response if it is.
Is there a reason why in your code the model isn't recently created?

FYI the 201 Created response is tested and working in the implementation, so my initial reaction to this issue is there's something about your application that is generating the wrong response code.
The relevant section of our docs is here:
https://laraveljsonapi.io/docs/1.0/responses/#create-resource-response

@lindyhopchris I forgot to mention that I have non-eloquent model and a repository for it.
Seems I had to implement LaravelJsonApi\Contracts\Resources\Creatable interface on my model class.
https://github.com/laravel-json-api/core/blob/develop/src/Core/Resources/JsonApiResource.php#L202
Now it works as expected.
Thank you for the hint!

Great, glad you got it working!


Fix REPL handling of various parenthesis

Display '... ' as the prompt when encountering unpaired parens. Disable JS tab completion in the REPL.
ref #145

Not perfect, but better than the old solution.


Nested Errors received on bindings

Here are a couple of examples we've received

after calling redeem_swap:

Generic(message: "Generic: Failed to create invoice: Invalid amount: Receive amount must be more than 0")

after calling send_payment:

FrbAnyhowException(Generic: Generic: status: Unknown, message: "transport error", details: [], metadata: MetadataMap { headers: {} })

This may be because parse_cln_error_wrapped is failing or not applied to source of these cln errors, see it's documentation for a better idea. I'm only guessing.

We are experiencing the same error for some payments while testing one of our testers shared this screenshot

We have fixes in SDK v0.3.8 to help mitigate this Greenlight error. Can you update?

@erdemyerebasmaz it seems that the best solution here is to upgrade to flutter_rust_bridge v2. They added support structured errors.


Unable to launch chrome in headless on windows, when there is space in the path to executable

What is your Test Scenario?
Use Testcafe to launch chrome in headless, but failed
testcafe "path:`C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`:headless" sandbox.js --proxy localhost:3128 --screenshots screenshots
Using locally installed version of TestCafe.
ERROR Was unable to open the browser "path:`C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`:headless" due to error.

Error: The specified browser name is not valid!

What is the Current behavior?
It failed due to the browser name is not valid.
If I don't specify the 'headless', it's working well with the command:
testcafe "path:`C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`" sandbox.js --proxy localhost:3128 --screenshots screenshots

What is the Expected behavior?
Need it works with headless option in Windows when the command line has space in the path to executable.
Your Environment details:

testcafe version:                   0.23.2
node.js version:                    10.13.0
browser name and version: chrome v66
platform and version:          windows 7

The problem is connected not to the spaces in the path to a browser, but to a way the browser is run. Instead of the path:prefix, use a browser alias (chrome: in your case) and get rid of apostrophes. It works on my side with the following argument:
"chrome:C:\Program Files (x86)\Google\Chrome\Application\chrome.exe:headless"

@LavrovArtem ,
thanks for your reply, that makes it's working!
Happy to close this issue.


csctl publish uses dash instead of dot

/kind bug
What steps did you take and what happened:
git clone https://github.com/SovereignCloudStack/cluster-stacks
git clone https://github.com/SovereignCloudStack/csctl
cd csctl
make build
./csctl create -m hash -o .release ../cluster-stacks/providers/openstack/scs

What did you expect to happen:
When using csctl publish the asses are uploaded in the format e.g. openstack-scs-1-28-v0-sha.umng5ie but the operator expects openstack-scs-1-28-v0-sha-umng5ie.
If there are no reasons for using the dot, csctl should just create and publish them with a dash.
The problem probably already occurs when creating the assets with csctl create
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

csctl version: (use csctl version)
OS (e.g. from /etc/os-release):

The string used as tag is created in config.go. The offending part is read from the metadata.yaml file directly metada.Versions.ClusterStack Which already contains the dot.
My question would be if the string should only be adapted for use as tag or if it should be saved with dash instead of dot in the first place.


[Bug]: i  use puppeteer-core in  Chrome extension ,but is has some question: "urlToHttpOptions" is not exported by "__vite-browser-external", imported by<EMAIL_ADDRESS>

Minimal, reproducible example
import { onMessage } from "webext-bridge/devtools";
import puppeteer from 'puppeteer-core';
onMessage('init-pop',async () => {
    const browser = await puppeteer.launch();
    const page = await browser.newPage();
    await page.goto(chrome.runtime.getURL('popup/index.html'));
})

Error string
"urlToHttpOptions" is not exported by "__vite-browser-external", imported by<EMAIL_ADDRESS>Bug behavior

[ ] Flaky
[ ] PDF

Background
No response
Expectation
可以解决此问题
Reality
build is error
Puppeteer configuration file (if used)
{
  "name": "vue-chrome-ext",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc && vite build",
    "preview": "vite preview",
    "watch-build": "vite --watch build",
    "watch-json": "node watch.mjs"
  },
  "dependencies": {
    "naive-ui": "^2.37.3",
    "pinia": "^2.1.7",
    "puppeteer-core": "^21.10.0",
    "puppeteer-extension-transport": "^0.0.6",
    "vue": "^3.3.11",
    "webext-bridge": "^6.0.1"
  },
  "devDependencies": {
    "@types/node": "^20.11.6",
    "@vitejs/plugin-vue": "^4.5.2",
    "chrome-types": "^0.1.253",
    "less": "^4.2.0",
    "rollup-plugin-copy": "^3.5.0",
    "typescript": "^5.2.2",
    "vite": "^5.0.8",
    "vue-tsc": "^1.8.25"
  }
}

Puppeteer version
^21.10.0
Node version
v16.20.2
Package manager
npm
Package manager version
vite ^5.0.8
Operating system
Windows

Could you clarify what the Puppeteer issue is? It looks like a problem caused by vite?

Could you clarify what the Puppeteer issue is? It looks like a problem caused by vite?

yes，i have use puppeteer-extension-transport and<EMAIL_ADDRESS>in chrome extensions,but i think it is to old,if i can use most new?

Could you clarify what the Puppeteer issue is? It looks like a problem caused by vite?

hello,I have  some question.When I simulate a click to open a new page. After connecting to it, the page method obtained will not respond and it will stay stuck there.

I think puppeteer-extension-transport is not compatible with the latest Puppeteer versions. See discussion with https://github.com/puppeteer/puppeteer/issues/12022 If you encounter a bug, please file a new issue with a minimal reproducible example but note that we are not able to support old versions for that use case.


As a security analyst, I want password best practices to be implemented during user profile creation.

is this one good to close?


Global scope object should be window when using happy-dom

Describe the bug
One of my react hooks relies on a third party library (react-use) to function. That library references the raw global cancelAnimationFrame(), not window.cancelAnimationFrame(). This is perfectly valid JS DOM code, but it throws an error in vitest, because the global scope object doesn't contain cancelAnimationFrame() since it is not window.
I think that the global scope object should be window when using happy-dom (or jsdom, though I'm not using it, so I'm not sure if it's working already).
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-uwd1uk?file=test/basic.test.ts
System Info
System:
    OS: macOS 12.3.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 161.24 MB / 64.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node
    Yarn: 3.2.0 - ~/.nvm/versions/node/v14.19.0/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v14.19.0/bin/npm
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 101.0.4951.54
    Firefox: 99.0
    Safari: 15.4
  npmPackages:
    vitest: 0.10.4 => 0.10.4

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

It is impossible to do with the current architecture. Right now we are copying the Window object properties to global. If they are not copied, it could mean they are not returned from getOwnPropertyNames on window, or not in our jsdom-keys array.
PR welcome to add the key on OTHER_KEYS in jsdom-keys

@sheremet-va I'm happy to make a PR! Question though: Those two arrays are getting concatenated. What about looping over the enumerable props on happy-dom's (and jsdom's) Window? That way as they fill in API gaps themselves, we automatically get the benefits? As far as I can tell, happy-dom is still playing catch up—and there's always new DOM APIs coming. What do you think?

@sheremet-va I'm happy to make a PR! Question though: Those two arrays are getting concatenated. What about looping over the enumerable props on happy-dom's (and jsdom's) Window? That way as they fill in API gaps themselves, we automatically get the benefits? As far as I can tell, happy-dom is still playing catch up—and there's always new DOM APIs coming. What do you think?

We are already looping over them tho? See utils.

Ohh, you are! It looks like the issue is that happy-dom GlobalWindow extends Window, so Object.getOwnPropertyNames only detects a subset of the available props.
How about a PR that changes the loop logic to loop all properties with a custom omit list for special cases? Likely, there won't be any special cases.

I honestly don’t remember the exact reason. But some properties should not be moved to global space, as they will conflict with happy-dom. (setTimeout will go into infinite loop, for example)
I prefer if we just add a key right now. Also I’ve changed how global is populated in #1256, maybe I will invest more time with globals after we resolve react issues.


Improve test for tail package.

To improve the test coverage for tail package so we can capture issue like https://github.com/Stackdriver/stackdriver-prometheus-sidecar/issues/160 in the future.

@StevenYCChou can you describe the improvements that you have in mind?


fix replaceReducer with a store enhancer

This fixes #3482 (replaceReducer typing fails for store enhancers that update the state or extend the store) without requiring any change to the use of existing types (fully typing backwards compatible).
It adds 2 new templates to the generic for defining a Store, the extension to state, and the extension to the store definition.
By adding these 2 template parameters, we can mix them with the new reducer state from replaceReducer:
  replaceReducer<NewState = S, NewActions extends A = A>(
    nextReducer: Reducer<NewState, NewActions>
  ): Store<NewState & StateExt, NewActions, StateExt, Ext> & Ext

and return a store that has the correct typings for both state and the store extension.
To enable this functionality for store enhancers, it requires these 3 related changes:

the definition for createStore() needs to be augmented to pass these values to the return type Store. Since this is an overloaded function, the StoreCreator interface that defines createStore is updated for both of the overloads. See the note below about the default value for StateExt and Ext.
the StoreEnhancer type needs to re-define the first createStore parameter passed to it. It now uses, and thus requires the StateExt and Ext, otherwise it expects the returned store not to have these properties. The point of a store enhancer is to return the enhanced store from createStore. The only reason this didn't fail in the past was because we didn't pass the store enhancer extension values to createStore.
The returned Store from StoreEnhancer needs to have the StateExt and Ext extensions passed to it to enable the fix in replaceReducer.

One other crucial note:
By default, the StateExt is defined to be the initial state. Originally, the PR had {} as the default value for StateExt, but this will fail if the state is defined as an array, or any other non-object value. By using S, this allows the default case to work for all possible values of the state shape. Ext is defined as {} because the store definition mixed with {} cancels out the {}.
I also added a test for store enhancer with replaceReducer, to verify correctness of the new typing, and a test for a non-object store value to the store test.
UPDATE:
It turns out using StateExt = S causes replaceReducer to fail. Instead, I changed it to check the base type. If it extends an object, {} will be a no-op. Otherwise, we return the type S, which will be one of the primitive types. There is no easy way to guarantee the type won't interfere with replaceReducer, but the assumption I am making is that if someone's root reducer isn't returning an object, it probably isn't going to call replaceReducer either.

@timdorr can we merge this prior to #3561?

I don't agree with the approach here. It is totally valid to return a non-object from the reducer and to replace it with another reducer that does the same. We need to support that case, otherwise this is incorrectly typed.

I don't agree with the approach here. It is totally valid to return a non-object from the reducer and to replace it with another reducer that does the same. We need to support that case, otherwise this is incorrectly typed.

The basic approach of the PR is to explicitly pass in state and store extension to the definition of Store so that we can access them in replaceReducer. Is that what you disagree with? Or just the implementation detail of the limitation on what state extension can be? If it is the limitation on State extension, the obvious solution is to remove the extends clause altogether, and also BaseType. No need to scrap the whole PR for that :)

Yeah, my problem isn't with the state/store extensions, just the the objectification of the StateExt.

Yeah, my problem isn't with the state/store extensions, just the the objectification of the StateExt.

ok, let me see what I can wrangle

I don't agree with the approach here. It is totally valid to return a non-object from the reducer and to replace it with another reducer that does the same. We need to support that case, otherwise this is incorrectly typed.

OK, here is what I came up with.
Instead of trying to get a base type that we can always extend the state with, the state is only extended when there is an extension present. I did this by changing the default value of StateExt to never, and then adding a check to see if it is exactly never with:
export type ExtendState<State, Extension> = [Extension] extends [never]
  ? State
  : State & Extension

This works because a tuple with never as its only member only matches a tuple with never. So, if the user passes any extension to state, it will fail the test, and in that case we return the intersection of the state and its extension. If that fails, it's on the user, as they should only ever extend the state with something that can logically extend the state.


Introduced FieldType constructor on Witness

Just added simple addition to Witness syntax to allow arbitrary Union and Record Types. Modified Union tests to take benefits of this syntax.
//before
Union.`'a -> Int, 'b -> String, 'c–>Double`.T
// now
Witness.`'a`.->>[Int] :+:  Witness.`'a`.->>[Int]  :+: Witness.`'a`.->>[Int]  :+: CNil
// -- or --
Witness.`'a`.Field[Int] :+:  Witness.`'a`.Field[Int]  :+: Witness.`'a`.Field[Int]  :+: CNil

About the changes in the tests, wouldn't it be better to keep the former tests (of the Union.`...`.T syntax), and only add tests of the new syntax along with it?
E.g. for the first test, I'm thinking of having something like
type U = Union.`'i -> Int, 's -> String, 'b -> Boolean`.T // former type, kept as is

// only additions
type U0 = Witness.`'i`.Field[Int] :+: Witness.`'s`.Field[String] :+: Witness.`'b`.Field[Boolean] :+: CNil
// ensures the new syntax gives the same result as the former one
implicitly[U =:= U0]

@alexarchambault yeah perhaps you right for shorter types the previous syntax is more concise. I'll update this PR.

Sorry if I'm being a bit dense, I can't quite see the benefits of this change ... as far as the examples of the tests are concerned, they offer the same functionality but are more verbose. So I agree with @alexarchambault that the existing tests should stay, but I'd also like to see something that demonstrates something new.

@milessabin I'll just write a simple test that proves U =:= U0. As discussed on gitter, particular benefit of this is that we don't re-implement parser of the compiler (in backticks) and this allows us more complex contstruct and multi-line record/union types. It is not only beneficial in tests but anywhere where you need explicitly specify the type, for example in serialization/deserialization
Do I understand correctly that PR is ok, you just want to see different tests ?

I really want to see a test of at least one compelling example that this PR enables that wasn't possible previously.

@milessabin ok understood

@milessabin @alexarchambault Just pushed change. LMK if the demonstration is ok or I need to put more examples....

@milessabin not sure if you had chance to review this? If there is alternative to what this tries to achieve you like better, can you please share? Thanks.

Yes, sorry about the hold up ... LGTM ... many thanks ... merging :-)


feat(sql): extend sql username/password configuration

Overview
This PR extends the existing configuration for the SQL database in two ways:

Allows the SQL set-up jobs to run using a different username and password to that used by the GMS. This allows users to specify a login account with a more permissive set of permissions for the set-up jobs (which requires essentially owner perms) than the logic account used by the GMS (which only requires traditional read-write perms).
Allows specifying the login password for the SQL backings using a string value. This is specifically important for users interacting with vault manipulating webhooks to inject their vault-saved credentials, which doesn't pair nicely with using k8s secrets.

This PR is backwards compatible to existing configuration approach (importantly not changing any of the default values).
Example Use
The values file can now optionally contain something like this:
datahub-gms:
  sql:
    datasource:
      username: "User 1"
      password:
        value: "string that will be used by webhook"

and
postgresqlSetupJob:
  enabled: true
  username: "User 2"
  password:
    value: "a different string that will be used by webhook"

which will mean that the gms will be logged in as 'User 1' using a password injected by a webhook, and the set-up job will be logged in as 'User 2' using a different injected password.
Checklist

[✔] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[✔] Links to related issues (if applicable)
[✔ ] Tests for the changes have been added/updated (if applicable)
[✔] Docs related to the changes have been added/updated (if applicable)

Thanks Peter - ready for another review!

you need to bump the versions:

in the subchart
in the high level chart's reference to the subchart
highlevel chart version

thanks @CallumREdwards TIL about using () for nil testing.


Request: Allow to add method arguments to Metrics/MethodLength CountAsOne

Is your feature request related to a problem? Please describe.
I tend to write
method(
  param1, param2, param3
)

Instead of
method(
  param1,
  param2,
  param3
)

Which I think is clearer, just because I need to respect the method length limit.
Sometimes calling the method in one line isn't possible if I respect a 80 characters line width.
Describe the solution you'd like
I'd like to be able to specify that method calls can be counted as a single line. Something like:
Metrics/MethodLength:
  CountAsOne: ['arguments']

Makes sense to me.
@bbatsov what do you think on this change?

Sounds reasonable.


Node version

Hi;
Currently project expects node version 7.x.x Is there any reason for forcing node version? I tried to run project with current LTS release 8.11.1 and it seems to be working fine.
Thank you

Thanks! No it should be using the current node LTS, I think I just didn't get around to it.
I'll take a look, check it's fine and close this when it's resolved.


Enable sourcekitd to be built by default on Linux

The Linux build has a dependency on the libdispatch library,
which is needed by the various native libraries for sourcekitd.
On macOS, the dependency for libdispatch is satisfied directly through
the base OS, but on Linux no such dependency exists.
Modify this so that if the SourceKit library is built, and the
libdispatch library is already present, then we shell out to make
the libdispatch binary project when the SourceKit is built.
Issue: SR-1676

This replaces an earlier version which wasn't passing the correct (recently built)
clang, which is why it was failing on Ubuntu 14.04 previously. It now uses the same
logic as for the swift-build-script when building libdispatch, except that the
swift bindings aren't built. Libdispatch will be rebuilt in a subsequent stage with
the swift bindings.

Resolves SR-1676.

If possible this should e swift-ci tested against Ubuntu 14.04 as well as the normal 16.04, since it has had issues previously (see pull request #5903 and #6807)

Can someone kick off a CI test? The checks don't appear to have run.

@swift-ci Please smoke test

Great - this time it has built on Ubuntu 14.04 without problems :-)
https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/682/
Sent from my iPhone 📱

On 21 Jan 2017, at 05:11, Slava Pestov<EMAIL_ADDRESS>wrote:
Merged #6858.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Is it possible to merge this change to swift-3.1-branch?

At the moment, it just builds - but it's not part of the standard package generated by the CI mechanism. I'd like to get that fixed, after which it should be able to be battle tested and then made available in the swift-3.1-branch (assuming it's still open by then).
Note that you can build this yourself manually at the moment on swift-3.1; you have to build the project first with dispatch enabled, then run it a second time with the sourcekit enabled, so there's a manual way of doing it for now -- which will be necessary until it's in the downloaded nightlies.

Thank you for reply. I understand. I appreciate your efforts. 🙏

Note that you can build this yourself manually at the moment on swift-3.1;

Yeah, I know the building twice method, and have used sourcekit enabled swift docker images through https://github.com/norio-nomura/docker-sourcekit-builder/ on releases and snapshots.

@alblue Can we run the sourcekit tests on Linux also?


Deployment Hashes Need an Attempt Appended

We currently cheat on generating unique deployment hashes by reusing the commit hash, the problem is you can technically have multiple deployments of a single commit if you have GitHub Actions redo the action/deploy or eventually when you click the "redeploy" button on the UI. We should have an attempt number associated so that we don't blow away the logs of a previous attempt of the same commit being deployed (in my usage, I do this frequently, mainly while developing and a deploy fails).

Fixed via https://github.com/Justintime50/harvey/commit/9adbcce53fff98c85e1784e349096f46b3ca6584


Bus service improvement for encouraging upper-middle to upper class members of society to use buses rather than private vehicles

Problem:
There are too many private vehicles in the road which exceeds the capacity of the roads available in Dhaka City
Suggestion:
Talk with bus owners and city corporation to figure out what are the main bottlenecks for upgrading bus conditions and quality of service for the bus operators

Why not Dhakar Chaka is a good example. I know few gushanians who opted to buses leaving their bmw at garage.


MongoError

API stopped working
Throwing a MongoError

I restarted the application and the API is now working. I don't know if this was an issue with Heroku or my code, but I'll be looking into it to prevent this from happening in the future. Thanks again for catching this!

Awesome! No problem! Thanks you!
On Sat, Feb 23, 2019 at 4:06 PM Drew Thoennes<EMAIL_ADDRESS>wrote:

I restarted the application and the API is now working. I don't know if
this was an issue with Heroku or my code, but I'll be looking into it to
prevent this from happening in the future. Thanks again for catching this!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/drewthoennes/Bored-API/issues/5#issuecomment-466702258,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aq5WDx4iV-_vLojb1OsOtcxDOdBJhy3Cks5vQbtzgaJpZM4bOLPB
.

The Error come back. Can you fix it again, please?

@Phoenix404 Thanks for letting me know that it wasn't working! I just restarted it and it's back up now. This is an error with Heroku and mLab and thankfully not my code. I'll work on writing a script to check for these errors and restart when needed.

That would be great. Thanks man


entry is not defined in "Receiving Contract Events" example

In "Receiving Contract Events", we see this line:
 args = decoder.decode_arguments(event_inputs, entry['data'])
But entry is not defined. Are we supposed to replace this with another value?

According to a closed issue, the Readme is incorrect, in fact we need to loop over the logs to get the data.
The best I can do so far is this:
'''
events.each do |event|
transaction_id = event[:transactionHash]
transaction = client.eth_get_transaction_receipt(transaction_id)
transaction['result']['logs'].each do |log|
#   args = decoder.decode_arguments(event_inputs, entry['data'])
#   puts "#{transaction.inspect} with args: #{args}"
puts log['data']
end
end
''''
So I can get 'data' out of the logs, but I seem to be unable to get it into a string or number format, out of the binary. Has anyone had success getting data out of events yet with Ethereum.rb?

I started on some logic that decode events by name, although I haven't used it in production yet. Maybe you can gather some hints from it...
  class Logs
    ENCODER = Ethereum::Encoder.new
    DECODER = Ethereum::Decoder.new

    def self.get_logs(contract, event_name)
      raise ArgumentError, "invalid contract instance (#{contract.class.name})" unless contract.parent.is_a?(Ethereum::Contract)
      event_abi = contract.abi.find { |abi| abi['name'] == event_name.to_s }
      event_inputs = event_abi['inputs'].map { |input| OpenStruct.new(input) }
      sig = contract.parent.events.find { |e| e.name.to_s == event_name.to_s }.signature
      topics = [ENCODER.ensure_prefix(sig)]
      res = contract.parent.client.eth_get_logs(topics: topics, address: contract.address, fromBlock: '0x0', toBlock: 'latest')
      logs = res['result']
      logs.map do |log|
        decoded = {
          args: DECODER.decode_arguments(event_inputs, log['data']),
          contract: contract.parent.name,
          event: event_name
        }
        log.merge(decoded).deep_symbolize_keys
      end
    end

  end
end

+1

For those experiencing the need to fetch and parse events, I played a bit, cloned the project, and made this gem which supports this feature: https://github.com/shideneyu/EthereumClient#receiving-contract-events
Concretely you just need to follow the readme. Please note that the parser is here: https://github.com/shideneyu/EthereumClient/blob/master/lib/evm_client/event_log.rb
And it follows Web3JS specifications.


[Bug] If user logs off a profile user must be navigated to login page

Steps to reproduce :

Log into to an account 1
Open the same account in another tab of the same browser
Now log out of the account from one tab
Navigate to another tab and refresh
and observe

Observation:
It is observed that on refresh the user is navigated to 404 error page
Expectation:
user must be able navigated to Login page if the user is logged off

@prapullac This is expected behaviour. Instead of redirecting the user directly to the login page, we show the user that the page either doesn't exist or that they don't have permissions to access it. This is because the flow is equivalent to coming to the page with an invalid pageId. If we expose to the user which pageId is invalid & which one the user doesn't have access to, that's a security leak.
Closing this issue.


A display issue with the character "{".

There is a display issue with the character "{".
Please see
select regexp_split_to_array('ab,c', ',')

select regexp_split_to_array('a{b,c', ',')

The array shows that it will have an extra dimension, but it doesn't.

thank you for the report

Verified


[.NET Tutorial]: dotnet try asks for a .Net version 3.1.0 and I have 7.0.13, won´t run

URL
Running dotnet try, calls a  C:\Users\USER.dotnet\tools\dotnet-try.exe
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '3.1.0' (x64)
.NET location: C:\Program Files\dotnet\
Operating system
Windows 10
More information about your system
x 64
Description
I am trying to run the dotnet try 101 LINQ Samples tutorial. I eventually was able to install the dotnet tool which was "successfully installed". As recommended, I ran the dotnet -try which returned "You must install or update .Net to run this application. As reported by the dotnet try (not -try), I already have  7.0.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App].
So, what I am doing wrong? or somebody or something else?
dotnet --info
c:>dotnet --info
.NET SDK:
Version:   7.0.401
Commit:    eb26aacfec
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19045
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\7.0.401\
Host:
Version:      8.0.0-rc.2.23479.6
Architecture: x64
Commit:       0b25e38ad3
.NET SDKs installed:
2.1.4 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.522 [C:\Program Files\dotnet\sdk]
2.1.526 [C:\Program Files\dotnet\sdk]
2.1.700 [C:\Program Files\dotnet\sdk]
2.2.107 [C:\Program Files\dotnet\sdk]
2.2.300 [C:\Program Files\dotnet\sdk]
6.0.416 [C:\Program Files\dotnet\sdk]
7.0.310 [C:\Program Files\dotnet\sdk]
7.0.401 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.24 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-rc.2.23479.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.24 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0-rc.2.23479.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86   [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download

what do you expect from try and what recommendation are you refferingto @ychaix ?
AFAIK that is not valid command
dotnet --help

Usage: dotnet [host-options] [path-to-application]

path-to-application:
  The path to an application .dll file to execute.

host-options:
  --additionalprobingpath <path>  Path containing probing policy and assemblies to probe for.
  --depsfile <path>               Path to <application>.deps.json file.
  --runtimeconfig <path>          Path to <application>.runtimeconfig.json file.
  --fx-version <version>          Version of the installed Shared Framework to use to run the application.
  --roll-forward <value>          Roll forward to framework version (LatestPatch, Minor, LatestMinor, Major, LatestMajor, Disable)
  --additional-deps <path>        Path to additional deps.json file.
  --list-runtimes                 Display the installed runtimes
  --list-sdks                     Display the installed SDKs

Common Options:
  -h|--help                       Displays this help.
  --info                          Display .NET information.

The https://github.com/dotnet/try looks obsolete to me but also you would need to install the extension for it to work.

Hi Tomas:
This was a situation I ran into a while ago, and I probably created a new project with a little bit better understanding of what I was doing, and the error never cropped up again. Creating new solutions - for the first time- with WPF, C#, DBFirst, even as a desktop app, can be puzzling: so many things have to be understood and made to work together... But most of the time I now get my answers from either Bing or ChatGPT and the issues I get are more about debugging. I am 81 yrs old and learning C#, wpf and xaml is not a short-term prospect. So, I am experimenting with having Bing/ChatGPT writing my code, from my specifications, and then debug it with their help. It is slow, but it works.
However, I am glad you answered my question and happy to know that there is a human support.
Thanks.
Yves Chaix.

From: Tomas Weinfurt @.>
Sent: Thursday, January 4, 2024 13:18
To: dotnet/core @.>
Cc: ychaix @.>; Mention @.>
Subject: Re: [dotnet/core] [.NET Tutorial]: dotnet try asks for a .Net version 3.1.0 and I have 7.0.13, won´t run (Issue #8869)
what do you expect from try and what recommendation are you refferingto @ychaixhttps://github.com/ychaix ?
AFAIK that is not valid command
dotnet --help
Usage: dotnet [host-options] [path-to-application]
path-to-application:
The path to an application .dll file to execute.
host-options:
--additionalprobingpath   Path containing probing policy and assemblies to probe for.
--depsfile                Path to .deps.json file.
--runtimeconfig           Path to .runtimeconfig.json file.
--fx-version           Version of the installed Shared Framework to use to run the application.
--roll-forward           Roll forward to framework version (LatestPatch, Minor, LatestMinor, Major, LatestMajor, Disable)
--additional-deps         Path to additional deps.json file.
--list-runtimes                 Display the installed runtimes
--list-sdks                     Display the installed SDKs
Common Options:
-h|--help                       Displays this help.
--info                          Display .NET information.
The https://github.com/dotnet/try looks obsolete to me but also you would need to install the extension for it to work.
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/core/issues/8869#issuecomment-1877633409, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIRRUDY4NRWOCMAQED4WYNTYM3563AVCNFSM6AAAAAA6VK4XMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGYZTGNBQHE.
You are receiving this because you were mentioned.Message ID: @.***>


Dockerfile support

Adds: Docker as an IaC Provider.

Scan support for Dockerfile.
Support In file skip rules and resource prioritizing.

Result of scan with docker policies.
 % ./bin/terrascan scan -d integrations/atlantis -i docker -p /Users/suvarna/Desktop/docker  -o json
{
  "results": {
    "violations": [
      {
        "rule_name": "runWithSudo",
        "description": "Ensure to avoid RUN with sudo command",
        "rule_id": "AC_DOCKER_0007",
        "severity": "HIGH",
        "category": "Infrastructure Security",
        "resource_name": "Dockerfile",
        "resource_type": "docker_run",
        "file": "Dockerfile",
        "line": 5
      }
    ],
    "skipped_violations": null,
    "scan_summary": {
      "file/folder": "/Users/suvarna/go/src/github.com/rchanger/terrascan/pkg/iac-providers/docker/v1/testdata/valid-directory/Dockerfile",
      "iac_type": "docker",
      "scanned_at": "2021-07-30 16:52:38.000245 +0000 UTC",
      "policies_validated": 8,
      "violated_policies": 1,
      "low": 0,
      "medium": 0,
      "high": 1
    }
  }
}

Can we add a warning for when you specify the -i docker flag and no Dockerfiles were found?

Yes, added changes for warning

Please add a testfile demonstrating scan of a Dockerfile that includes multi-staging build
https://docs.docker.com/develop/develop-images/multistage-build/

This test case has been pushed, you can review that
Thanks


Get Syntax error in the watch.

If I put "x->val" in the watch, I get the error "Syntax error: x->val". This is the code:
#include <memory>
#include <vector>

using namespace std;

struct A {
  vector<int> val;
};

int main() {

  shared_ptr<A> x = make_shared<A>();
  x->val.resize(3, 0);
  return 0; // breakpoint here
}

I can use command to print it. By the way There's some extra new lines in the output, maybe some bugs?
p x->val
(std::vector<int, std::allocator<int> >) $0 = size=3 {
  [0] = 0
  [1] = 0
  [2] = 0
}
v x->val
(std::vector<int, std::allocator<int> >) x->val = size=3 {
  [0] = 0
  [1] = 0
  [2] = 0

}

https://github.com/vadimcn/codelldb/blob/1cef1e781e8adc6b071100e4f0342de181e29a4f/MANUAL.md#expressions

cool!


[smoke-tests] update pipeline to find samples that migrated to v2 workflow

I was working on an issue where some service bus samples weren't being ran as part of the smoke test pipeline and found out that most of our samples aren't being ran by the pipeline.
It looks like the script that detects samples isn't taking into account the new samples structure when we migrated to the v2 workflow, where the package major version number is part of the path to the sample.
This is in draft because I want to run the pipeline and am still figuring out what works/doesn't work.

We had logged #16656 for this issue and @JonathanCrd was looking into this.
Can the two of you sync on this?

Oh perfect. I'll close this PR for now then, should have looked harder for this issue!