How to generate the exception responses on the server side?

In the tcp server example, there is no example of execption responses. There is no response such as IllegalFunction or IllegalDataAddress. This can be verified by the example, which always return input registers data, because the data is generated based on the request register count:
fn call(&self, req: Self::Request) -> Self::Future {
match req {
Request::ReadInputRegisters(_addr, cnt) => {
let mut registers = vec![0; cnt.into()];
registers[2] = 77;
future::ready(Ok(Response::ReadInputRegisters(registers)))
}
_ => unimplemented!(),
}
}
}
How can i generate the exeption responses? Actually, this code just work if the registers vector was the same length specified in cnt from the request. If I generated a bigger register vector, something like that:
fn call(&self, req: Self::Request) -> Self::Future {
    match req {
        Request::ReadInputRegisters(_addr, cnt) => {
            let mut registers = vec![0; 128];
            registers[2] = 77;
            future::ready(Ok(Response::ReadInputRegisters(registers)))
        }
        _ => unimplemented!(),
    }
}

}
an error occurs, cause the response implements a for of each register in the vector, which is not the same number of registers requested by the client.
Thanks in advance,
Gustavo

I consider this request as a special case of #128. We do not need to maintain multiple issues for the same overarching topic.
Please add your suggestions to the other issue. Thank you.


Structured Matrix Detection

If the sparse matrix actually has structure, it would be nice to have a way to detect that and return the structured matrix type.

If the sparse matrix actually has structure

Which matrix? :-)

I think it's just determine_structure(A::SparseMatrixCSC). Completely not type-stable of course, but analyses the sparsity pattern and spits out the matrix type.

Does anyone have that function anywhere?

Not that I know of. There are pieces of it in factorize:
https://github.com/JuliaLang/julia/blob/2fcb1b16fc734be41ebf348ddfe37809b081f027/stdlib/LinearAlgebra/src/dense.jl#L1196-L1224
I'd also want to catch if it's Banded, BlockBanded, or BandedBlockBanded. @dlfivefifty are constructors from sparse matrices implemented anywhere for those?

Constructors to sparse are implemented (sparse(::BandedMatrix)). From sparse is not but should be pretty easy, at least for banded: only need to overload bandwidths(A::SparseMatrixCSC). Something like this (though should be rewritten not to allocate):
function bandwidths(A::SparseMatrixCSC)
    Is, Js = ??? # Don't remember how to get the I and J indices from a sparse matrix
    maximum(Is - Js),maximum(Js - Is)
end


import button should do something immediately

It takes a second to start doing stuff (it only goes disabled right away, should probably start the progress bar or something)

fixed a0bdb6d


How to run only one test

Hi
I would like to run only a subset of tests.
e.g. one test or all tests for one module
With rebar3 it was something like rebar3 eunit --module=day04_test
It is possible with gleam test? How?
Thanks

gleam test will pass through any arguments, but gleeunit doesn't know how to do that yet. It would be a good feature to add for sure!

Closing as I think it's best to replace gleeunit with a more featureful package that isn't a thin wrapper in future.

https://hex.pm/packages/glacier_gleeunit or https://hex.pm/packages/glacier/ probably works as long as there is no better alternative


Raise zero probs

Fixes #93 Remove NA alternatives before calculating probabilities
Fixes #94 exit when no alternatives available
Fixes #124 tour_mode_choice incorrectly assigns coefficients
Changes utility coefficients in school_location, work_location, and mandatory_scheduling expression files to prevent no-alternatives-available errors (for which I created issues 121 and 122) These workarounds that set utilities to -100 instead of -999 to prevent errors from being thrown.

Coverage increased (+0.3%) to 96.15% when pulling 5957dd05286fb90bdc8a5f48655ca178c638e121 on raise-zero-probs into 6f992fa10ce5e9e8a6d213f69b078b54e5230f5a on master.


Upgrade to OPS4J Pax Logging 1.8.6

https://issues.apache.org/jira/browse/KARAF-4728

https://issues.apache.org/jira/browse/KARAF-4740, upgrade to 1.9.0 is planned


Parse correctly github uris, dont use cert ext uri

Summary
This PR modifies the signerIdentityFromCertificate function to ignore the signer from the cert extensions and instead use the identity from the certificate SAN as identity as specified by sigstore.
Also, we now ensure that the parsing we do to the actions URLs used as identities is only done when a certificate was issued from an actions token. All other URIs found are returned verbatim.
/cc @jhrozek
Change Type
Mark the type of change your PR introduces:

[x] Bug fix (resolves an issue without affecting existing features)
[x] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Updated the unit test with correct samples (correcting the wrong test cases from #3238)
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[x] Added comments to complex or tricky code sections.
[x] Updated any affected documentation.
[x] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 50.156% (+0.04%) from 50.119%
when pulling 0eedfa912d821204b52fa6e7d4b1b09493166625 on puerco:workflow-paths
into 0be15b9a485b1a3aad503d8b46f820a63cf34085 on stacklok:main.


how to export the mesh to fbx animation?

how to export the mesh to fbx animation?

Did you find an answer to this, or get it to export an .obj animation?


Error with stories15M and stories110M

When I use stories15M and stories110M I got an error.
  File "D:\_LLM_project\Development\gpt-fast\generate.py", line 114, in speculative_decode
    torch.cat([cur_token.view(1), draft_tokens]).view(1, -1),
RuntimeError: Tensors must have same number of dimensions: got 1 and 2

cur_token: tensor(6324, dtype=torch.int32)
cur_token shape: torch.Size([])
cur_token.view(1): tensor([6324], dtype=torch.int32)
cur_token.view(1,1): tensor([[6324]], dtype=torch.int32)
draft_tokens: tensor([[23717],
        [29889],
        [ 6324],
        [23717],
        [  338]], dtype=torch.int32)
draft_tokens shape: torch.Size([5, 1])

Please, help

I don't think anyone ever tried speculative decoding with tiny stories...

I don't think anyone ever tried speculative decoding with tiny stories...

@malfet
I also think so, but could it be a problem? Isn't right that all should be the same for all models from the model.py?

I use this
torch.cat([cur_token.view(1,1), draft_tokens]).view(1, -1)

Instead of this
torch.cat([cur_token.view(1), draft_tokens]).view(1, -1)

But I got another error
p = draft_probs[torch.arange(0, speculate_k, device=device), draft_tokens]
IndexError: index 23717 is out of bounds for dimension 1 with size 1

It works now. I should have been to change some shapes.
I just can use only small models.
May be it is possible to find something appropriate about 1B parameters size.

But, for now, it doesn't work for bs>1. But, I think, I can fix that by changing the code furthermore.

@deafTim  https://huggingface.co/meta-llama/Llama-3.2-1B :)

@malfet Thanks! I also need a smaller model for speculative decoding. The Stories model doesn’t seem to work very well.

@malfet When I use meta-llama/Llama-3.2-1B
Can it be fixed?
RuntimeError: Error(s) in loading state_dict for Transformer:
	Missing key(s) in state_dict: "tok_embeddings.weight", "layers.0.attention.wqkv.weight", "layers.0.attention.wo.weight", "layers.0.feed_forward.w1.weight", "layers.0.feed_forward.w3.weight", "layers.0.feed_forward.w2.weight", "layers.0.ffn_norm.weight", "layers.0.attention_norm.weight", "layers.1.attention.wqkv.weight", "layers.1.attention.wo.weight", "layers.1.feed_forward.w1.weight", "layers.1.feed_forward.w3.weight", "layers.1.feed_forward.w2.weight", "layers.1.ffn_norm.weight", "layers.1.attention_norm.weight", "layers.2.attention.wqkv.weight", "layers.2.attention.wo.weight", "layers.2.feed_forward.w1.weight", "layers.2.feed_forward.w3.weight", "layers.2.feed_forward.w2.weight", "layers.2.ffn_norm.weight", "layers.2.attention_norm.weight", "layers.3.attention.wqkv.weight", "layers.3.attention.wo.weight", "layers.3.feed_forward.w1.weight", "layers.3.feed_forward.w3.weight", "layers.3.feed_forward.w2.weight", "layers.3.ffn_norm.weight", "layers.3.attention_norm.weight", "layers.4.attention.wqkv.weight", "layers.4.attention.wo.weight", "layers.4.feed_forward.w1.weight", "layers.4.feed_forward.w3.weight", "layers.4.feed_forward.w2.weight", "layers.4.ffn_norm.weight", "layers.4.attention_norm.weight", "layers.5.attention.wqkv.weight", "layers.5.attention.wo.weight", "layers.5.feed_forward.w1.weight", "layers.5.feed_forward.w3.weight", "layers.5.feed_forward.w2.weight", "layers.5.ffn_norm.weight", "layers.5.attention_norm.weight", "layers.6.attention.wqkv.weight", "layers.6.attention.wo.weight", "layers.6.feed_forward.w1.weight", "layers.6.feed_forward.w3.weight", "layers.6.feed_forward.w2.weight", "layers.6.ffn_norm.weight", "layers.6.attention_norm.weight", "layers.7.attention.wqkv.weight", "layers.7.attention.wo.weight", "layers.7.feed_forward.w1.weight", "layers.7.feed_forward.w3.weight", "layers.7.feed_forward.w2.weight", "layers.7.ffn_norm.weight", "layers.7.attention_norm.weight", "layers.8.attention.wqkv.weight", "layers.8.attention.wo.weight", "layers.8.feed_forward.w1.weight", "layers.8.feed_forward.w3.weight", "layers.8.feed_forward.w2.weight", "layers.8.ffn_norm.weight", "layers.8.attention_norm.weight", "layers.9.attention.wqkv.weight", "layers.9.attention.wo.weight", "layers.9.feed_forward.w1.weight", "layers.9.feed_forward.w3.weight", "layers.9.feed_forward.w2.weight", "layers.9.ffn_norm.weight", "layers.9.attention_norm.weight", "layers.10.attention.wqkv.weight", "layers.10.attention.wo.weight", "layers.10.feed_forward.w1.weight", "layers.10.feed_forward.w3.weight", "layers.10.feed_forward.w2.weight", "layers.10.ffn_norm.weight", "layers.10.attention_norm.weight", "layers.11.attention.wqkv.weight", "layers.11.attention.wo.weight", "layers.11.feed_forward.w1.weight", "layers.11.feed_forward.w3.weight", "layers.11.feed_forward.w2.weight", "layers.11.ffn_norm.weight", "layers.11.attention_norm.weight", "layers.12.attention.wqkv.weight", "layers.12.attention.wo.weight", "layers.12.feed_forward.w1.weight", "layers.12.feed_forward.w3.weight", "layers.12.feed_forward.w2.weight", "layers.12.ffn_norm.weight", "layers.12.attention_norm.weight", "layers.13.attention.wqkv.weight", "layers.13.attention.wo.weight", "layers.13.feed_forward.w1.weight", "layers.13.feed_forward.w3.weight", "layers.13.feed_forward.w2.weight", "layers.13.ffn_norm.weight", "layers.13.attention_norm.weight", "layers.14.attention.wqkv.weight", "layers.14.attention.wo.weight", "layers.14.feed_forward.w1.weight", "layers.14.feed_forward.w3.weight", "layers.14.feed_forward.w2.weight", "layers.14.ffn_norm.weight", "layers.14.attention_norm.weight", "layers.15.attention.wqkv.weight", "layers.15.attention.wo.weight", "layers.15.feed_forward.w1.weight", "layers.15.feed_forward.w3.weight", "layers.15.feed_forward.w2.weight", "layers.15.ffn_norm.weight", "layers.15.attention_norm.weight", "norm.weight", "output.weight".

It seems like this model has a different architecture. Is there a way to fix that?
@malfet


Movable Generator Settings

This year especially has the generator setting covering the robot while it traveling in the lower left corner. It would great if we could move the generator settings to somewhere else, like the top right corner.

You can. Click and drag.

Oh, I just thought to try that.


Plugin Does not recognise Ikea On/Off Switch

Just updated the plugin to version 1.0.8 and attempted to pair an Ikea On/Off switch. After pairing any time activate the switch I get a "No device found from message". The switch does not show up in homekit.

Please, try to repair the device. It's working fine here in my house (just did the full process).
If the device is paired it should show up in the web interface exposed on port 9000 (same host of homebridge)


Grammar errors

"identify bounced email addresses" (capitalization)
"than" (then/than)
"the webhook URL may receive tens or even hundreds of posts per second" (wording)
"SendGrid's" (possessive)
"Event Webhook" (consistency)
Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @krischoi07,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


zuki-themes: init at 2016-07-01

Things done

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

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Please rebase


请求解决序列化问题

服务接口返回List，首个对象是null，输出为：[null]，请问有什么序列化全局配置可以将[null]转换为[]，谢谢

@miaoyinjun
Please attach your demo code or unit tests.

Would you please consider ask in English? Since this project is moved to ASF repo, we hope it is understandable by people all over the world so that everyone can join to discuss.
Also, please try to ask by sending an email to<EMAIL_ADDRESS>, issues is used to track bugs.

generally it should return null instead of  [] or [null]
@zonghaishang

My understanding is that if an empty object, the service provider is free to choose whether to save it in the list.

Seems to be a project-related problem, feel free to reopen this issue if you have more information


Thumbnail previews are showing locally but not publishing on GitHub

Using a docker container this has worked for the blog page but not on the front page - although this is blank not a broken link image.


Add digital certificate

@CathPag  Please can you review my work. I added a new commit where my made updates

@root21cuib, are you still interested in working on this? If not, I'll like to make the term available to someone else. Thank you!

Abandoned for #527


Consider to trigger neccessary Rollup Output Hooks in serve mode

Clear and concise description of the problem
Now in serve mode, Vite only trigger resolveId -> load -> transform and return transformed code as a vistable file.
In fact, a vistable file should be a chunk too.
Without trigger neccessary Rollup Output Hooks,
some rollup plugins, which using this.emitFile and import.meta.ROLLUP_FILE_URL_${refID}, coudn't work well in Vite.
Suggested solution
Please consider to trigger the neccessary Rollup Output Hooks in serve mode
resolveFileUrl/resolveImportMeta  -> renderChunk.
A simple hack here https://github.com/morlay/vite-presets/blob/main/src/plugin-context.ts#L72-L111
now just trigger the related hook in same plugin.
Need Vite to add this feature for support all plugins.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Supporting output hooks in dev doesn't make sense in dev because there are no actual chunks to process. IDs are resolved, loaded, transformed, and served back to the request. There isn't a slot where output hooks fit in the dev flow. Closing as not planned. You'd have to create a specific Vite plugin to support this instead.


Segmentation fault in to_stl( nullshape(), ... )

Calling
to_stl( nullshape(), "nullshape.stl", 0.1)
causes:
Current thread 0x00007faedeab3740 (most recent call first):
  File "/home/.../.local/lib/python3.7/site-packages/zencad/convert/api.py", line 23 in to_stl
  File "/home/.../.local/lib/python3.7/site-packages/evalcache/lazyfile.py", line 79 in unlazy
  File "/home/.../.local/lib/python3.7/site-packages/evalcache/lazyfile.py", line 43 in __call__
  File "threadstand.py", line 42 in <module>
Segmentation fault

python 3.7.3
installed by pip:
zencad 0.34.0
pyservoce 1.24.0
evalcache 1.13.0

Interesting.
There are two ways to handle this:

generate a file with an empty triangle set
throw an exception.

I think the second is more correct.

Interesting.
There are two ways to handle this:

generate a file with an empty triangle set
throw an exception.

I think the second is more correct.

Ok, I propose to output some diagnostic message to console (or in *.stl?) in this case because this exception is confusing.
My code was like this:
s = nullshape()
for x in range( ... ):
    s += ...
to_stl( s )

Accidentally I made range empty and was very confused by this exception :)


