KeyValueStore is overridden in Statistics with system's default KV store

Describe the bug
File line: https://github.com/apify/apify-js/blob/0732ab5b77d0811abfc04ce4603e043e7180e7ca/src/crawlers/statistics.js#L187
It is already very hacky to assign a key-value store to the Statistics (stats) of a crawler, yet even when we do so, the given key-value store is overridden because Statistics is creating its own copy without checking.
To Reproduce
const StatisticsModule = require('apify/build/crawlers/statistics');
const Statistics = StatisticsModule.default;

const keyValueStore = Apify.openKeyValueStore('my-custom-kv-store');
const stats = new Statistics();
statistics.keyValueStore = keyValueStore;

const crawler = new Apify.CheerioCrawler(...);
crawler.stats = statistics;

crawler.run()

You will see that the SDK statistics are written to default KV store. To work around this, I had to use APIFY_DEFAULT_KEY_VALUE_STORE_ID environment variable.
Expected behavior
It should use the given KV store.
Additional context
Overriding the Statistics module can be made easier as well. Crawler constructors don't accept many of the useful parameters.

This is a private and undocumented API, so hard to call it a bug, but sure we can have this configurable.


⚠ Bofrost.es has degraded performance

In ae2c6ae, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1366 ms

Resolved: Bofrost.es performance has improved in de4e42c after 6 minutes.


Fix Bugs related to feedback

Fix: Default value of "nearest to" when creating a new place => PlaceRegister
Fix: Slots which are already taken still show up as available on the "apply events" page
Authentication and authorization parts are lacking. Even though the dashboard page is secured, it is possible to access the profile and placeregister pages as an unauthenticated user.
As a not logged-in user, it is possible to use application features, i.e., creating a slot ad.

06b7096beb9a734122f356cc2a6f0c7543e3ede5


Allow setting shortcut to open popup

Closes #70
cc @Alphabet1226

I updated to the latest version (0805) and set the shortcut keys, but it doesn't seem to work. I tested it in the latest stable version of Chrome and edge respectively, and both results are not working.

Thanks for the report! It seems that Google renamed the option so even if it showed the UI it didn't work 🤦♂
https://groups.google.com/a/chromium.org/g/chromium-extensions/c/eKcVRVOQ4GU

🤦♂All right

Maybe switch to manifest v2 for now? Didn't see any improvement on v3. Only
bugs🙃
On Fri, Aug 6, 2021 at 9:34 PM Alphabet1226 @.***>
wrote:

🤦♂All right
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hankxdev/one-click-extensions-manager/pull/71#issuecomment-894264647,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZ3QB3EZ47KMKM7HQ44DGDT3PQHZANCNFSM5BTETD2A
.

Fair enough. I will publish 21.8.7 tomorrow. In reality none of the recent changes were necessary, it's just that to make the shortcut work you have to disable and then re-enable the extension with v3.


Enhanced functionality to improve developer experience by identifying…

… parent packages or projects from duplicate packages. This commit introduces new features that parse the dependency graph, starting from the duplicate package and ending at the parent package/project that encompasses it.
#6465

Thanks or the contribution @dimitris-iliou. But before you put too much effort in it, be informed that during one of the last ORT community meetings it was agreed that the best solution to address the issue is to not have duplicate IDs between project and packages to begin with, and deduplicate these by replacing references with package linkage in the dependency tree by references that link to the project instead.

Thanks or the contribution @dimitris-iliou. But before you put too much effort in it, be informed that during one of the last ORT community meetings it was agreed that the best solution to address the issue is to not have duplicate IDs between project and packages to begin with, and deduplicate these by replacing references with package linkage in the dependency tree by references that link to the project instead.

@sschuberth : How might multiple subdirectories with the same python package dependencies within each requirements.txt file be constructed to not throw an exception?
20:18:16.195 [DefaultDispatcher-worker-1] ERROR java.lang.Object - Multiple projects with the same id 'PIP::src:1b11e6b573ecdb3a109776554dc04462bc00a82b' found. Not adding the project defined in 'https://github.com/organization/repository.git/src/module1/requirements.txt' to the analyzer results as it duplicates the project defined in 'https://github.com/organization/repository/src/module2/requirements.txt'.
Exception in thread "main" java.lang.IllegalArgumentException: Unable to create the AnalyzerResult as it contains packages and projects with the same ids:
...

