Local pull request success status testing

Docs Build status updates of commit 067901b:
:clock10: Pending: waiting for processors (13 builds ahead of you)
:warning: Docs Build is busy, currently there are 13 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 067901b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

E2E_DocsBranch_Dynamic/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


MismatchedSeriesLength Datacheck

Pull Request Description
Added MismatchedSeriesLength Datacheck

After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:123.

No linked issues found. Please add the corresponding issues in the pull request description.  Use GitHub automation to close the issue when a PR is merged


label prop is missing on RichText

Category
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.12.0]
Expected / Desired Behavior / Question
When using the RichText control, I'm expecting to be able to refer  the component to a label (through an id) or mentioning a label text as a prop available
Observed Behavior
No label prop or an "id" attribute (which is available in the react-quill library used under the hood) that could be linked to a label.
Steps to Reproduce

create and SPFx app (WebPart, extension,...)
add the RichText control
try to add a label with reference to the control through an id, or try to add a label prop

Two approaches from my perspective:

drill up the "id" prop already available in the react-quill component
add a new prop "label" as it exists on Fluent UI controls like TextField, which accepts a string

I can give a try on this one if you don't mind 🙂

Hi @michaelmaillot , that would be great ☺

Great, assign it to me please @joelfmrodrigues 🤗


Compute stats for Sequence feature only if it's underlying schema is List

Should fix https://huggingface.co/datasets/OpenAssistant/oasst1 (see "emojis" and "label" columns).
When sequence feature is dict of lists (not list of dicts), compute lengths over first subfield values.

Sequence feature is making me going mad a bit but i think it's ready for review now @severo @lhoestq


More correct default columns' widths

Currently (version 1.3), the default sizes for columns are wider than necessary in most cases.
For example, an Int32 "ID" column has 120px width while it really needs only a half of this size to show numbers up to billions.
The default size for date/time columns is 200px but for short dates 100px would be enough.

Let's add some callback function to grid options with such signature
columWidthResolver: (col: GridColumn) => number | undefined;

If no value is returned we will use the default for DataType, otherwise, we will use returned value

We have now semi-automatic columns' widths adjustment in EasyGrid. It's controlled by EasyGridOptions.columnWidths option when it's possible to set the default, minimum, and maximum width for each data type and also set autoResize option to one of the following values:

AutoResizeColumns.Never - no automatic columns' widths adjustment
AutoResizeColumns.Always - columns' widths will be adjusted for each page
AutoResizeColumns.Once (the default value) - columns' widths are adjusted automatically on the first page and then we use these values for all other pages without any corrections.


Can you add the @objc attribute / objective c support?

Please can you add the @objc attribute / objective c support ?

This is also needed for Swift 4 support. Unfortunately, since Double is not accessible to@IBDesignable @objc variables, a more involved port will be required.


Fix typo

Contributing guidelines
Please read our contribution workflow before submitting a pull request.

Commit title should be something like op-guide/clustering: fix typo. Thanks!


Issue-201/issue-149: Link OIDC client with metadata to user and delete it when peer is deleted

Keycloak admin API
At the moment the current implementation mixes two different purposes in the registration client.

Registering new OIDC clients: which is covered by the OIDC protocol and implemented in the openidconnect crate
Enumerating and deleting clients in keycloak using keycloaks administrative REST API

     # List clients
     GET /admin/realms/{realm}/clients/

     # Delete the client
     DELETE /admin/realms/{realm}/clients/{client-uuid}

For now this this is good enough (using just two endpoints). If we intend to interact more with keycloak directly this should be changed.
Breaking change
There is one breaking change in this pull request regarding deployments. The following environment variable was added for opendut-carl:

In the test environment

services:
  carl:
      - OPENDUT_CARL_NETWORK_OIDC_CLIENT_ISSUER_ADMIN_URL=https://keycloak/admin/realms/opendut/

In the local test environment

services:
  carl:
      - OPENDUT_CARL_NETWORK_OIDC_CLIENT_ISSUER_ADMIN_URL=https://auth.opendut.local/admin/realms/opendut/

Deployments shall be changed accordingly.


add .editorconfig file

Defing style guide rules in a .editorconfig file, DOS/Windows style line endings cause errors in running the project, editorconfig file tells editors to use linux style line endings in all files by default.

As far as I know this is the first time this has come up. @gimite has this come up before that you know of?
If this is specific to a particular editor or a small number of editors: IMO configuration of this sort shouldn't be checked in. Feel free to add .editorconfig to .gitignore though.

No, AFAIK this is the first time.
According to https://editorconfig.org/, it (at least aims to) be a general config file across different editors. And looks like Github supports it by default (though I don't know what that mean). So IMHO it sounds like a good idea to have one submitted.

I want to send the patch for it.
Should I go ahead?

Yeah if it's widely used that seems fine. Sorry for my ignorance.


Test Error

Thanks for your great work。I trained on my own dataset for x8 scale，but when I try to test is，I got an error。

It looks like the data size in chechpoint is half in the model

Please check the num_features option in your test_xxx.json file.

Thank you, yes. I use the setting 32 for training，but 64 for testing . After I change it to 32 ,it works.That is, does the configuration of the networks must be the same  for testing and training .

Yes, you're right.


How does it support Node JS when there is no "Blob" in NodeJS?

Do you maybe have Node JS example?

same error
TypeError: blob.stream is not a function


fix link to MIT license

Fixes the opensource.org link and ignores opensource.org as it seems to not wokr on CI

@SchrodingersGat @wolflu05 this seems to work locally but not on CI - any idea why?

The website may be rate limiting or blocking requests coming from github?

Seems like it, my tests in https://github.com/inventree/InvenTree/pull/8384 are failing because of this. Should we stop linting for this URL or wait a few days?

Maybe we just stop linting this one?

@SchrodingersGat added an ignore


List all accounts in the service

As a administrator
I need   to list all customer accounts from the customer accounts microservice
So that   I can view all customer account information.
Details and Assumptions
*     The customer accounts microservice will have a REST API endpoint for listing all customer account information.
*      The administrator will have a valid authentication token to access the endpoint.

Acceptance Criteria
Given that I have a valid authentication token,
When I make a GET request to the customer accounts endpoint without a specific customer ID,
Then I should receive a list of all customer accounts in the microservice.


feat: Oracle mocker for nargo test

Description
Adds an oracle mocker feature to be able to do noir unit tests for code that uses oracles.

Problem*

Noir test part for https://github.com/noir-lang/noir/issues/1052 and https://github.com/AztecProtocol/aztec-packages/issues/1642
Summary*

Documentation

[ ] This PR requires documentation updates when merged.

[ ] I will submit a noir-lang/docs PR.

[ ] I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Should not be breaking after split into this and https://github.com/noir-lang/noir/pull/2935


Align download items to the left

I was able to complete the task - Align download items to the left.

Mention issue!

Mention issue!

Hi, it was part of:
"Level 1 issues. #1052"

Did you get assigned this issue #1052?


[FEAT] OpenRouter integration

Pull Request Type

[x] ✨ feat
[ ] 🐛 fix
[ ] ♻ refactor
[ ] 💄 style
[ ] 🔨 chore
[ ] 📝 docs

Relevant Issues

resolves #762
What is in this change?
Describe the changes in this PR that are impactful to the repo.

Add OpenRouter LLM support

Additional Information
Add any other context about the Pull Request here that was not captured above.
Developer Validations

[ ] I ran yarn lint from the root of the repo & committed changes
[ ] Relevant documentation has been updated
[ ] I have tested my code functionality
[ ] Docker build succeeds locally

We should split the models up into their providers like we do for TogetherAI - there are way too many models to parse though for a user using the dropdown.


knex.whereIn with subqueries outputs invalid SQL

Description
When using an array of subqueries with whereIn, it improperly formats the SQL, preventing the query from being successfully run
Actual behavior
Reduced test case: https://runkit.com/58d54e3669bd5800151eab73/58d54e3654c1be00146c2160
The output SQL from that query is
select * from "table_two" where "tableOneId" in (select "id" from "table_one" where "value" = 'test'), (select "id" from "table_one" where "value" = 'alternate')

As you can see, the values passed to in aren't wrapped in parentheses causing the error.
Expected behavior
The output SQL from the query should be
select * from "table_two" where "tableOneId" in ((select "id" from "table_one" where "value" = 'test'), (select "id" from "table_one" where "value" = 'alternate'))

I've got a workaround manually formatting the subqueries with knex.raw, but it's a hack. Thanks!

