Viewing a credential causes messages to become out of order

Viewing a revoked person credential causes the message sort order to be come out of order as the "offer" messages seems to have its timestamp updated. This process can be repeated, each time the "offer" will be updated and appear as the last message. This does not, as far as I can tell, impact a non-revoked Person credential. I don't know if it impacts all credentials that are revoked or just person credentials that are revoked.
https://github.com/bcgov/bc-wallet-mobile/assets/390891/075d86e8-51f7-43ca-99ab-f11553bc813d

Possibly caused by Credential Metadata being updated when revocation notice is seen on Credential Details screen, which in turn causes the updatedAt CredentialExchangeRecord property being changed (and thus the position of the CER changing in Chat)

Tested in the latest build, not happening anymore


Covert the PCAF notebook to python code that is linked to Airflow

Convert the code that PCAF sovereign emissions data notebook runs utilizing the federated OECD, World Bank, UNFCCC, Currency and PRIMAP data sources to python. It should create a derived data set using Data Mesh architecture components.  PCAF product will be made available in the Data Exchange.

see #352


fix(module:affix): fix affix not working in Safari

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[ ] No

Other information

This actually breaks affix behaviour in Chrome. It is now sometimes (try using it with Tabs, for example) displayed at the topmost left corner (0, 0). I had to rollback to ng-zorro-antd 8.3.0.
My Chrome version is: Version 79.0.279.0 (Official build) dev (64-bit)


Use all variables for autoequatalbe template for protocols; #trivial

This fixes the issue #297.
@ilyapuchka we've discussed to filter static variables in generated code for protocols, but we don't need to filter them 😄
For example:
protocol Foo {
  var one: Int { get }
  static var name: String { get }
}

We actually need to compare name in the == function. @ilyapuchka do you agree?

@ilyapuchka also for AutoHashable 😄


Add functionality for adding quiz images

By quiz images i mean the overall quiz image not images within the question, this can act as a thumbnail for the quiz ,both frontend and backend changes would be required.

I would like to work on this.

@akshatvg  can you mark this as Hacktober fest and assign?

@r0hnx I’ve assigned you to it.

@r0hnx ay updates??

@r0hnx I'm removing you as an assignee as there's been no updates for a long time. This issue is once again open for anyone to work upon. @jugaldb you can also finish it.

Cool, I'll work on it soon, if anyone wants it to be assigned to them before I do, please do so, I will let you know when I start. @akshatvg

@Sarthakbh321 and @jugaldb work on this.

@jugaldb and @Sarthakbh321 any updates?

Since this feature doesnt seem to be useful enough, closing this issue


[sc-118429] Don't convert empty monitor conditions back to API model

Our Pulumi provider is built using Pulumi's Terraform
bridge library. We ran into a bug specific to Pulumi where
updating the conditions of a monitor after it had been
created caused validation to fail before we even got
calling the API. The issue was trivially reproducible
in Pulumi, but non-reproducible with the same
configuration in Terraform. Upon debugging I found
that the code that converts monitor condition state
representation to the API model format was getting
an empty condition. This shouldn't happen if the
monitor was successfully applied in the past and
stored to state.
The fix I made was to ignore condition args that
are fully empty (no op, no value, no severity, etc)
I believe that this is a result of the
difference in how Terraform and Pulumi persist state.
sc-118429

This change is part of the following stack:

#95 ◀

Change managed by git-spice.

was not specific to provider. was actually a terraform plugin sdk issue. had to use our fork in pulumi provider


[Request] Adding user modes

Is it possible to add 'user modes' section to bot in chat.conf?

Thank you for your message, please can you provide more details, what user modes you are looking for? What IRC network are you using so I can test it?

Thank you for your message, please can you provide more details, what user modes you are looking for? What IRC network are you using so I can test it?

I'm using InspIRCd-3.15.0. (irc.hybridirc.com) - I was looking for +BDI user modes for the bot on every connect. Which is (B= Marks the user as a bot. D= Blocks private messages. I= Hides the channels the user is in from their /WHOIS response.).
The command is: /mode yournick +modes
Thanks.

Thanks for your message, I will look into this.


Suricata IPS error: Cannot allocate memory

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] The title contains the plugin to which this issue belongs

Describe the bug
Suricata service stops when in IPS mode
To Reproduce
Steps to reproduce the behavior:

Enable suricata with IPS mode
Pages take a long time to load
Service stops because of an error

Expected behavior
To work I guess xD
Relevant log files
Suricata logs:
2024-07-30T21:25:39	Error	suricata	 [102388] <Error> -- opening devname netmap:ix1-3/T failed: Cannot allocate memory
2024-07-30T21:23:47	Notice	suricata	 [102073] <Notice> -- This is Suricata version 7.0.6 RELEASE running in SYSTEM mode

Additional context
NIC: intel x540-t2
Environment
OPNsense 24.7_9 (amd64).
Link to Hardware probe: https://bsd-hardware.info/?probe=6de139ee97