from this TODO https://github.com/oss-review-toolkit/ort/blob/956d12e4ec820c39a5fc0931d30e0e3a3d692407/analyzer/src/main/kotlin/AnalyzerResultBuilder.kt#L57-L58.
causing this exception https://github.com/oss-review-toolkit/ort/blob/956d12e4ec820c39a5fc0931d30e0e3a3d692407/analyzer/src/main/kotlin/AnalyzerResultBuilder.kt#L46-L47
For example:
`+ src
|_ src/module1/requirements.txt
|_ src/module2/requirements.txt


Add a Gitter chat badge to README.md

flutter/flutter now has a Chat Room on Gitter
@Hixie has just created a chat room. You can visit it here: https://gitter.im/flutter/flutter.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

I'll do it as a separate PR.


Mocked PPFields need a useable _data property.

A mock replacing a PPField now behaves differently in the PPField.data call (in pp.py).
It used to have isinstance(data, biggus.Array), to which Mock replies 'False'.
Now has is_lazy_data(data), which translates to hasattr(data, 'compute'), to which Mock replies True.
It seems that np.array(mock) is ok, but np.ma.masked_array(mock) does something nasty.

@pp-mo please may you rebase/retarget this to dask_timed?
it's good to go apart from that, in my view

Done. passes :grin: !


Hello we have installed Hygieia  UI but not able sign up the page so we are thinking to implement for our devops tool in our organization so please check it and resolve this one

Hello can you please resolve as soon as possible


Can't create the Model NodeSet2.

I try to do this example,
but run the build_model.bat,
The folder animal/UA_Test/opcua-animal-cs/animalModel is empty.
I have create the Model.xml.
I use the windows to build the model.
Thank you very much.

What were the exact steps you performed?
It should work with:
git clone https://github.com/Pro/opcua-animal-cs
cd opcua-animal-cs
git submodule update --init --recursive
cd model_compiler
nuget.exe install -OutputDirectory packages ModelCompiler/packages.config
msbuild "ModelCompiler Solution.sln" /p:TargetFrameworkVersion="v4.5"
cd ..
build_model.bat

If not, please show the full output of the command here.
animal/UA_Test/opcua-animal-cs/animalModel is not referring to a folder, but to this file:
https://github.com/Pro/opcua-animal-cs/blob/master/animalModel.xml

My problem is solved.
Thanks for your reply.
I'm learning to create OPC UA Information Models,
and try to use the compiler to convert the AML file to NodeSet2.xml Format.
Thank you very much again.


feat(unit-naming): examples and improvements for naming checks

This PR adds another directory under examples/unit for showing the different ways that resource names can be checked as part of unit tests. This same approach can be used for other properties, but naming in the angle from the top level README that brought my interest in this library :)
This covers exact value checks and adds functionality for comparing against regex patterns, including at the Stack level for all resources of a type for ensuring compliance against naming conventions.
The stack level piece is used by the examples/unit/naming/test_naming_advanced.py, the object structure that gets passed to assert_resource_type_property_value_conventions is something that I'm not entirely sure about. In tests I've been writing against this we have a common test util class that assumes positions in a tuple for a bunch of this information instead of named fields, but this might be more maintainable.
I'm marking this as ready for review just now, but expecting it'll need a bit of revision based on the above point.
BTW it looks like you have added me to the DSTY organisation, but I can't push feature branches to this repository still (hence why the PR is from my fork). That might be why I thought I couldn't edit labels on PRs.

BTW it looks like you have added me to the DSTY organisation, but I can't push feature branches to this repository still (hence why the PR is from my fork). That might be why I thought I couldn't edit labels on PRs.

I will look into this

Well the GitHub org access controls are somewhat of a mess, but you have the correct permissions now, at least for this repo.

@dhutchison Between November and February, I have the most free time to work on my side projects. So I should be able to put more attention on this.
We have two different ideas. Mine is around enforcing a common prefix to resource names. Something like ${CompanyName}-${EnvironmentName}-${ResourceName}. Where ResourceName could be anything.
Your idea is more around checking that ResourceName is a specific value/format. Like your example the region name be included if the resource is a bucket.
Another thing that is different in my approach is that I want to enforce a single schema on every resource, but your approach is for enforcing different rules for different resource types?
I can always build my approach in the future. Since its more about company-wide name prefixes and less about resource names.
While reviewing your examples above, I realize that your exact idea could be slightly altered to be extremely powerful.
Imagine a "hooks" system where you define a single test function that you want to run for N resource of X type. Example Code:
from cloud_radar.cf.unit import Template

def my_s3_hook(resource_data, stack_info) -> None:

    name: str = resource_data['BucketName']

    assert stack_info.Region in name

    assert resource_data["BucketEncryption"] is True

Template.hooks = {
    "AWS::S3::Bucket": [my_s3_hook]
}

In the example above, the my_s3_hook function would be called on every AWS::S3::Bucket resource that is encountered when we render the template. This would allow you to check a resource name and other things about the resource and it would remove the somewhat complicated type_patterns object.
These hooks could also be configured Globaly for every Template, or locally for every render of a template or for a specific render of a template. For example
# Global example of hooks for every 'Template' object
import my_company_cloud_radar_hooks # You wouldnt have to import but you would have to pip install it.
# similar to how flake8 and octoprint plugins work.

# Local Hooks for every 'Template' object, global hooks are already present and cant be removed
Template.hooks = {
    "AWS::S3::Bucket": [my_s3_hook]
}

template = Template.from_yaml(template_path.resolve())

# Hooks for a single template, wouldnt be applied to other templates
template.hooks = {}

Let me know what you think =)

I think in the next few weeks I'm going to have a bit more brain space to work on this idea. I'm going to move a chunk of this conversation into a Discussion so we can iterate on the design a bit. I think this PR as-is will get closed but I might be able to reuse some of the code for utility methods for retrieving tags and such.
I've had a dig through how flake8 plugins are registered and it looks pretty straight forward (still to try PoC'ing an implementation though).
The design of the hooks dict and what the functions take in is going to be a key bit. I think it should be able to cover more than just resources, so you can enforce things like all parameters have descriptions. Also there is a CloudFormation standard somewhere (I can't find the link right now) around items in the cloud formation template being prefixed with a letter for their type (so parameters are always pParameterName etc) - so they are not resource type specific. Just putting these down just now so I remember what additional constraints could apply to the design.

I should stop predicting when I'll have brain space - been wanting to get back to this but just not had a chance.
I've removed the more compliance level checks from this PR while still leaving most of the example & the additional helper functions to check a property against a regex. Hopefully this is enough to get this merged then can proceed with the hooks approach.

@dhutchison I see conflicts, likely because of the other PR I just merged.
I haven't had as much free time as I was expecting either and the time I did get I spent on my other project cf2tf.
I will be spending more time on this project this week and weekend.

No problem. I too have had much less time than I'd hoped.
I can get the conflicts straightened out tonight if that helps?

@shadycuz I've sorted out the merge conflicts and added a little bit of coverage which was missing. The GitHub action failure seems to be an issue relating to updating code coverage - is that something you have seen before? I can't see how any code change I made could cause that failure


Copyediting RLMRealm and RLMNotificationToken

More copyediting. @jpsim @bdash @tgoyne

I made corrections based on Thomas' feedback. If anyone else wants to take a look...


Update hydrate and newFromBuilder with $exists

Allows you to use Hydrate to new up an array of models
I ran across this and needed it, it basically allows for this:
$posts = Post::hydrate($data, null, false);

$user->posts()->saveMany($posts);

Instead of
foreach($posts as $post) {
  $user->posts()->save(new Post($post));
}

Might not be worth anything, but I thought I mine as well see.

I know I need to squash this - I'm trying! (no luck so far)


.gitignore for src/bindings.rs?

Should generated files be in the .gitignore? Generally preferred for generated files.
Currently, cargo component build needs to run before subsequent other cargo commands can run, like cargo clippy and cargo test.
If you have a workspace with multiple cargo component crates as well as non-component crates, which is common, then there needs to be a way to handle this elgantly.

I think it should be ignored, because the file content is completely determined and contains unreadable content at the end.
Of course, there is currently no ability to lock cargo-component and wit files (wit.lock?), maybe it needs to be specified in metadata.


BatchNormalization's avg_var initialized with zeros can cause division by zero

Currently, BatchNormalization's avg_var is initialized with zeros. This will cause division by zero when called it with test=True before test=False, so it might be better we use another values, say, ones, to initialize avg_var.
Calling BatchNormalization with test=True before test=False can seem unnatural, but it can happen in the reinforcement learning context: an agent selects an action by evaluating its value function or policy represented by a NN, observes consequences, and then (if it has enough experiences) updates its value function or policy.

@muupan Do you think we should reopen this issue?

I think it is good to fix this issue by initializing var with 1s. PyTorch seems doing so.
https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/batchnorm.py#L24
Are there any opinions against doing so?

One concern is that it changes the models learned with the same script. I think the effect is negligible for most use cases (the effect is made exponentially small against the number of training iterations), but it would be better to leave a way to reproduce the current behavior.

I'd rather not add any options.  Just fix it, please.  Even if someone exploited the fact that avg_var is initialized with zeros, he or she can fix code easily by
bn = chainer.links.BatchNormalization(_)
bn.avg_var[...] = 0

(and all Chainer has to do is to write it in the version-up guide).  To anyone else, including beginners, avg_var should not be 0.

I will work on it.


Fix sqlite3 integrity error

2019-05-03 23:57:27 parsl.executors.high_throughput.executor:469 [DEBUG]  [HOLD_BLOCK]: Sending hold to manager:01542a2da9d6
2019-05-03 23:57:27 parsl.executors.high_throughput.executor:437 [DEBUG]  Sent hold request to worker: 01542a2da9d6
Process Process-2:
Traceback (most recent call last):
  File "/home/users/industry/chicago-university/woodard/miniconda3/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/users/industry/chicago-university/woodard/miniconda3/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
sqlite3.IntegrityError: NOT NULL constraint failed: task.task_time_submitted

The above exception was the direct cause of the following exception:

I have never seen this error before. Do you have a way to reproduce it? It seems this happens after some managers were held?

I'm closing this, I think it might have been an issue with an old version of a DB. I'll re-open it with instructions to reproduce if I see it again.


Allow unquoting inside string literals

Problem
Unquoting inside string literals doesn't work
Happy Case
This should work:
fn main() {
    comptime {
        let x = 3;
        let q = quote { x is $x };
        assert(false, f"q = {q}");
    }
}

Right now it gives this error:
error: q = quote { x is (UnquoteMarker) }
  ┌─ src/main.nr:5:16
  │
5 │         assert(false, f"q = {q}");
  │                ----- Assertion failed
  │

Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response

We don't need to allow unquoting inside string literals - you can use format strings to format them which the example shows. The error is only because of the assert(false, _) and is just meant to show that when Quoted values are turned to strings we don't recursively handle converting each token to a string with the interner. We just call .to_string() on all of them which gives us (UnquoteMarker) strings.

Ah, great! I didn't know if the issue was only about converting Quoted values to string. It seems https://github.com/noir-lang/noir/issues/5899 fixes this, then.

@jfecher  I'm not sure this is solved.
For example this program:
fn main() {
    comptime
    {
        let name = quote { bar };
        assert_param(name);
    }
}

comptime fn assert_param(name: Quoted) {
    assert(false, f"Param {name} failed assertion");
}

Maybe I'd expect the output to be:
Param bar failed assertion

but right now this is the error:
Param quote { bar } failed assertion

That is, Quoted values are interpolated together with the surrounding quote { ... } but maybe that surrounding should be removed?
Mainly thinking about the original use case that triggered this:
assert(false, "Param $a_quote of type $a_type_quote is not supported as an argument")

As a side note, I'm also wondering if format strings wouldn't be useful to constructor identifiers. Something like this:
let hello = quote { hello };
let world = quote { world };
let name = f"{hello}_{world}";
let identifier: Quoted = name.as_identifier().unwrap();
println(identifier); // Prints "quote { hello_world }";

That way we wouldn't need to "glue" tokens because format strings kind of do that now. I'm also thinking about Elixir here, I guess in their macros you can operate with strings and eventually call String.to_atom to convert them to an atom that you can use to create a function, etc.

I like the thought of using format strings for name formatting as well, then re-converting them into Quoted values.
As far as the Param quote { bar } failed assertion issue goes that seems like a tough one. Even if we remove the quote { } portion, users wouldn't be able to control the amount of spaces between each token in the Quoted value.
If we just want to consider the name use case we can just ignore this I suppose and expect each Quoted value to only have a single token.


Setting the linkedin pin at the run time

This is a pretty handy gem.How ever i have some question about the pin from linked in.
as the example said that
# to test from your desktop, open the following url in your browser

and record the pin it gives you
request_token.authorize_url
=> "https://api.linkedin.com/uas/oauth/authorize?oauth_token=<generated_token>"
I am getting the pin but the problem is how can i set this pin to the authorize_from_request method at the run time.
then fetch your access keys
client.authorize_from_request(rtoken, rsecret, pin)
can you please suggest me a work around to get rid of that situation.
I am sorry it might not be an issue but i didn't get any help.
Thanks so much for your help.

Once you do all of the initial setup you should be using client.authorize_from_access(token, secret)
https://github.com/hexgnu/linkedin/blob/f59a8a3980a7da512e27962d9587af2b7a5229e9/lib/linked_in/helpers/authorization.rb#L37
you can find that out after you've set up the initial app with client.access_token.token and client.access_token.secret I believe


[Feature] Verified / Unverified middleware

Have you ever though about adding sanctum:verified and sanctum:unverified middleware?
sanctum:verified
This middleware would check if the user is authenticated AND if the user returns a email_verified_at field that is not null.
sanctum:unverified
This middleware would check if the user is authenticated AND if the user does not have a email_verified_at field (or it is null).
A new config value for redirect.onUnverifiedOnly should be added so unverified users can be automatically redirected to an e-mail verification page.

Hey @j-jalving, thanks for the suggestion. However, I excluded that feature from the package on purpose, here are the reasons:

User verification is not a part of Sanctum authentication functionality, so it is out of the scope and responsibility of the module.
User model is a very application-specific object, sometimes people have their own validation logic that doesn't depend on a single email_verified_at, or this field may have a different name (since it is not restricted on the backend side). Thus, I would need to add customization in the nuxt.config.ts with a field name or something like that, which will complicate the module and decrease the flexibility.
Verification is not necessarily a part of the application, so I do not want to enforce non-standard implementations to be included in the module. I personally think that this middleware is a better fit for a fully functional Laravel-Nuxt integration rather than a Sanctum authentication module.

With that being said, this part was extracted into breeze-nuxt application template, if you want to contribute, feel free to open a PR there with unverified middleware.

Makes sense, thanks for the comprehensive answer! I'll look into adding the unverified middleware and close this request for now.


ENH: support unbuilt Model serialization

Bringing over learnings from https://github.com/tensorflow/tensorflow/pull/39609
SaveModel does not support unbuilt models, but at the same time these can be copied using default Python implementations.

Codecov Report

Merging #220 (b063e9a) into master (d941d96) will decrease coverage by 0.42%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
- Coverage   99.71%   99.28%   -0.43%
==========================================
  Files           6        6
  Lines         693      699       +6
==========================================
+ Hits          691      694       +3
- Misses          2        5       +3

Impacted Files
Coverage Δ

scikeras/_saving_utils.py
96.77% <100.00%> (-3.23%)
:arrow_down:

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 d941d96...b063e9a. Read the comment docs.


Document firing keyboard events

What: Vague documentation (issue #153 )

Why: To clarify usage to users

How: Added documentation

Checklist:

[x] Documentation N/A
[ ] Tests N/A
[x] Ready to be merged
[ ] Added myself to contributors table

If the event you want to trigger is not bound to a certain element

I can't think of a scenario where this makes sense...

To elaborate: DOM events "bubble up"  from the target element to their parent and all the way up to the root element. They can be handled at any depth, even multiple times, unless a handler calls the event's stopPropagation() method. If you're thinking of a keypress as a global event, that means that the only event listener is at the root - the target element is whatever has focus when the event was triggered, and then it propagates up to the top.

@alexkrolick Thanks for the clarification. I actually never considered that keyboard events could be bound to other elements as I've used them very lightly and have always bound them to document.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Hello Morning Session Peers. Lets have some comments about the commits presented by the presenter.

Great Job!!!! No Issues were found.

Thank you everyone


[Bug] Support RTL for DrawerDialog

Purpose

Support RTL for Drawer Dialog

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Open setting page
Click on isRTL checkbox

What to Check
Verify that the following are valid

All the UIs are Right to Left

Other Information

After AudioList
After ParticipantListView
After  LeaveCall

@ShaunaSong can we also do for leave call?

Updated, please double check


[WIP] Test nearby pleaces

Codecov Report

Merging #10 into master will decrease coverage by 5.3%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   42.94%   37.64%   -5.31%
==========================================
  Files          13       15       +2
  Lines         156      178      +22
==========================================
  Hits           67       67
- Misses         89      111      +22

Impacted Files
Coverage Δ

Foursquare Clone/Networking/PlacesApi.swift
0% <ø> (ø)

Models/PlaceTip.swift
0% <ø> (ø)
:arrow_up:

Foursquare Clone/Services/PlacesService.swift
0% <0%> (ø)

Models/LocationPlaces.swift
0% <0%> (ø)
:arrow_up:

...oursquare Clone/Services/NearbyPlacesService.swift
0% <0%> (ø)

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 be5c479...621a0a2. Read the comment docs.


EurekaBase potential for NullReferenceException when no instance id exists

Test for issue https://github.com/SteeltoeOSS/steeltoe/issues/176 as well as a very basic fix, would be good to look to log such issues. Also fixed typo. whilst in this code.

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

This looks like a reasonable thing to check for, thanks for following up!


Confirmation for deleting Extension (as we do for Accounts)

The big difference between deleting an Extension and an Account is that deleting an Account is a destructive act and data will be lost.  Deleting an Extension has no penalty beyond having to add it again.  That's why I didn't put a confirmation on this one.

Could we do Undo support for this?

I think the dialog would be more appropriate than undo.  I'm not dragging my feet on doing the work, I just wanted to make sure that you had looked at it from all the angles.  My only point was that the only downside to hitting delete on accident was you had to sign in again, probably using keychain.  I don't think that is destructive, but if you do, let's add the dialog.

Technically it’s not destructive. But I’m considering how people will feel about it — and adding back an account feels like just enough work that people will feel like it’s destructive, even when it isn’t.


ntr: histone H3-K14 ubiquitination

a couple of new terms - we'll use the more specific one to annotate Rbx1 (CLRC complex) and to define a phenotype from the cited paper (community curated)
id: GO:new1
name: histone H3 ubiquitination
namespace: biological_process
def: "The modification of histone H3 by the addition of one or more ubiquitin groups." [GOC:mah, PMID:31468675]
synonym: "histone H3 ubiquitylation" EXACT []
is_a: GO:0016574 ! histone ubiquitination
id: GO:new2
name: histone H3-K14 ubiquitination
namespace: biological_process
def: "The modification of histone H3 by the addition of one or more ubiquitin groups to a lysine residue at position 14 of the histone." [GOC:mah, PMID:31468675]
synonym: "histone H3 ubiquitination at K14" EXACT []
synonym: "histone H3K14 ubiquitination" EXACT []
synonym: "histone H3-K14 ubiquitylation" EXACT []
is_a: GO:new1 ! histone H3 ubiquitination

thanks!


全是英文我什么都看不懂拉

咋办

I'm sorry but we currently accept issues only in English. We have plans to translate the developer documentation to other languages including Chinese.

访问 https://angular.cn 网站


"vscode.openFolder" command followed by "vscode.open" opens the file only after the folder is closed

I hoped to be able to open a folder and then also a file afterwards, so I wrote this:
await vs.commands.executeCommand("vscode.openFolder", folderUri);
await vs.commands.executeCommand("vscode.open", Uri.file(path.join(folderUri.fsPath, "lib/main.dart")));
vs.window.showInformationMessage("Press F5!");

The folder is opened as expected, however the file doesn't appear to be. However if I click File -> Close Folder then after the folder closes, the file opens!
This was somewhat unexpected - I either expected it to work as I wanted, or for the file to never open (the docs suggest the extension host is terminated). Now it seems like the promise from openFolder might just not complete until the folder closes.
Is this expected behaviour? Is there a way to open a folder and then a file within it?

Even if you take away the await on the first line you get the same behaviour.

@DanTup opening a folder will take down the extension host, I do not think your second thing is ever being executed. Can you confirm that the folder changes to the URI you provide and the window reloads?

@bpasero That's what I thought, however the behaviour I see

Folder opens as expected
File does not open
Wait for some amount of time
File -> Close folder
Now the file opens!

Ok. I will not look into a fix as this scenario is unlikely, but if someone has a clue what is going on, feel free to chime in.

FWIW, I handled my original requierment by setting a key in the extension context global state and then check it upon activation.
That said, this behaviour still seems a bit wonky, so it might be worth keeping open for investigation.


Ensure an abort actually occurs when test plan expects it.

This fixes a defect where a test case that expects an abort code would pass even if no abort actually occurred at runtime.
For example, before this patch, the below rbpf test passes when it should not:
// abort 10
script {
fun main() {
}
}

However, I think it might be better to use an existing rbpf runner (rbpf-cli or cargo-run-solana-tests), rather than have another one embedded in the move test harness.


Pfitz Multiple Marathons 4 Weeks

I've created the Pfitz multiple marathons 4 weeks plan from the third edition of the Pfitzinger/Douglas book
pfitz_4_multiple.csv

Added! Thanks again for the contribution!


gcc-5 please

In the latest gorocksdb mess scramble [#126], we ended up with gcc-6 as the compiler in travis.
This downgrades our travis build to use gcc-5, so that it matches development and set the baseline dependency to a non-exotic compiler.

Yeah, gcc-5 is good; no special reason for using 6.


Notifications

This is not an issue
just a noob query
I just want to know how do notifications work  for magic mirror or every module
do I have to type them in the config file or every module's js file
or do I type them through keyboard just like we do chat
or through telegram
I really searched everywhere IMO but I don't know why I am not finding a solution to it
but as u have built so many awesome modules and even reply to every one of my queries till now hence asking u
how to send this, type, show, send, work, where to put  these notifications
Example : this.sendNotification("SPOTIFY_SEARCH", {type:"artist,playlist", query:"michael+jackson", random:false})

What user-input method your mirror has? (keyboard? button? mic?)
Or what real use-case or scenario are you considering?

I have a wireless usb remote connected ic also connected for Google assistant but mostly I use control it SSH

You mean, you want to control MM through SSH terminal (in other computer) on real usage?
In that case, I think CURL would be the most common way to send your intention. (Or you make some script about it)
Some modules - like MMM-NotificationTrigger ..  - Could accept HTTP POST/GET request. MMM-NotificationTrigger can translate that request to notification of MM.
But I still feel some weirdness about controlling MM with SSH. Never imagined. :D
MMM-TelegramBot can also emit custom notification with /notification command. Or you can make your own commands for convenient usage.

Okay okay
Now just tell me how to send this  below notification through telegram bot or keyboard
this.sendNotification("SPOTIFY_SEARCH", {type:"artist,playlist", query:"michael+jackson", random:false})

If you are using MMM-TelegramBot,
/notification SPOTIFY_SEARCH {type:"artist,playlist", query:"michael+jackson", random:false}

Will work.
 Anyway above is somewhat long to type for me. :P

the above command gives an error that notification payload is not proper
Even tried ur default example of nofication command on ur telegram bot page still same error
I'll sure be making custom commands for evry notification
And one more thing should I create a new thred for this below issue in ur mmm-assistantmk2
when I install Google assistantmk2
I am not able to install Alexa it gives an error that device resource is busy or not responding
Do I have to attach one more mic for Alexa or is there any way to work both of them at the same time individually just by saying the hotword

What kind of error? More details are needed.

/notification SPOTIFY_SEARCH
{type:"artist, playlist", query:"michael+jackson", random:false})
Notification payload is not proper.
{type:"artist, playlist", query:"michael-jackson", random:false})
10:24 PM
/notification SHOW_ALERT {"title":"test",
"timer":1000))notification SHOW_ALERT {"title":"test", "timer":1000})
Notification payload is not proper.
{"title":"test",
"timer":1000})
10:25 PM

{type:"artist, playlist", query:"michael+jackson", random:false}) <--- the last brace ")"

I feel too dumb now :p
Thank you so much for ur patience problem is solved now


Increase startup time of HDP3 test environments

presto-product-tests-launcher/bin/run-launcher env up --environment singlenode-hdp3
...
INFO	testcontainers-lifecycle-0	🐳 [prestodev/centos7-oj11:28]	Container prestodev/centos7-oj11:28 started in PT37.316069S
INFO	testcontainers-lifecycle-1	🐳 [prestodev/hdp3.1-hive:28]	Container prestodev/hdp3.1-hive:28 started in PT1M44.238856S

I'd fix in HDP: hadoop-hdfs-namenode.log:2020-06-19 14:57:11,745 - INFO  [main:BlockManagerSafeMode@602] - STATE* Safe mode ON. which gives 30s penalty on startup

My guess is this has something to do with namenode starting in safe mode, which delays HiveServer2 start and opening port 10000.
We could try to force safe mode exit.

Yeah :)

We could try setting:
    <property>
        <name>dfs.safemode.threshold.pct</name>
        <value>0</value>
    </property>

in hdfs-site.xml

2020-06-19T11:31:37.837+0200	INFO	testcontainers-lifecycle-1	🐳 [prestodev/hdp3.1-hive:28]	Container prestodev/hdp3.1-hive:28 started in PT25.876362S

https://github.com/prestosql/presto/pull/4094

https://github.com/prestosql/docker-images/pull/60


Issue with using AzureKeyCredential?

Package Name: azure-ai-inference
Package Version: latest
Operating System: 1.0.0b4
Python Version: 3

Describe the bug
Creating a ChatCompletionsClient with an AzureKeyCredential and a token fails to complete, with this error:
azure.core.exceptions.ClientAuthenticationError: (None) Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired.
Code: None
Message: Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired.

To Reproduce
# this code fails
client = ChatCompletionsClient(
    endpoint=ENDPOINT,
    credential=AzureKeyCredential(token),
)

# this code works
client = ChatCompletionsClient(
    endpoint=ENDPOINT,
    credential=AzureKeyCredential(""),
    headers={"api-key": token},
)

# rest of the demo code
response = client.complete(
    messages=[
        SystemMessage(content="Talk like a pirate and elaborate on the following:"),
        UserMessage(content="What is the capital of France?"),
    ],
    model=model_name,
    # Optional parameters
    temperature=1.,
    max_tokens=4000,
    top_p=1.
)

print(response.choices[0].message.content)

Expected behavior
To be able to login and work with the AzureKeyCredential
** Extra information**
I was running this from the github/codespaces-models examples with the GITHUB_TOKEN and then it works correctly. Just moving to my own Azure OpenAI instance it started to fail like this.
runtime="GITHUB"
if runtime=="GITHUB":
   # this works with AzureKeyCredential(token)
    print("Running in GitHub")
    token = os.environ["GITHUB_TOKEN"]
    ENDPOINT = "https://models.inference.ai.azure.com"
else:
   # this works with AzureKeyCredential(token)
    print("Running in Azure")
    token = os.environ["AI_TOKEN"]
    ENDPOINT = "https://my-instance.openai.azure.com/openai/deployments/gpt-4o"

@rajbos please see section "Create and authenticate a client directly, using API key or GitHub token" on  https://pypi.org/project/azure-ai-inference/ for instructions on how to create a ChatCompletionsClient for Azure OpenAI endpoint.
Please reactivate and tag me if you were not able to make it work.
Darren

I managed to get it working with the Azure Open AI configuration. Super not intuitive that you need to change the authentication setup.
This is what worked for me, full example for completeness:
runtime="AZURE"
client = None
if runtime=="GITHUB":
    print("Running in GitHub")
    token = os.environ["GITHUB_TOKEN"]
    ENDPOINT = "https://models.inference.ai.azure.com"

    client = ChatCompletionsClient(
    endpoint=ENDPOINT,
    credential=AzureKeyCredential(token),
)
else:
    print("Running in Azure")
    token = os.environ["AI_TOKEN"]
    ENDPOINT = "https://xms-openai.openai.azure.com/openai/deployments/gpt-4o"

    client = ChatCompletionsClient(
        endpoint=ENDPOINT,
        credential=AzureKeyCredential(""),  # Pass in an empty value.
        headers={"api-key": token},
        #api_version="2024-06-01"  # AOAI api-version is not required
    )

Thank you @rajbos for the update, glad you got it to work.  We are working on service changes to make this setup much simpler.


Addition for route53

A gotcha for me was that a hosted zone and a domain name are something different in Route53. Because they are created together automatically when buying/transfering a domain through AWS, it is not clear that your domain is the place where you configure nameservers, which should correspond with the NS record of any Hosted Zone (can be in another account).
I use my bastion account to keep the registry of domains (since they are of critical importance to our business), but I use the app accounts to manage the hosted zones.

@vincent-dm seems like a fair point to explain. Would you be up for filing a PR with this (stated very briefly, ideally with a link or two) in the Route 53 tips section?

Alright, I created a pull request: https://github.com/open-guides/og-aws/pull/318

Fixed in #318


Setup fails when Cryptography attempts to run Rust

Just tried following your setup instructions but had the following result:
#6 22.27   copying src/cryptography/py.typed -> build/lib.linux-x86_64-3.8/cryptography
#6 22.27   creating build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/_rust
#6 22.27   copying src/cryptography/hazmat/bindings/_rust/init.pyi -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/_rust
#6 22.27   copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/_rust
#6 22.27   copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/_rust
#6 22.27   copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-x86_64-3.8/cryptography/hazmat/bindings/_rust
#6 22.27   running build_ext
#6 22.27   running build_rust
#6 22.27
#6 22.27       =============================DEBUG ASSISTANCE=============================
#6 22.27       If you are seeing a compilation error please try the following steps to
#6 22.27       successfully install cryptography:
#6 22.27       1) Upgrade to the latest pip and try again. This will fix errors for most
#6 22.27          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#6 22.27       2) Read https://cryptography.io/en/latest/installation/ for specific
#6 22.27          instructions for your platform.
#6 22.27       3) Check our frequently asked questions for more information:
#6 22.27          https://cryptography.io/en/latest/faq/
#6 22.27       4) Ensure you have a recent Rust toolchain installed:
#6 22.27          https://cryptography.io/en/latest/installation/#rust
#6 22.27
#6 22.27       Python: 3.8.10
#6 22.27       platform: Linux-5.10.76-linuxkit-x86_64-with
#6 22.27       pip: n/a
#6 22.27       setuptools: 60.9.3
#6 22.27       setuptools_rust: 1.1.2
#6 22.27       =============================DEBUG ASSISTANCE=============================
#6 22.27
#6 22.27   error: can't find Rust compiler
#6 22.27
#6 22.27   If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
#6 22.27
#6 22.27   To update pip, run:
#6 22.27
#6 22.27       pip install --upgrade pip
#6 22.27
#6 22.27   and then retry package installation.
#6 22.27
#6 22.27   If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
#6 22.27
#6 22.27   This package requires Rust >=1.41.0.
#6 22.27   ----------------------------------------
#6 22.27   ERROR: Failed building wheel for cryptography
#6 22.27 Failed to build cryptography
#6 22.27 ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

Sorry I never got around to addressing this. At this point Instant Rails works fundamentally differently so I assume this issue doesn't apply anymore anyway.


Always upgrading all casks

Brew-cask-upgrade is always upgrading all my casks (instead upgrading only the outdated) every time I run it. Since Verion 1.0.0.
Thanks

The default Caskroom location has moved to /usr/local/Caskroom from /opt/homebrew-cask/Caskroom. Please update the Homebrew Cask (brew cask update) and migrate your Casks to the new location. You can just simply move the legacy directory to the new directory:
mv /opt/homebrew-cask/Caskroom /usr/local/Caskroom

For more details, see https://github.com/caskroom/homebrew-cask/issues/21913.

This issue was resolve in f5b8d8c.


Fixes regex for Edge browser detection

As tested on macOS 12.4 with Edge version 102.0.1245.30, navigator.userAgent returns the following string:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.30, which does not match the current regex.

Thanks for the pull request @sanjeetsuhag!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.


[1.19] No recipes for melon and pumpkin seeds

REI says there is no recipe to get melon or pumpkin seeds.
So there is no way in a normal Skyblock world to get them.

Wandering Traders provide access to melon and pumpkin seeds, though it could take a long time to actually get them. https://minecraft.fandom.com/wiki/Trading#Wandering_trader

I wouldn't consider wandering traders a viable alternative to FEN. They are too rare and random

Making a release for it soon.


Clicking Mobile NavBar icon doesn't close it

Open https://divyanshugrover.github.io/
Open Developer console and toggle to Mobile View.
Click on the "3-lines button" to open the nav menu.
Click it again to close it.

Expected: Step 4 should close the menu.
Actual: Step 4 doesn't do anything.
Comments: Clicking outside the nav overflow box closes the menu. Still I want it to work by clicking on the menu icon.

For me the hamburger menu doesn't even open on iOS 10.2

Try viewing it in a browser with Developer console. I get the same output in Android (Chrome) as well.

I tried again on chrome for iOS and the hamburger menu still doesn't open.
However, on Firefox for iOS it opens and closes fine.

I tried on Firefox for Android, same result. The menu opens, but doesn't close on touching the button.

Ah you are right, it doesn't close when clicking the hamburger again. But when clicking outside it closes. For Firefox.

That is the same behavior that I reported initially. I want it to close on clicking/touching the button.
Can confirm that doesn't work on Chrome on Windows 10, Chrome on Android, Firefox on Android.

The reason is that Minima doesn't use any javascript. There is no onClick function attached to the "hamburger" icon. The dynamics simply being a CSS :hover property.
You're welcome to send a PR towards addressing the issue. I'd recommend to use CSS touch events for wider accessibility.

The menu not working on iOS is related to https://www.nczonline.net/blog/2012/07/05/ios-has-a-hover-problem/

@ashmaroli I looked up that much in the code itself. Alright, would work on CSS touch events and send a PR.

@ashmaroli @johnmu I've fixed this in my code using a Javascript OnClick function. If you want me to send a PR for that by forking your code and changing the same there, let me know.

duplicate of #80, fixed in #85

@DirtyF I went through #80 - adding an empty onclick event will open the Hamburger menu on iOS, but won't close it. There was discussion on how to make it a toggle (someone suggested pointer-events) but I couldn't see any code that implemented that.

Actually that doesn't fix this particular issue. The menu is still hover meaning it won't close when clicking on the hamburger.
It does fix the, won't open on iOS issue though.

Have the same issue of the hamburger menu not opening on iOS 10.2.

Same issue here on iOS 10.1: Hamburger menu does not open.

Same issue on iOS 10.2.1, Hamburger menu does not open

Can you look at #111 and see if that fix works for you ?


Update Ruby version in travis

The builds via travis are failing because of an outdated ruby version which is no longer supported.
updating to the latest version passes the builds.

Codecov Report

Merging #674 into develop will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #674      +/-   ##
===========================================
+ Coverage    89.34%   89.36%   +0.02%
===========================================
  Files          113      113
  Lines         8944     8944
  Branches       490      490
===========================================
+ Hits          7991     7993       +2
+ Misses         953      951       -2

Impacted Files
Coverage Δ

...ala/com/twitter/algebird/ApproximateProperty.scala
72% <0%> (-10%)
:arrow_down:

.../main/scala/com/twitter/algebird/BloomFilter.scala
93.8% <0%> (+0.88%)
:arrow_up:

.../main/scala/com/twitter/algebird/JavaMonoids.scala
64.51% <0%> (+1.61%)
:arrow_up:

...src/main/scala/com/twitter/algebird/Interval.scala
77.39% <0%> (+2.6%)
:arrow_up:

...main/scala/com/twitter/algebird/monad/Reader.scala
55.55% <0%> (+5.55%)
:arrow_up:

Continue to review full report at Codecov.

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

Thank you for fixing the build!


Add Deserializer::deserialize_identifier support for adjacently tagged enums

Adjancently tagged enum should behave like a struct with 2 elements, the tag and the content such as
struct Foo<'a, T> {
  tag: &'a str,
  content: T
}

This is the case for most format until you come across a format that serialize structs with fields identifier other than &str. for exemple auto derived struct handle the case where the field identifier is an unsigned number, or a &[u8], not just &str.
This is due to the fact that  TagOrContentFieldVisitor and TagContentOtherFieldVisitor directly calls Deserializer::deserialize_str and only handle cases for &str, any other format are rejected.
This PR enable TagOrContentFieldVisitor and TagContentOtherFieldVisitor to call Deserializer::visit_identifier and handle the case for &str, &[u8] and unsigned numbers.
This modifications should only allow more flexibility and should'nt conflict with flattened adjacently tagged enums, as those serialize as a map and not a struct.

I'm working on a compact binary format that is'nt meant to be publicly used (at least for now?), and it serialize struct as sequences.
My tests looks like this, some simple round trip checks:
#[derive(Debug, Serialize, Deserialize, PartialEq)]
#[serde(tag = "t", content = "c")]
enum AdjTaggedEnum {
    NewType(String),
    Struct { num: usize },
}

#[test]
fn test_serialize_deserialize_adj_tagged_enum_variant1() {
    let value = AdjTaggedEnum::NewType("john".into());

    let mut v: Vec<u8> = Vec::new();
    ser::to_writer(&value, &mut v).unwrap();

    let res: AdjTaggedEnum = de::from_bytes(&v).unwrap();

    assert_eq!(value, res);
}

#[test]
fn test_serialize_deserialize_adj_tagged_enum_variant2() {
    let value = AdjTaggedEnum::Struct { num: 12 };

    let mut v: Vec<u8> = Vec::new();
    ser::to_writer(&value, &mut v).unwrap();

    let res: AdjTaggedEnum = de::from_bytes(&v).unwrap();

    assert_eq!(value, res);
}

But I get this error:

tests::test_serialize_deserialize_adj_tagged_enum_variant1' panicked at 'called Result::unwrap() on an Err value: Message("invalid type: integer 0, expected "t", "c", or other ignored fields")

I use a work around for struct-like types that don't implement visit_seq where I give the field identfier as a u64 index, as auto derived field visitor implement visit_u64. This works great until adjacently tagged enums.
This PR is'nt to fix my own library, I probably can find works around or can settle to serialize the field name, this is just to have consistency, it's a niche case that makes you rework a big portion of the format for no apparent reason.
here is the repo, it's highly WIP and I put a very generic name that will be changed, if I publish it. You can find the tests in src/any/mod.rs


Unable to install supabase via pnpm

Describe the bug
$ pnpm add -g supabase
Packages: +26
++++++++++++++++++++++++++
Progress: resolved 43, reused 17, downloaded 26, added 26, done
 WARN  Failed to create bin at<EMAIL_ADDRESS>ENOENT: no such file or directory, open<EMAIL_ADDRESS><EMAIL_ADDRESS>Running postinstall script, failed in 201ms
.../node_modules/supabase postinstall$ node scripts/postinstall.js
│ node:internal/process/esm_loader:40
│       internalBinding('errors').triggerUncaughtException(
│                                 ^
│ Installing Supabase CLI as a global module is not supported.
│ Please use one of the supported package managers: https://github.com/supabase/cli#install-the-cli
│ (Use `node --trace-uncaught ...` to show where the exception was thrown)
│ Node.js v20.10.0
└─ Failed in 201ms at<EMAIL_ADDRESS> ELIFECYCLE  Command failed with exit code 1.

Expected behavior
package installed
Desktop (please complete the following information):

OS: Windows and Ubuntu
Version of Node.js v20.10.0

As explained in the error message, installing with -g flag is not supported. Please use one of the alternatives in readme.


R0.8

Can one of the admins verify this patch?

Can one of the admins verify this patch?

The important fixes were already cherry-picked into this branch, but thanks.


[DOCS] Added older release notice.

Explicitly set page_header.html for 6.x so that the default notice can be updated for OOM versions.
Prerequisite for: elastic/docs#1528

Thanks @debadair. Is there an asciidoc attribute we can use to include the admonition, instead of HTML, or is the HTML snippet the recommended approach?

@russcam The HTML snippet is currently the only way to inject the banner at the top of the page.


Enable new format for embedding component types by default

This commit enables the support for the new format of type information embedded in custom sections for wit-component first implemented in #1260. The new format minimizes type information to only that which was bound for the world selected as opposed to all packages and interfaces regardless of whether they're referenced or not.
A bug with this format was fixed with #1270 and shipped in Wasmtime 15 so there's at least one stable release that supports the old and the new without bugs. This commit turns on the new format by default while leaving in an environment variable to turn it off. This isn't expected to have any practical breakage at this time.

I believe that this is the final of the in-flight change to wasm-tools so some time in January of the new year I plan on deleting all the supporting code for the old now-phased-out pieces. (e.g. removing all the env-var-based knobs)


riak: adding Darwin support

Motivation for this change
Riak can currently support Darwin and Linux; however, we currently only support Linux. Let's support Darwin as well.
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
[ ] macOS
[ ] Linux

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

Yes, it needs a few more frameworks including one that we don't have yet.

This is because we don't include the -lSystem flag into the linker flags. Let me work on this, and I can squash the commit.

@mdaiter what is the status of this?

Not really ready, did not work on it. :(

@mdaiter I'm closing this one for now since there has been new releases upstream (Riak KV 2.2.3 as of now).
Feel free to come up with a new PR if you go back to updating this package and enabling Darwin support.


Use Spark with Kubenetes

I wonder is there a way to use Spark with Kubenetes?

I was wondering this as well, and I did not feel repelled by the "Local clusters, Mesos, and Kubernetes, aren't supported by ammonite-spark yet" tidbit at the bottom of this page.
So, I ended up giving it a go, and after traversing every other solvable error, this is the error I ended up with from the executor logs, before giving up and rolling back to the spylon-kernel:
ERROR ExecutorClassLoader: Failed to check existence of class ammonite.$sess.cmd9$Helper on REPL class server

Spark on K8s has been supported for few years now.
Quickest solution is to use the operator.


Error: Support for fully custom viewports not yet implemented

When I use Cornerstone3d in different browsers, Google Chrome can run normally, but in other browsers such as QQ Browser, this error occurs. May I ask why?

it is going through CPU rendering apparently, use chrome or edge or firefox


color name/value on swatch

Hi! congrats, darn useful plugin...
it would be very useful to have the color name and value on the swatch besides the HEX, to implement a design on material implementations that support the name-value scheme

@marco-piccolino
I don't want those label, because It's obvious.
However, if you really want it, please pull request.
I would merge it.

Ok, thanks. I'll try and get it in. I really do see a use case for that.


AngularJS-Atom conflicts with Autocomplete Css lead to css Fragment tips invalid

Tried many times to start the AngularJS-Atom css supplement fails

Could you explain more details?


[Port] Add openQueryDocument API (#16117)

Fixes #16108
(cherry picked from commit a0f46fec65665a106bc42fff05d7705bed7aa47c)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 42.759%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
26229

Relevant Lines:
55688

💛  - Coveralls

Need Ken's approval on this one before merging @Charles-Gagnon


fix: Fix async block type inference using containing function return type

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11804
Should fix https://github.com/rust-analyzer/rust-analyzer/issues/11798#issuecomment-1076880521

Let's squeeze this in before the next nightly kicks off
bors r+


Change the .svg of units with another .svg or a .png o .gif

Hello!
I tried to change the svg of the unit. I tried change just with rename it (for example I changed the svg of the archer with the svg of the Warrior) but nothing change. I also tried with a new .svg downloaded or a .gif but nothing.
Thanks for all the support!

gif or other images are not currently supported, so only svgs work. In order to add additional svg you have to:

add your svg file to src/ui/assets/icons
run node src/ui/assets/icons/extractPaths.js
change the name for a specific trait, action or unit in these files.

For example, say you have a svg called my-archer.svg, after executing step 1 and 2, you'll have to change archer: 'highShot' to archer: 'myArcher' in the unitGlyph file. keep in mind that the only svgs I used come from game-icons.net, so if you are using different svgs, you might have to change the extractPaths.js a little bit to accomodate the svgs


support unbind/bind SF through sysfs

Add GetSFAuxDev() function to get the auxiliary device name of a SF by 'sfnum'.
Add DeploySF() function to unbinds the SF from the default config driver and bind it to the actual SF driver.

when the trust function is called (the other PR), the SF should
not be attached, should we do that part of the trust call itself or expect the caller to make sure it is
detached before calling the trust?

when creating SF there is a certain flow one need to take.
at high level

create devlink port (sf flavour)
set port attributes and activate SF
configure SF (devlink) device parameters (e.g enable netdev, rdma etc...)
reload device

this lib does not aim to provide API for high-level sf creation/deletion

Admittedly, it is not via mlxdevm; so should we instead have his part in sriovnet lib?

sriovnet may be a good candidate given we can do everything with devlink i.e in a non vendor-specific manner. (i am not sure if currently there are gaps WRT upstream kernel)
as an example in upstream there is no use of sf_cfg driver (moreover it doesnt exist upstream). also there were different parameter names WRT enabling/disabling eth netdev for SF between devlink upstream and mlxdevm.
a different path is to either create a new lib with the knobs to manage (create/configure/delete) SF or extend this one to do so.
within NVIDIA we have implemented a module to take care of that within our SF network DRA (Dynamic resource allocation) driver for k8s, but thats internal for now. We decided to implement that within the project until we have a stable API and there are additional use-case for open sourcing / contributing it.

when the trust function is called (the other PR), the SF should
not be attached, should we do that part of the trust call itself or expect the caller to make sure it is
detached before calling the trust?

when creating SF there is a certain flow one need to take.
at high level

create devlink port (sf flavour)
set port attributes and activate SF
configure SF (devlink) device parameters (e.g enable netdev, rdma etc...)
reload device

this lib does not aim to provide API for high-level sf creation/deletion

Admittedly, it is not via mlxdevm; so should we instead have his part in sriovnet lib?

sriovnet may be a good candidate given we can do everything with devlink i.e in a non vendor-specific manner. (i am not sure if currently there are gaps WRT upstream kernel) as an example in upstream there is no use of sf_cfg driver (moreover it doesnt exist upstream). also there were different parameter names WRT enabling/disabling eth netdev for SF between devlink upstream and mlxdevm. a different path is to either create a new lib with the knobs to manage (create/configure/delete) SF or extend this one to do so.
within NVIDIA we have implemented a module to take care of that within our SF network DRA (Dynamic resource allocation) driver for k8s, but thats internal for now. We decided to implement that within the project until we have a stable API and there are additional use-case for open sourcing / contributing it.
for start, internally we can share it/ create a separate lib if it makes sense.

thanks @adrianchiris so if i understand we have internal lib to manage SF,  does that also include setting trust on the
SF? Could you please share it.. i suppose we would have to include the lib as part of ovn-k8s till you are able
to have a stable API.

thanks @adrianchiris so if i understand we have internal lib to manage SF, does that also include setting trust on the
SF? Could you please share it.. i suppose we would have to include the lib as part of ovn-k8s till you are able
to have a stable API.

it does not. trust SF still need to be added to mlxdevm-go then extend the module which handles SF creation.
ill send the info via email.

this change doesn't belong to this repo


Add e2e tests for collection deployment matching

Description
Adds Cypress e2e tests for deployment matching. Uses the core kube-system and stackrox namespace deployments that are present in all ACS installations to test rule application and embedded collection results.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed

Local Cypress run

Current dependencies on/for this PR:

master

PR #4251   👈

This comment was auto-generated by Graphite.

/retest-required

/retest-required

/retest

/retest-required


Fix ExMemoryUsage bug for bytestring

In commit https://github.com/input-output-hk/plutus/commit/9c75e5265ba346a7b389036ee9596a7c58d52ecc I tidied up the size function for the bytestring type but I introduced a bug because the memory usage of the empty bytestring increased from 0 to 1, causing some previously OK scripts to fail validation because the cost increased slightly (specifically, the cost of calling equalsByteString.  This should fix that.
Here's the change that caused the problem:

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Commit sequence broadly makes sense
[ ] Key commits have useful messages
[ ] Relevant tickets are mentioned in commit messages
[ ] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[ ] (For external contributions) Corresponding issue exists and is linked in the description
[ ] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

Darwin is clogged, linux jobs passed, so I'm going to force-merge this.


Question about benchmark result

I have used all-in-one benchmark to test on Intel Ultra 9 185H's NPU,  The model used is Owen/Qwen2-7B.
I'm confused about the result.  In this repo's image shows tokens/s for 32 tokens/input is 19.6 under Intel Ultra 7 165H.
My result in csv file is
1st token average latency(ms): 617.64
2+ avg latency(ms/token): 340.45
encoder time(ms): 0
input/ouput tokens: 32-32
batch_size: 1
actual input/output tokens: 32-32
num_beams: 1
low_bit: sym_int
cpu_embendding: False
model loading time(s): 88.19
peak mem(GB): N/A
streaming: False
use_fp16_torch_dtype: N/A

My questions are

Is "tokens/s" calculated from "2+ avg latency(ms/token)"? If so, that will be 1000 / 340.45 = 2.94
Is the benchmark result provided by this repo using cpu, igpu, or npu?  If npu is used during the benchmark, then my result is far from 19.6.

my config is:
repo_id:
  - 'Qwen/Qwen2-7B'
local_model_hub: 'path/to/local/model'
warm_up: 1
num_trials: 3
num_beams: 1
low_bit: 'sym_int4'
batch_size: 1
in_out_pairs:
  - '32-32'
  - '1024-128'
test_api:
  - "transformers_int4_npu_win"
cpu_embedding: False # whether put embedding to CPU
streaming: False
task: 'continuation'

When running the benchmark, I can see the NPU's resource is being used in task manager.

It uses iGPU; as mentioned in readme, please refer to [2][3][4] for more details.

have you solved this problem?
I also run the qwen2-7b(int4) example using NPU.  Inference speed is too slow, only 2-3 tokens/s.


[YUNIKORN-2543] Fix locking in RMProxy

What is this PR for?
Reduce the scopes of read locks in RMProxy to avoid potential deadlocks which can be caused by an interference with cache.Context.
Also simplify the event handler references, we only need schedulerEventHandler which is now set once during creation.
What type of PR is it?

[x] - Bug Fix
[x] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2543
How should this be tested?
Screenshots (if appropriate)
Questions:

[ ] - The licenses files need update.
[ ] - There is breaking changes for older versions.
[ ] - It needs documentation.

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

Project coverage is 77.02%. Comparing base (f0fe932) to head (b3a1b72).

Files
Patch %
Lines

pkg/rmproxy/rmproxy.go
92.85%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #837      +/-   ##
==========================================
+ Coverage   77.01%   77.02%   +0.01%
==========================================
  Files          97       97
  Lines       12043    12031      -12
==========================================
- Hits         9275     9267       -8
+ Misses       2432     2427       -5
- Partials      336      337       +1

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

Hi @pbacsko,
May I ask what test workload you're using to reproduce the lock detection warnings?
(I've followed Craig's guide to enable deadlock detection and can see below logs in scheduler pod:

"=== Deadlock detection enabled (timeout: 60 seconds) ==="

@chenyulin0719 yes, enable the deadlock detection and run a smoke test. If the tests in the core do not trigger these, run the smokes from the shim, that will definitely do the job.

@chenyulin0719 IMO there shouldn't be any RMProxy related potential deadlocks. Could you share your deadlock-log.txt with us to see what's going on?

Hi @pbacsko,
Just recheck the go-deadlock doc.
I think I mixup below log categories:

happened before
happened after
Other goroutines holding locks

After this PR, all the 'rmp.RLock' related logs are under "Other goroutines holding locks".
It's merely a information for touble shooting, and doesn't indicate that there have potential deadlock.
Attached the logs file: deadlock-log-after-YUNIKORN-2543.txt

@chenyulin0719 thanks, that's perfectly normal, so it's good news. It just shouldn't show up in the happened before/after call stack.


Hybrid CommandConfigureToAttributeRector

When you already have a AsCommand attribute, but still have things that are done in configure, move them over.

Looks good, thank you 👍


Only one Custom Property is found

Hi! I am trying to read the Custom Properties of my .dxf file. To read them I am going into  dxfDocument.DrawingVariables, more specifically I am using the customVariables collection. Point is that I can only find the last property defined in the .dxf, and it seems like all the other properties defined before are ignored. Is it a library problem or am I missing something?
Thanks for your help and for all your work!

I just noticed that all my custom properties are called $CUSTOMPROPERTY, so when calling DxfDocument.Load they overwrite each other, and of course the last being listed in the .dxf file is the only one saved in the DxfDocument instance.


added my info in contributors.js and contributors.md

Congrats @ritikgupta88  🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐

SignIn / SignUp in ClueLess Website .

Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.

why my pull request is showing excluded from hactoberfest.

We are extremely sorry to inform you that this repo is excluded from Hactoberfest 2022 😢
But the contribution you made will not go waste, it still counts in for swags by Clueless @ritikgupta88


streaming-<IP_ADDRESS> has no bracketStream

When upgrading to lts-10.3 for stack I noticed that this came with streaming-<IP_ADDRESS> and also that bracketStream was now eradicated from the library. I couldn't see this change in the changelog.md.
Is there a reason this was removed? Is there a different tactic for bracketing a stream?

Sorry, I'm late to this discussion. Was updating some old code of mine, and it no longer builds because of this.

I'd also like to point out that bracketStream was pretty unreliable. If you called bracketStream and then called Streaming.Prelude.take on the resulting stream, your finalizer wouldn't actually get called, which is pretty bad behavior.

Do you have a concrete example of the finalizer never being called?
It's true that it may not be called as early as you might hope, but it should be called when you run the ResourceT action at the latest (unless you're doing something sinister). Here it's being called despite the take 1:
import Streaming
import Streaming.Prelude as S
import Streaming.Internal
import Control.Monad.Trans.Resource

bracketStream :: (Functor f, MonadResource m) =>
       IO a -> (a -> IO ()) -> (a -> Stream f m b) -> Stream f m b
bracketStream alloc free inside = do
        (key, seed) <- lift (allocate alloc free)
        clean key (inside seed)
  where
    clean key = loop where
      loop str = case str of
        Return r -> Effect (release key >> return (Return r))
        Effect m -> Effect (liftM loop m)
        Step f   -> Step (fmap loop f)
{-#INLINABLE bracketStream #-}

my_stream :: Stream (Of Int) (ResourceT IO) ()
my_stream =
  bracketStream (putStrLn "allocated") (\_ -> putStrLn "deallocated")
    (\_ -> S.enumFrom 1)

main = runResourceT $
  S.print $ S.take 1 my_stream

I stepped down from maintaining this library a long time ago. Maybe the current maintainer would be interested in addition it back.


fix: import nuxt composables from #imports

📚 Description
This is a DX improvement when developing - we can avoid loading the entire barrel file at #app by using the new granular imports merged in https://github.com/nuxt/nuxt/pull/23951.
📝 Checklist

[ ] All commits follow the Conventional Commit format
[ ] The PR's title follows the Conventional Commit format

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unable to access the project list since the last updates

Hi Daniel,
I love Project Manager as I am working concurrently on several projects.
But since two or three updates I cannot have the project list displayed, whatever way I call it [key shortcut or command palette].
Please help because the module is pretty useless otherwise...
Best,
Stephen

What version of Atom are you using? Have you tried to uninstall and reinstall the package? Does any error turn up in the notifications or in the console(View->developer->toggle developer tools)?

Btw, have you done any manual editing to the projects.cson file? If it's not formatted correct, the list will not show

For the record, I had a similar problem, but no console errors, and reinstall fixed it. Thanks!

Hi Daniel,
Sorry not to have responded before.
I use the last version of Atom as I update it automatically. No errors in the console.
Yes I manually modified the cson, here it is:
VTR:
title: "VTR"
paths: [
"/home/stsinc/lampstack-5.4.22-0/apps/vtr/htdocs/wp-content/src/sass"
]
ROU:
title: "ROU"
paths: [
"/home/stsinc/lampstack-5.4.22-0/apps/rou/htdocs/wp-content/src/sass"
]
SHA:
title: "SHA"
paths: [
"/home/stsinc/lampstack-5.4.22-0/apps/sha/htdocs/wp-content/src/sass"
]
WB4:
title: "WB4"
paths: [
"/home/stsinc/lampstack-5.4.22-0/apps/s4u/htdocs/wp-content/src/sass"
"/home/stsinc/lampstack-5.4.22-0/apps/s4u/htdocs/wp-content/src/twig"
]
SEA:
title: "SEA"
paths: [
"/home/stsinc/lampstack-5.4.22-0/apps/sea/htdocs/wp-content/src/sass"
"/home/stsinc/lampstack-5.4.22-0/apps/sea/htdocs/wp-content/src/twig"
]
Do you see anything wrong?I will try the uninstall and will let you know.
Best,
Stephen

I reinstalled it > nothing changed.
I deleted the cson and redefined it > works.
Definitely something in my cson.
Best,
Stephen

I have added a notification now if projects.cson isn't correctly formatted, so should be easier to spot the error now :)


Added Split Button capabilities

I added a new type of button group that accepts a block and returns a split button where the first button in the block will act as the main action and the remaining buttons will be used as the drop down menu links.
I also added a 'dropdown' icon to the png file and added it to the list of available icons in the spec.

I finally fixed my SplitButtonHelper so all the content should now display as expected


Issue with SED installation on Maxwell via Conda approach

I installed SED on Maxwell to use the Tutorial notebook with test HEXTOF data using the 'Conda approach'. Simply following the installation doesn't lead to success. Here is a list of extra actions which were necessary for me:

To deal with virtual environments at the Maxwell cluster, I had to read this article ('conda activate' or 'conda init' doesn't work there):
https://rtd.xfel.eu/docs/data-analysis-user-documentation/en/latest/euxfel-software-environments/environments/
I could use env.yml once I removed 'locket==0.2.1' from the list of packages. Otherwise, it couldn't solve the environment.
List of packages which I had to install manually:
ipywidgets
fastdtw
lmfit
natsort
symmetrize
pynxtools
utils
To install a jupyter kernel ('python -m ipykernel install --user --name=sed_conda'), one also needs to install 'ipykernel'.
Eventually, I could load all modules with the required versions. However, there was an error: module 'pyarrow' has no attribute 'parquet'. I fixed it by using this hint:
https://github.com/modin-project/modin/issues/951

@steinnymir Why actually using conda for the non-poetry installation approach rather than pip? This is not so python standard.
In my view, a more consistent setup can be achieved with virtualenv, and pip install -e ., which actually does not require an additional file, but directly uses the pyproject.toml (we removed the requirements.txt at some point for this reason, and that's what the current workflows use). The ipykernel still needs to be installed, though, I think.

I totally agree. The conda approach is basically a residual from before poetry. pip install -e . would not have worked at the time, but should be the way to go now.
We should provide the commands to create an environment and then install with pip. Then we can still add ipykernel and the command to add the kernel to jupyter as an optional next step.
The conda approach, together with env.yml could be entirely removed.
We could also take the chance to move the setup instructions to the documentation page, where it should belong. We can make a link in the readme, and only leave a description of SED there.

We should definitely provide pip installation as an option. Pip also allows to install extras which exist as notebook extras in the toml file.
I think it's quite common practice to have the installation details in the README.md and also the documentation. So we could link the README in the docs.
By the way, I yesterday helped someone new to dima's group to install sed and she just followed the steps on the README for poetry and took a min to install, just copying and pasting commands.

This should now be obsolete, no?


revert - use released version

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
@aressem : where can I find the latest released vespa version?

https://search.maven.org/search?q=g:com.yahoo.vespa AND a:parent


automatic open file and bind file's content

I'm a swiftui beginner.I want to use fileselector to select a file to open,but how can i open the file and bind the content of file after select a file

Hey,
This small library only offers the UI part.
As shown in the Readme, it will bind the selected file to a @State variable. You can read the file content with something like  let text = try String(contentsOf: path), with path being the state variable. Trigger this reading either when the user presses a button or upon change of the selected file.


Query Builder: Left Join

Is anyone working on adding left join to query builder?  If not I would like to take a shot at it.

Not me too, I'm working on a lot of missing features in Model. Feel free to send me a PR! 😁

This feature is added in v0.5.1, checkout this commit.


crash

Description
crash after edit
dbeaver-diagnostic-info-1724930643355.zip
DBeaver Version
Community Editon 24.1.5
Operating System
Linux Mint 22 Wilma
Database and driver
Server: MariaDB 10.11.6-MariaDB-1:10.11.6+maria~ubu2204 from Docker image MariaDB Connector/J 2.7.1
Driver: MariaDB Connector/J 2.7.1
Steps to reproduce

Edit Cell Content
Leave Cell with TAB or ENTER

Additional context
No response

Hi, you have a lot of warnings about missing xdg-mime library, could you try installing it and see if it works.

I can see that there are already present on the system.
~$ which xdg-mime
/usr/bin/xdg-mime

~$ xdg-mime --version
xdg-mime 1.1.3

@anisch How DBeaver was installed? Is it as a part of snap/flatpak package, or by using deb installation?

Some time ago I switch from .deb to flatpack to get the automatic updates.

I tested the previous installation via .deb and ist works fine. I think there is something wrong with the flatpak installation.

@anisch, I cannot reproduce the issue in the latest flatpak release. What column type do you edit to cause a crash?

After updating to the latest flatpak release, the ENTER key is now working. But the TAB key is still broken. It can happen on every cell.
I go into some cell and press TAB, TAB ... and then it crashes.
dbeaver-diagnostic-info-1728382316153.zip

@anisch, Can you please make a screen recording of a crash?

dbeaver_1.webm
dbeaver_2.webm
dbeaver-diagnostic-info-1728393270243.zip

Thank you. I need a bit of time to figure out how to proceed. I'll keep you posted.

@anisch Thank you. The JVM process crashed while accessing native code on the platform. I believe this issue can be fixed by the team that packages flatpacks by providing the missing libraries.
By the way, does this workaround work for you? https://github.com/dbeaver/dbeaver/issues/35977#issuecomment-2429662054

Yes, there are no crashes with this workaround.

Thank you. I'm closing this issue as a duplicate of #19709


Fixed icon inconsistencies

I noticed that the icons didn't look quite right so I just wanted to fix them with the icons from the material icon pack, but that led to some other problems which in turn resulted in having to change the layout quite substantially. I want to add that I'm still very new to android development so any feedback here is welcome!

Hello @Memorion, thanks for the PR! Could you take a look at the comments? What is that you see inconsistent? A picture with the Before and After would be helpful to understand what are you trying to achieve.
You can use https://github.com/malmstein/yahnac/pull/16 as an example.

Yeah, sorry for the mess, what I mean by inconsistency is that the comment icon the the card footer is a slightly different shade of grey in comparison to the other icons, but I can't really figure out why now. My original plan was just to change "ic_comment_outline_grey" to "ic_comment" from the material design icons like this:

To do that I created the "ic_comment" icon with the material icon plugin and set it to grey600, but although it looks right on my phone like this the icon-file itself is darker than the other icons and I can't figure out why
I messed up the layout because I thought setting the comment icon to<EMAIL_ADDRESS>was a mistake and should be<EMAIL_ADDRESS>and changing that broke the layout and it went downhill from there.

Thanks for clarifying @Memorion! It looks like correcting the shade of grey in the icon would do the trick, wouldn't it? I can spend some time on it and make sure all icons have the same shade, as you mention the ones coming from the Material Design pack have different ones

Yeah that would work, thanks for looking into it. I hope I'm more help next time!


Move the task library docs page to a separate section

Home
Howtos
Tutorials
References
between Tutorials and Referecnes

Done in the 0.2.6 release


[Release-1.26] - Fix rootless node password location

Backport fix for Fix rootless node password location
Original Issue: https://github.com/k3s-io/k3s/issues/3636

#7887

Validated on Version:
-$ k3s version v1.26.6+k3s-6c6745b1 (6c6745b15e1e93fec257e75900b91d6e2de4d11c)

Environment Details
Infrastructure
Cloud EC2 instance
Node(s) CPU architecture, OS, and Version:
Ubuntu
Cluster Configuration:
1 node
Steps to validate the fix

Download and Install rootless k3s
Reload daemon
Apply net.ipv4.ip_forward and net.ipv6.conf.all.forwarding=1
Install uidmap and update-grub
Check for no errors related  here - journalctl --user -u k3s-rootless|grep "unable to read node password file"
And here systemd-run --user -p Delegate=yes --tty k3s server --rootless

Docs:
https://rootlesscontaine.rs/getting-started/common/cgroup2/#enabling-cpu-cpuset-and-io-delegation
https://docs.k3s.io/advanced#advanced-rootless-configuration
Validation Results:

    $ k3s -v
    k3s version v1.26.6+k3s-6c6745b1 (6c6745b1)
    go version go1.19.10

    ~$ cat /home/ubuntu/.config/systemd/user/k3s-rootless.service

    [Unit]
    Description=k3s (Rootless)

    ~$ grep cgroup /proc/mounts
    cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0

~$ stat -c %T -f /sys/fs/cgroup
    cgroup2fs

 ~$ cat /sys/fs/cgroup/cgroup.controllers
    cpuset cpu io memory hugetlb pids rdma misc

~$ sudo cat /etc/sysctl.conf

    # Uncomment the next line to enable packet forwarding for IPv4
    net.ipv4.ip_forward=1

    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    net.ipv6.conf.all.forwarding=1

~$ sudo cat /etc/default/grub
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.

    INFO[0000] Starting k3s v1.26.6+k3s-6c6745b1 (6c6745b1)
    INFO[0000] Configuring sqlite3 database connection pooling: maxIdleConns=2, maxOpenConns=0, connMaxLifetime=0s
    INFO[0000] Configuring database table schema and indexes, this may take a moment...
    INFO[0000] Database tables and indexes are up to date
    INFO[0000] Kine available at unix://kine.sock
    INFO[0000] Reconciling bootstrap data between datastore and disk
    INFO[0000] Running kube-apiserver --advertise-port=6443 --allow-privileged=true --anon

    e-status-update-frequency=1m0s --profiling=false
    I0712 15:18:18.176858      28 server.go:172] Version: v1.26.6+k3s-6c6745b1
    I0712 15:18:18.176896      28 server.go:174] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
    INFO[0000] Server node token is available at /home/ubuntu/.rancher/k3s/server/token
    INFO[0000] To join server node to cluster: k3s server -s https://<IP_ADDRESS>:6443 -t ${SERVER_NODE_TOKEN}
    INFO[0000] Agent node token is available at /home/ubuntu/.rancher/k3s/server/agent-token
    INFO[0000] To join agent node to cluster: k3s agent -s https://<IP_ADDRESS>:6443 -t ${AGENT_NODE_TOKEN}
    INFO[0000] Wrote kubeconfig /home/ubuntu/.kube/k3s.yaml
    INFO[0000] Run: k3s kubectl
    INFO[0000] Waiting for API server to become available
    I0712 15:18:18.245033      28 plugins.go:158] Loaded 12 mutating admission controller(s) successfully in the following order: NamespaceLifecycle,LimitRanger,ServiceAccount,NodeRestriction,TaintNodesByCondition,Priority,DefaultTolerationSeconds,DefaultStorageClass,StorageObjectInUseProtection,RuntimeClass,DefaultIngressClass,MutatingAdmissionWebhook.
    I0712 15:18:18.245067      28 plugins.go:161] Loaded 12 validating admission controller(s) successfully in the following order: LimitRanger,ServiceAccount,PodSecurity,Priority,PersistentVolumeClaimResize,RuntimeClass,CertificateApproval,CertificateSigning,CertificateSubjectRestriction,ValidatingAdmissionPolicy,ValidatingAdmissionWebhook,ResourceQuota.
    I0712 15:18:18.252303      28 shared_informer.go:270] Waiting for caches to sync for node_authorizer
    W0712 15:18:18.300136      28 genericapiserver.go:660] Skipping API apiextensions.k8s.io/v1beta1 because it has no resources.
    I0712 15:18:18.301681      28 instance.go:277] Using reconciler: lease
    I0712 15:18:18.554954      28 instance.go:621] API group "internal.apiserver.k8s.io" is not enabled, skipping.
    I0712 15:18:18.781255      28 instance.go:621] API group "resource.k8s.io" is not enabled, skipping.
    W0712 15:18:18.944194      28 genericapiserver.go:660] Skipping API authentication.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.944227      28 genericapiserver.go:660] Skipping API authentication.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.947081      28 genericapiserver.go:660] Skipping API authorization.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.954020      28 genericapiserver.go:660] Skipping API autoscaling/v2beta1 because it has no resources.
    W0712 15:18:18.954048      28 genericapiserver.go:660] Skipping API autoscaling/v2beta2 because it has no resources.
    W0712 15:18:18.957821      28 genericapiserver.go:660] Skipping API batch/v1beta1 because it has no resources.
    W0712 15:18:18.960969      28 genericapiserver.go:660] Skipping API certificates.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.963785      28 genericapiserver.go:660] Skipping API coordination.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.963856      28 genericapiserver.go:660] Skipping API discovery.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.970698      28 genericapiserver.go:660] Skipping API networking.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.970736      28 genericapiserver.go:660] Skipping API networking.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.973435      28 genericapiserver.go:660] Skipping API node.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.973463      28 genericapiserver.go:660] Skipping API node.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.973516      28 genericapiserver.go:660] Skipping API policy/v1beta1 because it has no resources.
    W0712 15:18:18.980554      28 genericapiserver.go:660] Skipping API rbac.authorization.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.980586      28 genericapiserver.go:660] Skipping API rbac.authorization.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.983281      28 genericapiserver.go:660] Skipping API scheduling.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.983309      28 genericapiserver.go:660] Skipping API scheduling.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.990790      28 genericapiserver.go:660] Skipping API storage.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:18.997901      28 genericapiserver.go:660] Skipping API flowcontrol.apiserver.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:18.997933      28 genericapiserver.go:660] Skipping API flowcontrol.apiserver.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:19.004566      28 genericapiserver.go:660] Skipping API apps/v1beta2 because it has no resources.
    W0712 15:18:19.004596      28 genericapiserver.go:660] Skipping API apps/v1beta1 because it has no resources.
    W0712 15:18:19.007933      28 genericapiserver.go:660] Skipping API admissionregistration.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:19.007962      28 genericapiserver.go:660] Skipping API admissionregistration.k8s.io/v1alpha1 because it has no resources.
    W0712 15:18:19.010813      28 genericapiserver.go:660] Skipping API events.k8s.io/v1beta1 because it has no resources.
    W0712 15:18:19.046600      28 genericapiserver.go:660] Skipping API apiregistration.k8s.io/v1beta1 because it has no resources.
    INFO[0002] Password verified locally for node ip-172-31-21-12

    ```