Thanks for great issue, it was really easy to understand the problem 👍
You are passing array containing subqueries to whereIn which is not supported (I didn't even knew that it was possible in postgres).
If you like to add support to it we need to discuss more how arrays that are passed as values to .where() should be interpreted generally in knex (in sql there is at least 3 different array syntaxes and knex doesn't have currently any way how to determine which one is correct in which context)...
For now you should be able to do your query like this:
.whereIn('id', knex.raw('(?,?)', [subQuery1, subQuery2]))

If you like to have new feature to knex with better support for this, please open another issue where more people can discuss how arrays should be treated in knex and maybe we find some good general solution.


Don't want Login to be a popup

Is there a way to configure the Login as a redirect and not as pop up?

Not at the moment. Whats your use case? If you did do a redirect, wouldnt you loose all your redux state?

For this particular UC this is not an issue, because the actual application starts after de login.

I don't see this as a great fit for this library.


Fixes README headings

most of the headings in the readme were missing spaces. Some of the headings were inside code blocks. I pulled the headings out of the code blocks and cleanup up the other headings a bit to make it easier to read.

Thank @harmstyler, looks much better now


All the code should pass pylama tests

@dbarrosop I think we should make the skip line be:
[pylama]
linters = mccabe,pep8,pyflakes
ignore = D203,C901
skip = */openconfig_bindings/*

[pylama:pep8]
max_line_length = 100

So it won't try to pylama the openconfig_bindings in ./build

Everything else is fine besides one recommended change to setup.cfg.

Fixed it. I will be removing openconfig soon, probably this week but I figured it was worth merging this in the meantime.


Maintain maas pip requirements in role

Currently, we maintain maas pip requirements in maas/requirement.txt.
The problem here is that repo-builder cannot properly build these
requirements and as such we have to move the dependency list into the
role itself.
Closes issue #144
(cherry picked from commit e2e7f7ea145bde4dfe14dd099de95004ad12d3aa)

Please hold off on merging this for a sec.

Closing, reworking this PR.


align before and after solutions

I used http://meldmerge.org/ to a directory diff between all the before and after folders and noticed some differences which should not exist. This PR fixes them.
@Particular/microservices-workshop-maintainers please review.

I'll do a quick re-run of exercises 1 and 2 on this branch, and I'll also use it to attempt 3 and 4. Hopefully I'll be able to report back that it all works.

@Particular/microservices-workshop-maintainers I've run through all the exercises using this branch, and I'm confident that everything is as it should be.
IMO this is good to go.


When exporting a notebook to Python, the default filename of the script should mirror the notebook filename

Feature: Notebook Editor, Interactive Window, Python Editor cells
We should be able to automatically export a converted python script while saving a Jupyter Notebook. It would finally save the problem of versioning notebook files.
This feature would allow us to have the exported python script under version control and the notebook in .gitigore.
Description
I believe the feature request above should be implemented in 3 steps:
When pressed, the icon "Convert and save to a python script" asks for a filename. The save dialog should automatically fill the filename based in the notebook name, just changing the extension from .ipynb to .py.
The Convert and Save could be called as an extension method in VSCode. It should be able to save with the default name, without user interaction.
A configuration option should be created to automatically export the file when the notebook is saved.

Found in Golden Scenario. Current format is the first few lines of the Notebook which ends up being something like..
# % % markdown

Duplicate of https://github.com/microsoft/vscode-jupyter/issues/11453


Make phone numbers non mandatory

Fix #1784

@nisusam Please also remove from the organization setup page ( New company create page)


Fix save attachments in edit lesson

https://github.com/ita-social-projects/SpaceToStudy-Client/assets/104988390/9a041d61-ded3-4577-ac6f-1f610bb2a643

Already fixed
#1415


TypeScript support?

Thanks for making this package :)
Could you please add TypeScript support?
Currently I'm getting

Could not find a declaration file for module 'deepltranslate'. 'node_modules/deepltranslate/src/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/deepltranslate if it exists or add a new declaration (.d.ts) file containing declare module 'deepltranslate';ts(7016)

Sorry, I was inactive lately. Now I'm back. I will try to add Typescript support. You can also fork and collaborate if you wish. Thanks.


Vue loading error

which version of node and hanzi-writer is this?

我也遇到这个问题了，我的是"3.1.0"版本

which version of node and hanzi-writer is this?

I also encountered this problem, my version is "3.1.0"，node(v8.14.0)

Could you try a more recent version of node? It might be that older node versions don't work with some of the newer JS syntax

Could you try a more recent version of node? It might be that older node versions don't work with some of the newer JS syntax

Yes, the version is too low, just upgrade to a higher version, thank you


Bug: Loss of Audio Output in eqMac After Sleep with Dual Monitor Setup

Disclaimer:
Please go through existing issues to avoid creating duplicates. If you found a similar issue please post a comment there. If you are uncertain your issue is related to others then create the issue. Obvious ignorance of this rule might get you blocked from posting new issues. Please tick the box below to show that you have followed the guideline.

[x] I have checked for a similar issue and sure it hasn't been reported before.

Describe the bug
When connected to two monitors, eqMac fails to connect to speakers correctly after waking the system from sleep mode, resulting in no sound output.
Steps to Reproduce
Steps to reproduce the behaviour (feel free to change the placeholder as you need):

Connect the computer to two external monitors.
Set up eqMac and configure the audio output to desired speakers.
Put the computer to sleep.
Wake the computer from sleep.
Try playing audio on the system.
Observe that there is no sound output.

Expected behaviour
After waking the computer from sleep mode, eqMac should be able to connect to the speakers correctly and provide audio output without any issues.
Setup information:

Audio device used for playback: Beolab 4000 aux-in via Dell Ultrasharp U2723QE via USB-c
Audio transmission interface: 3.5mm Jack to phono
macOS Version: Ventura - 13.3.1 (22E261)
eqMac Version v1.7.10 - v2.4.3
eqMac UI Version v4.6.5 (if UI related issue)

Screenshots or Console.app logs
If applicable, add screenshots to help explain your problem. Also you can run Console.app and apply filter for eqMac
Additional information
Add any other context about the problem here.
I think this due to the fact that the monitors have the same name. When the wrong display is unplugged eqMac will play audio again.

Ditto with note: Selecting the monitor device in the eqMac menu causes it to be selected for a second, then revert to "Select Output".
Workaround(s):

Select a different device in menu

Select monitor device

Reset devices from preferences in menu

Select other device than desired output

Select desired output device


Runtime error when running pope evaluation

Dear Authors,
First of all, I would like to congratulate you for your great work! I have an issue when trying to reproduce the experiments for the POPE evaluation that I would like to check with you.
Following your instructions from https://github.com/CircleRadon/Osprey/blob/main/osprey/eval/README.md#5-pope, I ran pope_eval.py with input a file coco_pope_adversarial.json including the single following line:
{"question_id": 1, "image": "COCO_val2014_000000127153.jpg", "text": "Is there a person in the image?", "label": "yes"}
and the parameter --img pointing to the images in the validation set of COCO-2014.
However, when I do this, I am getting the following exception:
object of type 'NoneType' has no len()
  File "/home/user/Osprey/osprey/model/layer.py", line 43, in forward
    num_imgs = len(masks)
  File "/home/user/Osprey/osprey/model/osprey_arch.py", line 106, in prepare_inputs_labels_for_multimodal
    mask_feats, pos_feats = self.mask_extractor(image_features_dict, masks)
  File "/home/user/Osprey/osprey/model/language_model/osprey_llama.py", line 79, in forward
    input_ids, attention_mask, past_key_values, inputs_embeds, labels = self.prepare_inputs_labels_for_multimodal(input_ids, masks, attention_mask, past_key_values, labels, images)
  File "/home/user/Osprey/osprey/eval/pope_eval.py", line 89, in eval
    output_ids = self.model.generate(
  File "/home/user/Osprey/osprey/eval/pope_eval.py", line 157, in <module>
    POPE_EVAL.eval(args.img, args.json, args.answer)
TypeError: object of type 'NoneType' has no len()

The problem is caused by the fact that masks=None when calling the MaskExtractor. Perhaps, the format of the input coco_pope_adversarial.json file should be different?  Apologies in advance if I misunderstood something in the instructions that you provided for reproducing the POPE experiments.
PS: to run the experiment, I had to change line 60 in pope_eval.py from
img_path = os.path.join(root_path, data['image'].split('_')[-1])

to
img_path = os.path.join(root_path, data['image'])

@tsamoura
Hello, sorry for late reply.  We hava updated the codes for this issue. Please try the latest code.
Any further questions are welcomed. Thanks.

Thanks a lot for looking into this! I will look at your fix and let you know if there is any issue. Thanks again.


drivers: modem: WNCM14A2A select UART_INTERRUPT_DRIVEN

Modem driver for WNCM14A2A was erroneously  leaving the
selection of UART_INTERRUPT_DRIVEN up to CONSOLE_HANDLER.
Now, with the move to the new SHELL backend, this is no
longer happening.
Let's select it from the modem driver, instead of depending
on it.
Signed-off-by: Michael Scott<EMAIL_ADDRESS>

@nashif Wasn't sure who else I should add here.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@263dab3). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #10735   +/-   ##
=========================================
  Coverage          ?   53.13%
=========================================
  Files             ?      215
  Lines             ?    25827
  Branches          ?     5695
=========================================
  Hits              ?    13724
  Misses            ?     9793
  Partials          ?     2310

Continue to review full report at Codecov.

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

Meaning that if the UART driver enabled doesn't support UART_INTERRUPT_DRIVEN, than the modem driver shouldn't be available.

I kinda can agree with this.
Throw from poor user perspective, who know what is better - to be able to select the driver and get build error to pull hair with questions "where's my driver"? (But as such happens in many other places, the answer is clear - it should be done right.)

I'm going to do some sleuthing and see why the original depend behavior is currently broken.

So after some digging, there is a Kconfig for serial drivers:
SERIAL_SUPPORT_INTERRUPT: This is an option to be enabled by individual serial driver to signal that the driver and hardware supports interrupts.
And this one UART_INTERRUPT_DRIVEN: This option enables interrupt support for UART allowing console input and other UART based drivers.
So I believe this patch is doing the correct behavior by selecting UART_INTERRUPT_DRIVEN.
However, I will also add: depends on SERIAL_SUPPORT_INTERRUPT
@galak @pfalcon how does that sound?

Rebased and changed as described above.


Improve AI Division Designs

Sometimes AI will ignore the given infantry designs and will make 3 Art + 5 Inf Devisions, for larger nations this means they build a ton of these divisions and might cause lag on weaker computers since they will have 150+ units by 1939.
It will also only build those troops and not build tanks, mechanized, ect. The default AI could  be improved in this regard.

It'd be awesome if we could mod AI behaviour but, for the moment, we can only rely on the vanilla one, to avoid screwings.


Post Terms of Use for Public Sigstore Infrastructure

I believe the Linux Foundation has drafted some suggested language for Terms of Use for the public Sigstore infrastructure.
Once the drafted has been reviewed and posted at a public URL, we can link to it as we work on things like npm supports creating verifiable links between a package version and its source/build - Public beta.

cc @bobcallaway

This has been completed.


Support field-specific coloration in TextFormatter

Motivation
When debugging complex applications, it can be hard to group lines of logging output together at a glance.  Furthermore, there may be several meaningful ways to group lines of output, e.g.:

by service name
by process identifier
by IP
etc...

Allowing users to define per-field coloration in logrus.TextFormatter would give users the tools necessary to create such visual groupings, without forcing its use.
Implementation
As far as I can tell, this can be accomplished in a relatively straightforward way.  I propose the following approach:
Step 1:  define a Colorizer interface
Objects implementing the Colorizer interface will be colorized in log output.  In this example, we use aybabtme/rbgterm, but this can be trivially eschewed in favor of another ANSI color library, if needed.
type Colorizer interface {
    Color() string
}

Step 2:  tweak TextFormatter.appendValue to use Colorizer
func (f *TextFormatter) appendValue(b *bytes.Buffer, value interface{}) {
        var stringVal string
	switch value.(type) {
	case Colorizer:
		b.WriteString(value.(Colorizer).Color())
		return
	case string:
		stringVal = value.(string)
	default:
		stringVal = fmt.Sprint(value)
	}

	if !f.needsQuoting(stringVal) {
		b.WriteString(stringVal)
	} else {
		b.WriteString(fmt.Sprintf("%q", stringVal))
	}
}

Here's an example of an object that will be colorized when logged:
type InstanceID uint64

func (id InstanceID) Color() string {
        return rgbterm.FgString(string(s), uint8(id), uint8(id>>8), uint8(id>>16))
}

Note that such functionality is extremely tedious to replicate outside of TextFormatter itself, and that this is fully backwards compatible.
Given the above, I think this warrants a modification to TextFormatter.  I'm happy to contribute the changes myself.

@lthibault it looks interesting, but I wonder if the value of the foreground colour would not dynamically  depend on the background color.
Is the interface you are suggesting enough to be able to do that ?
Is it possible with rbgterm to retrieve the current background colour of the terminal ?

@dgsb The proposed implementation is independent of rbgterm.  I'm using it as an example implementation of Color() string.
So yes, an implementation could fetch the background color and make appropriate decisions based on that.

@lthibault a pr would be highly welcomed. However, I'd rather have that implemented in a distinct formatter like ColoredTextFormatter to avoid any unexpected behavioural change in the existing implementation. You may want to factorize as much as possible between both implementation.

@dgsb Sure, that sounds reasonable.  I have a pretty busy week, but I'll try to find some time this weekend.  Stay tuned 😉

@dgsb PR is available at https://github.com/sirupsen/logrus/pull/931
Creating a separate ColorizedFormatter ends up duplicating the entire TextFormatter while only effectively changing a couple of lines.  I really think these changes are best made to TextFormatter directly; again, TextFormatter will continue to work as before unless it is passed structures with a Color method.
Also, note the slightly different implementation of Colorizer.  This is to gracefully handle quoted values, i.e.:  those for which needsQuoting returns true.

@lthibault I understand that modifying the TextFormatter would be a better engineering pratice, but our main priority is to not harm our user with incompatible changes.

@dgsb Understood.  My point was that this is a fully backwards-compatible change.  If the type doesn't satisfy the Colorizer interface, it is treated by the same code path as before.
I'm happy to create a separate Formatter if necessary, but it really does seem like the wrong choice given that:

The changes to TextFormatter are backwards-compatible
This effectively changes 3 lines.

@lthibault I come long time after the battle however I faced a similar use-case. I came up with a new formatter that support both colors for loglevels and hooks based on field name.
If the default hooks do not suit your need you can still add your own.
Check it out https://github.com/renard/go-cwformatter.
Comments / suggestions are welcome.


v-show in same HTMLElement but different Component the result is no expected

Version
3.0.0-rc.10
Reproduction link
https://codesandbox.io/s/sweet-benz-hm3z5
code like in Parent

      <Home v-show="true" />

and Home template is

something other

Steps to reproduce
click toggle button to set app.show=true
What is expected?
expected Home component invisible
What is actually happening?
now Home is visible

i think if any v-show is false, the result is invisible

v-show works by toggling a DOM element's display style property. Using v-show on a component implicitly applies that v-show on that component's root node. You are essentially creating two v-show with contradicting values on the same node, which doesn't make any sense.

I understand what v-show means. but I can't decide how users use it. So we don't recommend use v-show in root node ?


No space left on device

After using hie for some time, my operating system tells me:
/run/user/1000/ghc1095_0/ghc_17.s: hClose: resource exhausted (No space left on device)

/run/user/1000/ contains gazillions of bios-wrapper* files, as well as cabal-repl.* files , as well as ghc* files and haskell-lsp* files. Are those files simply not garbage collected?

Apparently not :/ This is an issue for hie-bios, probably.

Actually, according to Stack Overflow https://unix.stackexchange.com/questions/162900/what-is-this-folder-run-user-1000, this folder is cleaned on logging out of the session.

Yes, I'm able to fix this situation by removing the files. That isn't really satisfying though :D

Now there should be fewer temporary files, with hie-bios 0.5.0.

by the way, cabal-repl. files are from cabal, not our fault :)

Definitely hie itself is not generating temp files, and it is difficult to make cabal and ghc genertaing less of them so i would close this one
@pmiddend feel free to reopen if you think hie could do something to alliviate it


Virtual text highlight not respecting cursorline background

Make sure you have done the following

[X] I have updated to the latest version of the plugin.
[X] I have read the README.
[X] LSP inlay hints do work correctly without this plugin when using vim.lsp.inlay_hint.enable(true). (If not, then the problem lies with your LSP or your LSP configuration, not this plugin.)

Bug Description
Without plugin:

With plugin:

I use kanagawa and LspInlayHint highlight group links to NonText, but it looks like when the virtual text is created for some reason it is not displaying the same with cursorline as when the plugin is disabled
Relevant Screenshot
No response
To Reproduce

enable cursorline
set highlight group for cursorline
view inlay hints

neovim version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

Tbh, I am not sure why that happens, since the plugin does not change highlight groups at all. 🤔

Could it be how the virtual text is created?

ah found it, there is an extmark option for that. Fixed.


Clients should just ask for the url to a shape (not baseURL and table we currently have)

I've been exploring how apps can query for shapes. I've discovered three patterns so far:

Client just asks for the shape and the API proxies it e.g.

// Client
{
    shape: { table: `contacts` },
    baseUrl: `http://localhost:5173/shape-proxy`,
}

// Server
export async function handler({ params, request }) {
  const requestUrl = new URL(request.url)
  const { table } = params

  // Validate user can request this shape
  if (checkShapeAccessPermission(user, shapeDef)) {
    const originUrl = new URL(`http://localhost:3000/v1/shape/${table}`)
    requestUrl.searchParams.forEach((value, key) => {
      originUrl.searchParams.set(key, value)
    })
    return await fetch(originUrl.toString())
  } else {
    // 403 access denied
  }
}

Client asks for shape and API adds where clauses to restrict access e.g. in this case by the organization the user belongs to.

// Client
{
    shape: { table: `contacts` },
    baseUrl: `http://localhost:5173/shape-proxy`,
}

// Server
export async function handler({ params, request }) {
  const requestUrl = new URL(request.url)
  const { table } = params

  // Validate user can request this shape
  if (checkShapeAccessPermission(user, shapeDef)) {
    const originUrl = new URL(`http://localhost:3000/v1/shape/${table}`)
    requestUrl.searchParams.forEach((value, key) => {
      originUrl.searchParams.set(key, value)
    })

    // Restrict to contacts within the organization the user belongs to.
    originUrl.searchParams.set(`where`, `org_id = ${user.org_id}`)
    return await fetch(originUrl.toString())
  } else {
    // 403 access denied
  }
}

The third option isn't supported by our shape definition but which is that people could use normal REST API patterns e.g. /api/contacts. Then the API would just proxy that to the right URL on electric along with query parameters like ?offset=STRING.

In order to support this third pattern, users should just directly specify the backend URL to hit for a shape e.g.
const shapeDef = {
  url: `/api/shape/contacts`
}

This is also more elegant as it combines the baseURL and shape object into just the url.

This is also more elegant as it combines the baseURL and shape object into just the url.

Sounds good, the url is just an url. Let the layers above build the URL. Under 3. clients don't have to come-up with the shape definition is just a request to an API.
It is curious that the parameters still need to follow protocol. Eventually the server could know more about the session and even hide the details about the parameters.
I am now thinking that we should just send down with a response the next URL to fetch, instead of requiring the client figuring it out. This would abstract the parameters behind the URL too.

I am now thinking that we should just send down with a response the next URL to fetch, instead of requiring the client figuring it out. This would abstract the parameters behind the URL too.

Very interesting! Yeah, it makes sense — it's just a daisy chain you follow 🤔
The proxy gets a bit more complex though. Right now the pattern for the client is — stable URL path w/ changing offset & shapeId query params. In your idea, the proxy creates a new URL every time that the client reads and calls again.
I don't know if that helps much though? offset and shapeId are abstract values and any other scheme would end up very similar.

I was thinking on the use-cases of 3:

I like the possibility of having and endpoint that omits the shape definition parameters in a friendly way --- After the first call, you get the parameters to follow. perfect. (1)
In the spirit of allowing developers to build generic proxy apis, It seemed a bit of a limitation that endpoints still need to leak the sync-engine parameters. The reason I think generic proxy is important is because many devs will want to have a sort of backend in front of shape-requests.

The client is building the url by reading the headers x-electric-shape-id and x-electric-chunk-last-offset in a deterministic way, so it's equivalent to having url. But the url can be manipulated by the proxy, while the parameters don't.

I think this is consistent with replacing baseUrl and shape with url
Maybe its a x-electric-proxy-url that the protocol understands and subsumes the other parameters if present -- this gives optionality without commitment.

In your idea, the proxy creates a new URL every time that the client reads and calls again.

right, if there is some url-creation logic there needs to some introspection (even for the base REST case). I believe this proxy would be doing a lot of other things.
(1) building this through the proxy is a bit laborious and error-prone, in the future we could build a REST-api generator from registered shape definitions.

Cool yeah we'll see if anyone wants that in the future. A proxy right now is all of 4-5 lines of code and I suspect that's all most people will want.

yeah, entertaining the though that shape is just an url. Keep it simple


Update: add resource to movie section

update: Added something in README.md

LGTM! Great movie resource you've added! Keep contributing ^^ @sahana1s


Is all traffic passing through VPN ?

Is it possible to configure only part of the traffic to go through VPN ?
Is it a configuration on the server side or on all the client keys ?
Thanks !

The server pusses a route telling the client to forward all the IPv6 traffic.
See /etc/openvpn/server.conf:
push "redirect-gateway def1 bypass-dhcp"
That could be changed to meet your specific needs, take a look at the OpenVPN documentation.

@Nyr
how do i disable all traffic passing through vpn?
i only want  the vpn traffic only
what do i do to achieve this?


Analytics page (the other one)

Closes https://github.com/united-manufacturing-hub/MgmtIssues/issues/1617

Stacked it


Help Pane for Trident DI

#sign-off

#sign-off

@PennyZhou-MSFT  please use the private repo for all changes.

@PennyZhou-MSFT it's https://github.com/MicrosoftDocs/powerquery-docs-pr/ in this case.


fix(build): fix make_packages to not error when running build_test

When running build_test we don't create the ESM sources. .make_packages.js was looking for ESM sources in all cases. This change doesn't error when the ESM sources don't exist.

We just need https://github.com/ReactiveX/rxjs/pull/2851 checked in and test no longer tries to invoke make_pkg or others. build_test simply can go away.

Coverage remained the same at 97.399% when pulling 7edbb5255097069bdfde89127abf43459baa1dc4 on jasonaden:fix_build_test into 24854cf66172f91f55729765c4d64e61607563c8 on ReactiveX:master.

Closed in favor of #2851


VB-4070 - Add public UI automation tests as step in visit-scheduler pipeline

What does this pull request do?
Enable us to run public automation packages against the staging environment when changes are made to the underlying visit-scheduler API.
## JIRA Link
https://dsdmoj.atlassian.net/browse/VB-4070

Ignore PR for now - facing issues with env vars... Not ready for merging!


Xen doesn't work

Issue description
I am unable to get xen working on my system following the advise from https://nixos.wiki/wiki/Virtualization_in_NixOS with and without:
boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
virtualisation.libvirtd.enable = true;

Steps to reproduce

Set virtualisation.xen.enable = true;
Rebuild the system
Reboot and expect failure to boot

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[kreyren@leonid:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.43, NixOS, 21.05.961.1f91fd10406 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.12`
 - channels(root): `"nixos-21.05.961.1f91fd10406"`
 - channels(kreyren): `"home-manager-21.05, master, nixos-21.05.1226.f77036342e2"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

CC @edolstra @oxij

I haven't been using Xen for a while now so I have no idea if it's broken now.
But AFAIK you can't use both Xen and KVM together, so your config shouldn't work in any case.


Wrong requirements conflict when using mkPythonShell

Create this default.nix file:
let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix";
    rev = "7b0e7f6f58f7332c1b8347e2673036eada1a6998";
  }) {};
  src = builtins.fetchGit {
    url = "https://github.com/odoo/odoo";
    rev = "a08f4e00715dba4a0447dce879b46da0e581669e";
    ref = "15.0";
  };
in mach-nix.buildPythonPackage {
  inherit src;
  python = "python38";
  requirements = builtins.readFile "${src}/requirements.txt";
  requirementsExtra = "mock";
}

Run it:
> nix-shell --command "which python"
trace:
 automatically detected pname: 'odoo'
trace:
 automatically detected version: '15.0'
trace:
applying fix 'no-rust-build' (nativeBuildInputs) for cryptography:3.3.2

trace: removing dependency python3.8-setuptools-rust-0.12.1 from cryptography
trace: removing dependency python3.8-packaging-21.3 from cryptography
trace: removing dependency python3.8-setuptools-scm-6.3.2 from pyusb
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Executing setuptoolsShellHook
Finished executing setuptoolsShellHook
/nix/store/c502m2h2yfqymf9bg4jvvhj038pfimcb-python3-3.8.12/bin/python

Build it:
> nix-build
trace:
 automatically detected pname: 'odoo'
trace:
 automatically detected version: '15.0'
trace:
applying fix 'no-rust-build' (nativeBuildInputs) for cryptography:3.3.2

trace: removing dependency python3.8-setuptools-rust-0.12.1 from cryptography
trace: removing dependency python3.8-packaging-21.3 from cryptography
trace: removing dependency python3.8-setuptools-scm-6.3.2 from pyusb
/nix/store/r62rl5r911vc017x6jljh2a47d5c350k-python3.8-odoo-15.0

Cool!
Now let's say I want a shell with that and other tools. Add this shell.nix:
let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix";
    rev = "7b0e7f6f58f7332c1b8347e2673036eada1a6998";
  }) {};
  odoo = (import ./.);
in mach-nix.mkPythonShell {
  python = "python38";
  packagesExtra = [odoo];
}

Run it:
> nix-shell --command "which python"
trace:
 automatically detected pname: 'odoo'
trace:
 automatically detected version: '15.0'
building '/nix/store/pfzjq2gbcrp516d4a3mz2yjxbli7p8mi-mach_nix_file.drv'...

Some requirements could not be resolved.
Top level requirements:
  odoo
Providers:
  {'_default': ['wheel', 'sdist', 'nixpkgs'],
   'gdal': ['nixpkgs'],
   'odoo': ['nixpkgs'],
   'pip': ['nixpkgs', 'sdist'],
   'setupmeta': ['wheel'],
   'setuptools': ['nixpkgs'],
   'wheel': ['nixpkgs', 'sdist']}
Mach-nix version: master
Python: 3.8.12
Cause: None
The requirements which caused the error:
  freezegun (<SpecifierSet('==0.3.11')>,) python_version < '3.8' - parent: odoo:15.0
  freezegun (<SpecifierSet('==0.3.15')>,) python_version >= '3.8' - parent: odoo:15.0

The given requirements might contain package versions which are not yet part of the dependency DB
currently used. The DB can be updated by specifying 'pypiDataRev' when importing mach-nix.
For examples see: https://github.com/DavHau/mach-nix/blob/master/examples.md

error: builder for '/nix/store/pfzjq2gbcrp516d4a3mz2yjxbli7p8mi-mach_nix_file.drv' failed with exit code 1
(use '--show-trace' to show detailed location information)

> nix-shell --command "which python" --show-trace
trace:
 automatically detected pname: 'odoo'
trace:
 automatically detected version: '15.0'
building '/nix/store/pfzjq2gbcrp516d4a3mz2yjxbli7p8mi-mach_nix_file.drv'...

Some requirements could not be resolved.
Top level requirements:
  odoo
Providers:
  {'_default': ['wheel', 'sdist', 'nixpkgs'],
   'gdal': ['nixpkgs'],
   'odoo': ['nixpkgs'],
   'pip': ['nixpkgs', 'sdist'],
   'setupmeta': ['wheel'],
   'setuptools': ['nixpkgs'],
   'wheel': ['nixpkgs', 'sdist']}
Mach-nix version: master
Python: 3.8.12
Cause: None
The requirements which caused the error:
  freezegun (<SpecifierSet('==0.3.11')>,) python_version < '3.8' - parent: odoo:15.0
  freezegun (<SpecifierSet('==0.3.15')>,) python_version >= '3.8' - parent: odoo:15.0

The given requirements might contain package versions which are not yet part of the dependency DB
currently used. The DB can be updated by specifying 'pypiDataRev' when importing mach-nix.
For examples see: https://github.com/DavHau/mach-nix/blob/master/examples.md

error: builder for '/nix/store/pfzjq2gbcrp516d4a3mz2yjxbli7p8mi-mach_nix_file.drv' failed with exit code 1

       … while realising the context of path '/nix/store/a0briqv8av1sava20dpxqvcixgab8rq8-mach_nix_file/share/mach_nix_file.nix'

       at /nix/store/4vfx4nqr1nsqibyxcavxvkb5wsqxx9x6-source/mach_nix/nix/lib.nix:180:16:

          179|       file = "${compileExpression args}/share/mach_nix_file.nix";
          180|       result = import file { inherit (args) pkgs python; };
             |                ^
          181|       manylinux =

       … while evaluating the attribute 'overrides'

       at /nix/store/4vfx4nqr1nsqibyxcavxvkb5wsqxx9x6-source/mach_nix/nix/lib.nix:187:7:

          186|     in {
          187|       overrides = result.overrides manylinux autoPatchelfHook;
             |       ^
          188|       select_pkgs = result.select_pkgs;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:76:22:

           75|     f: g: final: prev:
           76|       let fApplied = f final prev;
             |                      ^
           77|           prev' = prev // fApplied;

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:78:22:

           77|           prev' = prev // fApplied;
           78|       in fApplied // g final prev';
             |                      ^
           79|

       … while evaluating 'composeExtensions'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:75:18:

           74|   composeExtensions =
           75|     f: g: final: prev:
             |                  ^
           76|       let fApplied = f final prev;

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:69:67:

           68|   #
           69|   extends = f: rattrs: self: let super = rattrs self; in super // f self super;
             |                                                                   ^
           70|

       … while evaluating 'extends'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/fixed-points.nix:69:24:

           68|   #
           69|   extends = f: rattrs: self: let super = rattrs self; in super // f self super;
             |                        ^
           70|

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:233:14:

          232|       spliced = extra spliced0 // spliced0 // keep self;
          233|       self = f self // {
             |              ^
          234|         newScope = scope: newScope (spliced // scope);

       … while evaluating 'makeScopeWithSplicing'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:222:80:

          221|      hopefully it helps a little bit. */
          222|   makeScopeWithSplicing = splicePackages: newScope: otherSplices: keep: extra: f:
             |                                                                                ^
          223|     let

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/development/interpreters/python/default.nix:79:12:

           78|           aliases = self: super: lib.optionalAttrs (config.allowAliases or true) (import ../../../top-level/python-aliases.nix lib self super);
           79|         in lib.makeScopeWithSplicing
             |            ^
           80|           pkgs.splicePackages

       … while evaluating anonymous lambda

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/development/interpreters/python/default.nix:25:10:

           24|       pythonPackages = callPackage
           25|         ({ pkgs, stdenv, python, overrides }: let
             |          ^
           26|           pythonPackagesFun = import ../../../top-level/python-packages.nix {

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:69:16:

           68|     let
           69|       result = f origArgs;
             |                ^
           70|

       … while evaluating 'makeOverridable'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:67:24:

           66|   */
           67|   makeOverridable = f: origArgs:
             |                        ^
           68|     let

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:121:8:

          120|       auto = builtins.intersectAttrs (lib.functionArgs f) autoArgs;
          121|     in makeOverridable f (auto // args);
             |        ^
          122|

       … while evaluating 'callPackageWith'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/lib/customisation.nix:117:35:

          116|   */
          117|   callPackageWith = autoArgs: fn: args:
             |                                   ^
          118|     let

       … from call site

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/development/interpreters/python/default.nix:24:24:

           23|     }: let
           24|       pythonPackages = callPackage
             |                        ^
           25|         ({ pkgs, stdenv, python, overrides }: let

       … while evaluating the attribute 'passAsFile'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/build-support/buildenv/default.nix:77:5:

           76|     # XXX: The size is somewhat arbitrary
           77|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |     ^
           78|   }

       … while evaluating the attribute 'passAsFile' of the derivation 'python3-3.8.12-env'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

       … while evaluating the attribute 'nativeBuildInputs' of the derivation 'interactive-python3-3.8.12-environment'

       at /nix/store/5n402azp0s9vza4rziv4z5y88v2cv1mq-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:205:7:

          204|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          205|       name =
             |       ^
          206|         let

That error doesn't make much sense, since the requirements seem perfectly valid and resolvable, as they were for the package.

I found the workaround. Use this shell.nix:
let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix";
    rev = "7b0e7f6f58f7332c1b8347e2673036eada1a6998";
  }) {};
  odoo = (import ./.);
in (odoo.pythonModule.withPackages (ps: [odoo])).env

It works as expected:
> nix-shell
trace: removing dependency python3.8-packaging-21.3 from cryptography
trace:
applying fix 'no-rust-build' (nativeBuildInputs) for cryptography:3.3.2

trace: removing dependency python3.8-setuptools-rust-0.12.1 from cryptography
trace: removing dependency python3.8-setuptools-scm-6.3.2 from pyusb
trace:
 automatically detected pname: 'odoo'
trace:
 automatically detected version: '15.0'

[nix-shell:~/prodevel/nixdoo/test]$ odoo --version
Odoo Server 15.0

[nix-shell:~/prodevel/nixdoo/test]$ python -c 'import odoo; print(odoo.release.version)'
15.0

[nix-shell:~/prodevel/nixdoo/test]$
exit


feat(dropdown): close on ESC keypress

Not sure how to test it, at least not just yet :-)
Oh, and we need to have a conversation with clang format....

How much fire to apply to clang format?

Tried to test it with KeyboardEvent and dispatchEvent but is a no go.

Does ng2 not support keypress?
Also, I'm very unhappy with clang-format. How it indents the test files are no good.

If tests are not doable, that is something else to issue at core, don't you think?

Any update on testability of this? If not, we could merge it and retroactively test it

Any update on testability of this?

Nope, didn't look into testing things that are triggered by keyboard events...

If not, we could merge it and retroactively test it

We could do this, but if anyone could give me a hand and dig into it, that would be awesome

Could dispatchKeyEvent function help? https://github.com/ng-lightning/ng-lightning/blob/master/test/helpers.ts#L11
You can call it like: dispatchKeyEvent(el, 'Escape');

@bekos nice, thnx. I was hoping that we can have this kind of helper in the core, though. Will add it to my TODO list to discuss with Julie (or maybe it exists already?)

@Foxandxss @wesleycho @bekos I think I've found a (simple) way to test those keyboard events, check the test in this PR.
Could you please have a look so we can merge it? It was sitting around for wayyyy to long :-)