fix tab count in formatting

Found a bug with the tab counts between fields (Especially for partition numbers) whenever the name of the topic is too long. Added a fix so that there is at least one tab space in the formatted output between fields.
The following illustrates the problem:
# Without tab count fix
~$ kafkat partitions appointment_engine
Topic		Partition	Leader		Replicas						ISRs
appointment_engine0		4		[4, 7, 10]						[4, 10, 7]
appointment_engine1		6		[6, 9, 10]						[6, 9, 10]
appointment_engine2		6		[6, 4, 5]						[5, 6, 4]
appointment_engine3		8		[8, 0, 1]						[8, 0, 1]
appointment_engine4		9		[9, 1, 2]						[2, 9, 1]
appointment_engine5		10		[10, 2, 3]						[2, 10, 3]
appointment_engine6		0		[0, 3, 4]						[4, 0, 3]
appointment_engine7		1		[1, 4, 5]						[4, 5, 1]
appointment_engine8		2		[2, 5, 6]						[2, 5, 6]
appointment_engine9		3		[3, 6, 7]						[6, 3, 7]
appointment_engine10		4		[4, 7, 8]						[4, 8, 7]
appointment_engine11		5		[5, 4, 10]						[4, 5, 10]
appointment_engine12		6		[6, 10, 0]						[6, 0, 10]
appointment_engine13		7		[7, 0, 1]						[0, 1, 7]
appointment_engine14		2		[2, 8, 5]						[2, 5, 8]
appointment_engine15		9		[9, 2, 3]						[2, 9, 3]
appointment_engine16		10		[10, 3, 4]						[4, 10, 3]
appointment_engine17		0		[0, 4, 5]						[4, 5, 0]
appointment_engine18		1		[1, 5, 6]						[5, 6, 1]
appointment_engine19		2		[2, 6, 7]						[2, 6, 7]
appointment_engine20		3		[3, 7, 8]						[8, 3, 7]
appointment_engine21		4		[4, 8, 9]						[4, 9, 8]
appointment_engine22		6		[6, 5, 10]						[5, 6, 10]
appointment_engine23		6		[6, 0, 1]						[6, 0, 1]
appointment_engine24		7		[7, 1, 2]						[2, 1, 7]
# It can be seen that there is no tab space between topic name and partition number.

## After fix
 ~$ bin/kafkat partitions appointment_engine
Topic		Partition	Leader		Replicas						ISRs
appointment_engine	0		4		[4, 7, 10]						[4, 10, 7]
appointment_engine	1		6		[6, 9, 10]						[6, 9, 10]
appointment_engine	2		6		[6, 4, 5]						[5, 6, 4]
appointment_engine	3		8		[8, 0, 1]						[8, 0, 1]
appointment_engine	4		9		[9, 1, 2]						[2, 9, 1]
appointment_engine	5		10		[10, 2, 3]						[2, 10, 3]
appointment_engine	6		0		[0, 3, 4]						[4, 0, 3]
appointment_engine	7		1		[1, 4, 5]						[4, 5, 1]
appointment_engine	8		2		[2, 5, 6]						[2, 5, 6]
appointment_engine	9		3		[3, 6, 7]						[6, 3, 7]
appointment_engine	10		4		[4, 7, 8]						[4, 8, 7]
appointment_engine	11		5		[5, 4, 10]						[4, 5, 10]
appointment_engine	12		6		[6, 10, 0]						[6, 0, 10]
appointment_engine	13		7		[7, 0, 1]						[0, 1, 7]
appointment_engine	14		2		[2, 8, 5]						[2, 5, 8]
appointment_engine	15		9		[9, 2, 3]						[2, 9, 3]
appointment_engine	16		10		[10, 3, 4]						[4, 10, 3]
appointment_engine	17		0		[0, 4, 5]						[4, 5, 0]
appointment_engine	18		1		[1, 5, 6]						[5, 6, 1]
appointment_engine	19		2		[2, 6, 7]						[2, 6, 7]
appointment_engine	20		3		[3, 7, 8]						[8, 3, 7]
appointment_engine	21		4		[4, 8, 9]						[4, 9, 8]
appointment_engine	22		6		[6, 5, 10]						[5, 6, 10]
appointment_engine	23		6		[6, 0, 1]						[6, 0, 1]
appointment_engine	24		7		[7, 1, 2]						[2, 1, 7]

# At least one tab space is present between topic and partition

Thanks for the pull request! LGTM


Error: "Attempted to send event papercups:plan with payload {"plan":null} before iframeRef was ready"

Seems like this happens only within the React component implementation, particularly when hooks are being used (e.g. useEffect, useContext)
My suspicion is that the message passing between the iframe and the wrapper component cause this to happen when the component is re-rendered in rapid succession.
Potential solutions:

Short term: change error to warning so it doesn't clutter up Sentry
Pass some kind of unique identifier to/from the iframe so that we can verify the "correct" iframe is loaded

Should be fixed in version 1.1.12


add to marketplace

I would like to use in in my github enterprise setup. Currently its not on marketplace, is it?

setup-graalvm is on the GitHub Marketplace (see here). Is there another marketplace this action needs to be added to?

I assume that is the root cause of "not found"

Yes, i think it does

Please try again and let us know if it's working for you now. Thanks!

Tx this seems to be fixed now

Great, thanks for confirming!


