How does ManyToManyRelation work with insert/update in 0.5 ?

I can't figure how to insert/update my record having the ids of the ManyToMany relation.

@purepear Could you describe your use case a bit more?
There are many ways to handle that stuff. Are you talking about .insertWithRelated or just .insert / .update? For insert / update you might want to use http://vincit.github.io/objection.js/#relate

Hi, @elhigu
Let's take the 'Preson and Movies' many to many relationship in the docs example http://vincit.github.io/objection.js/#models
I have a html form for the Person model that have multiple select with movies (id => name). So when i submit the form i get the updated Person fields as well as the movies ids. JSON looks like this:
{
  id: 1,
  name: "John",
  movies: [1,5,8]
}

So.. what i want is when i .update({...})  it should delete all records in PersonMovie that have personId=1... and then insert the new records [{personId:1, movieId:1}, {personId:1, movieId:5}, {personId:1, movieId:8}] ... (or make diff and delete/insert only the necessary relations in PersonMovie)
Does Objection support this? Cause i didn't find how to do it.
Thanks

There is no single method that can achieve this. Have you tried something like this:
let john = Person.fromJson({id: 1});
await john.$relatedQuery('movies').unrelate();
await john.$relatedQuery('movies').relate([1,5,8]);

This only works if Person doesn't have required properties in jsonSchema since fromJson validates the object. Also relate with multiple values only works with postgres.
Another way is to use knex and modify the pivot table directly (this is what I would probably do):
knex('Person_Movie').delete().where('personId', 1);
knex('Person_Movie').insert(_.map([1,5,8], id => ({personId: 1, movieId: id}));

I did the second one a week ago. But i was curious if there's a better way
Thanks @koskimas

It would be really awesome if it was possible to use .relate() the same way as .unrelate(), by using a where clause. It would make it possible to do something like this and still be supported across different databases
let john = Person.fromJson({id: 1});
await john.$relatedQuery('movies').relate().whereIn('id', [1,5,8]);

whereIn would be confusing here since it would't get compiled in to a WHERE clause.
There is a cross-db way to insert multiple rows at once, but the problem is that postgres is the only database that returns the identifiers of all created rows. Other databases just return one id. Now that I think about it, I don't think that is an issue with relate since it doesn't return anything. Maybe I could just remove the isPostgres check.

I guess I am trying to say that maybe it should compile into a WHERE clause like it does for unrelate(). I believe it would feel more consistent. Maybe I am misunderstanding something, but it would be nice to be able to do this when using a non-id column as criteria;
transaction(Account, (Account) => {
    return Account.query()
        .column('id')
        .findById(id)
        .then((account) => {
            return Promise.all([
                account
                    .$relatedQuery('contacts')
                    .unrelate()
                    .whereNotIn('email', listOfEmailAddresses),
                account
                    .$relatedQuery('contacts')
                    .relate()
                    .whereIn('email', listOfEmailAddresses)
            ]);
    });
});

instead of
transaction(Account, Contact, (Account, Contact) => {
    return Account.query()
        .column('id')
        .findById(id)
        .then((account) => {
            return Promise.all([
                account
                    .$relatedQuery('contacts')
                    .unrelate()
                    .whereNotIn('email', listOfEmailAddresses),
                Contact.query().column('id').whereIn('email', listOfEmailAddresses)
                    .map((contact) => account.$relatedQuery('contacts').relate(contact.id))
            ]);
    });
});

Closing this as the original issue was resolved. @ersims feel free to open a new issue for your request.


Cyrillic fonts

http://ctan.forsale.plus/fonts/amsfonts/doc/amsfndoc.pdf contains font tables for wncyr10 and wncyi10.  http://muug.ca/mirror/ctan/fonts/amsfonts/source/ also lists wncyss10 and wnycb10 which probably also use the same layout.

@ylemkimon why was this closed?

@kevinbarabash Sorry, wrong issue number was referenced in #34.


Redo naming in Service concept

Split out from https://github.com/kubernetes/website/pull/30817
Within the Service concept, avoid writing “master”. Use “primary” instead.

Helps with https://github.com/kubernetes/website/issues/14770

/approve


Airlock - cancel api endpoint

Fixes #1967
What is being addressed
Added 'Cancel' endpoint to the Airlock API
How is this addressed

Added the 'cancel' endpoint
Added tests for the endpoint
Replaced existing tests that covered the validation of status changes in the 'airlock_requests' repository with tests that cover all possible cases of status changes

/test


linux-common: Add CFS_BANDWIDTH

The option is needed to limit CPU usage of processes.
It seems to have no negative impact if left unused.
See https://lwn.net/Articles/428230/
Motivation for this change
I need this to limit Docker container resources:
https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler
Since there seems to be no negative impact to people not using the functionality, I propose this be added to the common configuration.
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
[ ] other Linux distributions

[X] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

@GrahamcOfBorg test kernel-lts kernel-latest

I may also need to undo #19251, so there may be more to it. I am currently testing this.

Success on aarch64-linux (full log)
Partial log (click to expand)
syncing
machine: running command: sync
machine: exit status 0
test script finished in 15.64s
cleaning up
killing machine (pid 627)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/l4ag3m8v593m16my3xfr1mdm02qbyg18-vm-test-run-kernel-lts
/nix/store/wlmqwgns85ypazds60ywi3vpq21571la-vm-test-run-kernel-latest

Failure on x86_64-linux (full log)
Partial log (click to expand)
cannot build derivation ‘/nix/store/lrl4fmdrcjjfr1azywx10vy5hnbm4j6w-etc.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/0w17n7m8caycxrgcajdcaryyfxnjxrs9-stage-1-init.sh.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/zii7cfim5zqz6004i0v0ns27xjw2ca9m-initrd.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/c6q4i6d2yii2cgn0c7ab6q64pvw80bs6-nixos-system-machine-18.03.git.6c424b5.drv’: 5 dependencies couldn't be built
cannot build derivation ‘/nix/store/hrspwxjp0p576pgpnggwa1zfazg4vj61-closure-info.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/lhrg59yzgxxrcmrla0cjsvb25lz520pf-run-nixos-vm.drv’: 2 dependencies couldn't be built
cannot build derivation ‘/nix/store/cdh3lc6xybpi02p6ilhk5qgw6va4ak4j-nixos-vm.drv’: 2 dependencies couldn't be built
cannot build derivation ‘/nix/store/amfnwfd949c03fqas9cxfa0rm4l69q9a-nixos-test-driver-kernel-latest.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/19ckckq22dk06s67bri0zag1c99vw0w4-vm-test-run-kernel-latest.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/19ckckq22dk06s67bri0zag1c99vw0w4-vm-test-run-kernel-latest.drv’, ‘/nix/store/qsd3j48imrxcfv2dkzf0gm6iydknzacv-vm-test-run-kernel-lts.drv’ failed

Does RT_GROUP_SCHED conflict with rtkit -> pulseaudio?

@Mic92 Both pulseaudio and rtkit work just fine after applying the kernel change.

@NeQuissimus they probably still function, but does it impact userland realtime scheduling?

Not sure how to make sure of that.

@NeQuissimus the option should be fine. Overhead is nearly unmeasurable even in synthetic benchmarks.
I also checked  that both Ubuntu and Archlinux have that flag enabled.


Add the commit/build to the footer

I think theres a commit hash in the vercel env variables we can put in the footer

https://vercel.com/docs/projects/environment-variables/system-environment-variables

I tried VITE_VERCEL_GIT_COMMIT_SHA but it doesnt do anything

scrapping this. not worth our time


[Feature Request] Let reduce_tile, add_tiles. matmul_tiles and mul_tiles take registers as input.

Is your feature request related to a problem? Please describe.
I'm working on a GEMV implementation for LLM inference. Since the SFPU does not support GEMV natively. I had to make my own from tile multiplication and reduction. Currently it looks like this.
#define REDUCE_OP PoolType::SUM
#define REDUCE_DIM ReduceDim::REDUCE_SCALAR

// setup code.....
// cb_ones is a tile that is full of 1s

constexpr uint32_t dst_reg = 0;
acquire_dst(tt::DstMode::Full);
cb_wait_front(cb_in0, 1);
cb_wait_front(cb_in1, 1);
mul_tiles_init();
mul_tiles(cb_in0, cb_in1, 0, 0, dst_reg);
cb_reserve_back(cb_intermid0, 1);
pack_tile(dst_reg, cb_intermid0); // Packs tile to cb_intermid0 ---+
cb_push_back(cb_intermid, 1);                                   // |
release_dst(tt::DstMode::Full);                                 // |
cb_pop_front(cb_in0, 1);                                        // |
cb_pop_front(cb_in1, 1);                                        // |
                                                                // |
acquire_dst(tt::DstMode::Full);                                 // |
// Then we immidatelly consumers cb_intermid0 vvvvvvv--------------+
reduce_init<true>(REDUCE_OP, REDUCE_DIM, cb_intermid0, cb_ones);
reduce_tile(REDUCE_OP, REDUCE_DIM, cb_intermid0, cb_ones, 0, 0, cb_out0);
pack_tile(0, cb_out0);
release_dst(tt::DstMode::Full);
cb_push_back(cb_out0, 1);
cb_pop_front(cb_intermid0, 1);

I suppose this is not efficient as data has to travel between the SFPU and the L1 memory. Likewise for adding tiles. This would be helpful in chaining adding bias after matrix multiplications.
Describe the solution you'd like
I'd like API that allows me to directly reduce from the output of mul_tiles. Something like the following
#define REDUCE_OP PoolType::SUM
#define REDUCE_DIM ReduceDim::REDUCE_SCALAR

// setup code.....
// cb_ones is a tile that is full of 1s

constexpr uint32_t intermid_reg = 0;
constexpr uint32_t dst_reg = 1;
tile_regs_acquire()
cb_wait_front(cb_in0, 1);
cb_wait_front(cb_in1, 1);
mul_tiles_init();
mul_tiles(cb_in0, cb_in1, 0, 0, intermid_reg);// +
cb_pop_front(cb_in0, 1);                      // |
cb_pop_front(cb_in1, 1);                      // |
// Directly chain the output from multiplcation into reduce
//                                         vvvvvv+
reduce_init<true>(REDUCE_OP, REDUCE_DIM, intermid_reg, cb_ones);
reduce_tile(REDUCE_OP, REDUCE_DIM, cb_intermid0, cb_ones, 0, 0, cb_out0);
tile_regs_commit();
tile_regs_wait();
tile_regs_release();
pack_tile(0, cb_out0);
cb_push_back(cb_out0, 1);

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@davorchap, @jvasilje. This user came from the commumity. This seems architectural in nature, any feedback?

assigning to myself while triaging.

matmul in GS can efficiently handle b=4 (4 rows in a tile)

Is there an API to get GS to do batch=4? It feels like much better then what I can get from the matmul API (1/32 utilization) or multiply then reduce (also very low  utilization).

this request is related to an existing case: [Feature Request] mul_tiles between a CB and a DST #6916 , for eltwise mult to work on an operand from DST

Support to load from DST into SRC registers could be added which saves time in spilling and loading into intermediate buffer. However, move from DST to SRC registers could be done on a tile or, in case of Grayskull, sub-tile level as SRC registers are not as big as DST.
This API doesn't exist yet in tt-metal and it's not at the priority to add it.

GEMV: using a native matmul in the FPU may likely be faster (even at lower utilization) than doing mul -> reduce chain.
matmul in GS can efficiently handle b=4 (4 rows in a tile)
matmul in WH ca efficiently handle b=8 (8 rows in a tile)
Milos can provide more insight.

Using SFPU to do any type of matrix operation is slow and for GEMV, it would be more efficient to just pad the vector to 32x32 tile and use matmul_tiles API. GS / WH can handle less than 32x32, GS in a cycle does 4x16 multiplied by 16x16 while WH does 8x16 multiplied by 16x16, but the bottleneck will be in that case on moving data to FPU since there's no data reuse so in the end efficiency will be low. However, it would still be better than any other matrix-vector multiplication we could build.
There's currently no support or plan to have operands at less than 32x32.

based on the current comment, will assign it as P3 and can bump if the discussion progresses.


Mac Client Download Corrupt

I raised this issue the other day and it was closed pointing me to a duplicate, the duplicate is not the same issue at all, and installing Homebrew etc does not solve my issue.
My issue is in that I can download the Mac Client .dmg file but when I try to open it I get an error window open that says this..........
The following disk image could'nt be opened
Image - Runelite.dmg
Reason - Corrupt image
Only other information I can give is that I run Mavericks OS X 10.9.5

I think deathbeam mentioned the wrong issue
Duplicate of runelite/launcher#16

Try downloading version for all platforms.

Hi ya
Yea that works but is version 1.0 and Runelite according to the website is now unto
version 1.3.9
Regards
On 19 May 2018, at 12:31, Tomas Slusny<EMAIL_ADDRESS>wrote:

Try downloading version for all platforms.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


AI Opponent for playing TICTACTOE , using pygame and minmax Algorithm

#AI Opponent for playing TICTACTOE , using pygame and minmax Algorithm
Please add this to the repo

#9
##AI Opponent for playing TICTACTOE , using pygame and minmax Algorithm
Wonderful addition


Svg display to small

Hi, I have an ImageView with fixed size, but when the SVG is loaded to small. How can I make the SVG take the image view with and height?

The issue is happen only with ImageView, use AppCompatImageView fix the problem.


provide a way to specify a blocklist of protocols

following use case:
I want to restrict the protocol in href of . allow everything with the exception of javascript (and all its encoded variants etc.)
currently, one can only either allow all or safelist.

What protocols do you want to support additionally than HTTP and HTTPS? Gopher?
My fundamental concern with blocklists is that it is very easy to forget something -- or the world changes and introduces something -- that will then cause unexpected results. That's why IMO the Cleaner Safelist implementation has proven largely resilient to XSS over time. Only allowing known safe content.
What is the motivating use case here? Are there that many protocols that people are actually using that it is a real chore to add them explicitly, if you know they're safe? Are you confident that in a few years somebody won't add gpt:// as a protocol? Etc.

I actually totally see your point and usually whitelist is what I use. this time I wasn't able to convince the client otherwise. the client want to be able to use all kind of protocols such as tel, callto, mailto, all kind of ftp etc. the client basically doesn't want to restrict itself to use new protocols in the future -- without the need to adjust the software. So it is rather the opposite, the client would want to use gpt: in the future. The only thing I was able to convince is that javascript needs to be forbidden.
Anyway, I see your concerns and IMO it's OK to keep it that way. Maybe another feature could be helpful which might exist already within jsoup and I did just not find it yet. A way to get the protocol from an href normalized in the sense of all kind of variants of href="javascript:", href="  javascript:", href="java\tscript:" etc. boil down to "javascript"

A way to get the protocol from an href normalized in the sense of all kind of variants of href="javascript:", href="  javascript:", href="java\tscript:" etc. boil down to "javascript"

Yes, node.absUrl(attribute) returns the normalized and absolute URL form, if it can be coerced into one. Some of those forms will not get parsed as a full URL and will return blank, so you could have code that tests for .startswith("javascript") or is .equals(""), and handles the link appropriately.
String html = """
  1
  2
  3
  """;
Document doc = Jsoup.parse(html, "https://example.com/");
Elements links = doc.select("a");
links.forEach(el -> print(el.text() + ": " + el.absUrl("href")));

Gives:
1:
2: javascript:alert(1)
3: javascript:alert(1)

Note that I'm showing this as an example of using absUrl. I 100% don't recommend trying to defang HTML input by using a blocklist approach. The only sane approach is to use a positive known-good assertion test (as the Cleaner / Safelist does).
The Safelist isSafeTag and isSafeAttribute methods are overridable, so you could extend it to allow any protocol if you want, or perform other extended assertions.

the client basically doesn't want to restrict itself to use new protocols in the future -- without the need to adjust the software

My suggestion would be to make it admin configurable - just pipe in a list of accepted, known safe protocols.

if I use addProtocols(..."https") is then something like "//google.com" allowed?

The Safelist.basic already includes https protocols et al. And yes, links that are protocol relative are supported as long as you pass in the baseUri when parsing (either into the clean method or the parse method).
String html = "Link";
String clean = Jsoup.clean(html, "https://example.com/", Safelist.basic());
System.out.println(clean);

Produces:
Link

My suggestion would be to make it admin configurable - just pipe in a list of accepted, known safe protocols.

was my suggestion as well.
thanks for the suggestions


Force Update

Hi ! This is one of the best Library in this category. I really impressed and want implement in my some applications. I want know some information before go ahead.
1. How can we force user to update application ?
2. if URL that have XML uploaded is down, Application will work normal or will crashed /
3. Can we debug application and check library function if Application is not published yet ?
Thanks

How can we force user to update application?

It's not supported by the library. You should use AppUpdaterUtils and implement your own non-cancelable dialog: https://github.com/javiersantos/AppUpdater/blob/master/README.md#appupdaterutils

If URL that have XML uploaded is down, Application will work normal or will crashed

The app won't crash and you will see a log message.

Can we debug application and check library function if Application is not published yet?

It depends on the source you are using for the updates. I recommend you to use UpdateFrom.JSON in order to debug your app and the library.


Audit every module we load in brackets.js to see if we can remove any

I did this once before, but I notice some stuff being loaded that we probably don't need (e.g., node connection stuff), and would save us some download size.


chore: upgrade dependencies

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


export of "contains" conflicts with Base

WARNING: both GeometryOps and Base export "contains"; uses of it in module Main must be qualified

Ah, I usually use it as import GeometryOps as GO for exactly this reason. I guess we could stop exporting contains though.

bumping this again as I continually run into this error:
Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
Hint: a global variable of this name also exists in Base.

Yeah we should stop exporting it, PR accepted ;)