Sounds good brother.


Support of docker-compose.*.yml

[x] I'm sure this issue is not a duplicate.

VSCode icons already has support for plenty of docker-compose configuration files, but lacks the support for custom overrides for the configuration, like: docker-compose.prod.yml, docker-compose.debug.yml, docker-compose.admin.yml, etc. I'm suggesting to add a glob icon for docker-compose.*.yml files or at least link the docker-compose icon with these three files.

Hi @FedorLap2006 but unfortunately vscode doesn't offer support for glob in icon themes. You can use custom configuration from our extension to achieve whatever you want.


Add output-path to Docs

  - name: fernapi/fern-typescript-sdk
    version: 0.0.206
    mode: publish
    output-path: ./generated-typescript-sdk

skipping for now because the fern generate which uses drafts and fern release which uses publish story is not straight.


Fix titles and descriptions for DMON, RONT, NONT

Object types DMON, RONT and NONT did not specify a title or description for ty_main. For this reason the JSON schema has neither a title nor a description.
See #561

closes #561

Thanks @larshp for your review. I am waiting for input by @Ehret-Thomas until the end of the day. Latest then, I will merge it. If more changes are required (because @Ehret-Thomas does not manage to look into it, today), we could also add them later.

no hurry


Write source maps for .mjs

Closes demurgos/turbo-gulp#84