usually a driver issue, can always try software mode (dev.netmap.admode note in https://docs.opnsense.org/manual/ips.html)

You mean only using IDS mode? Because it works in IDS.
Only with IPS that it errors.

It works with dev.netmap.admode set to 2.
But iirc that NIC supports netmap.

intel 500 is quite buggy in our experience


#35

Code adaptations to the code guidelines defined in elvis.config. These contain the following elvis_style definitions:
done:
line_length<= 100 chars,
no_tabs,
no_trailing_whitespace
macro_names,
macro_module_names,
operator_spaces: right:"," "++" "--" left: "++" "--"
used_ignored_variable,
no_behavior_info,
module_naming_convention regex => "^a-z(_SUITE)?$"
function_naming_convention regex => "^a-z$"
state_record_and_type,
no_spec_with_records
todo:
god_modules limit => 40  Problems in riak_core(101 functions) and riak_core_util(63 functions) these contain too many functions.
optional:
no_if_expression,
dont_repeat_yourself #{min_complexity => 10}
no_debug_call

I don't understand why build 21.3 is failing. It builds locally for me just fine. Does it work for you locally, too, @WoelkiM ?

@albsch I've checked everything again and from my side everything should fit.

Looks good, rebased to master and merging after PR is green.


Firefox version

Is there a Firefox version planed ?
Thanks !

@ivebencrazy just a question here? Will you work on UI a bit so that it fits Firefox for Android?

I don't have an android phone, so I probably won't want to put in the effort/money to do this personally.  Once I do have a FF version (I think I'll have time this weekend?), I'm def open to looking over PRs, though. I'll try to make my README more dev-oriented so it would be easier to help develop.

Having some issues with the Options page, due to FF not supporting web components as I am using them, and web component polyfills I've found not really doing what I need.
For the time being, I have added a contentScript-only version to Firefox Add-ons Store.  Meaning this version will only support adding emoji favicons to websites that don't have a favicon (aka no configurable options page).  I wanted to post that link here in case this functionality is good enough for your use-case, because I'll have to re-work the ui a bit to make the options page work, and I might not be done this weekend.
I don't want to have an official non-experimental release until I can make sure everything is working as I want it to.  But hopefully this is alright to use in the meantime.  😄
https://addons.mozilla.org/en-US/firefox/addon/favioli/

@ivebencrazy
just test out a bit: the answer shall be negative.

The last tab in awesome screen doesn't have favicon from webpage. But as you can see nothing happened after I finish loading it.

Hmm that's disappointing...  I'm also realizing that on this desktop FF version, I have to refresh the first time it loads for the favicon to update.  I need to figure out why that is happening on this Firefox version, and I wonder if it might just be that on mobile as well.  But if it's not that, I'm guessing that it's expecting some more information in about the favicon in the html.  Hopefully the api allows us to edit favicon on mobile though; I haven't tried that at all.
I'm going on vacation on Tuesday, and I'm trying to get the FF desktop version done before then. I'll take a closer look at mobile version when I get back end of next week, though.  Probably will make a new issue to keep track of that, though.  I would like this thread to be about FF desktop only if that's ok, so we can separate the issues, and so I don't blow up JBertaux's notification anymore haha 👍

Full-featured Firefox build will be up later today. :+1:
https://addons.mozilla.org/en-US/firefox/addon/favioli/

@ivebencrazy I think you just need to reopen this.
As my test, the replacement doesn't happen on first load. It only comes when you load a domain for a second time.
Or shall I open a new issue?

Please create a new issue for this.  Although I've seen the issue you're referring to, and I'm not certain I can fix this without refreshing the page or affecting page load.  Favioli is correctly setting the favicon correctly, but firefox isn't re-indexing it on that change.


Directory and Files Translation

Included directory and file translation

Thanks for the pull request, @Douglasproglima ! The refactoring branch is, actually, outdated and already merged to master, so please retarget your pull-request to master instead. ;)


Dark Soularium JetPlate uncraftable

Minecraft Version: 1.10.2
Simply Jetpacks Version: <IP_ADDRESS>
EnderIO version: <IP_ADDRESS>_beta
All lower tiers appear craftable, but there is no recipe for the Dark Soularium JetPlate
Dark Soularium Ingot & Thruster are craftable.

I realized later that none of the capacitor packs are there, if this is just NYI then you can close this, if they are supposed to be there, then its a bug.

Any update on this? Just got around to wanting to upgrade from Tier 4 and found I can't.

Uhm, it seems this is an issue in Project Ozone Lite, still, not sure why. NEI clicking on the + does put it in the right places, but it does not appear to be craftable (no output)


Toastify stops working when routing

When routing inside the vue3 app, the toasts dissapear with the page and if the new page triggers a new toast, it won't be shown. I have set the clearOnUrlChange: true but this doesn't trigger (fast enough?). I am working with page transitions in vue3. Is there something I'm missing?

clearOnUrlChange default is true，means auto clear all toast when route/url change. your scene need set clearOnUrlChange to false.

@jerrywu001  you're right, I'm so dumb... 🤦🏼♂


Use of Bikeshed for non-W3C organization

The Alliance for Open Media (AOM)  uses Bikeshed for some of its specifications, and it's working great, thank you. See some examples: AV1-ISOBMFF, AVIF.
However, the only available statuses are in the "Anyone" category as indicated in the documentation. They don't match the possible statuses of the AOM's documents, which are derived from the Joint Development Foundation process. This means that when the spec gets final, I have to edit the generated HTML to remove the "Living Standard" status to something more formal (version number).
Would it be possible to add an AOM or JDF group, with the following status: "Pre-Draft", "Draft Deliverable", "Final Deliverable", "Published Specification"?
I would be happy to know if other hooks exist for external organizations to customize/remove W3C-specific behavior (e.g. use of ' for CSS properties).

Absolutely. What short names do you want for those statuses? And what's your group name, so we can add some boilerplate for you? (You'll need to give me the boilerplate files.)

I discussed it within AOM and we'd like the following short names and statutes:

PD - "Pre-Draft"
WGD - "AOM Working Group Draft"
WGA - "AOM Working Group Approved Draft"
FD - "AOM Final Deliverable"
The group name should AOM.
For the boilerplate, do you have an example?

You can turn the various shorthands on or off with Markup Shorthands

Nice. Thanks. I will try that.

@tabatkins how can we progress on the use of Bikeshed for AOM?


1864 do not configure trace for async mongodb

Related to #1864

@beatfreaker Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@beatfreaker Thank you for signing the Contributor License Agreement!

@marcingrzejszczak Do you happen to know if we have a similar situation that we have tests for?
I think this can be tested with a sample, but I'm not sure it worth it.

You can use the ApplicationContextRunner and hide the packages manually
ApplicationContextRunner contextRunner = new ApplicationContextRunner()
			.withClassLoader(new FilteredClassLoader("fqn.of.package.to.hide"))

@marcingrzejszczak we want to check the reverse scenario, where if com.mongodb.reactivestreams.client.MongoClient  this class is present in classpath, we do not want to configure the Bean.
And as we do not have mongodb-driver-reactivestreams in dependency we cannot test that scenario.
So is it wort to test it by add it in spring-cloud-samples/sleuth-issues

You can add that dependency in test scope, that's not a problem IMO.


fix(statefultable): customToolbarContent element props unaffected

Closes #1551
Summary
The props of the elements placed in the customToolbarContent are not updated after the initial render since they are preserved by the state of the StatefulTable. That means that the App cannot update the customToolbarContent elements when the state of the app changes.
Change List (commits, features, bugs, etc)

Removed the customToolbarContent from the state management in StatefulTable
Added unit tests

Acceptance Test (how to verify the PR)

Verify that stories with customToolbarContent are still working

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Some fixes

Added pragma once in all headers, for prevent multiple includes of same header file
Added functions change_extension and is_directory
Prevent some segment faults, by handling if the request file is a regular file
Fixed some memory leaks.

cool. thanks for the fixes. will merge


Move EngSys scripts and tools into the eng folder

There are currently yaml files and various scripts at the root of the repo.  These should be moved into the Eng folder.
All of these moves should be coordinated with mgmt sdk to avoid disruption to their process.
In the root folder of repo:

[ ] Move azure-pipelines.yml into eng folder
[ ] Move tools folder under eng
[ ] Move all *.sh files to eng folder
[ ] Move all *.json files to eng folder

Yeah rungas.sh can be deleted.

Despite we already have a swagger_to_sdk_config.json in eng directory, but one of them is for track 1 SDK (the one in root directory), and the other is for track 2 SDK. Therefore we need to keep them both.
We have some external reference for these two configurations here, we need to change those accordingly after we have done the refactor.

Looking at other repos, I realize this is not an uncommon pattern, so I don't see a need right now to delete the root swagger config for consistency reasons right now.

We move the internal module to eng/tools and change all the references accordingly. Replace it using relative path to make sure everything could work
We move all the tools to eng/tools. In this step we do not need to do any code change, just remove the replace clause and use the new internal module.

Sounds good. I have a PR up for step 1 at #15460.


Openshift details page blows up with manifest react error in the console

Describe the bug
Ingested a large amount of OCP data attempted to load openshift details page
To Reproduce
Steps to reproduce the behavior:

Ingest OCP data
Go to openshift details page
See console errors

Expected behavior
Page should load correctly
Screenshots

Desktop (please complete the following information):

OS: Fedora
Browser: Firefox
Version: 72

Additional context
Testing against CI environment also error is currently failing on the insights-qa account for a quick reproducer.

Oh boy, please don't be a webpack problem. :scream_cat:

I think the source of the error is in these lines:
{this.getTagKeyOptions().map(option =>
  this.getTagValueSelect(option)
)}

@dlabrecq is there a way to avoid the loop over tag key options?

This may be a problem with how the PatternFly requires a unique DataToolbarFilter component to represent the chip values for each tag key. If there are 100 tags, there would 100 DataToolbarFilter components.

If that so, do we need to open a ticket in pf4-react and set it as blocker (unless 100 tag keys is not a common thing)?

Yes, I created https://github.com/patternfly/patternfly-react/issues/3770
In the mean time, we may have to limit this to the first 25 tags or so?

Verified


App name fix

[x] I have reviewed the Contributing Guidelines
[x] I agree to license my contributions under the same license as in this repository
[x] I have verified that the tests pass

Description
Address issue #538 and some errors in player/recorders
add a test case to check the player errors.

Confirmed that the bug with handling the name argument for helics_app is fixed.


Add build constraints for linux/non-linux systems

This PR adds build constraints on files that contain Linux-specific logic or constants.
This allows running tests locally such as controller and manager on non-Linux systems.

@RonFed nit but looks like a couple of these new files are missing newlines at the end fyi


Spelling mistakes corrected

Spelling mistakes corrected:
iniialized -> initialized
langhchain -> langchain

@IshitaChauhanShortHillsAI, Please resolve your conflicts


FunctionBody returns BlockStatmentNode instead of naked array.

Changed FunctionBody to insert a new BlockStatementNode into the AST, as body for FunctionDeclarationNode and FunctionExpressionNode. Reason for this is to maximize compatibility with escodegen, as it expects the node when printing out a function.
It's my opinion that compatibility with escodegen, or any of the other predominant code generators for that matter, is important in making this grammar a valuable tool for those attempting to build supersets of the language.

A lot has changed since this project was originally created. I don't think ecmascript.js should be part of the repo. It should be created at npm publish time.


Add schemas to crds

Closes #117
This pull request generates kapp-controller's CRDs with schemas using controller-gen. Using marker comments, the CRDs are generated from kapp-controller's types under pkg/apis.
In addition to generating the CRD yaml, controller-gen also generates the schema for the CRD. Using marker comments, it can be specified if fields are optional or required. These marker comments also allow for validations. Currently, the only validations I have added are for the App spec, which will require at least 1 item for fetch, template, and deploy steps: // +kubebuilder:validation:MinItems=1. Open to any thoughts on what should be optional versus required and additional validations.
To regenerate the CRDs, the gen-crds.sh script can be run to update the CRD yaml and the files will be place under the config folder.
Some to TODOs to consider for the future:

We should provide descriptions for each property of the CRDs by providing a comment over each field
Consider additional validation to be added to the schema

im guessing we need to update this PR because https://github.com/vmware-tanzu/carvel-kapp-controller/pull/178 was merged.

@danielhelfand do we need to update this PR with changes for new Package CR fields?

@danielhelfand do we need to update this PR with changes for new Package CR fields?

It looks like controller-gen wasn't generating the InternalPackage CRD correctly cause of how the type was defined. It was as follows:
type InternalPackage packages.Package

But changed to as follows to get it working:
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
type InternalPackage struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec packages.PackageSpec `json:"spec"`
	// +optional
	Status packages.PackageStatus `json:"status,omitempty"`
}


Location Tool: Show Only Active Organizations

Bug
On Location tool, only active organizations should appear in the organization search bar. Only organizations should appear where organization_organizations.is_active = true
To Reproduce
Steps to reproduce the behavior:

Go to /locations/new
Select Location Type = "Primary Response Area."
A list of organization appears.
Search for "Team Rubicon."
Several Team Rubicons appear. Most of these are not active.

Expected behavior
Only "Team Rubicon USA" should appear.
Screenshots

Desktop (please complete the following information):

Win 10, FF 72

Approved.


Missing/Incorrect texture on planted willow sapling

I've noticed this for a while, the leaf texture on the planted willow sapling is blue. Any ideas?

This seems pretty close to vanilla behaviour. I would guess it appears slightly blue due to smooth normals and HD's environmental lighting.


add-space dry run commands not working through pipeline

I try to run cf-mgmt add-space --peek through concourse pipeline but the pipeline is creating space without dry run. Where as add-org dry run working fine. I am using latest repo.

name: update-spaces
plan:

get: config-repo
passed:

create-spaces
trigger: true

task: update-spaces
file: config-repo/ci/tasks/cf-mgmt.yml
params:
CF_MGMT_COMMAND: update-spaces --peek

2018/06/29 17:22:29 I0629 17:22:29.767626 14 spaces.go:281] Creating [pcf_test5] space in [Gowridhar_test2] org

name: create-orgs
plan:

get: config-repo
trigger: true
task: create-orgs
file: config-repo/ci/tasks/cf-mgmt.yml
params:
CF_MGMT_COMMAND: create-orgs --peek

2018/06/29 17:36:17 I0629 17:36:17.027384 13 orgs.go:111] Creating [Gowridhar_test3] org
2018/06/29 17:36:17 I0629 17:36:17.027482 13 cloudcontroller.go:310] [dry-run]: create org Gowridhar_test3

This issue has been addressed in the develop branch, can you validate by using the following configuration in you cf-mgmt.yml to use the docker image develop tag
---
platform: linux

image_resource:
  type: docker-image
  source: {repository: pivotalservices/cf-mgmt, tag: "develop"}

inputs:
  - name: config-repo

run:
  path: config-repo/ci/tasks/cf-mgmt.sh

may i know when this will be merged to master?

No firm date as just working through last few things to merge this into master.  Hopefully in the next couple of weeks.

General Question:
When i use dry-run mode if a org/space is not created as it is dry running, some of other tasks are failing because the org/space is not there. Any idea how this senario can be handled. Like in dry run if something is not there just say as this depend on that ORR which is in dry run instead of error?
2018/06/29 18:37:09 I0629 18:37:09.847508 13 orgs.go:148] [dry-run]: create org Gowridhar_test3
update-org-quotas
error: org "Gowridhar_test3" not found