[Broker Cache] FoCI Cache Interrogation API

Broker needs some mechanism to interrogate the cache to determine:

"Is this client_id known to the cache?"

And some way to privately query for a List of FoCI ICacheRecords / AccountRecords (TBD)

/**
 * Returns true if this clientId is known. False otherwise.
 */
public boolean isClientIdKnownToCache(@NonNull final String clientId);


Write make task to publish hopper-cli

Ideally make publish will shovel up the current branch with the current version to npm.`

Fixed by #6


os/user: Lookup not returning UnknownUserError for unknown user when CGO_ENABLED=1

Go version
go version go1.22.4 linux/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/ben/.cache/go-build'
GOENV='/home/ben/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/ben/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/ben/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/ben/sdk/go1.22.4'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/ben/sdk/go1.22.4/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/ben/w/pebble/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2146132670=/tmp/go-build -gno-record-gcc-switches'

What did you do?
When I call user.Lookup on a non-existent user (eg: "baduser"), I expect it to return user.UnknownUserError, but it instead returns a generic non-nil error. I can use the  following test program (Go playground link) to easily reproduce this on my system:
package main

import (
	"fmt"
	"os"
	"os/user"
)

func main() {
	usr, err := user.Lookup(os.Args[1])
	if _, ok := err.(user.UnknownUserError); ok {
		fmt.Println("unknown user")
		return
	}
	if err != nil {
		fmt.Println("error:", err)
		return
	}
	fmt.Printf("user: %#v\n", usr)
}

What did you see happen?
When I run the test script with  CGO_ENABLED=1 (the default on my system) it's instead returning a generic errors.errorString (with the message "user: lookup username guy: no such file or directory"):
# Default behaviour (not expected)
$ CGO_ENABLED=1 go run t.go baduser
error: user: lookup username baduser: no such file or directory

# With cgo disabled I get the expected behaviour
$ CGO_ENABLED=0 go run t.go baduser
unknown user

What did you expect to see?
The user.Lookup call should return an UnknownUserError error value, whether or not CGO_ENABLED is set.
When I follow it through in my debugger, it's using the lookupUser from cgo_lookup_unix.go, which is calling _C_getpwnam_r, and that's returning a syscall.Errno error with ENOENT. The getpwnam_r docs seem to indicate this function can return ENOENT under such circumstances, so maybe the code should check for that, rather than just the f != 0 test?
Why it's changed now on my system, but was working before, I'm not sure -- my colleague, also on Ubuntu 24.04 with the same kernel (Linux 6.8.0-35-generic x86_64) doesn't seem to have this problem. My first thought was a different libc version, but my colleague (who doesn't have this issue) and I both are running the same version -- this one:
$ dpkg -s libc6 | grep Version
Version: 2.39-0ubuntu8.2

Note that I recently upgraded my OS by doing a fresh install of Ubuntu 24.04. When I was on 22.04 I didn't have this problem (though as I noted, my colleague is also on 24.04 and he doesn't have this issue -- it works both with cgo enabled and disabled).
For reference, with an existing user both cgo and non-cgo work fine:
$ CGO_ENABLED=1 go run t.go ben
user: &user.User{Uid:"1000", Gid:"1000", Username:"ben", Name:"Ben", HomeDir:"/home/ben"}
$ CGO_ENABLED=0 go run t.go ben
user: &user.User{Uid:"1000", Gid:"1000", Username:"ben", Name:"Ben", HomeDir:"/home/ben"}

Similar Issues

https://github.com/golang/go/issues/24383
https://github.com/golang/go/issues/40334
https://github.com/golang/go/issues/25973
https://github.com/golang/go/issues/24083
https://github.com/golang/go/issues/43543

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Note that I looked at all of those "similar issues", but I think this is different from all of them. The closest is https://github.com/golang/go/issues/25973, but it's a bit hard to tell, and that was closed quickly by the creator with "I was doing something wrong" and no further info.

Prior art outside golang:
https://github.com/crystal-lang/crystal/issues/8069
The link to Ruby implementation from the above:
https://github.com/ruby/ruby/blob/81562f943e4f33fbfd00fdfd115890ba0b76916c/process.c#L5934-L5950

Thanks @dimaqq, that Crystal issue looks like exactly the same problem.

A colleague and I got to the bottom of why/when this is happening. On my machine, for whatever reason (on a relatively fresh Ubuntu 24.04 install), I have the following line in my nsswitch.conf:
$ grep passwd /etc/nsswitch.conf
passwd:         files systemd sss

It's the sss that's doing it. I have libsss installed, though sssd is not running. To reproduce this, 1) add sss to the passwd: line as per above, and 2) install libnss-sss with sudo apt install libnss-sss if it's missing. My colleague did that that and could repro the issue of ENOENT being returned, and similarly my system no longer returns ENOENT if I remove the sss (it then returns no error and not-found).