Codecov Report

Merging #86 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   66.88%   66.88%
=======================================
  Files          38       38
  Lines         912      912
  Branches       99       99
=======================================
  Hits          610      610
  Misses        232      232
  Partials       70       70

Impacted Files
Coverage Δ

src/lib/target-tasks/build-typescript.ts
62.74% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


The input/output semantics figure link is missing in the operator document

https://github.com/dmlc/mxnet/blob/master/doc/developer-guide/operator.md

Hi,
Thank you for your input! We will complete the missing link as soon as possible.
Best,
Minjie


Struts2 i18n is not working with mustache.js

In my application we are using Struts2 framework. After seeing the benefits of mustache.js, I have integrated mutache template in my application.
Here is the flow,

I am loading values from JSON through ajax. Here is the JSON
{
"informationType": [{
"infotype": "ANCA",
"subtype": ["AS", "AI", "AG", "BS", "BB"]
}, {
"infotype": "HW",
"subtype": ["SM", "RPQ"]
}]
}

I am rendering the loaded JSON through mustache.js templating.
this.$select.html(Mustache.render(this.template,this._informationType));

Here is the template from my jsp page.

It works perfectly and it loads the values exactly as in my json. However, what I need is to load the translated text based on my json value though Struts2 i18n.
So I tried passing the {{.}} to <s:text name="{{.}}"/> its not picking the translated values rather printing the same text from my JSON.
Here is the code I have tried,