All GeometryOps methods are exported so I'm not sure how we want to deal with this. So we just not export contains or does GO stop exporting all methods?

Just contains for now I think?

#233

The export loop was only in the Core PR and I think we dropped that anyway.. but thanks for the pr!  Merging core will be a breaking release so we can do it with that


Fix relative imports so can run as main entry point when debugging

From python docs:
modules intended for use as the main module of a Python application
must always use absolute imports.
In order to use a debugger with this agent we want to invoke it as a
main entry point but the relative import of .support then breaks.
A fix is to add  the path to the runners directory to the python path
so that we may use it with an absolute import instead.
e.g. from runners.support.
I cleaned up my branch to get rid of spurious commits that were reversed.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   73.24%   73.24%
=======================================
  Files         184      184
  Lines        7940     7940
=======================================
  Hits         5816     5816
  Misses       2124     2124

Resolved via PR #129


Agent loadbalancer may deadlock when servers are removed

K3s tracking issue for:

https://github.com/rancher/rke2/issues/6208

Verified the backport versions. Closing the issue on master based on the same.
Refer: https://github.com/rancher/rke2/issues/6321


Rebuild without the need for setuptools to be installed and limit python to 3.12

Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #1.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

@conda-forge-admin please rerender


Census: Navigation from Question '28 Last week were you:' was incorrect when more than 2 options out of the top 6 options are selected

Expected behaviour
Must skip the next 5 questions
Actual behaviour
No Questions are skipped and application simply navigates to next question which is inccorect.
Note: Next five questions are skipped when only one option from the top 6 option(s) are selected
Steps to reproduce the behaviour
Launch Census_household survey
Navigate to Question 26. Last week were you:
And select any two or more options from the top 6 options and click save and continue
Technical information
Browser
All
Operating System
Screenshot

@jonnyshaw89 Re-tested the issue #684 one scenarios seems to be not working. Lets discuss on Monday

One scenario is failing. When respondent selects any of the first 6 checkboxes along with the 7 the checkbox it should still skip the next 5 questions which it is not doing.
demonstrated the scenario to @jonnyshaw89
I am reopening the issue and also moved the relevant card on Trello to development

Defect passed retest from release on 15th Dec 2016


Why is batch norm switched off?

Can you please explain why batch-norm is turned off? does it have adverse effect when switched on?
Thanks.