I made a few changes to the develop branch/image so this should be able to be ran with dry-run without errors.  Please let me know if you have issues

after running i still see couple error on below tabs
update-org-users
error: error requesting org managers: cfclient: error (30003): CF-OrganizationNotFound
create-org-private-domains
error: Error requesting domains: cfclient: error (30003): CF-OrganizationNotFound

Any update on my comment above?

I pushed an updated to develop yesterday.  Try it out as was able to run with —peek without issues.

i still see in one location error:
create-org-private-domains
error: Error requesting domains: cfclient: error (30003): CF-OrganizationNotFound
am i doing anything wrong?

Let me know if you are still having issues @gmadu123 otherwise will close this issue

May i know this code moved to Master yet?

Doing some final validation for what is in develop, plan to release/merge this into master within next week or so.

May i know are these changes went to master, so i can change my pointer from develop to master?

@gmadu123 Sorry this has taken longer than anticipated.  Have you been running off the branch for all features not just dry-run?   This was such a large refactoring of the code base that I am wanting to ensure we haven't had an regressions before merging into master.  Any feedback on how it's working would be appreciated.

Yes, I am running develop brach for all features. Hence looking to change to Master. So far all are working fine with develop branch. i saw one scanrio where dry-run security group failed due to security group not exist.
error: Security group [MAS] does not exist

This has been merged into master and released as latest on dockerhub


How to create footnote

Hi,
i want to create footnote..
can you advice me how to create footnote?

@lignar-fazmin At present, html-to-docx doesnt support footnotes. Please feel free to raise a PR if thats something you have bandwidth to work on, since I unfortunately dont at present, I will try my best to QA and merge it.


[CP] Fullscreen route transition broken on 3.27.0(stable)

Issue Link
https://github.com/flutter/flutter/issues/159289
Target
stable
Cherry pick PR Link
https://github.com/flutter/flutter/pull/159312
Changelog Description
Fixing the broken fullscreen route transition in version 3.27.0.
Impacted Users
all Flutter devs
Impact Description
The broken fullscreen route transition causes significant visual jank during navigation transitions, particularly when opening or closing fullscreen routes. This impacts both the user experience and the perceived quality of the app in production. When use fullscreen routes, users may see unintended animations, leading to confusion or dissatisfaction.
Workaround
I have not workaround
Risk
low
Test Coverage
yes
Validation Steps
No response

sorry, duplicates issue #160420


Option to make webpack middleware to be synchronous?

Is there a way to run webpack middleware run synchronously and complete its action before next middleware runs.
Problem I am having is that page renders first and I am dynamically reading main.js file from wwwroot folder inside angular 2/webpack based project. e.g this is the dynamic main.js file reference:
<script<EMAIL_ADDRESS>asp-append-version="true"></script>
But the file isn't created in wwwroot folder yet. After few seconds, file is created and refreshing the page picks that file up.

Have you thought about using webpack to generate index.chtml file instead of using ViewBag?

@maxisam Is is possible? Not sure.
index.cshtml is server generated file and we have the ability to manipulate this file or pass data from .net server side. in my case e.g I am reading file from physical location and injecting that name dynamically from server side. Another reason of using cshtm is to leverage server side rendering offered Asp.Net core javascript services package.
Not sure if this is applicable in my scenario.

What I meant was not really generate the whole file. Just inject the scripts and css

I think I tried in the past to inject files in cshtml, but the html-plugin for webpack doesn't work with cshtml I guess.

yeah, I just realized it. But then I came out another idea. Generate partial html files, only scripts or styles. Then use .net's ability to include those files. It seems working so far.

@maxisam  What do you mean by partial html files? have you got an example somewhere?

create a file called scripts.html with only the following code.
<% for (key in htmlWebpackPlugin.files.js) { %>
    <script src="<%= htmlWebpackPlugin.files.js[key] %>" type="text/javascript"></script>
<% } %>

html webpack pluging will generate a html file
use Response.WriteFile or @RenderPage to inject the file content to your asp.net page.

@maxisam thats smart, back to the question. :)
How will it resolve postpond index file rendering until webpack dev middleware creates js/css assets on destination to be picked up by index file?

Thanks, I got this idea after pulling couple of my hears.
As for your question, I don't have a good answer. But by doing this, we can use other way or 2 webpack process to refresh the page by monitoring files. However, we lose the ability to do HMR.

I'm not sure I understand the request here, because ASP.NET middleware entries already are "synchronous" in the sense that the middleware pipeline runs in series (each middleware entry completes before handing over control to the next item). They are not "synchronous" in the sense of blocking a thread, but I don't think that's what you're asking for anyway.
If you're able to describe your requirements more precisely we can certainly consider it. In the meantime I'll close this because it's unclear that there's anything for us to do. Hope that's OK!

Hi Steve, Thanks for the response. I will try to explain this problem as much as I can here.
I am loading main.js bundle for production dynamically in my Index.cshtml like this:

Code which makes main.js file available on ViewBag is here:
  // Becasue for production this is hashed chunk so has changes on each production build
        public string GetMainDotJs()
        {
            var basePath = _env.WebRootPath + "//dist//";
            var info = new System.IO.DirectoryInfo(basePath);
            var file = info.GetFiles().Where(f => f.Name.StartsWith("main.") && !f.Name.EndsWith("bundle.map")).FirstOrDefault();

            return file.Name;

       }

The reason I have to dynamically load main.js file is that I am using angular2  lazy loading in my project for production. All the bundles created have got chunkhash in them for production, so we don't know what will be file name when webpack creates these bundle in prod mode. Starter project has only one main bundle for the whole app, so we can leverage asp.net core cache busing through asp-append-version="true" as an alternative, but this approach doesn't work in lazy loading scenario.
Another option to consider could be if there is a plugin like (html-webpack-plugin) which can manipulate the index file and inject dynamically created bundles for prod. Since we aren't using index.html, rather index.cshtml, this plugin doesn't seem to be an option.
Now, the approach which I am using to read main file from wwwroot/dist folder and use that in index.cshtml works, but when I launch the applicaiton, webpack hasn't build the main.js file I get this error:

Here is the same error in console:
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 1036.0402ms 500 text/html; charset=utf-8
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 1036.0402ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.NodeServices[0]
      DLL: Bundling done, all DLLs are valid.
Microsoft.AspNetCore.NodeServices:Information: DLL: Bundling done, all DLLs are valid.
info: Microsoft.AspNetCore.NodeServices[0]
      webpack building...
Microsoft.AspNetCore.NodeServices:Information: webpack building...
info: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Using<EMAIL_ADDRESS>from typescript and "tsconfig.json" from c:\Users\asahi\AspNetCoreSpa/tsconfig.json (in a forked process).
Microsoft.AspNetCore.NodeServices:Information:
[at-loader] Using<EMAIL_ADDRESS>from typescript and "tsconfig.json" from c:\Users\asahi\AspNetCoreSpa/tsconfig.json (in a forked process).

info: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Checking started in a separate process...
Microsoft.AspNetCore.NodeServices:Information: [at-loader] Checking started in a separate process...
info: Microsoft.AspNetCore.NodeServices[0]
      webpack built 8a46a7226f595e65858f in 22923ms
Microsoft.AspNetCore.NodeServices:Information: webpack built 8a46a7226f595e65858f in 22923ms
info: Microsoft.AspNetCore.NodeServices[0]
      DLL: Checking if DLLs are valid.
Microsoft.AspNetCore.NodeServices:Information: DLL: Checking if DLLs are valid.
info: Microsoft.AspNetCore.NodeServices[0]
      DLL: All DLLs are valid.
Microsoft.AspNetCore.NodeServices:Information: DLL: All DLLs are valid.
info: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Ok, 2.248 sec.
Microsoft.AspNetCore.NodeServices:Information: [at-loader] Ok, 2.248 sec.
info: Microsoft.AspNetCore.NodeServices[0]
      webpack building...
Microsoft.AspNetCore.NodeServices:Information: webpack building...
info: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Checking started in a separate process...
Microsoft.AspNetCore.NodeServices:Information: [at-loader] Checking started in a separate process...
info: Microsoft.AspNetCore.NodeServices[0]
      [at-loader] Ok, 0.004 sec.
Microsoft.AspNetCore.NodeServices:Information: [at-loader] Ok, 0.004 sec.
info: Microsoft.AspNetCore.NodeServices[0]
      webpack built 515ae4ba9fff57d663bd in 2509ms
Microsoft.AspNetCore.NodeServices:Information: webpack built 515ae4ba9fff57d663bd in 2509ms

As you can see in above error, index page fails to load as file isn't available, however after 3-4~ seconds files are created by webpack and if I referesh the page, everything works.
There is one difference compared to starter template i.e I am using awesome-typescript-loader, which forks the node process for typechecking as explained on their website.
As you explained above the webpack middleware is synchronous, but how come it lets the following middle runs where as webpack hasn't finished creating files.

As you explained above the webpack middleware is synchronous, but how come it lets the following middle runs where as webpack hasn't finished creating files.

Webpack dev middleware intercepts requests for the .js files themselves, and holds them until the Webpack compiler supplies the contents for the response. The only reason your approach isn't working with that is that you're trying to locate the file on disk from server-side code, rather than making an HTTP request for the file.

I am loading main.js bundle for production dynamically

For production? Perhaps your issue only occurs in development, but just for clarity, webpack dev middleware should only be used in development, and not enabled in production. The default templates here only enable it in development.
As a fix for your issue, you could change your GetMainDotJs .NET code so that, before making the GetFiles call, it makes an HTTP request for your main.js file and waits for the response. Since that response would wait until Webpack is done, by the time the code continues inside your GetMainDotJs code, the files will be on disk. This should not affect performance in production, because you shouldn't run that code (or Webpack dev middleware at all) in production :) Also I'm not sure there's any way that SpaServices could cover it in any more generally-applicable way. Hope this solution works for you!

Thanks Steve.
Sorry for the confusion. I meant currently main.js file is bing loaded dynamically both for dev and prod. And you are right the problem is only in Dev.
Let me try the solution you recommend.

Spot On!!! Solution worked, exactly what I need for webpack dev middleware to complete first.
Thanks Steve.