I assume that the {{.}} returns the object type so its not loading the value from value stack.
Note: If i pass the hardcoded json value like this "<s:text name="ANCA"/> rather <s:text name="{{.}}"/> its returning values.
can anyone help solve this problem. Thanks in advance.

Just to break the silence here, I have never worked with Struts so I'm not sure I'll be much of help to you, but I know not getting any feedback are more frustrating.
Have you implemented this with server side rendering w/mustache.java or is it only client side w/mustache.js so far? If the latter, I'm suspecting the <s:text name="{{.}}"/> is something executed by the server, before sent to the client? If so the server/Struts possibly doesn't know what {{.}} means and therefore doesn't behave as you'd expect.
A possible solution without having to implement mustache on the server as well, is translating the strings before putting them into the JSON payload sent the client.

Thanks a lot for taking your time to answer my question.... Yes, I have used Struts ognl tags  to populate all the values from json to front end, which provides the same advantage of using mutache... Thanks again. :)


Introduce lock for kubevirtconfiguration callbacks

Is your feature request related to a problem? Please describe:
Describe the solution you'd like:
See https://github.com/kubevirt/kubevirt/pull/9048#discussion_r1071300845
Describe alternatives you've considered:
Additional context:

/cat

/label good-first-issue

hi there, i'd like to contribute to this issue as part of a class project at ut austin—would that be alright @xpivarc? thanks!