RPi: Update scripts revised as per 2.2 release and UC hub documentation

Updated the FOTA scripts used on RPi platform.
Exit code used as per the doc - https://developer.pelion.com/docs/device-management/current/porting/porting-the-device-management-update-client-to-linux-systems.html
Testing - Not yet verified.

No longer relevant as we have decided to only support LmP Yocto version.


Disable a Job on Startup

I have a job that I use strictly for testing. I don't want it to run ever on it's own. I'm using a yaml loaded from the initializer. Here's my job:
schedule_db_cleanup:
  cron: '* * * * *'
  class: CleanDatabase
  queue: default
  active_job: false

How can I add the job without having a schedule or disable it on startup?

Try this:
schedule_db_cleanup:
  cron: '* * * * *'
  class: CleanDatabase
  queue: default
  active_job: false
  status: "disabled"

Worked like a charm...thanks!


.tar.gz source code archive in 0.1.4 release contains wrong version

It seems the archive contains 0.1.3 instead

Thanks for the find @abirvalarg, I updated this and a few other typos in the newest release!


Fixed E_NOTICE: Undefined property: Rollbar\Defaults::$defaultGitBranch

When 'allow_exec' is set to false, E_NOTICE errors are generated with every request due to $this->defaultGitBranch variable not being defined because of false condition.
This change implements more robust value caching that is used only when $allowExec parameter is set to true, which is a less suprising behavior.

Fixes https://github.com/rollbar/rollbar-php/issues/374

This looks great. Thank you for PR and tests.


@spawnscrap not working

every time I try  to use @spawnscrap it says it worked but I cant find it even when I do @me

try using your playername, atm it is glitched. So for example for me it would be /spwscr cog p=@Toemmsen96
I dont really know why it broke but it did somehow

it is an issue with the playerreference not being the right one sometimes, so sometimes it works, sometimes it doesnt

i do my player name but i can never find the scrap even tho it says it worked

and i know the scrap i can spawn but it still doesn't appear

and it also says couldnt find player spawning random

can you add a screenshot of the logs?
there should be logs that could help what the game understood and then i can see what the issue may be

and are you using version 1.1.5?


Show celestia version in the RPC status endpoint

We need some way of working out which version of Celestia users are using. Currently, /status returns a version but it is the version of Tendermint.
Proposal
Take the Version field returned in the Info ABCI call and plumb it into the node info that gets displayed in the /status endpoint (as well as in the p2p handshake)

[Question] why does the celestia-app version need to be propagated in the /status endpoint? Are the /abci_info or /node_info endpoints not sufficient?


Create n_bonacci.cpp

Description of Change

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

@Panquesito7 See now this PR, I think you will be able to see it clearly now as I have recreated it from the correct fork.
Thanks in advance 😄


tags: add image's tag list

Started to add the image's list of tags.
The attach part is more or less done.
The detach part is started but...
First stringpool has no free feature. Attaching detaching a tag too many times would fulfill the list. Maybe not that important as it's reset at any change of collection.
Then, currently there is no collection flag to say if it's folder or tag collection. Searching where this should be done. Knowing that would also allow to display "detach image" instead of "delete image" accordingly.
Am I on a valid path ?

Am I on a valid path ?

I'm afraid not. Detaching (deleting) an image symlink, the corresponding real image's folder collection is not in memory. So there is no direct way to update the tags attached to an image.
It would be necessary to get the real symlink path, extract the dirname, and update the vkdt.db directly...
Any other suggestion ?

all that sounds valid to me. the way to attach a tag looks straight forward and i think i would have done it in a very similar way.
detaching a tag: yes, from image to tag symlink means compute the hash on the filename, the other way it's realpath(). deleting the symlink would now have to be done in lockstep with deleting the entry in the vkdt.db file. that does not sound efficient.
an alternative is: detach: just delete the link and accept inconsistent vkdt.db files in the source directories.
when opening a directory: perform a consistency pass/collect all tags by searching for the hashes in the tags subdirectories. also sounds inefficient.
i suppose this consistency pass would be needed at some point anyways because storing the same data in two places will necessarily break (if for nothing else then while debugging or after crashes).
maybe there's a more efficient way of deleting the tag from vkdt.db or a similar file? i don't think i have good answers here.


fixed the installation instructions to be more specific

I'll double check these steps tomorrow an merge if it works. Thanks @jfucci!

Worked great for me. Thanks!


Support for dynamic subscriptions

Description
As the last part of the journey that started with https://github.com/dapr/components-contrib/pull/1756 , added the ability to subscribe to and unsubscribe from topics on-demand.
This PR adds 3 new APIs:

HTTP:

GET  /v1.0/subscriptions -> returns the list of topics (and routes, etc) the application is subscribed to
POST /v1.0/subscriptions -> subscribes to a new topic (on an existing pubsub component)
DELETE /v1.0/subscriptions -> unsubscribes from an existing topic subscription

gRPC equivalents:

ListActiveTopicSubscriptions
SubscribeTopic
UnsubscribeTopic

Altogether, they allow developers to subscribe to new topics on-demand, and unsubscribe when not needed anymore.
The biggest concern here is that the list of active subscriptions is not persisted anywhere, so in case daprd crashed (and the app stayed active), that would be lost. This is how we are addressing that problem:

Applications are recommended to continue implementing the callback to return the initial list of subscriptions (in the case of HTTP, that would be /dapr/subscribe), returning an empty list if appropriate
Methods to subscribe to and unsubscribe from a topic return in the response the full list of active subscriptions. Thanks to the use of locks, no more than one concurrent call to subscribe/unsubscribe could happen at the same time, so it's guaranteed that the response will contain the exact list of topics the runtime is subscribed to at the time it's sent.
Apps are recommended to maintain the list of subscriptions (ie. the response from the subscribe/unsubscribe methods) and serve that on subsequent invocations to /dapr/subscribe.

This is something that the developers need to do, but we could potentially add that to the Dapr SDKs

If the runtime crashed, but not the app, when the runtime comes back online it will query the /dapr/subscribe endpoint (or equivalent gRPC) and the app should respond with the last list of subscriptions

Issue reference
Fixes #814
Docs
TODO @ItalyPaleAle
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[X] Created/updated tests
[X] Unit tests passing
[X] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@ItalyPaleAle Please, move this to DRAFT and create a proposal to spark the discussion. I think this is a big change and the PR can help create clarity. I just think the discussion should be in an issue.
Thanks for this!

I will write down the details in the existing issue: https://github.com/dapr/dapr/issues/814

I will write down the details in the existing issue: #814

Thanks @ItalyPaleAle. We encourage setting expectations before submitting a PR as laid out in our contributions guide.

This PR resolves an issue for 1.10, and ideally we'd want to see this make it to 1.10. @ItalyPaleAle do you think this is doable or shall we move to 1.11?

@yaron2 still waiting on your feedback on the issue since you had concerns on how this was designed.

Can we revive this and separate unsubscribe into a separate PR?

Can we revive this and separate unsubscribe into a separate PR?

@artursouza Is any form of dynamic subscriptions available in a release yet? This PR is a little hard to follow.

No. It is not. We need an API for the sdks to initialize the pubsub subscription. It does not exist. I don't mind having a fresh new PR.

This PR would need to be redone pretty much from scratch at this point. It was made before bulk pubsub and a lot other changes.

@ItalyPaleAle @yaron2 @artursouza any news on this functionality?
This is a show stopper for me, if this cannot be supported by dapr, I will have to strip dapr pubsub from my project and use an underlying broker directly.

It is not in our priority list (yet). We can revisit it but also accept a contribution.

@artursouza and @ItalyPaleAle is there any timeline to get this in? We really need to dynamically change the routes and topics we un/subscribe

At this point, we don't have a timeline. We can revisit this once we are done with 1.13. If there is a contributor interested in implementing this feature, I can work with that person throughout.


Fix golint issues in maya/pkg/version/version.go

File: maya/pkg/version/version.go
Line 34: warning: comment on exported var VersionMeta should be of the form "VersionMeta ..." (golint)
Line 43: warning: exported function GetVersion should have comment or be unexported (golint)
Line 56: warning: exported function GetBuildMeta should have comment or be unexported (golint)
Line 69: warning: exported function GetGitCommit should have comment or be unexported (golint)

Resources:
-> Contributors guide: https://github.com/openebs/openebs/blob/master/CONTRIBUTING.md
Complexity: Easy

I'll have a go at this one


Revert "Added lazy-loading for Images on speakers page"

Reverts fossasia/open-event-webapp#1132
Please see my comment here https://github.com/fossasia/open-event-webapp/issues/1105#issuecomment-286018073

Codecov Report

Merging #1163 into development will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           development    #1163   +/-   ##
============================================
  Coverage        62.98%   62.98%
============================================
  Files                8        8
  Lines             1375     1375
  Branches           213      213
============================================
  Hits               866      866
  Misses             509      509

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 8fe80e4...1940006. Read the comment docs.


Rework sections of buttoncfg.py to limit code injection

Rework the btnopts, gridopts, and possibly bindevents sections of the button list so that code is not directly interpreted from this file.

This should also remove the command=... sections and thus remove the dependency on calcfrm.

May also enable changing this from a function back to just a package variable.

Unit tests pass, functional testing passed.


Add support for importing Swagger documents

Fixes #32
Fixes #174
This pull request removes the dependency on x-oad-types and adds support for importing Swagger specs.
Demo available at https://dev.openapi.design/feature/import-specs

@Nazarah Can you check out the UI for importing specs? (demo here)


Build SQLServerSpatialTools with dotnet core on macos

Hi there!
This pull requests aligns the csproj with dotnet core 9 so that modern users can build and deploy SQLServerSpatialTools without having to resort to finding legacy Visual Studio installs on Windows with out-of-support .net framework versions.
I have also modified the project file to use Microsoft.SqlServer.Server and "Microsoft.SqlServer.Types from Nuget, which means users don't have to download any extra files or rely on local filesystem setup in order to build SqlServerSpatial Tools.
While I can't see any reason that this wouldn't build on other platforms, this has not been tested. I'm happy to make corrections should something be discovered all the same.
Apologies for the terse pull request - I found myself in a hole, am digging my way out, and hope that this can help other people suffering from similar!
The .dll is currently running on my test SQL Server 2022 server, and is giving every indication of working well.
Thanks,
Tom.

@microsoft-github-policy-service agree


Binaries for Windows

Hello,
I am planning to use libpostal together with my legacy code running under Windows. Is there a short term roadmap to have a Windows Binary of libpostal ? If not, can you kindly provide further instructions of how can I compile it using, for example, Mingw ?
Thanks in advance,
Ricardo