Hey,
It is true that the batch-norm layer is frozen during training on these datasets. In fact, in Deep Metric Learning we are fine-tuning models that are pre-trained on ImageNet, and so it is fairly standard to then freeze the batch norm layers during the fine-tuning stage.
We did not experiment with training the batch-norm layers, so I do not know if it would have an adverse effect


MKOB: Implement 'Profiles' (configurations)

There is a request to have multiple configurations of the MKOB app that can be run. Each 'environment' would pick up a different configuration.
The goal is to avoid having multiple copies of the code installed (an update headache) unless you actually want to run a different copy of the code.
The proposal is to implement the concept of a 'profile' that could be loaded/selected.

'Profiles' has the fewest syllables. :-) Probably a friendlier term to a lot of users who aren't computer buffs.

'Profiles' has the fewest syllables. :-) Probably a friendlier term to a lot of users who aren't computer buffs.

FWIW I like ‘profiles’.  It’s a good, generic term for a number of descriptive attributes.
I don’t know how you plan to implement them but it might be simplest to have multiple stand-alone config files.  In that case you could also just call them “Configs”?
73, -Patrick.

On Jan 15, 2021, at 2:36 PM, Les Kerr<EMAIL_ADDRESS>wrote:
'Profiles' has the fewest syllables. :-) Probably a friendlier term to a lot of users who aren't computer buffs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/MorseKOB/PyKOB/issues/231#issuecomment-761233310, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAYK2XIIDWXWNFCI2J2GLS2C7OHANCNFSM4WEVIJ2A.

FWIW I like ‘profiles’.  It’s a good, generic term for a number of descriptive attributes.
I don’t know how you plan to implement them but it might be simplest to have multiple stand-alone config files.  In that case you could also just call them “Configs”?
73, -Patrick.

On Jan 15, 2021, at 2:36 PM, Les Kerr<EMAIL_ADDRESS>wrote:
'Profiles' has the fewest syllables. :-) Probably a friendlier term to a lot of users who aren't computer buffs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/MorseKOB/PyKOB/issues/231#issuecomment-761233310, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAYK2XIIDWXWNFCI2J2GLS2C7OHANCNFSM4WEVIJ2A.

"Profiles" sounds good and I agree separate config files is probably a good approach.
That is similar to the 'workspace' files in Visual Studio Code and other IDEs. I can start it with a specific one, I can 'save as' one to another and then make changes, and I can load one at any time.

"Profiles" sounds good and I agree separate config files is probably a good approach.
That is similar to the 'workspace' files in Visual Studio Code and other IDEs. I can start it with a specific one, I can 'save as' one to another and then make changes, and I can load one at any time.

Profile “X" = Config file “X” also makes for an easy-to-explain semantics for “Save” - it updates the current profile to the new settings.
If you want to, I suppose you could add a “Preference” to switch profiles mid-stream but I think that’s OK to leave for later, too.  For now, it’ll be valuable just to be able to start it with --profile=... or --config=... and be tied to that config file until exit.
73, -Patrick.

On Jan 15, 2021, at 11:14 PM, Ed Silky<EMAIL_ADDRESS>wrote:
"Profiles" sounds good and I agree separate config files is probably a good approach.
That is similar to the 'workspace' files in Visual Studio Code and other IDEs. I can start it with a specific one, I can 'save as' one to another and then make changes, and I can load one at any time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/MorseKOB/PyKOB/issues/231#issuecomment-761520377, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAYK7B4E5H4JMXLE27AGTS2E4FZANCNFSM4WEVIJ2A.

Profile “X" = Config file “X” also makes for an easy-to-explain semantics for “Save” - it updates the current profile to the new settings.
If you want to, I suppose you could add a “Preference” to switch profiles mid-stream but I think that’s OK to leave for later, too.  For now, it’ll be valuable just to be able to start it with --profile=... or --config=... and be tied to that config file until exit.
73, -Patrick.

On Jan 15, 2021, at 11:14 PM, Ed Silky<EMAIL_ADDRESS>wrote:
"Profiles" sounds good and I agree separate config files is probably a good approach.
That is similar to the 'workspace' files in Visual Studio Code and other IDEs. I can start it with a specific one, I can 'save as' one to another and then make changes, and I can load one at any time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/MorseKOB/PyKOB/issues/231#issuecomment-761520377, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAYK7B4E5H4JMXLE27AGTS2E4FZANCNFSM4WEVIJ2A.

(From Kevin Jepson)
Named configuration file or multiple configurations in same file. I am thinking of having my Quadra machines choose different configurations on startup. This would allow things like playing an arbitrary text when running locally, or switching the wire before it auto connects.

(From Kevin Jepson)
Named configuration file or multiple configurations in same file. I am thinking of having my Quadra machines choose different configurations on startup. This would allow things like playing an arbitrary text when running locally, or switching the wire before it auto connects.

The Config class in config2.py supports 'isolated' configuration. It supports reading the configuration from a 'named' file rather than just to the single global configuration.
An option --config path-to-config-file allows the applications (MKOB and MRT) and utilities to use different configurations based on a command line option. MKOB also added the ability to load and save different configurations in addition to the global configuration.
pykob version 1.3.4
MKOB version 4.3.1


Add some breadcrumbs to make "getting back" easier

8.)  When inside of "Device Detail",  have somewhere other than the dropdown in the upper-right that has a menu option/clickable link back to the main "Monitoring" page.   (so just add a top-left menu item next to "Dashboard  Customers  Devices  Tickets"  for "Monitoring")

New menus are much better and admin module addresses this.


Documentation for Azure Functions host (OS) platform

As an Azure Function developer creating a .NET Core Azure Function container image using a Microsoft-Hosted Linux build environment in Azure DevOps, it would be helpful to know the OS properties of the Azure Functions platform,
so that I can correctly author the pipeline and build the image in a manner to be deployed to and run successfully with Azure Functions.
It would be helpful to know the following information:

OS (e.g. Linux/Windows/etc.)
OS Distribution (e.g. Redhat, Debian, Windows Enterprise, DataCenter)
OS Version (e.g. Debian 9, 10)
Processor Architecture (x86, x64)

Having this information will allow me to choose the right hosted build agent, or to configure the correct approach to a custom build agent (one that matches the target Azure Functions environment).

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 06436739-8586-23b1-6b69-1960e93c26be
Version Independent ID: 8f7abfae-cf6d-56cb-1d20-f02041a6f6d9
Content: Azure Functions scale and hosting
Content Source: articles/azure-functions/functions-scale.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Hello @mcollier,  Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.


Accept options for accounts admin menu via config

Coverage remained the same at 99.067% when pulling 3ae5a0ba016bd353eb072cfbedb54736e4110718 on aviav:options-for-accounts-admin-menu into 65ee2152bd0bfc58e91e1856e3d5f4646424c49a on codevise:master.

Coverage remained the same at 99.067% when pulling 3ae5a0ba016bd353eb072cfbedb54736e4110718 on aviav:options-for-accounts-admin-menu into 65ee2152bd0bfc58e91e1856e3d5f4646424c49a on codevise:master.


Allow transactions export as CSV file

New Feature: Added button to export transactions to CSV file
Reason: Get transaction data to Excel, Google Sheets,...
CSV file headers + example values:

timestamp: 2022.04.28 10:19:25+02:00
txHash: E128210B9A57C2971CCA693242FF558C4B6824D61A573C7B0F17D24E04CDE9CA
trackedAddress: terra1p02rg8hww7fazx4vmc8vh6anwcge88ry2a336s
txType: send
sender: terra1p02rg8hww7fazx4vmc8vh6anwcge88ry2a336s
recipient: terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf
amount: -12.000000 (if positive, trackedAddress received coins. If negative, trackedAddress spent coins)
currency: UST
feeAmount: 0.059285
feeCurrency: UST

Notes:

If the transaction has multiple input/output coins, each of these coin transfers will be rendered as a separate row in the CSV file (e.g. if a transaction has 1 input coin and 3 output coins, the transaction will be rendered as 4 transactions with the same txHash)

Future improvements  (can be added upon request):

Date selection (export transactions only between two particular dates)
CAPTCHA protection

continue #231


Release/v4.0 (IDFGH-3698)

A repository referenced by libcoap hosted by eclipse is broken/down (for the past 23 days or so)
The libcoap repository needs to be fixed, however since the esp-idf release v4.0 points at a specific commit, even IF the repo is fixed it won't fix the IDF.
The esp-idf v4 needs to update it's reference to libcoap (which in turn needs to update it's reference to tinydtls)
https://github.com/eclipse/tinydtls
as a work around, i've forked the libcoap repo and fixed the upstread tinydtls url.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

@elasticdotventures Can you please elaborate on which repository is broken or down? I am unable to see any problem with either libcoap or tinydtls repositories.

@elasticdotventures Looking at this again, we decided to move submodule pointer for libcoap in release/v4.0 to include fix from https://github.com/obgm/libcoap/commit/017528d7d96dca2318ed587b5fd3c0d57a89e49a. This should address the problem. I will go ahead and close this PR, release/v4.0 will have this fix soon.


Prepare integration tests for the app screens

Is your feature request related to a problem? Please describe.
We'd like to have all of our screens covered with integration tests. Here we have those, which need to be covered: Send, Request, Home, Profile, etc.
Describe the solution you'd like
The solution could be similar to the already implemented one for the Onboarding screen, see OnboardingIntegrationTest.kt, TestBackupActivity.kt or SupportViewIntegrationTest.kt.
We have two options where to place these integration tests: different files or even Gradle modules.

Separate files: E.g. new file OnboardingIntegrationTest.kt. I think the separation might be necessary, especially dealing with problems between ComposeTestRule versus ActivityTestRule at the same time.

Separate modules: Some integration tests will end up setting persisted state, which needs test orchestrator to clear. I don't want to use Test Orchestrator in the ui-lib tests, because it makes the tests really slow during development. We are using Orchestrator in the app module, or we could do a new ui-lib-integration-test module. I don't think we're at the point of needing this yet, just highlighting where we might end up and why.

Additional context
This requirement applies probably to all of our screens. We should start with Backup, Send ZEC or Request ZEC screens.


Plugin doessn't recognize existing cluster and creates a duplicate