/assign @kgurazad
All good, I am happy to review the PR.

/reopen
/remove-lifecycle rotten


Alternate URLs: Always un-hyphenate

Is your feature request related to a problem? Please describe.
Many of our alternate_urls are based on removing hyphens from the canonical URLs. For eg:
antix-linux -> antixlinux
vmware-vcenter -> vmwarevcenter
vmware-srm -> vmwaresrm
ruby-on-rails -> rubyonrails
vmware-horizon -> vmwarehorizon

Describe the solution you'd like
Automatically generated un-hyphenated variants of each permalink, so these don't have to be added manually.
Describe alternatives you've considered
Adding support for underscores as well similarly (so /nutanix_prism will go to /nutanix-prism as well).
Additional context
Discussion at https://github.com/endoflife-date/endoflife.date/pull/2401

This will require a new Jekyll filter that take as its input the list of all pathes (permalink + alternate_urls) and returns a new list with all those pathes plus the un-hyphenated pathes (without duplicates).

Think this could be done within Liquid directly.
Will take this up.

Would be best if alternate_url was enriched in https://github.com/endoflife-date/endoflife.date/blob/master/_plugins/product-data-enricher.rb.


[Node v10.15.0 64-bit] Calling Jsonix.Context([...]) results in "Uncaught RangeError: Maximum call stack size exceeded"

Jsonix_Files.zip
I am attempting to create a node.js client for a vendor's API.
I used the Jsonix Schema Compiler to generate the JavaScript file for creditcard_loan, and I can run that just fine in my unit tests.
When I run my unit tests for personal_loan though I get
RangeError: Maximum call stack size exceeded
    at Class.build (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:2232:20)
    at Class.build (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:2236:25)
...
at Class.build (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:2236:25)
    at Class.buildTypeInfos (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:3993:13)
    at Class.processModules (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:5921:13)
    at Class.initialize (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:5889:10)
    at new Class (C:\Users\jwmccann\source\repos\loanspq\node_modules\jsonix\jsonix.js:44:19)

I found issue #114 and tried to follow the guidance of using a bindings file, but didn't get any where.
From what seemed to be the root cause of issue #114 I looked through the generated JavaScript for personal_loan and found that the DECLARATIONS under PERSONALBASEAPPLICANT may be the issue. So I tried commenting out the DECLARATIONS element from the personal_loan.xsd, regenerated the JavaScript, and my unit tests started passing. When I compared this DECLARATIONS to the creaditcard_loan I found that the creditcard_loan appears to have the same structure as personal_loan, so I am struggling to why the creditcard_loan works, but the personal_loan does not.
Is there anything here that  you can help with? Or any more information you might need to be able to help?

Also, I found that it seems to be specific to the SPOUSE of the APPLICANT on the personal_loan.
If I comment out the DECLARATIONS element under PERSONALBASEAPPLICANT or the SPOUSE element (which is a PERSONALBASEAPPLICANT) under APPLICANT I can get my unit tests to pass for personal_loan

Some how, adding this complexType to the original personal_loan XSD (and changing absolutely nothing else) allows my unit tests to pass
  <xs:complexType name="aslkdfjhakjnviasdth">
    <xs:complexContent mixed="false">
      <xs:extension base="BASE_APPLICANT">

      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

and the XML document deserializes correctly as far as I can tell.

Please send me a PR with a reproducing test project here:
https://github.com/highsource/jsonix-support/tree/master/l/lpq
Ideally you'd provide a generating script and some kind of a test case. Here's an exemplary test project:
https://github.com/highsource/jsonix-support/tree/master/r/reqif
Then I will look into it.
Apparently there's some kind of an infinite cycle, but I can't tell what's causing it exactly.


One conda envs with two titles (on remote server)

Does this issue occur when all extensions are disabled?: No

VS Code Version:

OS Version:

Host: windows 11 23H2 22631.3085
Remote: Ubuntu 22.04
Steps to Reproduce:

create a new conda enviroments and set the vscode to the python in the enviroment in an remote server ()
you could see this:

patch fool is a user defined conda envs name and base is the default envs in conda.

This looks like your remote server's Bash prompt which might be configured in ~/.bashrc. It is not related to VS Code from what I see.

It happened to me also. After an update I got the same issue as #204956 when I opened vscode from the menu. I got it "fixed" by opening it from terminal, but I get the double env titles, which the right one is the current env. I don't think its neither a conda bug, neither my bashrc because I haven't touched it years now.
OS: Debian 12

Thanks for your feedback. It is just what happened to me. Is issue #2049546 related to this?

As I mentioned I encountered the #2049546 issue and because I needed to work with conda env the only solution was to code . in my path in terminal, which enabled the conda env but with the double titles. The #2049546 still happens to me whhen I open vscode from menu

I'm also having this issue of having multiple (not just two!) conda env activated in my vscode terminal. It seems the active python is from the (base) not (py39).
(py39) (base) zeyusun:~/imax-calibration$ which python
/opt/anaconda/anaconda3/bin/python
(py39) (base) zeyusun:~/imax-calibration$ conda deactivate
(base) (py39) zeyusun:~/imax-calibration$ which python
/opt/anaconda/anaconda3/bin/python
(base) (py39) zeyusun:~/imax-calibration$ conda deactivate
(py39) (py39) zeyusun:~/imax-calibration$ conda deactivate
(base) zeyusun:~/imax-calibration$ conda deactivate

This is annoying. I can work around that by manually deactivating. Just want to see if anyone have a better solution for this issue.
The "Python: default interpreter path" in my user settings is "/home/zeyusun/.conda/envs/py39", and it is "python" in my workspace setting. I also have conda initialization scripts pasted in the .bashrc file in my home directory.

I don't see this as a VS Code Remote or Dev Containers issue. Are there minimal steps to reproduce in a Dev Container that do not reproduce the issue without a Dev Container?

Hi, Chrmarti, thanks for your commitment to this problem. Do you mean we should provide a reproducible case that only reproduces this phenomenon in the Dev Container running on an OS but not directly in the OS system environment? I found this issue while I was trying to use my VSCode to connect my remote server. I previously set up a project with a conda environment (DETR). After I close the VSCode window and open the vscode with the same object again, You could find that phenomenon happened.  I provide a video about this issue. Could this help?
video link:
https://drive.google.com/file/d/1awsrbnvTjL03xC4O9dhO9Z4jZmE1ao4D/view?usp=drive_link

Thanks @Draudnaut !
@DonJayamanne This might be an issue with the kernel switcher. I see the problem appear around 1:23 in the open terminal after the user picked a kernel from the Quick Pick. (Could you move this issue to vscode-python?)

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


[front] chore: Add vault columns in connection management

fixes: https://github.com/dust-tt/dust/issues/7300
Description
Add a new column in connection management that show in which vault a resource is available

Risk
Deploy Plan
deploy front

Left some nits.
One concern though, isn't it gonna get non readable ? I mean if one file is accessible to 10 vaults... this is gonna be a tiny bit nasty, isn't it?

Agree, but that's what has been designed. Another concern is that our datatable does not correctly handle columns width.


Bug report

Describe the bug
I encountered a problem:
Two types of router addresses randomly appear on devices on the same LAN, such as
<IP_ADDRESS>
<IP_ADDRESS>
When using local area network transmission tools such as snapdrop, devices can be identified, but cannot be identified in localsend. I hope this problem can be resolved.
To reproduce
When a device can be recognized normally under the same router address, it cannot be recognized when there are two different router addresses.
Expected behavior
Successfully identified on the same LAN
Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response

According to the localsend protocol, I find it difficult to do this because the port is fixed and an IP represents a device (I guess).


Mazumder - Run Error Testing on the Data Dictionary V1.3 + Release V1.3 data dictionary to GitHub

Error Testing and Data dictionary are ready for your review. please check if the RexEx are now usable for you.


JS implementation?