Challenge45(Basic CSS: Adjust the Padding of an Element) does not display code in web form

Challenge Name

http://beta.freecodecamp.com/en/challenges/basic-css/adjust-the-padding-of-an-element
Issue Description

Completed challenge before 45, then boxes do not appear in 45 such as the red-box.
Browser Information

Laptop, Windows 10, Google Chrome

Browser Name, Version: Google Chrome
Operating System: Windows
Mobile, Desktop, or Tablet:

Your Code

margin

padding

padding

Screenshot

Challenge45

Challenges do not have a no. These are your brownie scores. You get them for solving challenges and when someone thanks you in the chat.

Have you tried refresh - reset and submitting the solution?


Issue: Creating a new lobby thinks other online users (in other rooms) are present as well

Due to this the empty lobby UI wont show up.

Possible solution:
When saving all online users to an object, section them in seperate room objects?

ahhh yes, I only save users in the object I sent back via 'ROOM_USERS'! Would be better to group them in separate room objects as you mentioned

should be fixed now!


Question: How to modify the loop?

What would be the best approach to modify the loop with filters in an archive page?
Let's say I have a "boats" archive like this:

I'm solving it by modifying global $wp_query inside a function called wp_query() which gets called along the way.  like this:
namespace App\Controllers;

use Sober\Controller\Controller;

class ArchiveBoat extends Controller {