This has been brought up several times in other issues. Libpostal works on Mac and Linux - I'm happy to accept pull requests for Windows but it's not a priority. Others have reported difficulty compiling on Windows because of the reliance of one of our modules on mmap.

Thank you for the clarification. Cheers


NTR: vascular smooth muscle cell differentiation involved in phenotypic switching

Is it possible to have the new term "vascular smooth muscle cell differentiation involved in phenotypic switching" as a child of  GO:0090679 cell differentiation involved in phenotypic switching?
(It would complement the term GO:1990936 vascular smooth muscle cell dedifferentiation).
Possible def: A cell differentiation process that is a part of a reversible switch of a vascular smooth muscle cell (a non-striated, elongated, spindle-shaped cell found lining the blood vessels) from de-differentiated state to a differentiated state, at a frequency above the expected frequency for somatic mutations.
I don't think it should have as parent "vascular smooth muscle cell differentiation" as the new term would be part of "reversible differentiation" which I'm not positive is the same as de novo differentiation. (see discussion of related terms here https://github.com/geneontology/go-ontology/issues/12354).
For annotation of PMID:25089138
If created please add the following GOC references;
GOC:rph
GOC:BHF
GOC:BHF_miRNA
Thanks.

We have 'vascular smooth muscle cell differentiation' and 'phenotypic switching'.  The new term can be added by combining these via the BP-BP involved in template.   You should be able to add the new def and xref during this process.  Please let me know if any problems.
Cheers,
David


Generate downloadable artifact with each commit

We should integrate a pipeline that builds Composer deps, does usual cleanups and produces a downloadable ZIP with every commit. It will definitely make the master branch easier to use.

https://github.com/actions/upload-artifact


Fixed permission issue that was causing travis to fail

@R-Marino I've created this PR with permission fix, but seems that the travis build still fails, I'm not sure why cause running the testsuit locally passes fine.
I literally can't replicate the issue on travis

@aguycalled  @R-Marino I've found the cause for the issue.
Seems that the local NTP server is not allowing more connections (I'm assuming this is because of the large number of nodes that the test needs.
I'm adding a code change to allow for ntpminmeasure=-1 (Which will be like the 0 value, but will suppress the errors/warnings that come with the ntpminmeasures=0 value.

That’s fantastic. Adding ntpminmeasures=-1 to the default navcoin.conf file for tests would solve this and probably other test issues.

On 29 Aug 2019, at 16:43, Barry Deeney<EMAIL_ADDRESS>wrote:
@aguycalled @R-Marino I've found the cause for the issue.
Seems that the local NTP server is not allowing more connections (I'm assuming this is because of the large number of nodes that the test needs.
I'm adding a code change to allow for ntpminmeasure=-1 (Which will be like the 0 value, but will suppress the errors/warnings that come with the ntpminmeasures=0 value.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

That’s fantastic. Adding ntpminmeasures=-1 to the default navcoin.conf file for tests would solve this and probably other test issues.
…
On 29 Aug 2019, at 16:43, Barry Deeney @.***> wrote: @aguycalled @R-Marino I've found the cause for the issue. Seems that the local NTP server is not allowing more connections (I'm assuming this is because of the large number of nodes that the test needs. I'm adding a code change to allow for ntpminmeasure=-1 (Which will be like the 0 value, but will suppress the errors/warnings that come with the ntpminmeasures=0 value. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

My thoughts exactly

i've tested locally -ntpminmeasures=-1, it still tries to ntp sync. the right would be -ntpminmeasures=0

@aguycalled looks like these changes are working.

travis passed

change makes sense, havent locally compiled but travis passes


Service icons have bad contrast

Description

Specifically the green ones, it's hard to read what you're looking at from a glance because the green is so light. IDK how we wanna go about solving it, but it's an issue.
Screenshots

Is there any reason why just using a darker shade of green wouldn't be an acceptable solution? Does this shade specifically need to exactly match with anything? Otherwise I think just using a darker green would acheive similar readability to the other icons.


Unary operations on TimeSeries

Given the current API (v0.3.1) there does not seem to be a straightforward way to do a unary operation.
Suppose one wishes to negate a boolean valued signal. One option is:
import traces

x = traces.TimeSeries([(0, False), (1, True)])
x.operation(x, lambda val, _: not val)

but this seems somewhat clunky.
Better might be
import traces

x = traces.TimeSeries([(0, True), (1, False)])
x.map(lambda val: not val)

Which could be syntatic sugar for:
traces.TimeSeries((t, not val) for (t, v) in x))

You're right, this would be a nice addition!

@vlsd
I've actually written a library inspired by traces that supports this operation:
https://github.com/mvcisback/DiscreteSignals


Fix compile on f32

It seems that PAYLOADDIGESTALT was added in a 4.15 intermediate release,
so let's just define it ourselves.
Signed-off-by: Patrick Uiterwijk<EMAIL_ADDRESS>

I've been asked by someone to get it working on Fedora 32 because they're still on that version.
Given the very minimal effort, I decided to go along with it.


Render markdown on backend

Description
This PR moves the description rendering functionality to the backend to speed up initial load on the frontend.
This works by rendering the Markdown to HTML, and then using an HTML parser to extract only the textual content from the HTML.
Moving rendering to the backend improves SSR response time from ~1203 millisecondsto ~608 milliseconds, a nearly 2x improvement.
Demo
Without backend rendering: https://perf-main-frontend.dev.imaging.cziscience.com/
With backend rendering: https://speed-up-hub-frontend.dev.imaging.cziscience.com

a general question, is there any identified difference between the beautifulsoup parsing solution to the current approach? particularly if anything bs4 can't handle/translate to HTML?

a general question, is there any identified difference between the beautifulsoup parsing solution to the current approach? particularly if anything bs4 can't handle/translate to HTML?

BeautifulSoup is a full HTML parser, so I can't imagine there being a case where it can't handle HTML. The current approach actually could use BeautifulSoup to parse the pypi plugin page and query the data.
For my use case, the main benefit of using BeautifulSoup is the convenience of using soup.get_text() to get the textual content for the entire HTML document. If we wanted to parse for text using the current approach, we would need to write a lot of custom logic because we would need to recursively look at each HTML node and determine if it has text content.


English version using same first word for multiple days

The English version has used the word FRENCH for the last 5 or more days.

See https://github.com/flackr/crosswordle/issues/38#issuecomment-2137765442 for my comment on this, it is not a bug, but will be over in a few days.


Design the Profile Page of users

redesign the profile page of users, keep the same colour theme

@Luson045 can i work on this under hacktoberfest?

@Aiu26 done 👍

@Aiu26

It's not responsive, work on it please

Sure, i will work on it


Implement new settings page design

Detailed Description
Implement new settings page design.
Possible Implementation

Preferences
 - General
   - theme
   - language
   - fiat currency
   - autoupdate (enabled, frequency, check now button)
 - Wallet
   - receiving address format
   - sending target confs
   - invoice expire time
   - block exporer
 - Advanced
   - ports
   - neutrino backends

Wallet settings:
 - Basic
   - chain (readonly)
   - network (readonly)
 - General
   - name
   - alias
   - autopilot
 - Backups
   - Google
   - Dropbox
   - Local
 - Actions
   - Delete
   - Resync
   - Backup

Closed via #2310


Column width spacing does not account for ANSI color sequences

To reproduce:
1.9.3-p392 :038 > p = Pastel.new
1.9.3-p392 :039 > puts TTY::Table.new(rows:[['test'],['test']],header:[p.green('derp')]).render(:unicode)
┌─────────────┐
│derp         │
├─────────────┤
│test         │
│test         │
└─────────────┘

Compare header field width to:
1.9.3-p392 :042 > puts TTY::Table.new(rows:[['test'],['test']],header:['derp']).render(:unicode)
┌────┐
│derp│
├────┤
│test│
│test│
└────┘

Thanks! The issue reports are very important so please keep them coming. I will definietly fix them. My intention is to release another version of the library this weekend. However, this doesn't mean automatically that everything will be fixed but I believe in incremental delivery and would like you to use the released version as soon as possible so that we can iron everything out.

Fixed and released as v0.2.0!


Remove deprecated operations in the datasets

In reuters.py and imdb.py, there are ndarray creations with ragged
array, but it's deprecated now. So I added parameter "dtype" to them.

@luisleee , could you please clarify what was deprecated exactly?

@deeb02 ok, please see here: https://numpy.org/doc/stable/release/1.19.0-notes.html#deprecate-automatic-dtype-object-for-ragged-input.

@luisleee thank you! That makes sense.


fix typo: Occured → Occurred

@shigupt202 could you take this forward and also port it to releases/v0 branch

@shigupt202 could you take this forward and also port it to releases/v0 branch


Python: Add support for bottle framework.

redo Language-Tests/Python

redo Language-Tests/Python3


chore(mempool_infra): use generics for component server starter

Stack:

#1111
#1110
#1109
#1103
#1102
#1101
#1100
#1099
#1098
#1097
#1096
#1090
#1089
#1088
#1058
#1057
#1056
#1027 ⬅

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is

✓ Commit merged in pull request #1057


Feature Request: Fuzzy Search when typing space names to switch

Example Fuzzy Search javascript implementations
https://github.com/bevacqua/fuzzysearch
https://github.com/krisk/Fuse
Thanks for the awesome extension!

Wow, thanks for suggesting the feature. I was thinking about the same thing, and fuzzy search looks promising.

Fixed in v1.1.0


conda-forge: Test failures on OS X

Hi cartographer team!
We are packaging cartographer on conda-forge and we have a test failure on OS X.
We already have working builds for Windows and Linux :tada:
Do you have any idea where this ILLEGAL error could come from? Is it an illegal instruction?
https://github.com/conda-forge/cartographer-feedstock/pull/7
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=235112&view=results

I had a quick look and the build gives away what the underlying issue is:
[80/333] Building CXX object CMakeFiles/cartographer.mapping.internal.2d.overlapping_submaps_trimmer_2d_test.dir/cartographer/mapping/internal/2d/overlapping_submaps_trimmer_2d_test.cc.o
In file included from ../cartographer/mapping/internal/2d/overlapping_submaps_trimmer_2d_test.cc:17:
In file included from ../cartographer/mapping/internal/2d/overlapping_submaps_trimmer_2d.h:20:
In file included from ../cartographer/common/port.h:22:
In file included from $BUILD_PREFIX/bin/../include/c++/v1/string:506:
In file included from $BUILD_PREFIX/bin/../include/c++/v1/string_view:175:
In file included from $BUILD_PREFIX/bin/../include/c++/v1/__string:57:
In file included from $BUILD_PREFIX/bin/../include/c++/v1/algorithm:643:
$BUILD_PREFIX/bin/../include/c++/v1/memory:2262:5: warning: delete called on 'cartographer::mapping::Grid2D' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
    delete __ptr;
    ^
$BUILD_PREFIX/bin/../include/c++/v1/memory:2517:7: note: in instantiation of member function 'std::__1::default_delete<cartographer::mapping::Grid2D>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
$BUILD_PREFIX/bin/../include/c++/v1/memory:2471:19: note: in instantiation of member function 'std::__1::unique_ptr<cartographer::mapping::Grid2D, std::__1::default_delete<cartographer::mapping::Grid2D> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
../cartographer/mapping/2d/submap_2d.h:42:7: note: in instantiation of member function 'std::__1::unique_ptr<cartographer::mapping::Grid2D, std::__1::default_delete<cartographer::mapping::Grid2D> >::~unique_ptr' requested here
class Submap2D : public Submap {
      ^
$BUILD_PREFIX/bin/../include/c++/v1/memory:4291:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<const cartographer::mapping::Submap2D, std::__1::allocator<const cartographer::mapping::Submap2D> >::__shared_ptr_emplace<cartographer::mapping::proto::Submap2D &>' requested here
    ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
                         ^
../cartographer/mapping/internal/2d/overlapping_submaps_trimmer_2d_test.cc:72:15: note: in instantiation of function template specialization 'std::__1::make_shared<const cartographer::mapping::Submap2D, cartographer::mapping::proto::Submap2D &>' requested here
        {std::make_shared<const Submap2D>(submap_2d),
              ^
1 warning generated.

Similarly:
$BUILD_PREFIX/bin/../include/c++/v1/memory:2262:5: warning: delete called on 'cartographer::mapping::RangeDataInserterInterface' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]

Is fixed in master.


Removed cart note function and made value optional on cart discount

Background
Turns out we don't want 3P devs to have access to cart note as it could override the one the merchant puts in. The intention is for 3P devs to just use note attributes instead. In addition, I'm also making value optional on the cart discount function, as discount codes do not need this field.
🎩

...

Checklist

[ ] I have :tophat:'d these changes
[ ] I have updated relevant documentation

@NathanJolly oh, I didn't know that it's a new function, I assumed it existed before, thanks! I'm good to remove it if it didn't exist in any previously released versions 👍


Rotatable trait doesnt work in version 1.3.0

Everything was working fine in 1.2.0 under pm4 but now these blocks dont rotate

+1 for 1.20 PM5

Any solution found for this problem! Really urgent and it’s a really BIG problem.

Could you try changing this line to use "states" rather than "properties"?
- ->setTag("properties", new ListTag(array_reverse($blockProperties))); // fix client-side order
+ ->setTag("states", new ListTag(array_reverse($blockProperties))); // fix client-side order

https://github.com/CustomiesDevs/Customies/blob/master/src/block/CustomiesBlockFactory.php#L130

i have looking this in the bedrock.dev :
https://wiki.bedrock.dev/blocks/rotatable-blocks.html#facing-rotation-setup
"permutations": [
      {
        "condition": "query.block_property('wiki:rotation') == 0",
        "components": {
          "minecraft:transformation": { "rotation": [0, 0, 0] }
        }
      },
      {
        "condition": "query.block_property('wiki:rotation') == 1",
        "components": {
          "minecraft:transformation": { "rotation": [90, 0, 0] }
        }
      },
      {
        "condition": "query.block_property('wiki:rotation') == 2",
        "components": {
          "minecraft:transformation": { "rotation": [0, 0, 90] }
        }
      }

Could you try changing this line to use "states" rather than "properties"?
- ->setTag("properties", new ListTag(array_reverse($blockProperties))); // fix client-side order
+ ->setTag("states", new ListTag(array_reverse($blockProperties))); // fix client-side order

https://github.com/CustomiesDevs/Customies/blob/master/src/block/CustomiesBlockFactory.php#L130

This is the result

This should be fixed by https://github.com/CustomiesDevs/Customies/pull/79, if anyone can test this it would be very appreciated

This should be fixed by #79, if anyone can test this it would be very appreciated

Now every block that has trait just went invisible

Yeah issue not resolved.


Fix evc_setup_package name

Describe your changes
evc_setup_package adjusted so that it works like the other Everest libs
Issue ticket number and link
Checklist before requesting a review

[x] I have performed a self-review of my code
[ ] I have made corresponding changes to the documentation
[x] I read the contribution documentation and made sure that my changes meet its requirements

I will adjust libiso right now. The other two could also be changed in the future.

Do we actually have any guidelines, how to name these?  I usually tried to only prefix with everest, if it is tightly coupled to everest.  But if it could be reused without everest, I don't see why we should prefix everything with everest.

But if it could be reused without everest, I don't see why we should prefix everything with everest.

I agree, I see non-EVerest use for some of these, especially libcbv2g. I think you nail the problem.

Your points are valid.


Not playing...

I trying to setup a audio player for our organization using your angular-media-player. In this "http://mrgamer.github.io/angular-media-player/ng-repeat.html" example working good. but when i trying to my pc its not working and no error in console log.
Please help me.
Here is my fiddle demo: "jsfiddle.net/tazim/650d7r0g"

Sorry for my wrong structure. now its working.


arch/bl602：Add bl602 os adapter layer

Summary
Delete the os api call in the static link library and add the os adaptation layer
Impact
None
Testing
Compile passed
wapi scan passed

@xiaoxiang781216 shouldn't the sleep functions here be using the kernel sig interfaces?

emm...right

@SunJun8 please reorg your patch into the reasonable series.

rebase complete

@pkarashchenko thanks for your review, and I will update this part of the code in due course


Revise volume logic

This PR refactors the pyroon volume logic.
It removes a db to percentage conversation from the change_volume method - which made some assumptions about roon endpoints that weren't always correct. Because of that this is a breaking change - so I've renamed the method change_volume_raw to make it more obvious.
I've also added three new methods to get, set and increment/decrement the volume on a percentage basis - which use the additional data roon provides about endpoints. These methods are based on code from @juliusvaart (thanks).
@juliusvaart also found that the 'type: db' parameter isn't always set for endpoints that are scaled in db - so this new logic avoids depending on this!
I've also added some simple tests - but they require a roon core (and are dependant on my setup) - so can't be run on github.
@juliusvaart could you take a look?
@doctorfree when released this may require some (small) changes to your code.
Closes https://github.com/pavoni/pyroon/issues/55

Yes, I call  change_volume when setting the volume and was forcing it into [0, 100] for absolute volume values.
I am running to catch up on these changes and should have been following more closely. Can I just replace my calls to change_volume with calls to change_volume_raw and not worry about ranges for absolute volume values?
The new methods look good, I can use change_volume_percent.

If you were using ‘absolute’ you should change to the new method.
The old cord attempted to scale for ‘db’ endpoints - but wasn’t always tight.

Thus far testing is succeeding using change_volume_raw rather than change_volume.
Is there a reason why you did not leave change_volume and just make it call change_volume_raw ?

It depends on your endpoints. If you have endpoints that have the volume of 0 to 100 that the two calls are the same.
However many roon endpoints have the range -80 to 0 (in db) - so the old change_volume  code did a conversion to a db endpoint.
However some endpoints are neither 0/100 nor -80/0 and some -80/0 endpoints don'r have the 'db' type. In those case it would mess up - sometimes badly!
So the change_volume_raw now just sends what you say to roon. But if you want to use 0-100 on the client side - this will mess up if you have a db endpoint - or a non standard endpoint.
So I expect you'll just want to use set_volume which will always work on a 0-100 basis.

My tests are looking good. No issues uncovered thus far with either the new volume methods or the new WebSocket library.
Installs of new or upgraded RoonCommandLine packages will upgrade or install the latest Python roonapi module. The only compatibility issue I have is users running an older RoonCommandLine release who upgrade the Python roonapi module without upgrading RoonCommandLine. This breaks volume handling since there is no longer a change_volume method. That's why I was asking why it was removed rather than modified to call change_volume_raw. But, yes, it was not working for all endpoints.
I'm happy with these changes. I will handle the hopefully infrequent user who upgrades roonapi but not RoonCommandLine.

Thanks for this.
the consequences of using the new code on a db endpoint could have the effect of maxing out the volume. So an error probably is safer.


Print logs to standard output

Actually the current behavior of logging to std error is probably more correct. This lets you grep the logs by creating a named pipe:
(env) $ mkfifo log
(env) $ python test.py 2> log | grep "sentence" log


Swap out link for Kubernetes blog submission form

We need to swap out the blog submission form with a new one.

nit: I noticed that the old form has a Kubernetes logo and the new form does not.
/lgtm

@sftim Thanks - I will update!

/approve
The header logo can be changed at any time regardless of this merging :)


Rollup 4.0.2 support does not fully work need to update peerDependencies also

"peerDependencies": {
"lit": "^2",
"rollup": "^2 || ^3"
},
needs to be changed to
"peerDependencies": {
"lit": "^2",
"rollup": "^2 || ^4"
},

Any update on this?

Upgrade to 1.1.6 or the latest release, please. The 1.1.6 was released in October 2023.


Update http4s-circe, http4s-client, ... to 0.21.19

Updates

org.http4s:http4s-circe
org.http4s:http4s-client
org.http4s:http4s-dsl
org.http4s:http4s-ember-core

from 0.21.6 to 0.21.19.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, semver-patch

Superseded by #100.


Handle invalid color names

I was looking through the code and noticed and else that appears to have been intended to be an elsif. Both cases will raise an ArgumentError, but now the error message will contain all valid color names.

Nice catch, thanks!


Demo Site Seed Reduction

What does this PR do?
Responding to Issue #1198 , This PR will reduce the Seed generations in half!
This PR also displays the need to resolve the conflict between accepted pr #1178 and the raise check for an empty DB in seeds.rb on line 14:
raise "empty yer db" if School.count > 0 ||
                        Student.count > 0 ||
                        InterventionType.count > 0 ||
                        Assessment.count > 0

Change Details:
Research:
I started by researching the error, and came upon a post to review the database directly in psql, to find out the tables that are creating the largest rows. Upon DB migrate, the development database was showing the following info:
student_insights_development=# SELECT schemaname,relname,n_live_tup
FROM pg_stat_user_tables
ORDER BY n_live_tup DESC;
 schemaname |           relname            | n_live_tup
------------+------------------------------+------------
 public     | schema_migrations            |        117
 public     | service_types                |         13
 public     | event_note_types             |          6
 public     | assessments                  |          2
 public     | ar_internal_metadata         |          1
 public     | courses                      |          0
 public     | homerooms                    |          0
 public     | interventions                |          0
 public     | event_note_attachments       |          0
 public     | students                     |          0
 public     | intervention_types           |          0

a total of 31 tables, and 139 records.
After investigating this, I went on to better understand the seed file, and run it, but came upon the aforementioned error, due to the 2 Assessments already seeded in the DB from the last migration.
To move forward, I commented out this evaluation happening, and proceeded to seed the database successfully. Upon a fresh seed, the database was showing the following info:
 schemaname |           relname            | n_live_tup
------------+------------------------------+------------
 public     | student_assessments          |      11633
 public     | tardies                      |       1033
 public     | absences                     |       1008
 public     | event_notes                  |        596
 public     | students                     |        135
 public     | student_risk_levels          |        135
 public     | interventions                |        128
 public     | schema_migrations            |        117
 public     | student_section_assignments  |         60
 public     | services                     |         55
 public     | discipline_incidents         |         54
 public     | intervention_types           |         26
 public     | assessments                  |         15
 public     | service_types                |         13
 public     | schools                      |         10
 public     | educators                    |          6
 public     | event_note_types             |          6
 public     | homerooms                    |          5
 public     | sections                     |          4
 public     | service_uploads              |          4
 public     | precomputed_query_docs       |          4
 public     | educator_section_assignments |          4
 public     | courses                      |          2
 public     | iep_documents                |          1
 public     | ar_internal_metadata         |          1
 public     | friendly_id_slugs            |          0
 public     | event_note_revisions         |          0
 public     | event_note_attachments       |          0
 public     | import_records               |          0
 public     | delayed_jobs                 |          0
 public     | discontinued_services        |          0
(31 rows) (15055 records)

Approach:
My immediate reaction was to investigate reducing the school_assessments and to figure out how there were 10 schools, when there were only 3 being referenced in seeds.rb.
I found that schools were being created in the School model with seed_somerville_schools method.
From there, I did a search for where the schools were being referred elsewhere, and chose 3 schools that seemed safe to remove.
That database returned the following:
 schemaname |           relname            | n_live_tup
------------+------------------------------+------------
 public     | student_assessments          |      11456
 public     | absences                     |       1058
 public     | tardies                      |       1057
 public     | event_notes                  |        603
 public     | student_risk_levels          |        135
 public     | students                     |        135
 public     | schema_migrations            |        117
 public     | interventions                |        106
 public     | services                     |         86
 public     | student_section_assignments  |         60
 public     | discipline_incidents         |         46
 public     | intervention_types           |         26
 public     | assessments                  |         15
 public     | service_types                |         13
 public     | schools                      |          7
 public     | event_note_types             |          6
 public     | educators                    |          6
 public     | homerooms                    |          5
 public     | precomputed_query_docs       |          4
 public     | service_uploads              |          4
 public     | educator_section_assignments |          4
 public     | sections                     |          4
 public     | courses                      |          2
 public     | iep_documents                |          1
 public     | ar_internal_metadata         |          1
 public     | event_note_attachments       |          0
 public     | friendly_id_slugs            |          0
 public     | import_records               |          0
 public     | delayed_jobs                 |          0
 public     | discontinued_services        |          0
 public     | event_note_revisions         |          0
(31 rows) (14957 records)

Only a 95 record difference 😞 .
I noticed the longest time spent while seeding was on creating students per section and homeroom, so I removed a few homerooms and sections, then reduced the student generating loops to 10.times from 15, which resulted in the following:
 schemaname |           relname            | n_live_tup
------------+------------------------------+------------
 public     | student_assessments          |       5994
 public     | absences                     |        517
 public     | tardies                      |        484
 public     | event_notes                  |        288
 public     | schema_migrations            |        117
 public     | students                     |         70
 public     | student_risk_levels          |         70
 public     | discipline_incidents         |         50
 public     | student_section_assignments  |         40
 public     | services                     |         32
 public     | interventions                |         32
 public     | intervention_types           |         26
 public     | assessments                  |         15
 public     | service_types                |         13
 public     | schools                      |          7
 public     | event_note_types             |          6
 public     | educators                    |          6
 public     | service_uploads              |          4
 public     | sections                     |          4
 public     | precomputed_query_docs       |          4
 public     | educator_section_assignments |          4
 public     | homerooms                    |          3
 public     | courses                      |          2
 public     | iep_documents                |          1
 public     | ar_internal_metadata         |          1
 public     | delayed_jobs                 |          0
 public     | import_records               |          0
 public     | friendly_id_slugs            |          0
 public     | event_note_revisions         |          0
 public     | discontinued_services        |          0
 public     | event_note_attachments       |          0
(31 rows) ( 7790 records)

🎉
Things To Consider for Merge:

I removed 3 and 4th grade homerooms, kept sections because they seemed unique, and didn't get into the area where assessments are being created, but the resulting total was reduced quite a bit from the reduction of students.
I commented out the DB check in order to do this, and I'd like to confirm whether that should stay that way or not.
The seed file was a bit difficult to understand, and things are being generated outside the seeds file, which seems like it could be causing extra generation being done but not easy to track.
are 10 students in a group enough for demoing? I hope so!

@KaraAJC Thanks, this seems great!  Having 10 students for demoing is fine.  We'd want more data everywhere for local development overall (to more closely approximate the production setup), but the particular issue here is to reduce the total records to keep the demo site under the Heroku cap.
I didn't follow your comment about "things are being generated outside the seeds file, which seems like it could be causing extra generation being done but not easy to track," was that about the call to School.seed_somerville_schools?

I didn't follow your comment about "things are being generated outside the seeds file, which seems like it could be causing extra generation being done but not easy to track," was that about the call to School.seed_somerville_schools?

Yes, I noticed the schools were being generated in the Schools model, not in seeds file. That's the only one I reviewed, but I'm thinking that another check regarding student assessments could reduce the records as well.
As a new person to review the files, I just wanted to note that I found that confusing.

@KaraAJC Yeah, that's great for sharing about what's confusing!  If you have suggestions for improving that'd be great.  I'm not sure why those seed methods are in the model classes and I can see why that'd be surprising.

@KaraAJC awesome work! 👍 🌮 🎃
This is ready to ship, but it's late on the east coast so I'll do this tomorrow or @alexsoble might beat me to it.

🚢🚢😊😊

@KaraAJC @kevinrobinson Pushed to the demo site and rebuilt the demo site! Check it out at https://somerville-teacher-tool-demo.herokuapp.com/. Thanks for your great work on this @KaraAJC!


Update hairpin_creator.lua

adding finaleplugin.ScriptGroupDescription to newly approved script

Whoops sorry. Looks like I messed something up when trying to resolve the merge conflicts. You might need to re-add the description, sorry.

Will re-post. I still don't really understand much of what the GIT is doing, especially with branch merging which I thought should be local to my device. Not to worry. Am re-submitting.


EFI option for UTM

Can you add the UEFI option in UTM app?
The UEFI for windows 10 for example might be something like this:

btw this image was just photo edited, and I didn't edit the source code of UTM
It would be so good if UTM had EFI option!

I'm not sure QEMU supports that. If you can boot into a custom EFI then you can do something like that. If QEMU provides an options, we can probably expose it. Otherwise it will be far too much trouble to implement.

I'm not sure QEMU supports that. If you can boot into a custom EFI then you can do something like that. If QEMU provides an options, we can probably expose it. Otherwise it will be far too much trouble to implement.

actually QEMU supports UEFI, I searched in google and QEMU supports EFI
I am not meant to be too lazy to make EFI in QEMU, I am just asking you that can you
add EFI in QEUM.

Of course QEMU supports UEFI, that's how we boot ARM stuff. I'm saying I don't know if it supports custom UEFI logos. I.e. is there an option to load the logo into UEFI flash memory.

Of course QEMU supports UEFI, that's how we boot ARM stuff. I'm saying I don't know if it supports custom UEFI logos. I.e. is there an option to load the logo into UEFI flash memory.

ok but you don't have to add the custom UEFI logos, only EFI, but once windows 10 is installed I will use a Program called HackBGRT to change UEFI logo. so you don't have to worry about adding UEFI custom logos, so can you alteast add EFI in UTM?

Can you tell me the QEMU command you used on Linux to get it working? I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

Can you tell me the QEMU command you used on Linux to get it working? I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

Tell you the command I used on Linux to get what working?

Basically, if you can show me how to do this on QEMU on linux, I can probably get it working on UTM.

Basically, if you can show me how to do this on QEMU on linux, I can probably get it working on UTM.

I think this might help: https://fedoraproject.org/wiki/Using_UEFI_with_QEMU#:~:text=On the 'Overview' screen%2C,re running an UEFI OS.

Are you reading my replies at all?

I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

It's the same instructions as there. The UEFI partition is read-only and you can't change the boot logo or anything. Try it yourself and once it works, tell me exactly what you did.

Are you reading my replies at all?

I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

It's the same instructions as there. The UEFI partition is read-only and you can't change the boot logo or anything. Try it yourself and once it works, tell me exactly what you did.

Ok I will, so please wait and I will tell you what I excatly did.

Are you reading my replies at all?

I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

It's the same instructions as there. The UEFI partition is read-only and you can't change the boot logo or anything. Try it yourself and once it works, tell me exactly what you did.

ok so i install QEMU software in linux or I install linux Operating system in QEUM?

Are you reading my replies at all?

I tried https://gist.github.com/voltagex/7af5955c029539ae904f851ac434b00c and that doesn't let you change the logo (unless you manually patch the BIOS image).

It's the same instructions as there. The UEFI partition is read-only and you can't change the boot logo or anything. Try it yourself and once it works, tell me exactly what you did.

i've searched in the internet for like a week and since it is too complex for me, I've found 2 things, 1 is HackBGRT, it is a Windows executable program that you use to change EFI logo to any logo, and 2nd, using OVMF, you can change the boot logo of QEMU: https://www.garyhawkins.me.uk/custom-logo-on-uefi-boot-screen/
I hope this helps, Thanks!

What you linked confirms what osy was saying - you have to recompile or patch the UEFI image in order to change the logo. Way beyond the scope of this project.

I have succeeded in building the OVMF EFI images from within a UTM virtual machine. 😃 I followed these instructions in a Ubuntu Server 20.04 VM.

You can build the EFI from within MacOS itself; just clone edk2, then follow these instructions.


Added output to the get helper when the timeout is exceeded

refs https://linear.app/tryghost/issue/ENG-670

Nice one, works as expected for me locally 👍
Not sure if this would be useful or not, so feel free to disregard: do you think it would make sense to decorate the span with the API options? e.g. resource, filters, limits, etc. I guess we could deduce it from the theme pretty easily, but might save us a step 🤔

I did initially try that, but ended up generating a bunch of invalid html, depending on the inputs to the get helper - I think for now it's best we leave this simple, and can look into improvements down the line


Sometimes decimal places setting is ignored

*Detailed description of the issue:
Hey, it looks like sometimes the configuration setting of two decimal places is ignored, for example when using a command like:
jobs level mrfloris Miner add 2

```
> ver
[06:51:41 INFO]: Checking version, please wait...
[06:51:41 INFO]: This server is running Paper version git-Paper-295 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: f905057)
You are 5 version(s) behind
Previous version: git-Paper-293 (MC: 1.17.1)
> jobs version
[06:51:47 INFO]: --------------------------------------------------
[06:51:47 INFO]: Jobs: <IP_ADDRESS> SqLite
[06:51:47 INFO]: CMILib: <IP_ADDRESS>
[06:51:47 INFO]: Server: Paper(295) 1.17.1-R0.1-SNAPSHOT
[06:51:47 INFO]: Economy: CMIEconomy Vault: 1.7.3-b
[06:51:47 INFO]: --------------------------------------------------
>
```
  DecimalPlaces:
    # Decimal places to be shown
    Money: 2
    Exp: 2
    Points: 2

Hi there. I speak Spanish, if it is not understood correctly it is because I use a translator.
I am Fufu in discord.
What I'm trying to do is give an award by voting using votingplugin. When voting, use the command /jobs level %player% %jobsr_user_job_1% add 2 to detect the first job that the user and the player have. It works fine but as I mentioned earlier, it appears with many decimal places.
From what I verified, it only happens with this command since if I use /jobs stats, it appears with 2 decimal places correctly as it is in the configuration.
Jobs version: <IP_ADDRESS>
Paper: 1.16.5-R0.1-SNAPSHOT

71d24aa7dc1a62ea3d981287de95653775908923


Bring marker for hovered line to top of stack

So it is fully visible, unlike here.

Ah, didn't see your self-assign @timbrock. Just did a PR for this one!

Probably worth a careful test in story editor etc

Ah, didn't see your self-assign @timbrock. Just did a PR for this one!

S'fine, I hadn't actually looked at it.


Update config for graph-cve-sync

@jmelis @riuvshin guys, please take a look when you find a minute. Thanks :)


baseclass.js seems to be missing from the repo

https://github.com/openwrt/luci/commit/3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 introduced a dependency on baseclass, which cannot be loaded and doesn't ive in luci-base/htdocs.
HTTP error 404 while loading class file "/luci-static/resources/baseclass.js?v=git-19.292.31773-cc35206"
  at compileClass (https://arcturus.delfino.n.howett.net/luci-static/resources/luci.js?v=git-19.292.31773-cc35206:110:3)
  at promise callback*require (https://arcturus.delfino.n.howett.net/luci-static/resources/luci.js?v=git-19.292.31773-cc35206:122:112)
  at compileClass (https://arcturus.delfino.n.howett.net/luci-static/resources/luci.js?v=git-19.292.31773-cc35206:112:151)
  at promise callback*require (https://arcturus.delfino.n.howett.net/luci-static/resources/luci.js?v=git-19.292.31773-cc35206:122:112)
  at compileClass (https://arcturus.delfino.n.howett.net/luci-static/resources/luci.js?v=git-19.292.31773-cc35206:112:151)

root@arcturus:~# ls /www/luci-static/resources/
bandwidth.svg    firewall.js      load.svg         protocol         ui.js            wireless.svg
cbi              form.js          luci.js          rpc.js           validation.js    xhr.js
cbi.js           fs.js            network.js       tools            view
connections.svg  icons            promis.min.js    uci.js           wifirate.svg

You're missing 711f75927849fade74f79e4b198b3a839d9d4fbc

Er, I checked the repository as of master and it doesn't exist. I don't believe I can have https://github.com/openwrt/luci/commit/3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 without https://github.com/openwrt/luci/commit/711f75927849fade74f79e4b198b3a839d9d4fbc (since git is a DAG...)

Maybe I was a bit terse in my reply. Judging from the stack trace you posted, you're running revision cc35206 which is not an official LuCI commit. Also the timestamp 19.292.31773 indicates a rather old version from some time last year. Did you maybe install new LuCI components on top of an old luci-base?
The error your describe can only happen if luci-base, or more specifically luci.js wasn't updated.

Ugh, thanks. There's a couple things here, it turns out. You pointing out an outdated/unofficial commit made me check everything out, and the results were at least a bit puzzling.

I can't find cc3520 in my feeds/ repos or reflogs either, which is puzzling
Invalidating my browser cache, predictably, made it go away
After that, I'm sitting at LuCI Master git-20.093.71480-89a50c2 exactly as expected

Sorry to raise the alarm so quickly and so curtly. User error is, as always, a real bear. :smile:

пт, 3 апр. 2020 г. в 13:29, Jo-Philipp Wich<EMAIL_ADDRESS>
Maybe I was a bit terse in my reply. Judging from the stack trace you
posted, you're running revision cc35206 which is not an official LuCI
commit. Also the timestamp 19.292.31773 indicates a rather old version
from some time last year. Did you maybe install new LuCI components on top
of an old luci-base?
The error your describe can only happen if luci-base, or more
specifically luci.js wasn't updated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

--
С уважением,
Александр* aka *Alex85pro
My contacts:
моб.*       093-361-54-81*
Skype alex85pro


Refernces: Need to allow URLs on more than website references

Software, Report, Preprint/article, Thesis (possibly more) references should be allowed to have URLs

confproc, data, patent, article (aka preprint), report, software, thesis all need to have 'uri?' within the DAR spec (https://github.com/substance/dar/blob/master/DarArticle.md). All these reference types can have URLs at eLife so we need to account for that.
@michael - this is what I mentioned on the call today. Thanks!


hostname --fqdn broken when enableIPv6 = false

Describe the bug
In NixOS 22.05, the domain name is not set correctly when networking.enableIPv6 is set to false.
Steps To Reproduce

It's working with IPv6:

{
  networking.hostName = "foo";
  networking.domain = "bar.baz";
  networking.enableIPv6 = true;
}

$ hostname --fqdn
foo.bar.baz

.. but broken without:

{
  networking.hostName = "foo";
  networking.domain = "bar.baz";
  networking.enableIPv6 = false;
}

$ hostname --fqdn
foo

Expected behavior
Obviously, it should work in both cases.
Additional context
The issue seems to be related to nscd:
systemctl stop nscd also fixes the problem.
Similar issues seem to have been discussed in #1248, #10183 and #87633, but it's still broken.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.74, NixOS, 22.05 (Quokka), 22.05.3702.c5203abb132`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(root): `"nixos-22.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I also seem to have hit this, but do not run networking.enableIPv6 = false, but a customized networking.extraHosts. I have however not tested removing extraHosts, as my servers rely on the configuration section to run.
Have a feeling it may be a fragile section when changes in networking. happens.

I can reproduce this on nixos-unstable (without disabling IPv6), but also managed to get it working when stopping nscd.
I found https://superuser.com/a/161217 while googling around. And while this Archlinux BBS article points out a possible solution[^1], I did not find this to be working for me.
[^1]: Effectively translating to system.nssDatabases.hosts = lib.mkOrder 200 ["files"];

I've also encountered this issue, with the same reproduction and issues as @e1mo.
Any idea how to resolve this? I particularly need to be able to set domain for containers using containers.<name>...

FWIW, setting services.nscd.enableNsncd to false seems to resolve this issue.

Hmm, this doesn't make too much sense - I'd assume nsncd and nscd should behave the same when it comes to that. They're simply calling out to the same NSS modules to do the work.
We do have nixos/tests/hostname.nix which tests that hostname --fqdn works. It currently seems to be failing in the hostname --fqdn testcase, when run with nsncd, and succeeds when setting services.nscd.enableNsncd to false. - cc @NinjaTrappeur
Let's figure out this regression first, and not draw too early conclusions about this being a "IPv6 is disabled issue".

So, there's definitely something wrong with the current nsncd implementation.
Dumping the Nscd socket, we can see that nsncd is lacking some getai entries. Entries that are probably used by hostname to get the FQDN:
NSNCD:

mars 07 14:24:18 framework sockdump[96606]: 14:24:18.768 >>> process hostname [98811 -> 70129] len 18(18)
mars 07 14:24:18 framework sockdump[96606]: 0000  02 00 00 00 0d 00 00 00  06 00 00 00 68 6f 73 74  ............host
mars 07 14:24:18 framework sockdump[96606]: 0010  73 00                                             s.
mars 07 14:24:18 framework sockdump[96606]: 14:24:18.768 >>> process hostname [98811 -> 70129] len 22(22)
mars 07 14:24:18 framework sockdump[96606]: 0000  02 00 00 00 05 00 00 00  0a 00 00 00 66 72 61 6d  ............fram
mars 07 14:24:18 framework sockdump[96606]: 0010  65 77 6f 72 6b 00                                 ework.

Let's track and fix this issue on the Nsncd repo.


Question: How to asynchronously use ResponseWriter?

I am implementing a server with Pistache that has a number of endpoints I need to implement. For most of the endpoints I can immediately respond, e.g.:
void MyEndpointApiImpl::get_endpoint_response_sync(Pistache::Http::ResponseWriter &response)
{
    response.send(Pistache::Http::Code::Ok, "My sychronous response");
}

This works fine. However for some endpoints I need to asynchronously (i.e. in my own threads) prepare the response before I can write the response to the ResponseWriter.
How can I achieve that with Pistache? Is this possible, i.e. can I provide reference to ResponseWriter ("response") to my thread and call respond.send() later?
Also I do not want to blocking wait for my response to be ready in my endpoint handler method.
Currently I am trying something like the following:
void MyEndpointApiImpl::get_endpoint_response_async(Pistache::Http::ResponseWriter &response)
{
     std::thread responseThread([&response]()
      {
            std::string myResponseContent( "{ status : \"1\" }" );
            response.send(Pistache::Http::Code::Ok, myResponseContent,
                    Pistache::Http::Mime::MediaType(
                            Pistache::Http::Mime::Type::Application,
                            Pistache::Http::Mime::Subtype::Json ));

    });
    responseThread.join();
}

While I do get the response when I call my server, e.g. via command-line curl the server abort with the following exception:
terminate called after throwing an instance of 'Pistache::Async::BadType'
what():  Argument type can not be used to resolve the promise  (TypeId does not match)

Generally I believe this should be possible as in Transport::asyncWrite() there is check in which thread the send() is called and if not in the correct Pistache thread then the response will be queued and handled later in the correct thread.

I should mention that the Exception is thrown when the Transport::asyncWriteImpl() is done and calls
deferred.resolve(totalWritten);
I.e. Pistache::Tcp::Transport::asyncWriteImpl():
else {
totalWritten += bytesWritten;
if (totalWritten >= buffer.size()) {
cleanUp();
-->            deferred.resolve(totalWritten);
break;
}
}
So this is after the response was send to the client.
(gdb) backtrace
#0  Pistache::Async::BadType::BadType (this=0x7f31ec001f10, id=...) at  src/source/libs/pistache/include/pistache/async.h:35
#1  0x0000000000560d2a in Pistache::Async::Private::Core::construct<unsigned long, unsigned long&> (this=0x7f320001b040, args#0=@0x7f31f57f1828: 204) at  src/source/libs/pistache/include/pistache/async.h:202
#2  0x000000000055f758 in Pistache::Async::Resolver::operator()<unsigned long&> (this=0x7f31f57f19e0, arg=@0x7f31f57f1828: 204) at  src/source/libs/pistache/include/pistache/async.h:745
#3  0x000000000055e596 in Pistache::Async::Deferred::resolve<unsigned long&> (this=0x7f31f57f19e0, arg=@0x7f31f57f1828: 204) at  src/source/libs/pistache/include/pistache/async.h:854
#4  0x000000000055b8c6 in Pistache::Tcp::Transport::asyncWriteImpl (this=0x7f31fc0382a0, fd=137, flags=0, buffer=..., deferred=..., status=Pistache::Tcp::Transport::FirstTry) at  src/source/libs/pistache/src/common/transport.cc:231
#5  0x000000000055b48d in Pistache::Tcp::Transport::asyncWriteImpl (this=0x7f31fc0382a0, fd=137, entry=..., status=Pistache::Tcp::Transport::FirstTry) at  src/source/libs/pistache/src/common/transport.cc:177
#6  0x000000000055bdec in Pistache::Tcp::Transport::handleWriteQueue (this=0x7f31fc0382a0) at  src/source/libs/pistache/src/common/transport.cc:296
#7  0x000000000055ac83 in Pistache::Tcp::Transport::onReady (this=0x7f31fc0382a0, fds=...) at  src/source/libs/pistache/src/common/transport.cc:63
#8  0x000000000053931e in Pistache::Aio::SyncImpl::handleFds (this=0x7f31fc013e30, events=...) at  src/source/libs/pistache/src/common/reactor.cc:182
#9  0x0000000000538c89 in Pistache::Aio::SyncImpl::runOnce (this=0x7f31fc013e30) at  src/source/libs/pistache/src/common/reactor.cc:142
#10 0x0000000000538dc9 in Pistache::Aio::SyncImpl::run (this=0x7f31fc013e30) at  src/source/libs/pistache/src/common/reactor.cc:155
#11 0x000000000053a55c in Pistache::Aio::AsyncImpl::Worker::run()::{lambda()#1}::operator()() const (__closure=0x7f31fc03dc28) at  src/source/libs/pistache/src/common/reactor.cc:463
#12 0x0000000000540ac8 in std::_Bind_simple<Pistache::Aio::AsyncImpl::Worker::run()::{lambda()#1} ()>::_M_invoke<>(std::_Index_tuple<>) (this=0x7f31fc03dc28) at  /usr/include/c++/6.2.0/functional:1400
#13 0x0000000000540a37 in std::_Bind_simple<Pistache::Aio::AsyncImpl::Worker::run()::{lambda()#1} ()>::operator()() (this=0x7f31fc03dc28) at  /usr/include/c++/6.2.0/functional:1389
#14 0x00000000005409d6 in std::thread::_State_impl<std::_Bind_simple<Pistache::Aio::AsyncImpl::Worker::run()::{lambda()#1} ()> >::_M_run() (this=0x7f31fc03dc20) at  /usr/include/c++/6.2.0/thread:196
#15 0x00007f3216f8b77f in ?? () from /usr/lib/libstdc++.so.6
#16 0x00007f321725a3a4 in ?? () from /lib/libpthread.so.0
#17 0x00007f3216a05e5f in clone () from /lib/libc.so.6

Hello,
If you want to asynchronously send a response, you should instead move the ResponseWriter to the responsible thread. For example:
std::thread worker([](ResponseWriter writer) { ... }, std::move(responseWriter));

This is exactly the same way you would do it with std::future and std::promise. Do not attempt to capture something by reference when doing asynchronous stuff, it's a road to dangling references.
Also, you should not start a thread every request. Instead, I'd recommend using some sort of threadpool and then dispatch the request processing to a specific worker.

Yes using the references (even in the example) was not the best idea. The std::move() is generally the correct approach. Anyway we got it working now with this approach.


[Application] add value to change the podManagementPolicy for statefulSet

For an autoscaled statefulSet it is neccessary to change the podManagementPolicy to Parallel if the statefulSet is stuck with unready pods but still needs to be scaled up. By default podManagementPolicy: OrderedReady prevents the statefulSet to scale when unready pods are existing. This change adds the option to change the default value.
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies

shouldn't the cause for an unready statefulsets pod be investigated and fixed?
what guarantee do we have, that the next pod won't be in unready state as well?

shouldn't the cause for an unready statefulsets pod be investigated and fixed? what guarantee do we have, that the next pod won't be in unready state as well?

thats completely use case specific. This change just makes it overrideable


checker eslint is not available

I know this problem has come repeatedly, most notably in #1692, but I still can't make it work. Here is what is happening:

I have eslint installed locally.
There is a npm run lint script using it (in package.json, I wrote "lint": "eslint src tests")
When I open a file (here, src/Timer.js) from the root folder (the one where package.json is), and I run echo system('npm run lint --'), I get this:

><EMAIL_ADDRESS>lint /Users/l/Software/react-analog-clock
> eslint src tests

/Users/l/Software/react-analog-clock/src/Timer.js
   2:8   error  'PropTypes' is defined but never used     no-unused-vars
   6:17  error  'props' is defined but never used         no-unused-vars
   6:23  error  Missing space before opening brace        space-before-blocks
  11:9   error  Unexpected var, use let or const instead  no-var
  11:13  error  'x' is defined but never used             no-unused-vars
  14:13  error  Missing space before opening brace        space-before-blocks

✖ 6 problems (6 errors, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>lint: `eslint src tests`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/l/.npm/_logs/2017-11-04T16_00_05_746Z-debug.log

(The result is the same with echo syntastic#util#system('npm run lint --').)
My .vimrc references eslint as the checker, and the script I just mentioned as the thing to execute:

let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = 'npm run lint --'

However, when I run :SyntasticCheck eslint, syntastic tells me that eslint is not available.
Here is what I get when I disable all the other plugins, and then combine :let g:syntastic_debug=3, :SyntasticCheck eslint, and :mes:

"src/Timer.js" 19L, 312C
/Users/l/Software/react-analog-clock
syntastic: 302.432844: g:syntastic_version = '3.8.0-90 (Vim 704, Neovim, Darwin)'
syntastic: 302.433215: &shell = '/bin/bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquot
e = '', &shellredir = '>%s 2>&1', &shelltemp = 1, &shellxquote = '', &autochdir = 0, &shellxescape = ''
syntastic: 302.434680: UpdateErrors: eslint
syntastic: 302.435250: CacheErrors: eslint
syntastic: 302.436529: g:syntastic_aggregate_errors = 0
syntastic: 302.436867: getcwd() = '/Users/l/Software/react-analog-clock'
syntastic: 302.437682: CacheErrors: Checker javascript/eslint is not available
syntastic: warning: checker eslint is not available
syntastic: 302.438151: aggregated: {'_sorted': 0, '_name': '', '_owner': 1, '_columns': 1, '_rawLoclist
': []}

I use NeoVim on macOS 10.13, but I have seen the same behavior with Vim.
Here is my .vimrc:

syntax enable
colorscheme monokai

" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

"Plug 'pangloss/vim-javascript'
"Plug 'mxw/vim-jsx'
"Plug 'Yggdroot/indentLine'
Plug 'vim-syntastic/syntastic'

call plug#end()

let g:jsx_ext_required = 0
let g:indentLine_color_term = 239
let g:indentLine_char = '┆'

set number
set ruler
" Change tabs to 4 spaces
set tabstop=4 shiftwidth=4 expandtab

" Show tabs and trailing spaces
set listchars=eol:↩,tab:→=,trail:·
set list

" Params for Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = 'npm run lint --'

Thanks!

Here is what I did: I wrote a one-line bash script npx eslint "$@" and defined it as g:syntastic_javascript_eslint_exe
It works, so I'm closing the issue, but I'm wondering if there is a more kosher way of doing it...

I'm wondering if there is a more kosher way of doing it...

I'm afraid there isn't.  Local modules and the way they are implemented in node make things really complicated for third-party programs trying to do something useful with them while still staying environment-agnostic.  Syntastic is a framework for "normal" linters.
Looking at your first attempt, that didn't work because syntastic needs to know the versions of eslint.  And to do that it needs syntastic_javascript_eslint_exec to point to an executable that takes --version as an option (and reacts to it accordingly).  That's why a wrapper script is almost always the easier approach.

@lemeb Can you explain how to refer to the bash script exactly?
let g:syntastic_javascript_eslint_exe = '<path/to/bash_script> <-- like this?

@lemeb Can you explain how to refer to the bash script exactly?
let g:syntastic_javascript_eslint_exe = '<path/to/bash_script> <-- like this?

I second that, can we get an example of what that looks like?

@nickhallph Please read the second post.

yes. here's an extract of my .vimrc, for the record. (thanks @lcd047)
let g:syntastic_javascript_eslint_exec = './script.sh'
    " Works only if there is a script sh enabling eslint in the folder
    " though...

I wrote a tiny tool for using the local eslint in syntastic, and yarn 2 can also be supported.
https://www.npmjs.com/package/xeslint#syntastic-vim

Got same issue as @lemeb .
I took his one-liner script and created a symbolic link in /usr/local/bin:
sudo ln -s /Users/mb/bin/eslint eslint
So I only needed to set g:syntastic_javascript_checkers = ['eslint'] in .vim to get it worked.