Congratulation on this amazing work. I would like to run some of these shaders on React Native where WebGPU is available via a JS binding.
I was looking at lib.rs to get a sense of how much boilerplate would need to be rebuilt to run it in JS.
Do you think it something doable? If I were to tackle this, would be be open to give me some guidelines on what would need to be done to get this working?

WASM already in JS VM except Hermes https://github.com/facebook/hermes/issues/429
If someone will port compute.toys to JS we probably will switch to JavaScript, because wgpu not support some experimental web-sys features https://github.com/gfx-rs/wgpu/issues/5685

I've started porting the engine to typescript in https://github.com/compute-toys/compute.toys/tree/nowasm (preview deployment). It's not yet complete enough to run every shader on the site, but many of them work already.
(I am getting fed up with the webassembly ecosystem still continuing to randomly break shit after all these years... next year is its 10 year anniversary and apparently stability is still nowhere in sight)

@davidar thank you for the update, this is very interesting.

@davidar Thank you again for your PR, I this is very useful. I have a very beginner question, what are the benefits of using a computer shader instead of a quad + fragment shader? Are the benefits substantial? Sorry as it might sound as a "silly" question

With fragment shaders the main limitation is that (roughly speaking) each thread is associated with a specific pixel, so your code has to fit into the form of a function which takes a pixel coordinate as the input and outputs the pixel colour. People on shadertoy have done lots of very clever things within this restriction (particularly voronoi tracking and jump flood), but it does limit the kinds of programs you can run.
The main extra feature that compute shaders bring is the ability to write outputs to random-access buffers. This means that, instead of each thread only being able to influence the colour of a single pixel, they can write values into arrays that influence the colour of many pixels across the entire frame. This is useful for a bunch of different things, particularly particle systems (where you want each thread attached to a particular particle which could be anywhere on the screen).
A nice illustration of the difference is rendering the Buddhabrot fractal - with a fragment shader (and an accumulation buffer) it takes many frames to converge, whereas with a compute shader you can render the entire thing every frame.

Thank you so much David for taking the time to explain it to me. Really appreciate it and wishing you the best for the upcoming new year :)


Server error when using Import tool

Receiving an generic Internal server error when trying to import from the global site
Root > English homepage > Sandbox > IIPC Training Package
to sa.goodinternet.org
Root > English homepage > Sandbox
So that it ends up in the sa.goodinternet.org Sandbox.

The logs on the global site show an error message that is related to the upgrade to Wagtail 3. Specifically, one of the Wagtail settings was renamed from BASE_URL to WAGTAIL_BASE_URL in v3. The Wagtail Transfer component has not been upgraded yet, and it uses BASE_URL, which is now no longer available.
Later versions of Wagtail Transfer have compensated for this change, so we need to upgrade to a version (0.8.5) than is compatible with Wagtail v3 while maintaining the customisations we have made for IoGT.


Type is missing the following properties

I need some help. I create User entity by using typeorm and I want to overwrite toResponseObject
at Customer class for change return attribute but when I write finished the error occurs as "Type '{ userName: string; firstName: string; lastName: string; email: string; address: Address; token: string; }' is missing the following properties from type 'User': password, hasPassword, toResponObject, comparePassword" I guess this means I should return all of User Property but I don't want to return all of the attributes. What should I do?
user.entity.ts
import {PrimaryColumn, Column, BeforeInsert} from "typeorm";
import * as bcrypt from 'bcryptjs'
import * as jwt from 'jsonwebtoken'

export abstract class User {

    @PrimaryColumn()
    userName: string;

    @Column()
    password: string;

    @Column()
    firstName: string;

    @Column()
    lastName: string;

    @Column()
    email: string;

    @BeforeInsert()
    async hasPassword(){
        this.password = await bcrypt.hash(this.password,10)
    }

    async toResponObject(showToken:boolean = true){
        const {userName,firstName,lastName,email,token} = this
        const responseObject = {userName,firstName,lastName,email,token}
        if(showToken){
            responseObject.token = token
        }
        return responseObject
    }

    async comparePassword(attemp:string){
        return await bcrypt.compare(attemp,this.password)
    }

    protected get token(){
        const {userName,password} = this
        return jwt.sign({userName,password},process.env.SECRETKEY,{expiresIn:'7d'})
    }
}

customer.entity.ts
`import { Pet } from "../pet/pet.entity";
import { Address } from "../address/address.entity";
import { Order } from "../order/order.entity";
import { Feedback } from "../feedback/feedback.entity";
import { User } from "../user/user.entity";
import { Entity, Column, ManyToOne, OneToMany } from "typeorm";

@Entity()
export class Customer extends User {

    @Column()
    phoneNumber: string;

    @OneToMany(type => Pet,pet => pet.owner)
    pets: Pet[];

    @ManyToOne(type => Address)
    address: Address;

    @OneToMany(type => Order,order => order.customer)
    orders: Order[];

    @OneToMany(type => Feedback,feedbacks => feedbacks.customer)
    feedbacks: Feedback[];

    async toResponObject(showToken:boolean = true):Promise<User>{
        const {userName,firstName,lastName,email,address,token} = this
        const responseObject = {userName,firstName,lastName,email,address,token}
        if(showToken){
            responseObject.token = token
        }
        return responseObject  // error ocuurs at this line
    }

}`

Did you not notice the issue template for questions? Or do you use a custom client for GitHub?
https://github.com/Microsoft/TypeScript/blob/master/.github/ISSUE_TEMPLATE/Question.md


Non-string translationId should be converted to string before calling trim

Non-string translationId should be converted to string before calling trim polyfill.
Real life example: angular-rangeslider gives user ability to specify output filter, but always passes numbers to it and this causes error since angular-translate tries to call replace on these numbers.

Yes, this would be internal enhancement. Said this, everything other than a string is not supported by definition.

https://github.com/angular-translate/angular-translate/blob/133463ab279b6852f1f5190c43e12b6dcefe41f4/src/directive/translate.js#L15
https://github.com/angular-translate/angular-translate/blob/133463ab279b6852f1f5190c43e12b6dcefe41f4/src/filter/translate.js#L13

But null and undefined values are supported?

In the filter (more precisely in the instant - translation function of the service), we have a check on if the key is null or undefined. In this case it returns the translationKey... (so in that case null or undefined).

OK, close this issue, I will fix this on our side by adding custom filter-wrapper.


Permission Enum doesn't contain all permissions.

Please consider making a Pull Request if you are capable of doing so.
May I pull a request to add more permission to Permission enum?
What module does this apply to?
Core
Description what you'd like to happen:
I need to use MODIFY_AUDIO_SETTINGS permission, but I wonder why it's not in the permission enum. So, would it be okay if I pull a request to add that along with a bunch of other permission?
Describe alternatives you've considered:
I couldn't find a workaround on this besides adding more permissions to the permission enum.

I was wrong.


LocalSearch should be able to take unary route operators

Right now, the LS structure can take node operators that work on node pairs $U$ and $V$, or route operators that work on route pairs $U$ and $V$ (some abuse of notation). For nodes it makes sense that we cannot pass in single nodes, I think, since there's not a whole lot we might want to do for just one node.
For routes, however, there are a number of intra-route operators we could benefit from. One is already implemented right now, directly on the LS class: enumerateSubpaths(). That is really not the place for it, and has bothered me for some time.
This issue aims to do two things:

[ ] Have LocalSearch add another add_route_operator() method that takes operators applying only to single routes.
[ ] Make enumerateSubpaths() the first standalone intra-route operator.

This might not happen in light of #90, and the question whether we want to keep enumerateSubpaths() as an operator at all.


not all the gists are displayed (pagination)

Hello.
I noticed that not all my gists appear on the menu  Since GitHub API limits the number results by default, and after looking at the code, I think its only returning the first page.
This is a big limitation for those who have many gists.
A possible solution would be to iterate over each page but I am afraid that would make the extension slower.
Any ideas?

closing in favor of https://github.com/kenhowardpdx/vscode-gist/issues/1


Profile Lookup Challenge—Periods (Full Stops) in Return Statements Fail Last Two Checks

Profile Lookup (Basic JavaScript)

https://www.freecodecamp.com/challenges/profile-lookup
Periods (Full Stops) in Return Statements Fail Last Two Checks

All things equal, a solution with the return statements "No such property." and "No such contact." will be counted wrong because they include periods, whereas statements without periods are correct.
Browser Information

Chrome, Version: 51.0.2704.103 (64-bit)
Mac OS X Version 10.11.5
Desktop

My Code

//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];

function lookUpProfile(firstName, prop){
// Only change code below this line
  for (i = 0; i < contacts.length; i++){
    if (firstName === contacts[i].firstName){
      if(contacts[i].hasOwnProperty(prop)){
        return contacts[i][prop];
      }
      else{
        return "No such property.";
      }
    }
  }
  return "No such contact.";
}
// Only change code above this line

// Change these values to test your function
lookUpProfile("Akira", "likes");

Screenshot

I would say that the last two tests didn't fail but were actually successful. If you look at the instructions it doesn't ask for a period. So, it's evaluating for the string specified (not up until a boundary or partial string). In my opinion, massaging a string into different levels of 'correctness' would be wrong because one dot, bracket, semicolon, or parenths can cause you lots of grief (often does) when you're programming. So, keeping an eye out for little things is important and is something that should be learned early on.