When I delete the jupyterhub container for a user, and then attempt to start the server, instead of recreating the container, it tries to create a new cluster. It is not finding the existing cluster and reusing it.
[E 2017-01-30 17:47:37.596 JupyterHub web:1548] Uncaught exception GET /jupyter/hub/user/carolynvs (<IP_ADDRESS>)
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.5/site-packages/tornado/web.py", line 1469, in _execute
        result = yield result
      File "/opt/conda/lib/python3.5/site-packages/jupyterhub/handlers/base.py", line 484, in get
        yield self.spawn_single_user(current_user)
      File "/opt/conda/lib/python3.5/site-packages/jupyterhub/handlers/base.py", line 306, in spawn_single_user
        yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), f)
      File "/opt/conda/lib/python3.5/site-packages/jupyterhub/user.py", line 245, in spawn
        raise e
      File "/opt/conda/lib/python3.5/site-packages/jupyterhub/user.py", line 226, in spawn
        yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
      File "/srv/jupyterhub/src/jupyterhub-carina/jupyterhub_carina/CarinaSpawner.py", line 151, in start
        cluster = yield self.create_cluster()
      File "/srv/jupyterhub/src/jupyterhub-carina/jupyterhub_carina/CarinaSpawner.py", line 169, in create_cluster
        return (yield self.carina_client.create_cluster(self.cluster_name))
      File "/srv/jupyterhub/src/jupyterhub-carina/jupyterhub_carina/CarinaOAuthClient.py", line 120, in create_cluster
        response = yield self.execute_oauth_request(request)
      File "/srv/jupyterhub/src/jupyterhub-carina/jupyterhub_carina/CarinaOAuthClient.py", line 244, in execute_oauth_request
        return (yield self.execute_request(request, raise_error))
      File "/srv/jupyterhub/src/jupyterhub-carina/jupyterhub_carina/CarinaOAuthClient.py", line 275, in execute_request
        return (yield http_client.fetch(request, raise_error=raise_error))
    tornado.httpclient.HTTPError: HTTP 413: Payload Too Large

The Carina API in this case is returning 413 Payload Too Large, indicating that I've hit my 3 cluster quota. If I had had fewer clusters, it would have made a duplicate cluster with the same name.

Oops, I should have realized this would be a problem! The old Carina would ignore requests to create a new cluster, if one already existed with the same name. Now that you can create multiple  clusters with the same name, I need to check for it and reuse the cluster if found.


! completion in zsh not working correctly

Details

Browser and browser version: Chrome 54.0.2840.71 (64-bit)
OS version: OS X 10.11.6
xterm.js version: master

Steps to reproduce

zsh
ls -la
!ls<Tab>

Expected to see ls -la, instead see ls -la -la
Originally repoted at https://github.com/Microsoft/vscode/issues/14177

Can you please verify this has been fixed @octref? I can't reproduce this on VS code on macOS.

I can't repro it either. This seems to be fixed but I'm not sure. @Tyriar should know better.

Not sure what could have fixed it but... 🎉 😉


Feature request: filter current user

Thanks for the library, it is great. Also would be nice to have an ability to return only other users from useUsers. Maybe useUsers should have optional options argument for selector function and equality function, where in addition excludeSelf could be presented. What do you think?
Example:
const otherUsers = useUsers(awareness, {
  selector: (state) => state,
  excludeSelf: true,
});

Thank you! I like the idea of being able to retrieve other users (users except self) though I'd like to spend some time thinking about the best API for the purpose. I quite like the addition of a new argument that you suggested. I have also thought of exporting a new hook called useOthers, but the implementation would be quite simple and would be some version of the following:
const others = useUsers(awareness, (users) => Array.from(users).filter(([id]) => id !== awareness.clientID))

What are your thoughts?

Thanks for the quick answer. I like it more than my previous suggestion, because then I thought that I need to filter awareness also by page. In my case I use Next.js where I can take pathname and add to awareness, to say this user is on this page. So I do:
  const pathname = usePathname();
  useEffect(() => {
    setAwareness("pathname", pathname);
  }, [key, value]);

and then in certain component:
const pathname = usePathname();
const others = useUsers(awareness, (users) =>
    Array.from(users).filter(([id, value]) => id !== awareness.clientID && value.pathname === pathname)
  );

In this case I get other users than me on the current page. Well, now I don't know if it is necessary to add this useOthers hook in your lib. Perhaps this can be left as a workaround.


ARROW-4350: [Python] Fix conversion from Python to Arrow with nested lists and NumPy dtype=object items

NumPy object array values weren't being iterated over in the case where the value type is list<T> instead of some primitive type like int64.
This code path appears to have never been properly tested, so when a user hit it, it didn't work.

OK, I think I've addressed everything


#35 - Missing 'no issue data' detection in project issue loading logic

Update of debug log messages to reflect code changes and reality of data flow.
Added check of empty issue data.

#35

Release notes:

Added check for received project issue record without issue data.


Added relocate functionality to traffic runroot

Added a relocate functionality to runroot inside traffic_layout. This enable us to relocate the runroot to a very clean and simple form of containing only the directory names with everything inside.

Overwrite the records.config value through ENV variable using RecConfigOverrideFromEnvironment.

@dragon512

@chitianhao Please read this guide to writing git commit messages. The commit message "relocate" really could be improved :)

[approve ci]

@chitianhao We need to go over the text for the command line. Let take time to review the formatted output.

Issues mentioned are fixed. Now the check_runroot() function is moved to runroot.cc and the ENV variable override setup is done there. This makes everything cleaner and the Layout code simpler. @dragon512 @jpeach

[approve ci]

[approve ci]

The new command line option is added @dragon512  . Everything else should be fine. Is there any other concern you worry about @jpeach ?

[approve ci]