  public function wp_query() {

    $meta_query = [
      'relation' => 'and',
    ];
    // price from
    if (!empty($_GET['price-from'])) {
      $meta_query[] = [
        [
          'key'     => 'price',
          'value'   => $_GET['price-from'],
          'compare' => '>=',
        ],
      ];
    }
    // price to
    if (!empty($_GET['price-to'])) {
      $meta_query[] = [
        [
          'key'     => 'price',
          'value'   => $_GET['price-from'],
          'compare' => '<=',
        ],
      ];
    }

    $args = [
      'post_type'      => 'boat',
      'posts_per_page' => 9,
      'paged'          => get_query_var('paged') ? get_query_var('paged') : 1, // global pagination
      'meta_query'     => $meta_query,
      // order by meta
      'meta_key'       => 'price',
      'orderby'        => 'meta_value',
      'order'          => 'ASC',
    ];

    Global $wp_query;
    $wp_query = new \WP_Query($args);
    // echo $wp_query->request;
    return $wp_query;

  }

I can't find another way to hook into the loop arguments.
Is this the best approach?
how do you do it?
Is it better to use __before() function? or __construct()?

I think this is best handled by modifying the query before it is executed. The pre_get_posts hook should have you covered. Have a look at https://wpshout.com/practical-uses-pre_get_posts/

@slackday yeah, I thought about that, but then I thought:
If I do a pre_get_posts then I'd have to apply some conditions like is_archive && get_post_type=="boat" and that is exactly what the controller does for us.
What's your strategy to not get your code all scattered around? let's say you have 10 custom post types archives with filters. Where would you put your code and how?

You are correct you have to do your own checks to determine when to modify your query. I usually create a separate file usually called pre-get-posts.php and include it in functions. This way at least I have all code that modifies the query in one place. Even if the controller follows WordPress templating I think your problem is outside of the scope of what it does. I prefer to keep to only to handle data to template files.
Here is an example pre-get-posts.php to get you started
<?php

namespace App;

add_filter('pre_get_posts', function ($query) {
  if (is_admin() || !$query->is_main_query()) {
    return;
  }

  if ($query->is_post_type_archive('calendar_post') || is_tax('calendar_category')) {
    $current_date = date('Ymd');

    $query->set('posts_per_page', -1);
    $query->set('meta_key', 'date_start');
    $query->set('orderby', 'meta_value');
    $query->set('order', 'ASC');
    $query->set('meta_query', array(
      'relation' => 'OR',
      array(
        'key' => 'date_start',
        'value' => $current_date,
        'compare' => '>=',
        'type' => 'NUMERIC',
      ),
      array(
        'key' => 'date_end',
        'value' => $current_date,
        'compare' => '>=',
        'type' => 'NUMERIC',
      ),
    ));
  }

  return $query;
});

Awesome! Thanks man!


Xvnc service fails to start

We've been using this baseimage successfully until today. When trying to run the container, (including the unmodified base-image), I now get the following error (full log)
$ docker run --rm jlesage/baseimage-gui:alpine-3.19-v4.5.3
[init        ] container is starting...
...
[supervisor  ] starting services...
[supervisor  ] starting service 'xvnc'...
[supervisor  ] service 'xvnc' failed to be started: not ready after 5000 msec, giving up.
[supervisor  ] stopping service 'xvnc'...
[supervisor  ] service 'xvnc' exited (got signal SIGKILL).
[finish      ] executing container finish scripts...
[finish      ] all container finish scripts executed.
dsorensen@C01133:~/iris/cassy$

Running with -e "CONTAINER_DEBUG=1" doesn't provide any additional information (no Xvnc logs). I can't find a way to get Xvnc logs to diagnose the issue.
It doesn't look like the image has been updated recently. Maybe a host OS issue? This is running on Ubunu 22.04.4, 6.5.0-27-generic.

It looks like Xvnc is being flagged as a malicious file and blocked by antivirus software.


CSC: Mandatory controlled CCs - CRC16 CC

[ ] A controlling node SHOULD use CRC-16 encapsulation to communicate with a supporting node when no security encapsulation is used and the communication speed is lower than 100 kbits/s.
[x] A controlling node MUST support the CRC-16 Command Class and correctly handle received commands encapsulated with CRC-16.
[x] A controlling node MUST use CRC-16 encapsulation to return a response to a command if the request was received using CRC-16 encapsulation (aka “answer-as-asked”).

the requirements are fulfilled


Provide JS instructions to send traces to a collector

fixes https://github.com/open-telemetry/opentelemetry.io/issues/703
I suppose this doesn't tell you how to send metrics data to a collector, so I'm happy to figure that out and do it too if it's needed, but since metrics are still in development I wonder if it's better to just hold off until they stabilize in the SDK.

/reviewer @open-telemetry/javascript-approvers

Yeah, I'd wait until metrics stabilize and then we can get metrics export instructions going.


did everything perfect, got my old map but no levels or access to base

For what its' worth @ogvatican
Getting the map is the result I got when I did NOT run this script, and just copied sav files around renaming them to match the new ID of my player on my local machine.
I suspect you haven't run the script at all.

Stop Server
Download server files + include your oldplayerfile (001)
Run script again
ONLY UPLOAD THE NEW PLAYER FILE and nothing else
Start server

I'm having this exact issue. I ran the script, got the output that everything has been converted. I can also see that my player save has been converted to the New GUID. The file size changes from 3KB to 6KB. When I re-upload the contents, then restart my server and connect I'm forced to make a new character(even after already having made one.)
The NewGuid.sav is then reset from 6KB to 3KB with the new character data.

There is currently a problem that the player will be assigned to a new guild. Checkout these issues #69 #92 #93 there are different solutions that worked for some, maybe one will work for you as well.

Can confirm @Simpuhl suggestion of only copying the updated player file worked for me.
I was having issues when copying all the files over like the other players and the Level.sav, etc...

Many issues for this bug have been opened so I'm consolidating them into https://github.com/xNul/palworld-host-save-fix/issues/22. Please follow that issue if you would like to receive further updates. @Simpuhl mentioned the workaround for it and there are more detailed instructions linked in the other issue.


Enum storage does not work with overridden toString in enum class

Enum values are serialized with toString and deserialized using valueOf. ValueOf is generated by the compiler and will only except the name of the enum. This leads to problems when a custom toString for the enum is used since it is not possible to override the valueOf method to handle the matching case.
It would be better to serialize using the enum name method, then deserialize using valueOf. These two methods cannot be overriden so it will prevent any problems with adding custom toString methods to an enum.

References #292.


[Feature Request] PlayTime

Can a playtime option be added, to show the current playtime session and a total as well?

Seems like it only works when  showPlayTime is set to On in both XMB and GAME but the playtime will display the time since the system was booted
I think you can compare de code with webMAN MOD.
Also when this feature is enabled in the XMB enviroment it could say Startup Time and when in game Play Time.


Adding make install

Adding make install functionality to CMake build.

Please, check my PR:
https://github.com/icl-utk-edu/fiber/pull/12/commits/2cc33babc641badd1655abfc364660c003758851

I see that this installs the header files and libfiber.so, but it doesn't install the benchmark executables.  I thought that the benchmarks were the things that users would want to use?  What are users going to do with libfiber and the header files?

I see that this installs the header files and libfiber.so, but it doesn't install the benchmark executables. I thought that the benchmarks were the things that users would want to use? What are users going to do with libfiber and the header files?

What would you propose?
Normally that is all we do when installing, provide the library with the engines, and includes, for scaling the library, people will be able to add new backends and link to.
The folder benchmarks, that is build contains the executables and source of the testers.

I don't see a reason why a user would need anything other than executables copied into their environment. This is what they need to run on their system. CMake's build directory gets discarded. Development of new backends happens in this repo via standard Git flow. What is needed after make install is ability to run the benchmark and see how well my system is doing. For example the command: mpirun -np 2 /usr/bin/fiber will give me the performance information. That's why headers should be left alone and the library shouldn't be even created. In current form, the library contains main() function which should never go into any library. And adding new backends is not possible because there is no way to insert a call to a new function. And nobody requested this functionality. I don't understand what is achieved with this.

I don't see a reason why a user would need anything other than executables copied into their environment. This is what they need to run on their system. CMake's build directory gets discarded. Development of new backends happens in this repo via standard Git flow. What is needed after make install is ability to run the benchmark and see how well my system is doing. For example the command: mpirun -np 2 /usr/bin/fiber will give me the performance information. That's why headers should be left alone and the library shouldn't be even created. In current form, the library contains main() function which should never go into any library. And adding new backends is not possible because there is no way to insert a call to a new function. And nobody requested this functionality. I don't understand what is achieved with this.

I agree with that, even at this stage we only have 'testers' and no 'benchmarks',
This PR was just to contest the open issue labeled as enhancement.
When we build the benchmarks, I suppose you can give them as a share folder, as we do in heFFTe, until then, this template can help to have a starting point. Feel free to add things to this PR according to your ideas.

Are you going to add or want some files to be added?
At this point what the install is distributing is the headers and the lib, the headers are useful, e.g., the utils.h, to get proc grids and kernels that are needed for benchmarks.

This installs files that I can get with git clone like the headers or by-products of build process like the library that gets only used once and could be remove otherwise. What users need is a standalone executable they can run on their system. These should be build src directory and be unique on the user system. Right now the executables have generic names link test3D_CPU_R2C which is not specific to this project. It would be good to figure it out first and then provide installation accordingly. @G-Ragghianti added installation to the Spack package which should be enough for now.

This installs files that I can get with git clone like the headers or by-products of build process like the library that gets only used once and could be remove otherwise. What users need is a standalone executable they can run on their system. These should be build src directory and be unique on the user system. Right now the executables have generic names link test3D_CPU_R2C which is not specific to this project. It would be good to figure it out first and then provide installation accordingly. @G-Ragghianti added installation to the Spack package which should be enough for now.

Sounds good,
If you don't mind I can merge this, to have a starting point for the final make-install to be prepared at the final stage.
Otherwise, I can close this out, if you can submit a better or more complete make-install template to have it as starting point.
Either option is fine for me.

So the plan is to have a single main benchmark executable like “fiber” that would enable a user to run the benchmarks?  If so then that should be what is put into bin/.  I was thinking that the current test* executables in …benchmarks/ would be what would go into bin/.

On Oct 5, 2021, at 11:09 AM, Alan Ayala @.***> wrote:
This installs files that I can get with git clone like the headers or by-products of build process like the library that gets only used once and could be remove otherwise. What users need is a standalone executable they can run on their system. These should be build src directory and be unique on the user system. Right now the executables have generic names link test3D_CPU_R2C which is not specific to this project. It would be good to figure it out first and then provide installation accordingly. @G-Ragghianti https://github.com/G-Ragghianti added installation to the Spack package which should be enough for now.
Sounds good,
If you don't mind I can merge this, to have a starting point for the final make-install to be prepared at the final stage.
Otherwise, I can close this out, if you can submit a better or more complete make-install template to have it as starting point.
Either option is fine for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/icl-utk-edu/fiber/pull/12#issuecomment-934497307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7Q5Y7WEE3A3BDKP7CVN4LUFMIJPANCNFSM5FKO2VRQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

So the plan is to have a single main benchmark executable like “fiber” that would enable a user to run the benchmarks? If so then that should be what is put into bin/. I was thinking that the current test* executables in …benchmarks/ would be what would go into bin/.
…
On Oct 5, 2021, at 11:09 AM, Alan Ayala @.***> wrote: This installs files that I can get with git clone like the headers or by-products of build process like the library that gets only used once and could be remove otherwise. What users need is a standalone executable they can run on their system. These should be build src directory and be unique on the user system. Right now the executables have generic names link test3D_CPU_R2C which is not specific to this project. It would be good to figure it out first and then provide installation accordingly. @G-Ragghianti https://github.com/G-Ragghianti added installation to the Spack package which should be enough for now. Sounds good, If you don't mind I can merge this, to have a starting point for the final make-install to be prepared at the final stage. Otherwise, I can close this out, if you can submit a better or more complete make-install template to have it as starting point. Either option is fine for me. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7Q5Y7WEE3A3BDKP7CVN4LUFMIJPANCNFSM5FKO2VRQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

That's a valid idea.
For now, I am closing this thread, the few lines add can later be complemented by you or other collaborators that may have more ideas in what to do at installation. For now only lib/ and include/ are provided. Benchmarks are and will be in benchmarks/.


Fresh install packer error

Error executing vim.schedule lua callback: ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: Cannot convert given lua type
stack traceback:
        [C]: in function 'nvim_notify'
        ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:52>

got the a similar error during installation, while running bin/nyoom sync. Also got Unfortunately it was not possible to support both options simultaneously :( sorry. after the hotpot api change notice, whatever that means, including it in case its related:
❯ bin/nyoom sync
Synchronizing your config with Nyoom Nvim

Nyoom version: f808500
NVIM v0.10.0-dev-3028+g4625394a7-Homebrew
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Clearing cache
Loading Packer
Compiling Nyoom Doctor
The hotpot.api.make usage has changed, please see
:h hotpot-cookbook-using-dot-hotpot
:h hotpot.api.make
Unfortunately it was not possible to support both options simultaneously :( sorry.
Initializing Module System
Installing Packages
Compiling Nyoom Modules

Would you like to sync tree-sitter parsers for enabled modules? y/n: y
Syncing Tree-sitter Parsers (this may take a while)

Downloading tree-sitter-norg_meta...
Creating temporary directory
Extracting tree-sitter-norg_meta...
Compiling...
Treesitter parser for norg_meta has been installed
Downloading tree-sitter-norg_table...
Creating temporary directory
Extracting tree-sitter-norg_table...
Compiling...
Treesitter parser for norg_table has been installed
Error detected while processing command line:
Error executing vim.schedule lua callback: ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: Cannot convert given lua type
stack traceback:
	[C]: in function 'nvim_notify'
	...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:52>
Nyoom successfully synced parsers in 2s

Is there a workaround, the project is unusable for me at the moment.

including it in case it's related

https://github.com/nyoom-engineering/nyoom.nvim/issues/158#issuecomment-1879923259 made the hotpot error go away yet the original problem still exists

Error executing vim.schedule lua callback: ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: Cannot convert given lua type
stack traceback:
        [C]: in function 'nvim_notify'
        ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:52>
Nyoom successfully synced parsers in 3s

After applying #158 fix

I am too trying to resolve this for two days now, re-installed about ten times now but can't seem to be able to pinpoint it to actual cause just yet.

Error executing vim.schedule lua callback: ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: Cannot convert given lua type
stack traceback:
        [C]: in function 'nvim_notify'
        ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:53: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:52>
Nyoom successfully synced parsers in 3s

After applying #158 fix

+1 Also running into this


initial page render question

Ask your Question
when PagerView rendered,
even though the initialPage={1} is selected, Page 0 is displayed first then Page 1 is displayed.
i use Android simulator. help!

Hello 👋
Thank you for reporting an issue. How about the ios ?

Hello 👋
Thank you for reporting an issue. How about the ios ?

I haven't tried ios yet.

I am not able to reproduce it, hence I am closing this issue

i think same problems in android ..
https://www.gitmemory.com/issue/react-native-community/react-native-viewpager/101/553832372
https://github.com/callstack/react-native-pager-view/issues/190

Will this fix be on a new release version soon?

@rajeshde https://github.com/callstack/react-native-pager-view/releases/tag/v5.3.3

still not working for me

still not working for me

same to you

I am not able to reproduce that
https://user-images.githubusercontent.com/12766071/127867430-939f9bc1-2ab6-41b1-b85e-f7ecaada0766.mov

is it refers to this issue ? https://github.com/callstack/react-native-pager-view/issues/409

Maybe it's about using state to store the initialIndex? I found that if I use state to store the index, pager will render page 0 first then jump to page 3
// BasicPagerViewExample.js
export function BasicPagerViewExample() {
  const { ref, ...navigationPanel } = useNavigationPanel();
  const [index, setIndex] = useState(0);
  useEffect(() => {
    setIndex(3)
  }, []);

  return (
    <SafeAreaView style={styles.container}>
      <AnimatedPagerView
        //@ts-ignore
        testID="pager-view"
        ref={ref}
        style={styles.PagerView}
        initialPage={index}
       .......

but if I set initialPage like this: initialPage={3} or using useLayoutEffect to set the index, pager will set to third page on first rendering
https://user-images.githubusercontent.com/8035517/128470055-7ff54522-963f-4dd0-ac58-d3bb9a1ad5b8.mp4

Why do you store the initial index in state ? It is incorrect ? Please take a look on the example https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx

@troZee when I set initialPage={2} (in example https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx) then It start with page 0 to page 2. You can view it in below video
I using "react-native-pager-view": "^5.1.10",
https://user-images.githubusercontent.com/31690470/131440080-b271c4c5-acc1-4eec-b46c-fb56e8425be7.mp4

Why do you store the initial index in state ? It is incorrect usage. Please take a look on the example https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx

how to add first page and remove first page?

I also suffered this problem and have already created a pull request to fix this problem in Android. Please take a look https://github.com/callstack/react-native-pager-view/pull/521


Range-with-step showing time outside the range as due

First of all, thanks for the awesome library.
For the following example, IsDue() is returning true incorrectly.
expr = 0-10/2 * * * *
ref  = 2011-06-20 12:12:00

I think it is because of this function:
func inStepRange(val, start, end, step int) bool {
	for {
		if start == val {
			return true
		}
		if start > end {
			return false
		}

		start += step
	}
}

After start += step, the next time around the loop, the code fails to check whether start > end.
I think the problem can be solved by interchanging the order of the two if conditions within the for loop. I'll be happy to submit a PR if you are accepting.

Thanks for great feedback and elaborate issue. I would accept a PR with fix 👍


removing dapper

removes dapper and stops the download script being run DinD and losing the files when we switch to the drone plugin to build the image.

Also missing JQ but it seems to be working anyway?
+++ curl -v https://api.github.com/rate_limit
--
45 | +++ jq -r .rate.remaining
46 | scripts/version: line 64: jq: command not found


world.render = false; //Not working

it still rendering my scene after I set world.render = false

Version:

[ ] r11
[ ] r10
[ ] r9
[ ] r9 (dev)
[ ] r8
[ ] r7

Issue type:

[x] Bug
[x] Proposal/Enhancement
[ ] Question

 Tested on:
###### --- Desktop
   - [ ] Chrome
   - [ ] Chrome Canary
   - [ ] Chrome dev-channel
   - [ ] Firefox
   - [ ] Opera
   - [ ] Microsoft IE
   - [ ] Microsoft Edge
--- Android

[ ] Chrome
[ ] Firefox
[ ] Opera

--- IOS

[ ] Chrome
[ ] Firefox
[ ] Opera

@tiaod Seems like it is regression in last whsjs (after moving rendering part away from World component). I'll fix that in beta, but idk how long to wait until beta become stable.

Any other way i could do to pause render? I think it's a very important feature for SPA.

@tiaod How do you use whitestormjs, with webpack or just with a script tag?

With a script tag. I had try to import it with webpack however it throw an error. So I just use whs with a script tag.

@sasha240100 Should I use webpack import instead of script tag?

@tiaod Just asked. You may try version from master branch. I remember that I had that .render working some time ago.
It used to work till we moved rendering away from WHS.World

@tiaod See my PR #173 if that fits. And then i merge it


A More Elegant Dead ReLU Fix

To quote from redirected_relu_grad.py in the original Lucid library:

When we visualize ReLU networks, the initial random input we give the model may not cause the neuron we're visualizing to fire at all. For a ReLU neuron, this means that no gradient flow backwards and the visualization never takes off. One solution would be to find the pre-ReLU tensor, but that can be tedious. These functions provide a more convenient solution: temporarily override the gradient of ReLUs to allow gradient to flow back through the ReLU -- even if it didn't activate and had a derivative of zero -- allowing the visualization process to get started. These functions override the gradient for at most 16 steps. Thus, you need to initialize global_step before using these functions.

Lucid uses tensorflow, which allows for gradient overrides with gradient_override_map (although Lucid overrides that with their own implementation). It is also possible to keep track of the global step in tensorflow, and this is used in Lucid to make the "gradient fix" temporary (see above).
In comparison, Lucent implements a hacky workaround that is much less sophisticated.
We simply replace the ReLU function with our own RedirectedReLU, which has a modified backward method. When the gradient should be 0 (because of negative output), we simply scale the gradient by 0.1 and let it through. See here for the exact implementation.
We do this at the model initialization stage only for the InceptionV1 model and we never switch off the redirected gradient. I suspect that not switching it off is not as bad as we might imagine, because we are updating the input values instead of the model weights. In any case, this seems to work fine so far, but I would really prefer a more principled approach.
To be frank, I haven't spent too much time thinking about this with torch. But here are the main elements of a better fix, primarily following Lucid's implementation:

A general wrapper that can be used on all models, rather than just InceptionV1 (although I haven't actually encountered this problem with other models)
A temporary change that will be reverted after a fixed number of steps (how do we access the number of steps from inside the backward function?)

Questions and discussions welcomed!

When I tried (and failed :rofl:  ) building a Pytorch port for Lucid, I did the following to implement the redirected relu, in the optvis.render_vis function: conditionally open some contexts with ExitStack where I override relu with redirected relu, close the contexts at epoch 15. Some code here:
images = []
try:
    with ExitStack() as stack:
        if relu_gradient_override:
            from limpid.misc.redirected_relu_grad import redirect_relu_F, redirect_relu_nn
            # when entering these contexts, the relu becomes redirected
            stack.enter_context(redirect_relu_F())
            stack.enter_context(redirect_relu_nn())

        model = model()
        for epoch in range(n_epochs):
            print(epoch)
            optimizer.zero_grad()
            out = model(image)
            loss = objective_f(out)
            loss.backward()
            optimizer.step()

            if epoch in thresholds:
                if verbose:
                    print('Epoch: [{}/{}] Loss: {:.4f}'.format(epoch, n_epochs, loss))
                images.append(image)

            if epoch == 15:
                # stop using redirected relu grad trick at 16th epoch - closes the contexts previously opened
                print('closing stack')
                stack.close()

where the context managers are defined like this:
@contextmanager
def redirect_relu_F():
    temp = getattr(_F, 'relu')
    setattr(_F, 'relu', lambda x, inplace: _redirected_relu_func(x, inplace))
    yield
    setattr(_F, 'relu', temp)

@contextmanager
def redirect_relu_nn():
    temp = getattr(_torch.nn, 'ReLU')
    setattr(_torch.nn, 'ReLU', lambda inplace: RedirectedReLU())
    yield
    setattr(_torch.nn, 'ReLU', temp)

class RedirectedReluFunction(_Function):
    @staticmethod
    def forward(ctx, input, inplace=False):
        print('forward')
        ctx.save_for_backward(input)
        if inplace:
            output = _torch.relu_(input)
        else:
            output = _torch.relu(input)
        return output

    @staticmethod
    def backward(ctx, grad_output):
        input = ctx.saved_tensors[0]
        grad_input = None

        if ctx.needs_input_grad[0]:
            # correct gradient
            grad_input = (grad_output > 0).float()
            # now where the gradient is zero, modify it to push it
            # where it becomes positive tf.zeros_like(grad), grad
            redirected_grad_input = _torch.where((input < 0) | (grad_input > 0),
                                                 _torch.zeros(grad_input.size()), grad_input)

            # only use redirected gradient where nothing got through original gradient
            grad_input_reshaped = grad_input.view(grad_input.size(0), -1)
            grad_mag = _torch.norm(grad_input_reshaped, dim=1)
            grad_input = _torch.where(grad_mag > 0., grad_input, redirected_grad_input)

        # gradient wrt inplace variable is always None
        return grad_input, None

_redirected_relu_func = RedirectedReluFunction.apply

class RedirectedReLU(_torch.nn.Module):
    def __init__(self, inplace=False):
        super(RedirectedReLU, self).__init__()
        self.inplace = inplace

    def forward(self, input):
        return _redirected_relu_func(input, inplace=self.inplace)

I'm not sure the whole implementation is correct, but you get the gist.

Oh yes, I just recently looked into context managers and was wondering if that might work for this!
Thank you @iacolippo for the tip! I'll take a closer look soon and hopefully get around to implementing this.

I don't have a lot of time on my hands, but happy to help for feedback and/or minor tasks if needed. Cheers


AKS: Unable to add new Nodepool without taints

Setup

Rancher version: v2.7.5-rc5
Browser type & version: Chrome/Firefox

Describe the bug
Unable to add new Nodepool without taints on existing AKS cluster
To Reproduce

Provision AKS cluster with Rancher UI with all default configuration
Once cluster is up & running, add new node pool with type User/System
While adding it, do not provide any taints value (default behavior)

This seems to related to changes made in https://github.com/rancher/dashboard/issues/8073
API Payload:
{
  "name": "cpinjani-aks",
  "aksConfig": {
    "linuxAdminUsername": "azureuser",
    "nodePools": [
      {
        "availabilityZones": [
          "1",
          "2",
          "3"
        ],
        "count": 1,
        "enableAutoScaling": false,
        "maxPods": 110,
        "maxSurge": "1",
        "mode": "System",
        "name": "agentpool",
        "orchestratorVersion": "1.25.6",
        "osDiskSizeGB": 128,
        "osDiskType": "Managed",
        "osType": "Linux",
        "type": "/v3/schemas/aksNodePool",
        "vmSize": "Standard_DS2_v2",
        "nodeLabels": {

        }
      },
      {
        "availabilityZones": [
          "1",
          "2",
          "3"
        ],
        "count": 1,
        "enableAutoScaling": false,
        "maxPods": 110,
        "maxSurge": "1",
        "mode": "User",
        "name": "pool1",
        "nodeLabels": {

        },
        "nodeTaints": [

        ],
        "orchestratorVersion": "1.25.6",
        "osDiskSizeGB": 128,
        "osDiskType": "Managed",
        "osType": "Linux",
        "type": "aksnodepool",
        "vmSize": "Standard_DS2_v2",
        "isNew": true
      }
    ]
  }
}

Result
Cluster goes in state:
Error: failed to update cluster: containerservice.AgentPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> <nil>
Expected Result
User should be able to add new Nodepool without taints
Screenshots

Additional context
Provisioning new cluster with multiple nodepools without taints while creation is working.
cc: @rancher/highlander

I believe this is a backend issue.
When editing a nodepool that has taints and removing a taint OR when adding a new node pool without taints, the cluster does not come out of the updating state.
The UI consistently send an empty array for node Taints in both creation and edit of node pools. This seems reasonable to indicate that there should be no taints - and ensures that in the edit case where we are issuing a PUT, that the user can go from having taints to not having taints.
Backend should handle correctly an empty array of node taints on a node pool in all cases.


Python installation sometimes puts the extension library in the wrong place

On a docker image I'm playing with, regardless of using sdist or bdist or whatever, the .so appears in all the wrong places. When installing from an sdist, in particular, it looks like setuptools (or cython, or something) ends up trying to place the file ./grpc/_cython/cygrpc.so in ../ython/grpcio/grpc/_cython/cygrpc.so (according to the egg-info directory contents), which is an utterly nonsensical path. I can replicate it sometimes in a virtualenv, and all the ways for which the installation succeeds in a virtualenv appear to fail in docker.
This smells like one of our tools (whether it's distutils, setuptools, or cython) being finicky about our setup.py file's relocation, but, I don't know for sure yet.

Actually, absolutely everything is broken about the distribution on master, and we missed it because I set up tox to build in-place when testing rather than install into the virtualenv.

cc #4808

@soltanmm: was this issue incorrectly closed because GitHub saw "fixes" in the text of #4830 and didn't notice the word "almost" immediately before it?


[material-ui][Switch] Undefined/null values in the theme causes crash

Steps to reproduce
https://github.com/mui/material-ui/pull/41367/files#r1586868393
I can put some effort in making an environment, but I hope the comment above is enough using code inspection to suffice for "steps to reproduce". Requested by @siriwatknp, suggested fix included in the PR comment above.
Current behavior
Themes with a undefined/null value will crash
Expected behavior
While not happy path, Switch should tolerate themes with a value that is undefined/null.
Context
Our application dynamically switches between themes, and some themes have extra definitions. These defs might appear as null when it's not relevant. This recent change chokes on that change.

  Output from `npx @mui/envinfo` goes here.

Search keywords: switch theme undefined null crash

@siriwatknp a quick reminder to look into this.

Fixed in #42147


fix: update restart helper

:tada: This issue has been resolved in version 4.0.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Minerva without romanesco

This PR decouples Romanesco from Minerva.

Congrats on your very first PR :tada:

This branch seems very close. I just did git grep romanesco and found few other places (in documentation and in ansible) that we could clean up as well. I am fine with taking care of ansible in other branch.

@dorukozturk All "spark" related code will also need to be removed as this exclusively depended on the mean_contour analysis.  Please also remove all analyses in the analyses/ folder as these are romanesco analyses.    Please also take a look at the .travis.yml and make sure no romanesco/spark related things are being installed for continuous integration tests.
Thanks!

@aashish24 Thank you very much. I did not want to play with the ansible scripts not to break it.
@kotfic That will be my next task.

@dorukozturk thanks for removing other pieces as well. I will have a look at it today.

@dorukozturk I didn't try the ansible / vagrant, other changes :+1:

LGTM :+1:


⚠ Bofrost.be has degraded performance

In 27756e5, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1308 ms

Resolved: Bofrost.be performance has improved in 1717069.


headroom at footer

what is the best way to put it at bottom

position: fiexd?
I do not know if headroom.js can do it


Footer issue

Hello, i found another issue on responsive mode
on 375 x 667 resolution in my iphone 6 device

the fonts at the end of the code is totally out of context, could be a bit smaller, and also adjusted to the same size

Hi @isaacmeira, I've made some changes in this project today, can you test it and see if it solves your problem? It this deployed here

Oh, btw, I've also changed the header and image profile size, check it out too.

Looks better now, btw , congrats for your work ;)

Fixed in #13 .


build / publish

Cookie works fine for development. In production, only the home loads properly!
I tried creating the bin/publish script for this.  All built links to local pages fail with 404 errors.
Build fails to put the .html suffix on the end of href values.

I hacked a solution for this in https://github.com/abhinavs/cookie/pull/9
I also updated gems.
Feel free to implement this in the Jekyll way, instead.

Will take a look at this - thanks again for this.

Sorry, I completely missed this thread. If you can resolve the merge issues, will merge the pull request.

Sorry, I've forgotten this code & moved on.


Use bots as part of gameplay

I might just be missing it but is it possible to use a bot as a part of normal gameplay? For example, a human vs. AI chess game or blackjack where the dealer is a bot. From what I see, the bot is only available as a means to test gameplay and is not exposed through ctx or otherwise.

You can as of v0.37.
This isn't documented yet, but the summary is that you can do something like:
multiplayer: Local({ bots: ... })

Take a look at the unit tests in src/client/transport/local.test.js until the docs catch up.

Ah, great. For others who come across this, I found issue #383 which has some references to code for a similar use case. Thanks!

Any chance of the documentation updating any time soon to include this?

Any chance of the documentation updating any time soon to include this?

Any news on this one?


Verification does not use input PK/KEK

The current verification step downloads the Fedora 27 kernel and checks if it executes when Secure Boot is on.
Such kernel is signed with a Red Hat KEK (CN = "Fedora Secure Boot Signer").
Instead, the test should check that a kernel signed with the input key (whose certificate is passed with --oem-string) runs, because the purpose of EnrollDefaultKeys.efi is to set PK and the first KEK with the user's key.
As a matter of fact, I am a bit surprised that the Fedora 27 kernel (signed by Red Hat) boots at all.
That should not be happening, right? For the record, I am using EnrollDefaultKeys.efi from Fedora 33.

To be clear, the EnrollDefaultKeys.efi I am using does expect the user PK/KEK cert in SMBIOS. If you don't pass it, it fails with:
OUT: b'error: OEM String with app prefix 4E32566D-8E9E-4F52-81D3-5BB9715F9727 not found: Not Found\r\n'

@Legrandin did you find a workaround for this?

No, I did not.
I recall I gave up on qemu-ovmf-secureboot.

Too bad but thanks for letting me know.


Fix crash in map_fields and fix riemann_event for "%{field}" strings

Heavily interested in this! Let me know if I can help!

@jordansissel @ph Is there any reason why this fix has not been merged? Need to update our logstash config, and this merge is vital to it.

Any chance of movement on this? It's blocking a deployment for us too. Happy to patch locally but would prefer upstream.

@venturaville since you signed the cla with a different email than the one in this pr would you mind force pushing it again with the cla email so we can merge this?

@venturaville Any chance of a new push? If not - would you be cool if someone took over the patch and submitted it? Thanks!

I signed the CLA with my venturaville account.  Should be good now.

@venturaville Awesome - thanks so much!
@jordansissel All yours! :)

Any suggestions on how to do a force push?   It looks as though github was picking up my non-personal key and ignoring my personal one.

git push --force not working?

@venturaville Can I help with a push in some way?


small issues in contributing.md

The "install dependencies" section is empty:

The example directory is gone - this one says "examples":

#21


chore: Remove martin from reviewers so he's not flooded by notifications

Let's relieve this poor man's inbox pressure! This change makes sesheta stop assigning @martinpovolny to reviews and PRs (yes, I had to tag him here for the last time :smirk: :grin: ).

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please ask for approval from tumido after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: HumairAK
To complete the pull request process, please ask for approval from tumido after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: anishasthana, HumairAK
To complete the pull request process, please ask for approval from tumido after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@operate-first/admins I need a /approve here along with the /lgtm, please.

/lgtm

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: anishasthana, HumairAK, tumido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [tumido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Nturinski/baseEditor

I think I did this right...

Also - it wouldn't hurt to add documentation to the README - but you can do that later if you want


Image description: Mops condylurus 1.jpg

Which image is this for?
Mops condylurus 1.jpg
What is your suggested image description?
  It has sparse fur and thick legs, its wings are folded in.  Its head is very broad with flattened ears facing downward and a wide snout, with prominent whiskers.  We can just about see its exposed eyes under the shadow of its ears.

Accepted with tweaks.

 Its exposed skin is thick and leathery. It has sparse fur and thick legs. Its head is very broad, with flattened ears facing downward and a wide, bulldog-like snout with prominent whiskers. We can just about see its exposed eyes under the shadow of its ears.


Is it possible to give a list of readings on which this work is based on

It would be great if we can get pointers to research on which the work of Apollo is based on. I can see that a reference is given for localization, but nothing much is mentioned for other areas.

For the related tech background, please refer to the online free course: Self-Driving Fundamentals: Featuring Apollo by Baidu Apollo
link: https://www.udacity.com/course/self-driving-car-fundamentals-featuring-apollo--ud0419


Feat/ethers disconnect

Add  function disconnect to exports

Closes https://github.com/WalletConnect/web3modal/issues/1439

Please update documentation with this new hook.
https://docs.walletconnect.com/web3modal/react/about


feat: add zquestz/s

#5335 zquestz/s: Open a web search in your terminal
$ aqua g -i zquestz/s

Thank you for your contribution!

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.24.0


Include image format on descriptor, if provided by shader

Changelog:
- Vulkano-shaders now provides the image format for descriptors, if the shader requires a specific format.

This is a small improvement that should make Vulkano generate more correct code. The logic for handling descriptor format restrictions already existed on Vulkano's side, but Vulkano-shaders did not actually ever provide the format, it was always None. Now the SPIR-V image format is correctly converted to a Vulkano format and included in the descriptor.

@Rua Merged. Thank you for the improvement!


cleanup

https://github.com/OpenVoiceOS/skill-ovos-filebrowser/pull/3

added an automout service to raspbian-ovos recently, that mounts to /media/<device-id>. Good place to test.


Org card is empty - shows -/-

Could not easily reproduce - believed to have started from a refresh on the security groups page and then jamming around. Org card did not load and only showed placeholder info.

Can not reproduce.


Model of cloud storage

Implement a model for cloud storage service, such as S3
The internal implementation of service is unknown (black box)
Use empirical distribution of bandwidth?

Some papers mentioning S3 latency/throughput:

https://dl.acm.org/doi/pdf/10.1145/3318464.3380609
https://www.usenix.org/system/files/osdi18-klimovic.pdf
https://www.usenix.org/system/files/nsdi19-pu.pdf


Pydantic is unable to serialize due to unknown type

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I need to serialize a pydantic dataclass (MainObj in the example below) which contains other plain nested objects, however an exception is raised during serialization as the MyObj type is unknown to pydantic.
If I run python example.py, at line j = MAIN_OBJ_TA.dump_json(obj) I get
pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: <class '__main__.MyObj'>

However, if I turn MyObj into a python dataclass (remove the comment before its definition), it works and I see
b'{"a":1,"b":"asd","c":{"x":10,"y":"lol"}}'

Is this the intended behaviour? I would like to be able to serialize objects like MyObj without turning them into dataclasses (nor BaseModels) as in my real use case I have no control over some of them (but I do know that each of them is fully typed).
Example Code
from dataclasses import dataclass as python_dataclass

from pydantic import TypeAdapter
from pydantic.dataclasses import dataclass as pydantic_dataclass

# @python_dataclass
class MyObj:
    x: int
    y: str

    def __init__(self, x, y):
        self.x = x
        self.y = y

@pydantic_dataclass(config={'arbitrary_types_allowed': True})
class MainObj:
    a: int
    b: str
    c: MyObj

MAIN_OBJ_TA = TypeAdapter(MainObj)

if __name__ == '__main__':
    obj = MainObj(a=1, b="asd", c=MyObj(x=10, y="lol"))
    j = MAIN_OBJ_TA.dump_json(obj)
    print(j)

Python, Pydantic & OS Version
pydantic version: 2.8.2
        pydantic-core version: 2.20.1
          pydantic-core build: profile=release pgo=false
                 install path: **OMISSIS**/.venv/lib/python3.12/site-packages/pydantic
               python version: 3.12.3 (v3.12.3:f6650f9ad7, Apr  9 2024, 08:18:48) [Clang 13.0.0 (clang-13<IP_ADDRESS>)]
                     platform: macOS-10.13.6-x86_64-i386-64bit
             related packages: typing_extensions-4.12.1
                       commit: unknown

NOTE: this is a (edited) duplicate of this stackoverflow question.

Hi @lmores,
Indeed. This is expected. You'll have to clue pydantic in on how to serialize that type of object. Here's a simple example:
from pydantic import TypeAdapter, ConfigDict, PlainSerializer
from typing_extensions import Annotated

class MyObj:
    x: int
    y: str

    def __init__(self, x, y):
        self.x = x
        self.y = y

MAIN_OBJ_TA = TypeAdapter(
    Annotated[MyObj, PlainSerializer(lambda o: {'x': o.x, 'y': o.y})],
    config=ConfigDict(arbitrary_types_allowed=True)
)

j = MAIN_OBJ_TA.dump_json(MyObj(x=10, y="lol"))
print(j)
"""b'{"x":10,"y":"lol"}'"""


Does this tool support Replicated Merge Tree Table Engine?

Description
As a title of this issue, Does this tool support Replicated Merge Tree Table Engine?
We are finding the proper opersource tool to manage our schema on clickhouse cluster.

Yes, it can be provided in migration files. I have updated README.md with a more detailed example.
If you need to provide database engine type, please check the new --db-engine option.
For now, I close the issue, feel free to reopen it if needed.


Revert trace signal unit test

Hi.
I suspect this test to makes our CI timed out (even though they should be skipped, since the CI is not run as root).
Let's see if reverting everything helps there, otherwise further investigation would be needed.
Best regards.

Then, something is really wrong:

That's printed when running the unit-tests without root in https://github.com/inspektor-gadget/inspektor-gadget/blob/baaff2ae7ac51a1fb3e0b739ba3ae32b356a155f/.github/workflows/inspektor-gadget.yml#L685-L686
I agree, we should probably change that to run them only once.


Error using examples

-module(server_websocket).
-export([start/2, start/0, stop/0, stop/1]).
%% API.
start(_Type, Args) ->
Dispatch = cowboy_router:compile([
{'', [
{"/", cowboy_static, {priv_file, websocket, "index.html"}},
{"/websocket", ws_handler, []},
{"/static/[...]", cowboy_static, {priv_dir, websocket, "static"}}
]}
]),
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [{env, [{dispatch, Dispatch}]}]),

websocket_sup:start_link().

server_websocket:start().
** exception exit: {noproc,
{gen_server,call,
[ranch_sup,
{start_child,
{{ranch_listener_sup,http},
{ranch_listener_sup,start_link,
[http,100,ranch_tcp,
[{port,8080}],
cowboy_protocol,
[{env,[{dispatch,[{'_',[],...}]}]}]]},
permanent,infinity,supervisor,
[ranch_listener_sup]}},
infinity]}}
in function  gen_server:call/3 (gen_server.erl, line 212)
in call from ranch:start_listener/6 (src/ranch.erl, line 47)
in call from server_websocket:start/2 (src/server_websocket.erl, line 33)

Not sure what you're doing exactly.

where problem?

How do you start this?

-module(server_websocket).
-export([start/2, start/0, stop/0, stop/1]).
start() ->
start("","").
%% API.
start(_Type, Args) ->
Dispatch = cowboy_router:compile([
{'', [
{"/", cowboy_static, {priv_file, websocket, "index.html"}},
{"/websocket", ws_handler, []},
{"/static/[...]", cowboy_static, {priv_dir, websocket, "static"}}
]}
]),
websocket_sup:start_link().

stop(_State) ->
ok.
stop() ->
stop(normal).
server_websocket:start().

That's not going to work like this. This is an OTP application, you either let the release start it, or call either application:start/1 or application:ensure_all_started/1. If you haven't seen OTP applications yet, you might want to leave Cowboy aside for a moment and come back to it later on.

Hope that helped. Closing, thanks!


ISPN-12912 Data Distribution endpoint for caches

https://issues.redhat.com/browse/ISPN-12192
Should have used the security action to retrieve the executor.

Merged, thanks


Add rowClick or rowDblClick event

Describe the feature in detail (code, mocks, or screenshots encouraged)
Similar to the tabulator-tables library, adding these events so that when a row is clicked, it triggers an event with the selected row's data added.
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response

Thanks for the suggestion, I added these events to rows on v0.4.0! 🚀


[stable/prometheus-node-exporter] Add relabelings config for ServiceMonitor

Is this a new chart
Nope
What this PR does / why we need it:
This adds the ability to modify relabelings on the ServiceMonitor.
Which issue this PR fixes
None
Special notes for your reviewer:
None
Checklist

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

/ok-to-test
/lgtm


How to convert twitter @mentions?

I have text:
This is some twitter text by @raja @rao bla bla
I need to convert @raja and @rao as @raja  and @rao
Thanks!

react-linkify depends on linkify-it, which provides an example for handling twitter mentions:
linkify.add('@', {
  validate: function (text, pos, self) {
    var tail = text.slice(pos);

    if (!self.re.twitter) {
      self.re.twitter =  new RegExp(
        '^([a-zA-Z0-9_]){1,15}(?!_)(?=$|' + self.re.src_ZPCc + ')'
      );
    }
    if (self.re.twitter.test(tail)) {
      // Linkifier allows punctuation chars before prefix,
      // but we additionally disable `@` ("@@mention" is invalid)
      if (pos >= 2 && tail[pos - 2] === '@') {
        return false;
      }
      return tail.match(self.re.twitter)[0].length;
    }
    return 0;
  },
  normalize: function (match) {
    match.url = 'https://twitter.com/' + match.url.replace(/^@/, '');
  }
});

You can fork react-linkify and add the code above to line 7 in Linkify.jsx

You can probably add a prop to Linkify that takes a set of rules that follows the (schema, definition) format from https://github.com/markdown-it/linkify-it#addschema-definition. Then in the constructor, call linkify.add(...).
Feel free to submit a PR.

Would be easiest if this module exported its linkify instance, then you could do something like:
thisModule.linkify.add('@', contentsOfPreviousComment)

I agree with the "exposing the linkify instance" approach... I've handled it on #28

Any chance of getting that commit pushed as a new NPM version? 👍

@timothyallan - do you mean #20? I'm planning to get related parts cleaned up for #24 very soon.

@tasti  nope, #28 The latest NPM release says that's the only commit that's missing!

Sorry for the delay. There's a new release to support this now!


Return Task ID when calling import with image file

Is your feature request related to a problem? Please describe.
Uploading an image file with annotations is a 3 step process, first upload image with the import endpoint and local file which returns file_upload_id, second get the task id from file upload id by calling tasks endpoint and iterate through each file_upload to find the task ID, thirdly call the annotations endpoint with the task ID to send the results json for the annotations.
Describe the solution you'd like
Ultimately I would like to upload both the file, the annotation, and metadata for the file with a single call. I tried the multipart form content for the import endpoint but it didn't work. I would settle for just getting the task ID returned when calling the import endpoint. It already returns "task_count", why not task_ids too?
Describe alternatives you've considered
using the offset between file_upload_id and task_id and using file_upload_id +/- offset.
Additional context
I'm uploading annotations in real time from edge device using label studio as the back end image database.

After digging through the source I discovered there is an undocumented way to return the task id along side the file upload id. Just include the query parameter return_task_ids=true  so in python:
response = requests.post(                 f"http://api.labelstud.io/api/projects/{id}/import/import?return_task_ids=true",                 headers=self.headers,                 files={"upload_file": ("image.jpg", image, "image/jpeg")},             )
This will return something like:
{   "task_count": 1,   "annotation_count": 0,   "prediction_count": 0,   "duration": 0.04,   "file_upload_ids": [12345],   "could_be_tasks_list": false,   "found_formats": {".jpg": 1},   "data_columns": ["$undefined$"],   "task_ids": [123] }


Visual changes for better accessibility (including a small tailwind refactor)

Purpose
Match figma design after Johann updates for better contrast ratios, mostly.
Proposal
Here is some code to match some new colors.
I took the time to, in my point of view, make working with colors easier:

we don't extend tailwind colors anymore, no risk of using a not intended color in the figma design
removed the dinum color prefix as all our main colors were under this prefix, felt a bit unnecessary for this common case (especially now that default tailwind colors are out)
added some semantic color tokens to better mark our intentions in the code and ease up future potential color changes (title and body)

Have you discussed with johan about the text now align left?

Yup!


vue项目里有个axios工具类，打包后想使用

What problem does this feature solve?
vue项目里有个axios工具类，打包后，是在js里可以看到这个变量，如何使用这个变量。我试了下面方法都不行：
window._CONFIG['axiospost']=post
window.axiospost=post
What does the proposed API look like?
window._CONFIG['axiospost']=post

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


IWF-336: add skip update method for reset

Description
Checklist

[ ] Code compiles correctly
[ ] Tests for the changes have been added
[ ] All tests passing
[ ] This PR change is backwards-compatible
[ ] This PR CONTAINS a (planned) breaking change (it is NOT backwards-compatible)

Related Issue
Closes #<issue_number>

The tests should pass after the iwf-server MR has been merged.


operators hive-operator (1.1.13)

Apologies, testing automation, real PR to follow.

/merge possible


changed footer colour to #233240

Issue:

Issue: #1059

Great work thank you!
@all-contributors please add @beachgurl for code


Remved hard coded os type

Small PR to remove hardcoded os type for an image.
BUILD SUCCESSFUL in 7m 48s 361 actionable tasks: 71 executed, 290 up-to-date
@keyki @handavid @lacikaaa

Can you please include a JIRA to your commit? Later it makes it easy to track back certain items. No need to create a new item just use on of the FreeIpa item which you think it the most related.

Here is the JIRA : https://jira.cloudera.com/browse/DISTX-135

Hi,
I mean the commit message should have a jira like DISTX-135 Remved hard coded os type

@abhishekaypurohit can you please use the following patter for your commit messages CB-1034 Shared Data context support in Cloudbreak JIRA-ID message

Can you please add JIRA ID to the commit messages and instead of merging your own commits please wait until one of the other team member merge your issue. Thanks


2 dates selected when changing date until closed

Describe the bug
When changing date by setting it's state, the datepicker does not unselect the previous date, so both previous and new date are selected.
To Reproduce
Steps to reproduce the behavior:
Click on the today button to set state as provided in example.
You will see that both dates are selected
I am also experiencing the same issue as described #2203, not sure if its related
const Datepicker = React.forwardRef(function Datepicker(props, ref) {
    const {
        children,
        className = '',
        ...other
    } = props;
    const [startDate, setStartDate] = useState(new Date());

    return (

        <DatePicker
            selected={startDate}
            onChange={date => setStartDate(date)}
            locale={nb}

        >

                <button  onClick={() => setStartDate(new Date())}>Today</button>

        </DatePicker>

    )
});

export default Datepicker;

For a walkaround use this prop, seems that keyboard navigation stays on.
disabledKeyboardNavigation={true}