@powell956 thanks for the issue but as @qmikew1 has pointed out, the instructions ask specifically for no periods. The instructions do not have a typo. In the future, if you get stuck with or have a question about a challenge, please first ask questions to the Help Room. Happy coding!

I thought I wrote the same code with @powell956 ,but I passed it . Anybody knows ? Here is my code:
//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
},
{
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}
];
function lookUpProfile(firstName, prop){
// Only change code below this line
for ( i = 0; i < contacts.length; i++) {
if (firstName === contacts[i].firstName){
if (contacts[i].hasOwnProperty(prop)){
return contacts[i][prop];
}else {
return "No such property";
}
}
}
return "No such contact";
// Only change code above this line
}
// Change these values to test your function
lookUpProfile("Akira", "likes");


Please publish v0.1.7 to npm.

It is published on GitHub, but not npm.

Version 0.1.7 is now published.


Images (albumart) not changed

Hi, 1st thx for a great component !!!!!!!
one small issue:
albumart ist not updated when it is changed with autohide is on
my other panel (textdisplay) is getting updated
greetings
ASopH

Hi, I hope I can help you!
With this configuration, the pictures in flowin are not automatically updated when I select another album/artist.

This flowin contains 4 pictures (Front;Back;CD and Artist). After I unShow and Show this flowin I can see the right select album art...
I hope it helps :-)
thank you for your help
btw. the File Information flowin ist updated instantaneous by selecting another album/artist! by open/visible flowin
autohide seems to be blocking update for these picture when hidden

https://github.com/ttsping/foo_flowin/commit/5e962678baaf3d291c4698b3636c3751bc4e8da5  solved.

Hi, you're quick! :-)
When is the new version out?
thanks for your work !!

Reminder - When is there a new version? -.-

Reminder - When is there a new version? -.-

https://github.com/ttsping/foo_flowin/releases/download/0.1.3/bin.zip

Hi, thank you !!
I'll test it and let you know!

Fast tested!
Thank you, it works as expected.
stay healthy!

Hi, as yesterday said: Works as expected!
This issue can be closed.
Thank you


Integration with extra modules

Hello !!
Not a problem, but a possible solution to help other people.
Come on!
I was looking for an html editor and this one served very well.
I noticed that for the user to use images and want to resize it, he should do this work before uploading to the editor.
However, I would like to allow the user to perform this basic treatment through the editor, without needing another tool for this purpose.
With this, I found an implementation that performs exactly what I needed and with examples of how to integrate with Quill.
Https://github.com/kensnyder/quill-image-resize-module
In short, since I did not find a way to perform this integration, I implemented a solution for this, as follows:
Props
props: {
    value: String,
    id: {
        type: String,
        default: 'quill-container'
    },
    placeholder: String,
    disabled: Boolean,
    editorToolbar: Array,
    editorModules: Array // <<-
}

Data
data() {
    return {
        quill: null,
        editor: null,
        modules: {
            toolbar: this.editorToolbar ? this.editorToolbar : defaultToolbar
        }
    }
}

Methods:
methods: {
    initializeVue2Editor() {
        this.prepareModules() // <<-
        this.setQuillElement()
        this.setEditorElement()
        this.checkForInitialContent()
    },

    // ...
    prepareModules() {
      if(this.editorModules !== undefined)
      {
          let self = this
          this.editorModules.forEach(element => {
            Quill.register('modules/' + element.alias, element.module)
            self.modules[element.alias] = element.config
          })
      }
    },
    // ...
}

Text translated by Google

Well done~!

@johnsoons can you please share the complete code, a working example will really help.
thank you.

Integration is now available in the newest version 👍


README needs instructions to add cluster IP and Port

Readme should include explicit instructions to add K8s cluster IP and Port. This is already in the notebook, but in small print and easy to miss:
5. Connect to OrientDB
Uncomment the first line after entering the IP address of the Kubernetes cluster and the port.

Hey scott,
The notebook makes use of the config file. I have given instructions in the readme to update the config file with IP address and the port.

Hey Scott,
I agree that makes sense. I have included the details for the same. Attaching the screenshot!

I think those details will be a big help.
One nit: You have these instructions first, in step 1. Then in step 3 you create the notebook. I think these instructions would be less confusing if you put them after creating the notebook. They could go in their own step.

Hey Scott,
I have added an additional step after the create notebook additional notes for the notebook


Upgrade execa to fix windows bug

I'm submitting a ...
[X] bug report

Summary

sindresorhus/execa#131
He published a new version which includes a Windows bugfix in cross-spawn, so upgrading it here will fix failing tests.

Just realized greenkeeper already opened #71 for this.


Closes #947 - Text translation

Added text translation files for legislators and testifiers about pages, and for the footer. Updated relevant components for translation. Updated pages to pass in translations.

@Mssamcodes
I know you are working on the text translation for issue #955, wanted to share for any feedback you might have. Thanks!

@alexjball
Thank you for the feedback! I'll take a look at issue #1010.

@alexjball Hi Alex, I will push #955 this week for you to review. Sorry, I have not been getting notifications for this here on GitHub.


Administrator left the company and I don't know how to get into company account

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@Abraxsys Sorry to hear that. This is about user privacy. Microsoft has very strict user privacy protection. There is no way for us to let you get into company account.

@Abraxsys Sorry to hear that. This is about user privacy. Microsoft has very strict user privacy protection. There is no way for us to let you get into company account.

That gave me a great laugh! Thanks:-)


However, as there a still variations in their training updates. So I provided a way to fix the seed that tensorflow uses as well.
$ songbird multinomial \
    --input-biom data/redsea/redsea.biom \
    --metadata-file data/redsea/redsea_metadata.txt \
    --formula "1" \
    --epochs 1000 \
    --differential-prior 0.5 \
    --summary-interval 1 \
    --summary-dir logdir/model5 \
    --split-seed 42 \
    --tf-seed 22
$ songbird multinomial \
    --input-biom data/redsea/redsea.biom \
    --metadata-file data/redsea/redsea_metadata.txt \
    --formula "1" \
    --epochs 1000 \
    --differential-prior 0.5 \
    --summary-interval 1 \
    --summary-dir logdir/model6 \
    --split-seed 42 \
    --tf-seed 22

And now it is identical between runs:

Proposed behavior:
When the above commands are run, I should at least get the same CV score, but furthermore, it should be possible to fix the entire training process.
In order to fix this I propose the following solution:

For QIIME2 plugin:

Have a fixed random seed for both tensorflow and train/test split

this ensures that all results that come out of Q2 for the same data are directly comparable, and the same optimization results are achieved every time
additionally removes the need for a user to understand how to appropriately set their on seeds

For the standalone interface:

Have a random seed option for the train/test split and tensorflow, that are independent of each other
Set a default seed for train/test split

again ensures that results are directly comparable by default

Have the option to set a seed for tensorflow, but is not set by default

This one is less of a big deal since the loss function is convex, but it is nice to be able to set if you want to recreate the exact same process

Summary of changes:

add --split-seed and --tf-seed option to the songbird CLI (and update parameter info accordingly)
add a unit test to scripts.test_songbird_cli that verifies that different combinations of these flags still run on the CLI
Set both random seeds to 0 in the Q2 plugin
add a test to the Q2 plugin that verifies subsequent calls on the same inputs have the exact same output

Hi @gwarmstrong , this is awesome.
What do you think about only having 1 seed passed in? I'm assuming that two seeds are defined due to numpy / TF differences. But you can imagine the following should work
def multinomial(..., seed):
    np.random.seed(seed)
    tf.set_random_seed(seed)

It'll be more ideal to only specify 1 seed to try to minimize the number of available options to the users.

Sure, I thought it might be nice to be able to adjust them independently. This could be helpful for, e.g., verifying that you get a somewhat consistent error minimum across different a random initialization, but with the same train/test split.
Given that the loss here is convex with respect to the parameters, my idea is probably less necessary and we can change to a single seed.

@mortonjt this should reflect the changes you suggested now

@mortonjt just a polite bump on this PR! Also noting that this issue has subsequently come up with multiple people within Knight Lab

If you run this command on a non-zero seed and post your tensorboard results on the example dataset (i.e. redsea) I'll can double check on my machine to make sure those results are reproducible.

Does the third tensorboard output in the original description work? Command and tensorboard screenshot is included. Or do you need additional information?

Yes, the output in the original tensorboard would work - but the interface changed right?

Ah right, that is when the seeds could be set separately. Sure, I will re-run and upload.

Try this on for size
$ songbird multinomial \
    --input-biom data/redsea/redsea.biom \
    --metadata-file data/redsea/redsea_metadata.txt \
    --formula "1" \
    --epochs 1000 \
    --differential-prior 0.5 \
    --summary-interval 1 \
    --summary-dir logdir/new_model \
    --random-seed 42

I was able to run and reproduce the results

Once the last comment regarding the qiime2 seed is done and verified to work, I can merge this in.

I think these changes are great and strongly agree that we should have a default seed set for the q2 plugin. As you mentioned if people want change or remove the seed they can use the standalone version, but it is critical that q2 produces reproducible results.
I'm going to update the readme to make it more clear:

how and why to use the null/baseline model
when to use the --p-training-column

Thanks for the awesome updates George!!

Thanks @lisa55asil . I'm going to merge this in.  @gwarmstrong thanks!