@chitianhao Look at @jpeach items. I agree with most of them. Sorry I been busy with other issue and have not been giving this the attention it needs.
A few notes. We don't need absolute paths as the default. The default it to work in the current path. This has to be easy to use, not a /massive/pain/of/providing/long/path when ./ will work fine. James is ahead of me on testing this code out directly. Once you address James issues, I will compile and test this out locally.
I am unclear on what --relocate is about as well
end goal is to have something like:
Create a sandbox
traffic_layout init
init should have sub options of:
--force for when the directory is not empty or has a yaml file in it, This is to protect from modifying operation that might be damaging.
--path defaults to ./ else given a path to use .. path can be /absolute/path or ../relative
remove sandbox ( should only remove directories defined in the yaml )
traffic_layout remove --path ../sandbox
remove should have sub options of:
--force for when we see that the removing of a directory has files in it that we know we did not add. Again protect from doing damage
--path defaults to ./ else given a path to use .. path can be /absolute/path or ../relative
verify structure in sandbox
traffic_layout verify --path ../sandbox
verify should have sub options of:
--fix correct issues that exist (without this we only report there is a problem and what it is
--path defaults to ./ else given a path to use .. path can be /absolute/path or ../relative
We also need a default command of info that allows traffic_layout default behavior.
@jpeach do you have a suggestions to add or tweak with this?

Some structure and logic of runroot inside the engine are changed. The command line usage is clear now. The document and test are updated accordingly. Verify functionality and exception will be implemented later. @dragon512 @jpeach

[approve ci]

looking at lot better. I want to give it a compile and run before I merge

[approve ci]

Do you find any other issues with this? @jpeach. If not, maybe you can green light this PR.

@chitianhao You need to fix the commandline.
traffic_layout provided no information about the commands it can process.
--json does not work all the time
fake commands act like info, and can cause odd behaviors
--relocate does not work in a logical way ( we talked about it)
--path should only be needed when I want to talk about a location that is not the current working path.
Let start with the above CLI interface set of switches.. then we can add on to init a little.

Updated @dragon512

Now everything should be good with the command line. You can check it out @dragon512. The exception handling and verify will be done in a separate PR. Don't want to make this PR too messy.

[approve ci]

Everything is good now. The description is updated to describe what the changes are. @jpeach @dragon512

[approve ci]

The message needs to be cleaned up.
one example:
traffic_layout init                                                                                0|09:49:19
NOTE: Copying from the original root...
NOTE: TS runroot initialized
Should be something like:
Copying from /opt/ats
There are also error such as
»»»» ~/ats/run/bin/traffic_layout init --force                                                                               70|09:50:22
Fatal: directory not empty, use --force to overwrite
Which means the options are not working

[approve ci]


Saving Nested Sortables with PHP

Hi all,
I have very limited knowledge of JS (but decent knowledge of PHP).
So I'm trying to properly pass to PHP the order of my nested items.
Problem:
What I have is a list of nested items, each with a hidden input field. So when I POST the form, I use the names and values of those fields in the order that they appear in the DOM.
<input type="hidden" class="menu-item-checkbox" name="menu-items[]" value="2"> <input type="hidden" class="menu-item-checkbox" name="menu-items[]" value="3"> <input type="hidden" class="menu-item-checkbox" name="menu-items[]" value="4">
In PHP I get these values into an array and then can do what I want with it. It all works great when there's only one level of parent items. But the nested items make no difference.
This is the current JS code that I have to make nested sortables:
<script>
                   // Nested demo
                    var nestedSortables = [].slice.call(document.querySelectorAll('.nested-sortable'));

                    // Loop through each nested sortable element
                    for (var i = 0; i < nestedSortables.length; i++) {

                        new Sortable(nestedSortables[i], {
                            ghostClass: 'ghost-placeholder',
                            handle: '.handle',
                            group: 'nested',
                            dataIdAttr: 'data-id',
                            animation: 120,
                            fallbackOnBody: true,
                            invertSwap: true,
                            swapThreshold: 0.60,
                            emptyInsertThreshold: 30,
                        });

                    }
</script>

Due to my limited knowledge of JS, I have no idea how to pass the order of my nested sortables in any way as a POST field in my main form, or maybe as a separate AJAX request to a separate PHP file.
I have searched the documentation and existing/closed issues and I can't seem to find any sample PHP code that would accomplish what I need.
I would prefer to save the order only once when the form is submitted, without having to keep a separate PHP file to handle separate AJAX requests.
Thank you all in advance for ANY guidance.
JSBin/JSFiddle demonstrating the problem:
What my HTML looks like: https://jsfiddle.net/s7dh2mko/

@dumbbillyhardy Hi, I believe this stackoverflow answer might help you: https://stackoverflow.com/questions/56571434/sortablejs-get-order-from-nested-list/56589385#56589385

Thank you for your assistance.
Unfortunately it does not, at least it doesn't solve my problem.
I really don't understand why it has to be so difficult to just generate a multi-dimensional associative array based on the structure created with SortablesJS.
All I need is to end up with an array like this after submitting the form:
Array
(
    [0] => Array
        (
            [id] => 3
        )

    [1] => Array
        (
            [id] => 2
        )

    [2] => Array
        (
            [id] => 10
            [children] => Array
            (
                [0] = Array (
                    [id] => 15
                )
                [1] = Array (
                    [id] => 25
                )
                )
        )

    [3] => Array
        (
            [parent_page_id] => 0
            [site_page_id] => 5
        )

)

I can freely change my HTML code, go away with the inputs, etc.
The main thing is to end up with an associative multidimensional array that I can serialize and insert into the database, then select it and do whatever I please with it, like rebuild the HTML for it.
Feels like spending 2 full days on this is too much :(

@dumitrub So why would that solution not work? It does exactly what you are asking. All you need to do is use this code:
const nestedQuery = '.nested-sortable';
const identifier = 'sortableId';
const root = document.getElementById('nestedDemo');
function serialize(sortable) {
  var serialized = [];
  var children = [].slice.call(sortable.children);
  for (var i in children) {
    var nested = children[i].querySelector(nestedQuery);
    serialized.push({
      id: children[i].dataset[identifier],
      children: nested ? serialize(nested) : []
    });
  }
  return serialized
}

Replace the identifier with the attribute on the HTML Element used to identify the item.  You will have to put the ID on the element as data-id="id" in this case, and set the idenfitier variable in that code to 'id'.
You say you want the children of the element to be an array accessible via the children property of a serialized item, which is exactly what that code already does. The nestedQuery should be a CSS selector for the nested list (ie. the nested Sortable list container that is inside the item), Lastly, the root variable should be set to the main Sortable container of the main list. Then you can call serialize and it will return the array.
Perhaps PHP has an issue converting this serialized list to a PHP array? In that case, please share the corresponding PHP code.

That code looks to work well in the console, but if I push the same result into an input field, then the value that I get on submit is this:
[standard_order] => [object Object],[object Object],[object Object],[object Object]
I'm probably missing something very obvious 😦

@dumitrub You have to call JSON.stringify on it before you send it then.
I was mistaken to assume that a JS function called "serialize" would do the same thing as the serialize() of PHP.
Now the contents of the field are properly encoded and can be submitted with the form.
For anyone stumbling into this thread with a similar issue, please do note that you can't just use unserialize() or json_decode() in PHP to get the array.
You also have to html_entity_decode() the string first, so you end up with code like this:
$data = json_decode(html_entity_decode($valsP['standard_order']), true);
Now you have the associative array to play with.
Thank you @owen-m1, you have been very helpful. Good karma to you!

Hello dumitrub
I run into this thread looking for away to save and rebuild the html for a nested sortable.
was wondering if you would be kind enough to share an example as this thread sounds like you figured it out.
Any help will be greatly appriciated

If you use 'parent_id' logic for it there is an easy way.
You can build parent_id's like that, if you set an data-parent-id to all sortable groups
window.nestedSortableSerialize = (sortable, sortableGroup) => {
    const serialized = [];
    const children = [].slice.call(sortable.children);
    for (let i in children) {
        const nested = children[i].querySelector(sortableGroup)

        // Find the closest sortable group and get it's data-parent-id attribute
        const parentId = children[i].closest(sortableGroup).getAttribute('data-parent-id')
        serialized.push({
            item_id: children[i].dataset['sortableId'],
            parent_id: parentId
        });
        if (nested){
            serialized.push(...nestedSortableSerialize(nested, sortableGroup))
        }
    }
    return serialized
}

Array
(
    [0] => Array
        (
            [id] => 1
            [parent_id] => 0
        )

    [1] => Array
        (
            [id] => 2
            [parent_id] => 0
        )

    [2] => Array
        (
            [id] => 3
            [parent_id] => 2
        )

    [3] => Array
         (
            [id] => 4
            [parent_id] => 2
        )
)
```
You can have an output like this.


Finish the span when subscription is canceled

Hello!
With this PR, spans bound to canceled subscriptions will be also finished.
Cf this issue: #133
As span finishement is a key behavior, I added a set of tests asserting this action for all the final signals: complete, error, and canceled.
Thanks @geoand.

Thanks for the PR!
Can you please fix the licensing headers of the files you changed? You just need to adjust the "to" year to 2020

Should be fine.


Remove mkdirp and rimraf in favor of Node.js builtins

Why:
In Node.js v14.14.0, fs.rmSync was added. It's a built-in module that removes files and directories. The recursive option is used to remove directories and their contents.
Since this repository requires Node.js 18 and up, it's safe to assume mkdirp and rimraf can be safely replaced, thus reducing the number of dependencies in this project.

What's being changed (if available, include any code snippets, screenshots, or gifs):

mkdirp(PATH) -> (fs.)mkdir(PATH, { recursive: true })
rimraf(PATH) -> (fs.)rm(Sync)(PATH, { recursive: true, force: true })

Check off the following:

[ ] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[ ] For content changes, I have completed the self-review checklist.

@wojtekmaj Hi 👋 Unfortunately, per the automated response above, we are unable to accept this contribution. We appreciate your desire to contribute to GitHub Docs. I'll go ahead and close this PR 💛


ESP8266 NodeMCU Lua

I wrote a pretty simple ESP8266 NodeMCU Lua script for handling UDP packets for this project, including a strip fade-out when no packets are delivered for 5s. Would you be interested in a pull request for that?

How does work? And are there any performance issues using Lua?

buffer:set() (which is needed for per-LED update) for some reason takes a lot of time (I'm still looking to improve this somehow), but after setting the CPU speed to 160MHz, I'm able to drive 60 LEDs at 45FPS (all LEDs being updated with  every packet) or 80 LEDs at ~35FPS. Haven't tried with more LEDs but if I go above these FPS, it has issues keeping up, my router sends lots of retransmits and the effect lags behind a few seconds until you switch to one with less LEDs being updated
Here's how it works currently: https://www.youtube.com/watch?v=gWMWE8um7ZE
And thanks for an awesome visualiser! :) Now I just need that loopback output from win7+ integrated somehow :)

I went much further and managed to optimize the Lua version greatly (60 FPS @ 60 LEDs) with selectable passive effects when not controlled by the PC, nice transitions, brightness and speed controls, Android app... Also got the pyaudio WASAPI fix working. I'm loving this and I'll probably want to extend this project to Razer Chroma devices if the Python wrapper is working

That looks very cool! Is that an amazon echo in the video? In #30 there was a person who connected their strip to Alexa.
I don't quite understand how the Lua code works. Do you have to install any external libraries, or does it just work out of the box with the Lua interpreter?

Quick question, what is dithering for? I'm not using that in Lua but haven't noticed any difference with software dithering and without

There is a good overview of temporal dithering here. Temporal dithering is a technique used to extend the color depth by rapidly switching between similar brightness values.

I'm loving this and I'll probably want to extend this project to Razer Chroma devices if the Python wrapper is working.

Razer Chroma would be a great application. I've been working on a new version of the visualization code in the develop branch. The code is working but is currently undocumented and there no GUI support yet. The new version has:

Much better spectrum effect. I've posted a demo video here
Significant performance improvements
Major restructuring of the code. It's easier to support new hardware devices and it is much easier to interface the visualization with external applications.

Unfortunately, I am overwhelmed with my university courses at the moment. I won't be able to finish working on the new version until the end of April or beginning of May, but it's coming eventually!

Thanks! Haha that's actually not an Echo, that's an RGB mug holder from Razer. I guess I could connect my strip to Google Assistant through my Raspberry Pi / homeassistant, too!
Lua for ESP8266 NodeMCU is basically a firmware package, like Arduino firmware. I wrote my own UDP packet interpreter and pushed it to the chip.
I've already done the initial Chroma support and its looking good! Had to do a few hacks like reshaping numpy matrices (which is all new stuff for me) and the library I'm using is a bit buggy, some values hardcoded for 60-long strip, but it works!
https://gfycat.com/HighPartialGroundbeetle
https://gfycat.com/CourageousLoathsomeAnnashummingbird
I don't own any Chroma keybards so no idea how I'd like to implement it for a 2D visualisation yet
The new spectrum effect looks sick, although doesn't look synced to music in that video? Looking forward to the new version! Is it the https://github.com/scottlawsonbc/audio-reactive-led-strip/tree/develop branch?

Just a heads-up that I think I almost finished Chroma support, the only issue is that my config is non-transferrable and hardcoded to 60LEDs due to matrix manipulations I'm doing to re-map and calculate axis means... I need a better way of doing that. I know this goes outside the scope of this particular issue, but I don't want to create a new one until I have properly configurable code :)
https://vid.me/YbS3
I think it looks awesome though!

How does the delay on the Chroma compare to that of the ESP8266 or pi?

It's not noticeable either way. I'd say the strip is more responsive actually

Got a new laptop, real-life Chroma SDK example: https://www.youtube.com/watch?v=QKsfK_zStsI
I have no clue to edit the matrix to sizes I need and/or do a better job at approximating colours for shorter arrays like the mouse etc. I need to do more research...


File opening issue

The version is 2.4.0 and the problem is with File initialization.
When the File stream initialization starts, there is an internal opening flag set to true.
This flag is set to false with the first flush event, and the first flush event relies on the native stream emitting a drain event.
The problem is that if the result from calling write on the native stream is true, no drain event is emitted, which results into no data being written into the file (all subsequent writes are buffered in memory).
See: https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback
Thanks

Please see my pull request #1206

Ok, the issue is not valid. Eventually the stream has to emit the drain event


mvn test exception: mongodb has authentication failure and/or can't match PrimaryServerSelector

I am trying to build the opengrid service layer for the first time. When I try to run mvn test, i get the error:
INFO: Exception in monitor thread while connecting to server localhost:27017 com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='build', source='testdb', password=<hidden>, mechanismProperties={}}
and also in the output:
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches PrimaryServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='build', source='testdb', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server localhost:27017. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]
I imagine I am skipping some step here with mongodb, but it's a bit hard to follow as the documentation appears to be unfinished for that section. Would someone be willing to help me out? I'd be more than happy to fill in the documentation or clarify it afterwards to help others who might also want to help develop opengrid.

I will take a look at this, will try to recreate.


Certificate issues

I have certificate issues (website marked as insecure) on https://nalgebra.org/
Firefox 62.0 (Linux)
nalgebra.org uses an invalid security certificate. The certificate is only valid for the
following names: ssl3.ovh.net, www.ssl3.ovh.net Error code:
SSL_ERROR_BAD_CERT_DOMAIN

Chromium 69.0.3497.92 (Official Build) Arch Linux (64-bit)
NET::ERR_CERT_COMMON_NAME_INVALID
Subject: ssl3.ovh.net

Issuer: COMODO RSA Domain Validation Secure Server CA

Thank you for mentioning this. I have fixed the SSL configuraiton of nalgebra.org.


Issue in readme.md

Readme.md does not properly tells the beginners how to use it i can make the changes if you assign this issue to me

Hey @shreyaansjain06,
Welcome to the community,
What kind of changes would you like to make in Readme?
According to me, "how to access the firebase data" need proper documentation in the readme.md i.e. how do contributors get access to the firebase db?

No i was talking about installation steps

fork the project is not present
clone link is not correct
Some changes like that i was talking about that
You can assign this issue if you understand what i mean

fork the project is not present

Yes, you're right fork step is missing but the cloning step is there.
You can add a fork step to the readme.md

I have made the pr kindly check it and give it a label of hactoberfest-accepted and hactoberfest-2021
If you need any changes do let me know
Thanks

Hey @shreyaansjain06
I'll review the pr soon.
Feel free to give a star to the repo

yeah sure i will do
I want to become part of your community and do valuable contributions even after hactobefest

I want to become part of your community and do valuable contributions even after hactobefest

Great!
I already opened a couple of good issues, if you want, you can work on them.


Write unit tests for properties

Library name(s)
UT.Members
Subtasks

[x] Accessors
[x] Get & Set accessors
[x] Get and set existence
[x] Name
[ ] Raw name
[ ] Namespace

[ ] Top level declaring type
[ ] Nested declaring type

[ ] Value type
[x] Static
[ ] Inheritance modifiers

[ ] Override
[ ] Virtual
[ ] Abstract
[ ] None

1h 36m

38m

34m

9m

12m

24m

24m

51m

Total: 4h 48m


chore(main): release siyuan-plugin-picgo 1.7.1

:robot: A new release will be created
1.7.1 (2024-03-29)
Bug Fixes

add error message when upload failed (c16a3ec)
add plugins support (bf054c7)
only pc version support enable or disable plugin (ea29c7f)
only pc version support events trigger (ca98301)
only pc version support improve install experience (17df472)
only pc version support install plugin from npm (0e85234)
only pc version support local plugins (ab01ffc)
only pc version support node download and npm command (3aa36f8)
only pc version support plugin config (6505361)
only pc version support plugin list (499c3bb)
only pc version support plugins (ad77535)
only pc version support uninstall and update plugins (719f851)

Miscellaneous

deps-dev: bump vite-plugin-dts from 3.7.3 to 3.8.0 (3d185eb)
deps-dev: bump vite-plugin-dts from 3.8.0 to 3.8.1 (03cc0bf)
fix ts error (2ee39e6)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/terwer/siyuan-plugin-picgo/releases/tag/siyuan-plugin-picgo-v1.7.1 :sunflower:


TypeError: unsupported operand type(s) for -: 'int' and 'simsimd.OutputDistances'

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
print("?")

Error Message and Stack Trace (if applicable)
  File "/home/martin/dev/mlki/langchain/llmaa/env/lib/python3.10/site-packages/langchain_community/utils/math.py", line 29, in cosine_similarity
    Z = 1 - simd.cdist(X, Y, metric="cosine")
TypeError: unsupported operand type(s) for -: 'int' and 'simsimd.OutputDistances'

Description
Error came up after installing langchain v0.1.9 and the python bindings for simsimd v3.8.1.
After switching the python package to simsimd v3.7.7, the error disappeared.
Seems to be related to this change https://github.com/ashvardanian/SimSIMD/commit/819a40666faf038613b2368d1810e2563fb9d422
System Info
langchain==0.1.9
langchain-community==0.0.22
langchain-core==0.1.26
langchain-openai==0.0.7
langchainhub==0.1.14

Confirming that in my setup (which generally picks up langchain latest), pinning simsimd == 3.7.7 resolved the issue.

Still an issue with the newest simsimd.
>>> simsimd.__version__
'4.0.0'
>>> import langchain
>>> langchain.__version__
'0.1.13'
>>>

Hey! To convert to NumPy, you simply need to wrap the output tensor with np.array 🤗
We couldn't continue returning the NumPy array directly, because surprisingly to us, NumPy doesn't support most platforms. They only ship 35 binaries, while SimSIMD ships 105... and on some platforms, they don't even pass compilation.

Confirming that in my setup (which generally picks up langchain latest), pinning simsimd == 3.7.7 resolved the issue.

it is helpful,my problem has solved. thank you


Sync fsc task

ref #684
align fsc task and target file

thanks!

I was adding test suite, i forgot [WIP] 😄
i'll send another PR to smoke test it with mono/msbuild/dotnetcli


Null Exception error, when the app starts

Describe the bug
When we run the app, there is a null exception error thrown
Log :
D/NetdClient( 2041): netdClientConnect netId:0, uid:10624, nid:0, addr:<IP_ADDRESS>, lan:0, localhost:0, sa_family:2, sockfd:88, thread:1.ui
E/flutter ( 2041): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'bool'
E/flutter ( 2041): #0      new ProjectAttributes.fromJson (package:mobile_app/models/projects.dart:87:24)
E/flutter ( 2041): #1      new Project.fromJson (package:mobile_app/models/projects.dart:24:39)
E/flutter ( 2041): #2      new Projects.fromJson.<anonymous closure> (package:mobile_app/models/projects.dart:8:66)
E/flutter ( 2041): #3      MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
E/flutter ( 2041): #4      ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
E/flutter ( 2041): #5      new List.from (dart:core-patch/array_patch.dart:41:17)
E/flutter ( 2041): #6      new Projects.fromJson (package:mobile_app/models/projects.dart:8:15)
E/flutter ( 2041): #7      HttpProjectsApi.getFeaturedProjects (package:mobile_app/services/API/projects_api.dart:124:23)
E/flutter ( 2041): <asynchronous suspension>
E/flutter ( 2041): #8      FeaturedProjectsViewModel.fetchFeaturedProjects (package:mobile_app/viewmodels/projects/featured_projects_viewmodel.dart:53:41)
E/flutter ( 2041): <asynchronous suspension>
E/flutter ( 2041):

To Reproduce
Steps to reproduce the behavior:

Run the app in device/emulator
check console log

Are you working on this issue? (Yes/No)
Yes

A potential fix could be checking the variable before assigning it, if it is Null we can set it to false.
Is this the correct way?


LinkEdit Groovy Script failing

Hi, my LinkEdit Groovy script is failing for below line. I am not sure what is the purpose of the line.Please help:
tools.updateBuildResult(file:"$file", rc:rc, maxRC:0, log:logFile)
i am getting java null exception error for this line.

@Shalini174 can you copy the console output with the null pointer exception message so that I can see it?

Hi Bruce, below is the exception message:
/rsusr/HelloWorld>
Link editing link file hello.cbl
/rsusr/HelloWorld>
Caught: java.lang.NullPointerException
java.lang.NullPointerException
at com.ibm.dbb.repository.RepositoryClient.getRestAPIUrl(RepositoryClient.java:664)
at com.ibm.dbb.repository.RepositoryClient.getBuildResult(RepositoryClient.java:891)
at com.ibm.dbb.repository.RepositoryClient$getBuildResult$2.call(Unknown Source)
at Tools.getBuildResult(Tools.groovy:197)
at Tools.updateBuildResult(Tools.groovy:256)

Bruce,
Also when i tried to use the LinkEdit.groovy for my HelloWorld program, i was getting value for "file" as :
"--SourceDir" on the following line execution:
def file = args[0]
Do i need to modify any file for the LinkEdit script to work? I am new to Groovy, please suggest.

@Shalini174 the null pointer exception is occurring when the Groovy script is trying to connect to the DBB web application to update the build result.  I think the problem is that you are trying to invoke LinkEdit.groovy directly but it is designed to be called from the MortgageApplication's build.groovy.  All of the parameters like --sourceDir and such are expected by build.groovy and loaded into a static properties class.  Then build.groovy calls LinkEdit.groovy only passing the name of the link card to link.
If you are just trying to LinkEdit hello.cbl, I think you would be better off editing hello_cbl.groovy and adding a link-edit step  See MortgageApplication/build/CobolCompile.groovy for an example of a script that compiles and link-edits a source file in one script.

One of our new developers has posted a Linked-in article at https://www.linkedin.com/pulse/modern-development-zos-kaleb-porter/ showing how to compile, link and execute a simple program using Groovy and DBB.

@drbruce-git : LinkEdit is working fine if i comment the build report  step. But i below query:
I am trying to install DBB server(trial version) on my system, but when i try to unzip the file "dbb-server-1.0.3.tar.gz" i am getting error : FSUM7449 ././@LongLink: Unknown file type field value 'L'.
Even after this error i can see the wlp,server directories but when i try to edit the dbb.properties file, i see special  characters.
Please suggest.

@Shalini174 is this still an issue?

Closing due to inactivity


common: do not reset container_exec_cmd

This commit removes some legacy tasks.
These tasks aren't needed, they cause the playbook to fail when
collocating daemons.
Closes: #4553
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

failures here are related to this patch ceph/ceph/pull/30603


Screen cutout tool

Description of the new feature / enhancement
Screen cutout tool where we can take more than one separated by tabs.
Also with editing to put arrows, circles, text etc...
Scenario when this would be used?
I think it's a tool for all users
Supporting information
No response

This sounds like an feature request for Snipping tool, correct?  I take a screenshot and just have it be a tab, correct?  /needinfo

Sorry I didn't see the answer
If you become a new feature of the perfect snipping tool too
Being able to separate by Tabs, it would also be good to be able to make a minimal edit


Ev/repetitive training

Codecov Report

Merging #22 into master will increase coverage by 1.11%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   52.77%   53.88%   +1.11%
==========================================
  Files          20       20
  Lines         955      978      +23
==========================================
+ Hits          504      527      +23
  Misses        451      451

Impacted Files
Coverage Δ

src/util/emulation_helpers.jl
100% <100%> (ø)
:arrow_up:

src/abc/io.jl
14.45% <100%> (+3.2%)
:arrow_up:

src/abc/emulation.jl
100% <100%> (ø)
:arrow_up:

src/abc/rejection.jl
88.15% <100%> (+0.32%)
:arrow_up:

src/abc/smc.jl
94.28% <100%> (+0.34%)
: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 796f41d...a3b8e45. Read the comment docs.


How to offline camera calibration?

System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04): 18.04
Apollo installed from (source or binary): source
Apollo version (3.5, 5.0, 5.5, 6.0): master
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:
Calibration is attempted using the camera.
I tried obstacle detection through the command below.
"mainboard -d modules/perception/production/dag/dag_streaming_obstacle_detection.dag"
but like the picture below
I got an error saying "Calibration service is not available".
I think this is due to Online Calibration.
I want to do Offline Calibration.
I don't know how to do it because the documentation doesn't explain it. Please help.
Supporting materials (screenshots, command lines, code/script snippets):

@daohu527 Yes, I use master branch.

If you want to calibration your camera with IMU or Lidar offline. You can check the calibration part in this repo.

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.


Add __response output param to all query for customized formatted

Pull Request Test Coverage Report for Build 604

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

Totals

Change from base Build 602:
0.001%

Covered Lines:
6516

Relevant Lines:
7679

💛  - Coveralls


Add RazorEngineCore benchmark

Had to change Product from a struct to a class to work around a bug in RazorEngineCore (which has been fixed but not released)

Thanks a lot! I'll update published benchmark after running it with this extra engine 👍

Hi again, I had a try running benchmark with this new engine. I also upgraded the benchmark to run using net6.0 so that may impact results compared to what to had, but here are the numbers I got for RazorEngineCore library:

Create (template parsing time): 21,956.461 μs per operation (mean) ; Cottle time for the same test is 10.750 μs
Render (template rendering time): 759.672 μs per operation (mean) ; Cottle time for the same test is 4.358 μs

I'm afraid these numbers would change the overall scale of the graph and make it hard to read. What do you think?

Could the benchmark graph use a logarithmic scale?
That should still let the fast engines be differentiable.

Could the benchmark graph use a logarithmic scale?
That should still let the fast engines be differentiable.

Well yes indeed that would work. However I'm not sure about changing the scale for a single engine while others have quite close figures. The main point of this benchmark was to give a rough idea of where Cottle stands compared to libraries similar in terms of feature set and performance. Maybe I can add a special "out of graph" section if you think it's worth seeing RazorEngineCore in this document?

Sure - whatever you think was best!
The context here is that I was looking for a C# templating library which ideally uses Razor syntax, so I think it would be useful for others in the same situation to be able to compare as many libraries as possible in a single benchmark.

Sure - whatever you think was best!
The context here is that I was looking for a C# templating library which ideally uses Razor syntax, so I think it would be useful for others in the same situation to be able to compare as many libraries as possible in a single benchmark.

The approach sounds useful and I really thank you for taking the time to send this 🙂 I'll try to see what could be the best option here and will keep you updated 👍

Update: I spent some time today upgrading benchmark so it runs against .net6.0 by default and changed the charts to use a logarithmic scale. For rendering time it works OK as RazorEngineCore shares a performance close to RazorLight and Scriban. However for parsing time the delta is too high even for a logarithmic scale and makes the whole graph hard to read with Cottle bar being only a few pixels tall. Here is what it looks like:

I'll play with it a bit more, but for now it seems the idea of switching to logarithmic scale isn't enough. Do you have any other suggestion?

Hmm.. That doesn't look too bad to me - you can still distinguish the fast compiling libraries and tell that Cottle is the fastest.
Perhaps the y axis could have a higher base log? E.g. base 1000 instead of 10?

I followed your advice and mentioned RazorEngineCore in the benchmark page without showing it in the graph. Let me know if there is more you'd like me to do here 🙂


Destiny 2

Game Title
Destiny 2
Game Website
https://store.steampowered.com/app/1085660/Destiny_2/
Anti-Cheat Software
BattlEye
Status of the Anti-Cheat
🚫 Denied
Proof of Mention
N/A

Proof: https://buymymojo.net/files/Destiny2NoWork.gif

ah okay fair enough, thanks for clearing that up!


[Cedar Doc Issue] Add explanations of error messages

Request: Cedar error messages, from the validator and evaluator, can be confusing because of the lack of context. We should provide explanations and examples for the messages in the documentation.
Example: https://github.com/cedar-policy/cedar/issues/103 describes how the error
Error: Validation error on policy XXX: Policy is impossible. The policy expression evaluates to false for all valid requests

can be confusing because it's not clear what sub-expression in the policy is causing the policy to always evaluate to false. But there's a bigger problem: Users may not even know what "policy expression evaluates to false for all valid requests" even means. They need to understand what the message is trying to communicate so they can try to debug their policy.
Proposal: Add a section to the documentation called EXPLANATION OF ERRORS, perhaps toward the end. This will have two parts: One for validation errors and one for evaluation/authorization errors. In each, have a table of error messages, with links to explanations for individual messages. The explanations could have three parts: (1) Error (what is the error text), (2) Explanation (a textual explanation of what the error means), and (3) Example (an example policy/schema/etc. that exhibits the error).
For our example, we could write
Error: Policy is impossible. The policy expression evaluates to false for all valid requests
Explanation: The validator has determined that there is no request that can possibly satisfy this policy. To make this determination, the validator considers all legal requests that conform to the schema. It finds that for none of them will the policy ever evaluate to true. Usually the reason for this is some condition in the policy that can never be true, which thus causes the whole policy to always be unsatisfied.
Example: Suppose we have the policy permit(principal,action,resource) when { resource has Owner && resource.Owner == principal }; and we attempt to validate it under this schema. According to the actions part of the schema, for all legal actions the resource could be either List or Application, but neither of these entities (again, per the schema) can ever have an Owner attribute. This means that the expression resource has Owner in the when clause will always evaluate to false, which always makes the whole policy false. This situation arises from a presumed typo: A List can have attribute owner, but Cedar is case sensitive: Owner and owner are not the same thing.

We likely want to do this with https://github.com/cedar-policy/cedar/issues/184 so that users have an easy way to find error in the docs. We'll also want to add #[diagnostic(url("docs.cedarpolicy.com/errors/{error_code}"))] annotation to our errors.

This issue requests an explanation of errors for Cedar users who are not likely to look at the Rust docs. Are you thinking that the Rust docs would link to the explanation on the main documentation pages?

Yes, @john-h-kastner-aws' suggestion would result in the Rust docs linking to these docs.cedarpolicy.com error explanations


Opt out of version check

Hello,
i'm using your great UI for kafka cluster instance and it's perfect : functionality, rapidity, installating in k8s world with helm.
But i try to install this UI in isolated network without internet access so github.com is not allow.
Is it possible to disable call from the ui to https://api.github.com/repos/provectus/kafka-ui/releases/latest and load the font inside the image ?
Like that the UI could be use in isolated network.

@LaurentDanti thank you for the issue!
@Haarolean I think we already have issue created for fonts, maybe we add github call handling to that issue?

hey @LaurentDanti, thanks for reaching out.
I know already at least a few cases in which people successfully use the app in the "air gap" environment (e.g. #1390).
We already have the fonts issue in progress (#2728), we'll keep this open for considering opting out of the version check.

@Fuou we're working on it (#2372)

@Haarolean what's the status here?

@cassanellicarlo it's up for grabs for the 3rd-party contributors since we don't have enough capacity to address this issue.

Hey 🙏 what is the status woth the opt out option?

ok


Add PAPER space

So we can't use our own gov.flush.lol domain in the ENS version. So can we try the old way of creating space?

@flushlol You can have a custom domain for your space with ENS. You will need to add the domain in the domains.json file see here: https://docs.snapshot.page/guides/custom-domain

@bonustrack thank you, I get it


[ContractKit] Add synchronous access methods to WrapperCache

Expected Behavior
Currently the contract kit constructor is asynchronous and i use it like this.
const kit: ContractKit = await newKitFromWeb3(web3, wallet)
I use this method in the initializer of my page and store the result somewhere in a cache or store. But to use the different contracts i have to load all of them individually again which is an additional async/await step every time.
So i ended up with something like this:
export async function loadContractKit(): Promise<ContractKitWrapper> {
    const kit: ContractKit = await newKitFromWeb3(web3, wallet)
    console.log('Contract kit loaded!')

    return {
      kit,
      wallet,
      accounts: await kit.contracts.getAccounts(),
      goldToken: await kit.contracts.getGoldToken(),
      stableToken: await kit.contracts.getStableToken(),
      election: await kit.contracts.getElection(),
      validators: await kit.contracts.getValidators(),
      lockedGold: await kit.contracts.getLockedGold()
    }
}

Which is not ideal. But i think this can be a functionality that contract kit can offer like:
export async function loadContractKit(): Promise<ContractKitWrapper> {

    const kit: ContractKit = await newKitFromWeb3(web3, wallet)
    // preload all the contracts or contracts of choice
    await kit.loadAllContracts()
    console.log('Contract kit loaded!')

    return kit

When loading the contracts the results are stored as a singleton anyway so why not allow access to the object in a synchronous manner it would save the user awaits over awaits

Good feedback!
The problem when designing this was that:

If i make loadAllContracts() optional. I can eagerly load all contracts, but from typing perspective, it's the same so kit.contracts.getAccounts() still needs to return a Promise. (you don't know if loadAllContracts was called)

If i make loadAllContracts() part of newKitFromWeb3() you can then change the types, but we are forcing the user to load all the contracts. And I can imagine you having an error with one contract which you don't want to use. Or making several calls to the registry you don't need. So i didn't want to force that into users.


Remove the log with high frequency and not useful enough

What problem does this PR solve?
Issue Number: ref #5140
Problem Summary:
What is changed and how it works?
Remove the log with high frequency and not useful enough in DDL modules.
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-all-tests

/run-all-tests

/merge

/merge


interface with light sensor

find a place to put the light sensor on the board?

Pretty simple, but I need to figure out my desired brightness range (output varies from 5M ohm to 100 ohm, depending on brightness:
https://learn.adafruit.com/photocells/using-a-photocell
Includes code for getting brighter with lower brightness - not exactly what we want, but easily modified.
It could be made auto-ranging, if desired: http://www.circuitstoday.com/ohmmeter-using-arduino

layout doesn't work well for a functional led; can use the onboard L13 for testing if desired.

Going to ignore night illumination/detection for now.


[Bug]: Pushes to Git Desktop, but how do I have that sync automatically with Github?

Describe the bug
So it appears that when I use the command "create backup" it pushes to Git Desktop. But do I need to manually push it to Github from there?
Also I'm still getting this error message.

Are the two things related?
Relevant errors (if available)
No response
Steps to reproduce
"Create Backup" pushes to Desktop. Then manually push to Github.
Expected Behavior
No response
Addition context
No response
Operating system
Linux

Hello,I had the same problem and I solved it like this (used on ENDEAVOR OS [ARCH LINUX] ):
1.git config --global credential.helper store
2. I manually did a pull, in my case: git push -u origin main
and I solved it!
i found the solution here:https://stackoverflow.com/questions/35942754/how-can-i-save-username-and-password-in-git
The problem in my case was that git didn't have my credentials, and therefore couldn't pull, and since the credentials (username and password) are in the .gitconfig file (and in my case they weren't there) I searched how to add my credentials to the .gitconfig file and I found the answer at the following link:https://stackoverflow.com/questions/35942754/how-can-i-save-username-and-password-in-git


add feature

Hello,
Is it possible to add qps-limit by connection or ip source client ?
Regards,
Nicolas Prochazka

It's a feature in previous version(0.8),  i just forgot to port it into current branch.

I'm using 0.8, i can configure global qps-limit, but is it by client
connection ? ( Ip ? connection ? )
Regards
2016-09-27 3:44 GMT+02:00 yinqiwen<EMAIL_ADDRESS>
It's a feature in previous version(0.8), i just forgot to port it into
current branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yinqiwen/ardb/issues/288#issuecomment-249745078, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABgm0EqBQ6EqJXaBUkVnffspuZzbj9Hrks5quHURgaJpZM4KGjVC
.

The limit is for each listen server.  u can let ardb(0.8) listen on multi ports, and limit the qps for each listen port.
https://github.com/yinqiwen/ardb/blob/0.8/src/statistics.cpp#L71

ok,
is it possible to add a per client connection limit in this case ?
Regards,
Nicolas
2016-09-27 11:09 GMT+02:00 yinqiwen<EMAIL_ADDRESS>
The limit is for each listen server. u can let ardb(0.8) listen on multi
ports, and limit the qps for each listen port.
https://github.com/yinqiwen/ardb/blob/0.8/src/statistics.cpp#L71
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yinqiwen/ardb/issues/288#issuecomment-249809443, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABgm0OMgPx4D6SVkpLGdb-EbergimyR6ks5quN1IgaJpZM4KGjVC
.

yes, it's possible, but it would only be implemented in 0.9

now  ardb-0.9 supoort qps-limit for listen-server/client ip/client connection

ok,
thanks for that.
ardb 0.9 is not compatible with 0.8 branch, that means, that i cannot start
ardb-0.9 on a database ( LMBD ) manage by ardb 0.8 ?
Regards,
Nicolas
2016-09-30 11:02 GMT+02:00 yinqiwen<EMAIL_ADDRESS>
now ardb-0.9 supoort qps-limit for listen-server/client ip/client
connection
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yinqiwen/ardb/issues/288#issuecomment-250695663, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABgm0BNmpS4WIU3mIHqCjQprhdATRX6uks5qvNAXgaJpZM4KGjVC
.

0.9 can not serve with the data stored by 0.8 since the codec format have been changed.
u can save the data stored in 0.8 as a redis dump file and then imported it into a 0.9 instance.

u can save the data stored in 0.8 as a redis dump file and then imported it into a 0.9 instance.

Can you elaborate a little bit about this, seems my 0.8 deployment don't understand SAVE redis documented here.
PING
+PONG
SAVE redis
-ERR wrong number of arguments for 'save' command

@mrluanma  in 0.8, ardb use config 'backup-redis-format' to decide the dump file format, no arguments allowed for  save command.  The wiki is for v0.9.x


Updated delayed responses messages

Trello card
https://trello.com/c/1Ueb7JVi
Context
We added a message to the adviser completion page to warn of slower response times over Christmas. We now need to update this to reflect the continued high demand.
Changes proposed in this pull request
Updated delay message on the completion page
Guidance to review

thanks @philspray - will merge this first thing Monday


Fixed the warning of INotificationService and passed in context

there are some issue. will send it again once it is fixed.


Update sbt-typelevel, sbt-typelevel-site to 0.4.18

Updates

org.typelevel:sbt-typelevel
org.typelevel:sbt-typelevel-site

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

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

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.typelevel" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-patch, commit-count:1

Superseded by #39.


Adding SSM Provider

Adding AWS SSM Provider
Adding logic for parsing parameterized FF's
Adding an example filter

This is severely out of date I think. Closing.


Add time series plots

This will add time series plots to scripts directory and will have the option in the config yaml file to plot only certain variables, as opposed to all declared in diag_var_list
The time series variables get declared in timeseries_var_list and must also be in diag_var_list. It's not ideal and has some redundancy, but this can be addressed in the future if desired.

Note: RESTOM can be declared in the timeseries_var_list w/o its constituents so long as they (FSNT and FLNT) are in the diag_var_list.

It is also set up to plot any derived quantity, the user just needs to create functions to do so. The RESTOM calculation can be used a rough guide.
The script also looks at any variable with vertical levels and ignores it (similar to AMWG tables). In the future it might be nice to have an option to plot variables with vertical levels if single levels are designated, but currently it just skips them.
The time series also calculates seasonally weighted averages based on month length.

Note: RESTOM currently is only calculated annually, not seasonally.

There is also a flag in adf_variable_defaults.yaml to set a rolling 5-year mean. Currently RESTOM is defaulted to this, but can be changed.
In addition, some minor cleanup included:

Add RESTOM config parameters in adf_variable_defaults.yaml
Clean up amwg tables for derived quantities and move RESTOM to top of table
Block out missing seasons on website
Fix error if missing mclim_fils in regrid_and_vert_interp
* Part of Issue 228

Closing due to updated PR coming


Kconfig tree littered with non applicable options

Describe the bug
A MSPI Kconfig has appear that is always enabled despite having no applicable drivers for the hardware and gives a cmake empty source warning: CONFIG_FLASH_MSPI, additionally CONFIG_I2C_AMBIQ_DMA and CONFIG_I2C_DMA_TCB_BUFFER_SIZE are shown to non-ambiq platforms. Additional Kconfigs shown on completely non-applicable platforms:
CONFIG_MTK_ADSP_TIMER
CONFIG_INTC_MTK_ADSP
CONFIG_INTC_ESP32
There might be more present. These should be limited properly and not shown on incompatible hardware.
Environment (please complete the following information):

Commit SHA or Version used:<PHONE_NUMBER>7f4d8625e2dbe1cb7afe4abd690b2e

@raffarost @swift-tk this also applies to your submissions, please send patches

same issue: #74349

One question, how do I keep CONFIG_FLASH_API with a mspi-device compatible? The device driver binding all included that but have a different compact string and DT_HAS_* macro.
If it is not possible, then it is kind of tedious to write all the same kconfig to all mspi devices.

One question, how do I keep CONFIG_FLASH_MSPI with a mspi-device compatible? The device driver binding all included that but have a different compact string and DT_HAS_* macro. If it is not possible, then it is kind of tedious to write all the same kconfig to all mspi devices.

I don't know what you mean, every different device has a different compatible name e.g. nordic flash and stm32 flash are both flash devices but they are not the same flash device, each has a different binding for it

will be fixed in https://github.com/zephyrproject-rtos/zephyr/pull/74356 and https://github.com/zephyrproject-rtos/zephyr/pull/74380

duplicate of https://github.com/zephyrproject-rtos/zephyr/issues/74349

duplicate of #74349

This is the original issue which lists all of the Kconfig options with issues which that issue does not:

CONFIG_MTK_ADSP_TIMER
CONFIG_INTC_MTK_ADSP
CONFIG_INTC_ESP32

This is the original issue which lists all of the Kconfig options with issues which that issue does not:

then please closwe the other one once you have reopened this.

Is there anything related to CONFIG_INTC_ESP32 that still requires fixing?

Is there anything related to CONFIG_INTC_ESP32 that still requires fixing? If yes, how to reproduce/check?

  config INTC_ESP32
        bool "Interrupt allocator for Xtensa-based Espressif SoCs"
        default y if SOC_FAMILY_ESPRESSIF_ESP32 && !SOC_SERIES_ESP32C3 && !SOC_SERIES_ESP32C6
        help
          Enable custom interrupt allocator for Espressif SoCs based on Xtensa
          architecture.

This is visible and selectable to any board/soc when it should not be, it should be
        default y
        depends on SOC_FAMILY_ESPRESSIF_ESP32
        depends on !SOC_SERIES_ESP32C3 && !SOC_SERIES_ESP32C6

@andyross fix needed for CONFIG_MTK_ADSP_TIMER

Ping @andyross