Fails to build on archlinux with serialization-protobuf

archlinux ships protobuf <IP_ADDRESS>, since the crate explicitly requires 3.5.1, the crate fails to build when executing:
cargo check --features=serialization-protobuf

Somewhat related to https://github.com/SpinResearch/RustySecrets/issues/70

Try running ./install_protobuf.sh in the top-level directory of this repository. For simplicitly and due to limited developer hours, we have decided to limit protobuf support to a single version.
We've had problems with protobuf and/or the complementary Rust crate not following semver correctly, and so have decided to pin a single version instead of allowing any semver-compliant version.

@kpcyrd Btw good to see you in a totally different repo :smile:

@nvesely just thought the same :D I ran into this issue while trying to use RustySecrets and I'm consdering creating a friendly fork that uses the same code base for shamir's secret sharing, but uses a nom parser instead of protobuf. (and also takes care of issues like https://github.com/SpinResearch/RustySecrets/issues/71)
I'm going to make sure everything including the licensing is setup in a way that the code can be upstreamed eventually if there's interest. Would that work for you?


Option to include child DGs in location filter

Describe the solution you'd like
An optional parameter for location filter to include all child DGs of the specified DG.
location=DG-A:checkAllchildDG

please validate on develop Docker Container:
docker run --name panosphp --rm -v ${PWD}:/share -it swaschkut/pan-os-php:develop
pan-os-php type=stats in=xyz exportcsv=file.csv location=DGname:includeChildDgs
pan-os-php type=stats in=xyz exportcsv=file.csv location=DGname:excludeMainDg
Please be aware that for type=stats; ALWAYS the main Panorama config and shared information is displayed

introduced with PR: #646


Remove error chain (new)

All the context in is PR #44

Can we tag a new release if everything looks good?

Can we tag a new release if everything looks good?

Is there anything to do to merge the PR?

Is there anything to do to merge the PR?

There's at least one other PR I'd like to try and land before I cut a new release but I plan to do it this week.
Thanks for contributing!

@sebest: I just cut a v0.8.0 release that includes this along with a number of substantial pieces of functionality.


smartcard: implement ListReaderGroups

Rebased #2749
Conflicts:
channels/smartcard/client/smartcard_operations.c
channels/smartcard/client/smartcard_pack.c
channels/smartcard/client/smartcard_pack.h
smartcard_operations: move handling of call argument into functions
The call argument was only use by static functions and was always equal
to operation->call. Remove the argument and use operation-call directly.
Also put the memory allocation and check into the same place.
Conflicts:
channels/smartcard/client/smartcard_operations.c
Updated formatting and API

@T3N4K4 Found some time to rebase this old pr, do you have time to check if this helps your issue?

@bmiklautz @hardening @mfleisz Could anyone have a look to get this one finally merged?

@mfleisz Anything else to correct?


Don't throw exceptions during OpenCL initialization

We need to either return error codes or defer error checking to client code. See http://lwjgl.org/forum/index.php/topic,5519.msg29132.html#msg29132

Work on the OpenCL binding is now complete. All unnecessary abstraction/wrappers have been removed and this issue is no longer relevant.


sanitize arbitrary room display names before creating directories from them

I ran into this problem with a room name containing a /, but there may be more cases worth preventing. Stuff like simple .. is prevented by parts of the string being hardcoded.
There may be more and i'm still testing this, so WIP for now.
Feel free to modify the style of replaced characters to your liking. I like having a _ where another character would have been.

This feels like a dangerous change to make because you are losing information in the process. I think it would be better to use something along the lines of base32 or base64 encoding (with some characters replaced in the case of base64).

this is true, and I had considered this, but I went for this route because it seemed more important being able to browse the downloaded archive human readably. we could just write the unchanged room display name into an additional file?

Whatever approach is taken, I would argue that there should be absolutely no confusion between the true name and a sanitised form of it. So if you're going to write to a new file for the room name, you shouldn't have an alternative version of the same name anywhere in your archive. It should be clear to the user where the true information lies.

more notes/points to discuss:

Windows/NTFS(?) does not support *, ? and : (probably more, should look up a list) in file/directory names.
=> keeping the room ID perfectly intact is not an option either.

emoji should get their alias in textform (using some lookup, there are probably libs for that) added on to enable better searching

@HarHarLinks Thanks for the contribution but I'm in agreement with @ColonisationCaptain that this would cause unwanted information loss. Rather than having to deal with filesystem peculiarities, I think a better approach is to use a content addressable storage approach. So the filename will be a hash of the file contents and the original filename will be stored in some metadata.
I don't see any advantage either of having separate directories anymore for avatars and other room media so I will likely combine them into a single directory.


Forks Github Actions fail on PyPi upload attempt

As of commit https://github.com/CyberGRX/questions-three/commit/3e68ba2d060cd4b168ebe91351d92f430abb0d6d, other users' forks will run Github Actions and their pipelines will fail on the Build and Publish step (due to missing credentials).
Example (link):
Uploading distributions to https://upload.pypi.org/legacy/
Uploading questions_three-<IP_ADDRESS>-py3-none-any.whl

  0%|          | 0.00/85.3k [00:00<?, ?B/s]
  9%|▉         | 8.00k/85.3k [00:00<00:01, 52.3kB/s]
100%|██████████| 85.3k/85.3k [00:00<00:00, 272kB/s]
NOTE: Try --verbose to see response content.
HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.
##[error]Process completed with exit code 1.

@mikeduskis @ToddBradley any advice on how people with forks can handle this? Or is it something that needs to be edited on .github/workflows/publish.yml?
From what I could find online, there are ways of adding conditions to workflow files, or each Fork "owner" would need to disable actions.

Hmm, interesting. I was surprised to hear the workflow is running in your fork, because GitHub's documentation says "Workflows in forked repositories don't run by default."
https://docs.github.com/en/actions/getting-started-with-github-actions/about-github-actions
I guess that part of the doc is wrong. Given that, I think the best workaround is for forkers to disable workflows altogether or modify them to their own purposes, just as they would modify any other part of the code for their purposes. Does that seem reasonable?
As an aside, do you have modifications you'd like to share with other users?

Given that, I think the best workaround is for forkers to disable workflows altogether or modify them to their own purposes, just as they would modify any other part of the code for their purposes. Does that seem reasonable?

Yes seems reasonable!

As an aside, do you have modifications you'd like to share with other users?

There's 3 modifications that I actually think could be useful:

adding a mention to the README that users are should disable Github Actions under some conditions
a Colorized version of the Event logger that can be enabled/disabled via execution flag.
a document explaining how to create a "plugin" for questions-three - for example - let's say I want to create a simple HTML reporter, or a text report that also shares curl format of requests sent on the HTTPClient, or even the colorized event logger mentioned above: how could a contributor go about of either creating a separate "plugin" repo or submitting a PR to be added to the main questions-three codebase, depending on the feature, with an easy-to-follow example.

All three of those sound useful to me. Wanna put together a PR for each one?


Qt versions besides 5

I guess it is not feasible to support Qt 4 too, as aqt does not support it as far as I have seen?
But at least aqt now supports Qt 6, but you always set Qt 5 environment variables.

Good suggestion.

What would it take to support Qt 4? I have a project I'm working on setting up some build actions for and it requires Qt 4 (https://github.com/cjbarth/QGifer).

Aqtinstall does not support Qt 4--https://github.com/miurahr/aqtinstall/issues/148
I believe the Qt distribution servers dont have Qt4 on them.
Basically, to support Qt 4, it would have to be an entirely different project.


Code/script to reproduce val loss using the shared models

Hi,
does anyone know if there is a script/code to reproduce val loss using provided "*.bin" models? I've tried myself and can't get the numbers shared.
Thank you.

in my case loss values are slightly higher - is it the same for you? ie 1.072 for 15M model is my case is 1.0833 and 0.760 for 110M model jumps to 0.8725 @DavidHerel
Thank you

Yeah, I think it was something similar to you.


Replacement for libtcc

Currently some nodes (paint, file read/write) are coded in C using libtcc. There are some unrecoverable errors, will not work in JS world because of JIT and I don't feel like recompiling libtcc with emscripten. I'm looking for alternative solution. 1 might be to replace it with a JS interpreter. What are other options?

Hey @CedricGuillemet
This is probably a big dependency (LLVM), but what about Open Shading Language? It is what Gaffer decided on for leveraging OSL for more than just shading but also mesh deformation and expressions.
Another idea is what about SPIRV-Cross with ISPC? https://software.intel.com/en-us/articles/spir-v-to-ispc-convert-gpu-compute-to-the-cpu
HLSL or GLSL compute could just be used then which could be really cool.

The need is much more simple. Only simple commands to run to change parameters on the rendering target/blend mode,...

AsmJit and Blend2D ?

No more like lua or angelscript

mruby
Wren
Squirrel
Lily
...
Embedded scripting languages

duktape looks nice

lvg uses libtcc and picoc. Maybe it will useful for you.


BikeCommonFlagEncoder should respect  "oneway:bicycle=no" AND  "cycleway=opposite"

Currently the bike flag encoder does not respect "cycleway=opposite".
It should respect both "oneway:bicycle=no" AND "cycleway=opposite"

This should be handled - do you have an example where this is failing?

Hi!
It fails on
https://graphhopper.com/maps/?point=50.167704%2C8.619938&point=50.169628%2C8.622122&vehicle=bike&locale=de-de&elevation=true&layer=Lyrk
I've made a fix on openstreetmap for that, but I think it's better to have
that behaviour inside graphhopper since the suggestion on the wiki also
states that both ways of tagging are valid
Peter<EMAIL_ADDRESS>schrieb am Mo., 1. Juni 2015 um 13:15 Uhr:

This should be handled - do you have an example where this is failing?
—
Reply to this email directly or view it on GitHub
https://github.com/graphhopper/graphhopper/issues/429#issuecomment-107402840
.

Thanks

I've made a fix on openstreetmap for that

What needed to be fixed here?
Again, it should already support both tags. Would you include the detailed tagging before and after your change?

Hi! Changeset is at http://www.openstreetmap.org/changeset/31630269

It's

what I've added
Peter<EMAIL_ADDRESS>schrieb am Mo., 1. Juni 2015 um 13:28 Uhr:

Thanks
I've made a fix on openstreetmap for that
What needed to be fixed here?
Again, it should already support both tags. Would you include the detailed
tagging before and after your change?
—
Reply to this email directly or view it on GitHub
https://github.com/graphhopper/graphhopper/issues/429#issuecomment-107407001
.

The problem occurs in case that both tags oneway and oneway:bicycle are present. In this case the setting from oneway:bicycle should be taken, but this in not the case. I intend to create a pull request.

I added a testcase where both tags are present: oneway=yes and oneway:bicycle=no and this test passes: assertTrue(encoder.isForward(flags));  assertTrue(encoder.isBackward(flags)); So I can't see any problem.

The problem might be because of cycleway:opposite? If I understand the issue correctly bike is allowed in both directions, right?

I understand it the same way that both directions are allowed for bike. A test assertTrue(encoder.isForward(flags)); assertTrue(encoder.isBackward(flags)) passes in case of all 3 tags are present: oneway=yes, oneway:bicycle=no and cycleway=opposite.

The following did not pass (fixed it):
        way.clearTags();
        way.setTag("highway", "tertiary");
        way.setTag("oneway", "yes");
        way.setTag("cycleway", "opposite");
        flags = encoder.handleWayTags(way, encoder.acceptWay(way), 0);
        assertFalse(encoder.isForward(flags));
        assertTrue(encoder.isBackward(flags));

@chrissssss thanks again for reporting and @ratrun for keeping the thumb on it :) !
@ratrun would you review the fix please? I'm not 100% sure why the oppositeLane check was in the first if

@karussell: I `can't follow your modification. I think that it is wrong and needs to be reverted.
See the description about "opposite" on http://wiki.openstreetmap.org/wiki/Key:cycleway
The former code was ok, where following test passed:
        way.clearTags();
        way.setTag("highway", "tertiary");
        way.setTag("oneway", "yes");
        way.setTag("cycleway", "opposite");
        flags = encoder.handleWayTags(way, encoder.acceptWay(way), 0);
        assertTrue(encoder.isForward(flags));
        assertTrue(encoder.isBackward(flags));

Maybe this test should be added.

Strange, I was pretty sure I've read that it should go opposite direction but the wiki is indeed different and says:

Use cycleway=opposite for situations where cyclists are permitted to travel in both directions on a road which is one-way for normal traffic

But this means that this issue reporter had also the incorrect assumption of opposite (?)
I'll revert!

@chrissssss do you agree and we can close?

Hi @karussell and @ratrun!
I've just made a quick look at the web interface with the following:
./graphhopper.sh extract  8.61635,50.16616,8.62804,50.17143
The routing is just as it was, but maybe my local git repo is a little weird. I'll have a look at it tomorrow and give you a short reply.

Hi!
Sorry, now you've got me confused.
All is based on:
Sub keys / exceptions
Oneway can be used in conjunction with vehicle type in order to tag exceptions. I.e. oneway:moped=no for a one-way streets where mopeds are allowed to drive in the opposite direction. Bicycles (oneway:bicycle=no) are handled specially and cycleway=opposite/opposite_lane/opposite_track needs to be added for compatibility: (See Key:access for sub-values or Bicycle for examples).
Let's summarize:
If a one-way is tagged either cycleway=opposite OR oneway:bicycle=no it's allowed for cyclists.
That broke with your fix, I think. You (kind of) fixed the test, but luckily ratrun intervened.
When I'm looking at my issue, it still persists: In the given example there is "Spielsgasse" which is a one-way street with permission to use in both ways for cyclists. Sadly graphhopper does not permit me to cycle through and routes me around.
So would you reopen it or do I not get the point?

Well, I think I've made clear what I tried to achieve. Please review the pull request.
BTW: Is this the preferred way to contribute?

Finally: can be left closed, forget the pull request because it changed nothing. Having looked at the data the problem was in there.
Should be corrected with https://www.openstreetmap.org/changeset/31957611 where ids 28301888 and 4764754 are now tagged "oneway:bicycle": "no" which was missing before

Thanks!


q: behaves strangely

I'm not sure what happens but q: seems to actually put you in command editing mode but doesn't open a new window or dialog, and can't be exited with :q (it can however be exited with <CR>)

Ex command-line is not supported yet. I'm not sure it will be ever

Fortunately you can use context menu and paste from system clipboard, which is my 99% use cases of q: in Vim.

Duplicate of #505


Is the ccu node also working without redmatic

I am running node red on a separate device and would like to contect to standard ccu2.
Is this possible? I did not install the addon on this ccu because the ccu2 too weak to run node red.
When configuring the ccu it seems to recognize the IP of my ccu2 and also its name but then I am not sure what to enter for init address and listen address. I have entered the IP for my node red server and realized that I cannot not enter a listen address anymore. This field cannot be changed.
Also do I have to keep the port settings?
I have noticed from iobroker that my ccu normally listens on 2001 not the default ports 2061 for bin-rpc.

Yes, that's possible. You can leave the init address empty. Default port settings should be fine. These are not the Ports node-contrib-contrib-ccu is connecting to - these are the ports where node-red-contrib-ccu opens its own listeners.

Thanks


Fix warnings/errors in pyhf runner

At the beginning of the pyhf runner, we get an mpl warning that would be nice to address (or suppress):
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-6rp1fl71 because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
At the end of running pyhf, we get a crash when trying to make plots:
running scan
printing results
Observed limit: 1.095956999359581
Expected limit: 1.105
      -1 sigma: 0.793
      +1 sigma: 1.552
      -2 sigma: 0.600
      +2 sigma: 2.000
making plot
Traceback (most recent call last):
  File "/scripts/muscan.py", line 100, in <module>
    brazil.plot_results(ax, poi_values, results)
  File "/usr/local/lib/python3.8/dist-packages/pyhf/contrib/viz/brazil.py", line 326, in plot_results
    cls_obs = np.array([test[0] for test in tests]).flatten()
  File "/usr/local/lib/python3.8/dist-packages/pyhf/contrib/viz/brazil.py", line 326, in <listcomp>
    cls_obs = np.array([test[0] for test in tests]).flatten()
IndexError: invalid index to scalar variable.

Maybe with pyhf, we need to run with MPLCONFIGDIR=/tmp ? I wonder why the docker image is /.config default anyway @matthewfeickert?

@mhance What's the Docker image that you're using? Can you give a minimal example?

https://github.com/scipp-atlas/mario-mapyde/blob/main/Dockerfiles/pyplotting-cuda -- this is the docker image. Seems that the issue is just with this one.

This one is due to the user permissions when we go into the image inside mapyde
kratsg@slugpu:~$ docker run -it --rm -u $(id -u):$(id -g) ghcr.io/scipp-atlas/mario-mapyde/pyplotting-cuda:latest
groups: cannot find name for group ID 1002
I have no name!@acf4275d0230:/$ python3.8
Python 3.8.0 (default, Feb 25 2021, 22:10:10)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-ub1jf38w because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.

Looks like the brazilband warnings were subtly informing us of some changes in pyhf/contrib:
https://github.com/scikit-hep/pyhf/commit/f6b4198916cc3e4f9afafacfa58c8e69709d2007
Fortunately that was easy to fix.  Now we're left with a residual warning:
/usr/local/lib/python3.8/dist-packages/scipy/optimize/optimize.py:282: RuntimeWarning: Values in x were outside bounds during a minimize step, clipping to bounds
  warnings.warn("Values in x were outside bounds during a "

will look into that next.

I don't think that's obviously something that I can fix -- seems to be coming from within the scan.  So I think we can close this issue.


DOC: sparse: update sparse portion of roadmap.rst and roadmap-detailed.rst

Enough progress has been made on sparse arrays, and enough time has passed since the roadmap was adjusted. So it's time to update the sparse portion of the SciPy Roadmap.
This PR updates the roadmap.rst and roadmap-detailed.rst to reflect the path toward supporting sparse array data structures in scipy-sparse. It also includes the steps to help heavy-user libraries to sparse arrays from sparse matrices, and to provide helpful transition guides and scripts for smaller libraries.
This same information was posted to the scipy-dev mailing list. But I expect some conversation here as well. Let us know your reactions and thoughts on this plan to move from matrices to arrays.

Thanks @stefanv
I have made your recommended changes and in the process found a some more.

We can still debate some of the nuances of the direction in depth, but I think this already gives much greater insight into the work than what is published, so going to go ahead and merge.


[BUG] Image & hyperlink adding issue

The image adding feature does not work for me properly as of now.
Apart from that I am not able to create a hyperlink in the app

What should work though is just pasting an existing URL into the app, that way you should still get a clickable link in your note

Thanks for the workaround - able to paste URL and then edit the text.

The hyperlink button in the note editor is now fixed should work as intended in Yana 1.0.10.
Image adding is already tracked by #15, so I'll close this.


i am using voyager admin panel when after sometime i am click on logout  i getting verify csrf token mismatch ,please suggest !!!

Laravel Version: 5.3
Voyager Version: ^0.11.12
PHP Version:
Database Driver & Version: mysql

Description:
i am using voyager admin panel when after sometime i am click on logout logout i getting verify csrf token mismatch ,please suggest !!!
Steps To Reproduce:

that's normal if you stay on the same page for a long time and then clicking logout will get you that warning

@laravelish  how i can remove this warning ?

@ritu4455 https://laravel.com/docs/5.4/csrf

not working .

read it again

Check your APP_URL in .env
Make sure the path is http://localhost:8000 or <IP_ADDRESS>:8000

Labels: invalid


faidx could not get contig length

I am doing the nanopolish variants for the variant calling of the amplicon fastq file. My reference file is the contig fasta, and the error shows that the faidx could not get the contig length of "contig1: 1-xxx". I am confused with this, and my command is as follows:
nanopolish variants --min-flanking-sequence 10 -x 1000000 --progress -t 4 --reads barcode02.fastq -o barcode02.2.vcf -b barcode02.bam -g LPS_lpg0777.reference.fasta -w "4658:1-1035" --ploidy 1 -m 0.15 --read-group 2
Btw I did the nanopolish index in the first step, and it worked well

Hi,
Can you paste the exact error message, directly from nanopolish?
Jared

I got a similar message when doing nanopolish. Below is the exact error message
faidx could not get contig length for contig contig_1

I got a similar message when doing nanopolish. Below is the exact error message
faidx could not get contig length for contig contig_1

@vappiah it looks like it is continually trying to build the .fai file and failing (from the [fai_load] build FASTA index). Do you have write permission to the location where the contigs are stored? I suggest trying to run samtools faidx assembled_genome.fasta before nanopolish, where assembled_genome.fasta is where you are passing in -g.
Jared

@vappiah it looks like it is continually trying to build the .fai file and failing (from the [fai_load] build FASTA index). Do you have write permission to the location where the contigs are stored? I suggest trying to run samtools faidx assembled_genome.fasta before nanopolish, where assembled_genome.fasta is where you are passing in -g.
Jared

@jts I have permission.
The assembled genome and the reads are all in the same folder and I even cd to that folder. I even realized the the .fai is already created there

@jts I have permission.
The assembled genome and the reads are all in the same folder and I even cd to that folder. I even realized the the .fai is already created there

@vappiah is this still an issue or can I close this?

@jts I have resolved the issue. Thanks

Glad to hear it.


Getting only last selected option at multi select using PHP

i am trying to get selected values at multi select control but its only get last selected option.

Man
Woman
Couple (Man & Woman)
Couple (Man & Man)
Couple (Woman & Woman)

PHP
$this->input->post('cat');
i won't get other value but last one, anyone here who may guide me to solve this

Found a alternate solution

Man
Woman
Couple (Man & Woman)
Couple (Man & Man)
Couple (Woman & Woman)

Create

it won't create issue when use html multiselect but when i use select2 js liabrary it only select last selected option.
it would be better, if only use php,

I just solved this problem. It was due to my select entity form name not having brackets, which flags it as an array to PHP. E.g.

Unfortunately this issue is pretty specific to PHP, but it's also fairly well documented, so I don't think we're going to add a note about it in the Select2 documentation. If more bug reports roll in about it, we might reconsider that decision.


Transient uninitialized constant Devise::Encryptor error

Hey there,
We started seeing the uninitialized constant Devise::Encryptor error intermittently after upgrading devise to 3.5.1. We see it when we create a new user with a password. Any thoughts  ?
Thanks!

We need to release a bug fix. I will try to do it tomorrow.

@josevalim given d9939d1ea01e53a53023511f48491544821bea3d  we can close this one, right?

Yup. Thanks @josevalim and @lucasmazza.

On Aug 13, 2015, at 8:22 PM, Lucas Mazza<EMAIL_ADDRESS>wrote:
@josevalim given d9939d1 we can close this one, right?
—
Reply to this email directly or view it on GitHub.
--
You received this message because you are subscribed to the Google Groups "thinkalike-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to<EMAIL_ADDRESS>To post to this group, send email to<EMAIL_ADDRESS>To view this discussion on the web visit https://groups.google.com/d/msgid/thinkalike-dev/plataformatec/devise/issues/3693/130941934%40github.com.
For more options, visit https://groups.google.com/d/optout.


On the relationship between ResultSet and PreparedStatement

I've worked myself into an unhappy spot.
Basically, I'm building an API which wants to return a set of rows.  The API is not sqlite-specific, but this implementation of it is.
Normally I would just return a struct that wraps the sqlite3_stmt.  Something like this:
struct MyRows {
    stmt: PreparedStatement,
}

Currently I am trying to code against the core layer of rust-sqlite3.  So in order to return a struct that contains what I need, it has to look kinda like this:
struct MyRows {
    stmt: PreparedStatement,
    rset: ResultSet,
}

But ResultSet is a reference to a PreparedStatement, so Rust isn't going to allow this.  (Google for things talking about a struct which contains both data and a reference to it.)
Basically, right now I wish that ResultSet owned its PreparedStatement instead of having a reference to same.  Then I would just do this:
struct MyRows {
    rset: ResultSet,
}

But I also realize that if it were designed this way, I would very likely be wishing for the other approach, since I would want the ability to reuse the statement handle after the current result set has been processed.
I think maybe I wish that ResultSet didn't exist at all, which means I would end up with an API more similar to the sqlite3 API to which I am accustomed.  But I haven't worked through the implications of that here in Rust land.
I could get around this by coding against the ffi layer instead.  And I might end up doing that.  But for now I wanted to raise this issue about the design of the core layer.

This is now Somebody Else's Problem :)
See #46


Followup Table.materializer and LazyArrays

Context: https://github.com/alan-turing-institute/ScientificTypes.jl/issues/49
Discussion at Tables.jl: https://github.com/JuliaData/Tables.jl/issues/122
Keeping this issue here as we should remove the hack around Table.materializer when we have a better solution

This is now fixed by https://github.com/JuliaArrays/LazyArrays.jl/pull/86 which should allow to remove one of the hacky is_type in ScientificTypes

now done


enforce upper bound on max steps

This change is

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:loudspeaker: Thoughts on this report? Let us know!.


PartialEq for ...Struct Symmetry Bug

When looking into #214, I discovered a bug where according to our implementation of PartialEq for OwnedStruct, the following happens:
{a: 1} == {a: 1, b: 2}
{a: 1, b: 2} != {a: 1}

The problem is that when a struct that is the subset of another is compared on the left hand side, the algorithm does not check to make sure all elements in the right hand side are in the left.
While I can conceive of a test that can be added ..._element_accessors test function, I believe very strongly that we do the proper equivalence class testing and non-equivalence class testing separate of those tests to consider this bug fixed.

When fixing this, we should un-comment these skip lists:
https://github.com/amzn/ion-rust/blob/e2fd5245b8c5ec7e676ee6043864224cfd685da0/tests/loader_test_vectors.rs#L57-L58


Enabling debugging increase the message size

Hi! Is is expected that the enabling the debug mode for websocket would increase the message size? I have a situation for a quite big answer that i can receive without problem but with debugging enabled i get this:
DEBUG:websockets.protocol:client - event = data_received(<8196 bytes>)
DEBUG:websockets.protocol:client - event = data_received(<8196 bytes>)
DEBUG:websockets.protocol:client ! failing OPEN WebSocket connection with code 1009
DEBUG:websockets.protocol:client - state = CLOSING
DEBUG:websockets.protocol:client > Frame(fin=True, opcode=8, data=b'\x03\xf1', rsv1=False, rsv2=False, rsv3=False)
DEBUG:websockets.protocol:client ! timed out waiting for TCP close
DEBUG:websockets.protocol:client x closing TCP connection
DEBUG:websockets.protocol:client ! timed out waiting for TCP close
DEBUG:websockets.protocol:client x aborting TCP connection
DEBUG:websockets.protocol:client - event = connection_lost(None)
DEBUG:websockets.protocol:client - state = CLOSED
DEBUG:websockets.protocol:client x code = 1006, reason = [no reason]
ERROR:root:code = 1006 (connection closed abnormally [internal]), no reason
Traceback (most recent call last):
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
    message = await self.read_message()
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 950, in read_message
    frame = await self.read_data_frame(max_size=max_size)
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
    extensions=self.extensions,
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/framing.py", line 127, in read
    f"payload length exceeds size limit ({length} > {max_size} bytes)"
websockets.exceptions.PayloadTooBig: payload length exceeds size limit (8192 > 0 bytes)

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

Traceback (most recent call last):
  File "/home/adrian/bin/alien.py", line 1159, in SendMsg_json
    result = await wb.recv()
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
    await self.ensure_open()
  File "/home/adrian/.local/lib/python3.7/site-packages/websockets/protocol.py", line 812, in ensure_open
    raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
DEBUG:root:SendMsg_json:: Websocket connection was closed while waiting the answer. Either network problem or ALIENPY_TIMEOUT should be set >20s
DEBUG:root:WB ping failed!!!
ERROR:root:code = 1006 (connection closed abnormally [internal]), no reason

Any idea why debugging would increase the message size? (i had 16MiB, going to 17 solved the problem). Can i monitor/record the message sizes that the client receive?
Thank you!

(8192 > 0 bytes) suggests that you set max_size to 0. This doesn't work. Try None instead.

not really, initially it was 16 MiB and now is 20 MiB see https://github.com/adriansev/jalien_py/blob/master/xjalienfs/alien.py#L1335

Are you able to add some debug logs around the point where PayloadTooBig is raised, to check the value of max_size there? Perhaps it's just a problem with the log message, or perhaps websockets lost the proper value of max_size somewhere.

Since the discussion has stalled a few months ago, I'll close this issue now.

yeah, sorry, i just had to make things work and i increased the max_size until problems went away. also, if i'm the only reporter/observer of such a problems i will assume by default that the problem is mine :). Thanks!


feat: Add the finals

@Flowtter sorry if spam but I have a question: you say in the readme that in the finals there is no kill symbol, but you must already know that there is a "KILLED PLAYER" text appearing on screen on every kill (and every action-on-objective) so I was wondering what was the problem in implementing this feature?
Thanks for the work by the way!

The KILLED PLAYER text only appears if you have the game in English, and it's also quite a long "symbol", so asking crispy to look for it would be more time-consuming and less effective than the current solution


Feature Request - Provide symbol type to format function

Hey 👋🏾
Thanks for this cool plugin. This could finally replace my incomplete local version of this feature 😄
I'm currently customizing the formatting a little. And I realized that for functions, there will be always one implementation. Which is obvious. So I would like to ignore them for functions. But therefore I need to know which kind of symbol I'm formatting for. Would that be possible to add as part of the input data? 🙂
Best regards ✌🏾

Okay, I have a local branch of the plugin to possible open a PR. But I realized it is actually not possible to return something "empty" from the formatting function that would make the mark not appear at all. Like it would create an empty line then.

I just figured out that I could do the same using a "smart" format function and explicit kinds lists for each method. So this feature is actually not necessary. This way it is even more efficient.


Add support for Alpine Linux 3.8

Depends on https://github.com/resin-io/contracts/pull/37

Merging since https://github.com/resin-io/contracts/pull/37 was merged


Admin Block Extension useApi() -returned data object's selected property is empty when targeting 'admin.order-details.block.render'

Please list the package(s) involved in the issue, and include the version you are using
Using package versions:
{
  // ...
  "@shopify/ui-extensions-react": "2023.10.0" // also tried this with the new 2024.1.1, same issue
  "@shopify/app": "3.48.0" // also tried this with 3.53.0, same issue
  "@shopify/cli": "3.48.0" // also tried this with 3.53.0, same issue
  // ...
}

Describe the bug

I am actively developing an Admin Block extension for my app.
My target is 'admin.order-details.block.render'.
My app is installed and configured with these scopes: "write_products,read_orders,write_orders,read_products,write_order_edits"

While developing today (running shopify app dev via CLI) I observed that now when my block extension desctructures the response from the useApi hook, the data object's selected property is an empty array. This is not the case for the Admin Action extension I am also developing - that data object's selected property still looks correct:
[ { "id": "gid://shopify/Order/123456789" } ]
Steps to reproduce the behavior:
# shopify.extension.toml
api_version = "2023-10"

[[extensions]]

name = "test block"
handle = "test-block"
type = "ui_extension"

  [[extensions.targeting]]
  module = "./src/index.tsx"
  target = "admin.order-details.block.render"

// src/index.tsx
import React from 'react'
import { useApi, reactExtension, AdminBlock, Text } from '@shopify/ui-extensions-react/admin'

const TARGET = 'admin.order-details.block.render'

export default reactExtension(TARGET, () => <App />)

export const App = (): React.ReactElement => {
  const { data } = useApi(TARGET)

  // Until today, orderId was defined, but now it is undefined:
  const orderId = data.selected[0]?.id
  console.log(orderId) // -> undefined

  console.log(data.selected) // -> []

  // ...

  return (
    <AdminBlock title='testing'>
      <Text>this will be undefined: {orderId}</Text>
    </AdminBlock>
  )
}

Expected behavior
useApi should behave consistently with respect to its returned data. If rendering on a target for a page where data.selected is applicable, the selected array should contain valid data, and should not be empty.
Screenshots
Admin Block (unexpected result)

Admin Action (expected result)

Additional context
This was definitely working as expected last week 👍
Thanks in advance!

Hi @milesmcleod I can't seem to replicate this one. When I log the data object, the product gid is present:

Is this still broken for you?

How can I update metafields?
  const { i18n, data,applyMetafieldsChange } = useApi(TARGET);
  try {
    const result = applyMetafieldsChange({
      type: "updateMetafield",
      namespace: "custom",
      key: "product_backorder_id",
      value: "Hello world",
      valueType: "single_line_text_field",
    });
    console.log(result);
  } catch (error) {
    console.log(error.message);
  }

The above code throws error : => applyMetafieldsChange  not a function.


Exercise Tracker first test false positive

Describe the Issue
on the exercise tracker website, the first test says "You should provide your own project, not the example URL.".
obviously i provided the example URL, but then the test has passed.
Affected Page
https://www.freecodecamp.org/learn/back-end-development-and-apis/back-end-development-and-apis-projects/exercise-tracker
Steps to Reproduce

Go to the website
Scroll down to 'Solution Link'
enter https://project-name.camperbot.repl.co/ (the example URL)
click on 'I've completed this challenge'
test passes

Expected behavior
the first test should fail.
Screenshots

System

Device: [laptop]
OS: [Windows 11]
Browser: [Chrome]
Version: [106.0.5249.103]

Additional context
No response

Please confirm if the issue is resolved

This one fails if you use the sample project provided at the top of the page

Build a full stack JavaScript app that is functionally similar to this: https://exercise-tracker.freecodecamp.rocks/.

The palceholder url doesn't point anywhere and all the other tests fail

@ieahleen oh, i guess there are 2 example URLs, i misunderstood. should i close this?
or do you want me to create a PR to clarify the description (or even better, use the same URL in both cases)?


WIP: Switch from flask-restplus to flask-restx

Motivation for changes:
Flask-RESTPlus is abandoned, and is no longer compatible with the latest version of  werkzeug, on which it depends. The community has forked the project, and created Flask-RESTX, which seems to be a drop-in replacement.
Detailed changes:

change flask-restplus==0.10.1 out for flask-restx==0.2.0 (the latest stable release of flask-restx).
change all references to flask_restplus to flask_restx

Addressed issues:

Fixes https://github.com/Flexget/Flexget/issues/2681 .

To Do:

The API test test_crash_logs_without_crash_log fails, but the same seems to happen with develop, so I think that test was already broken

LGTM


Feature gripper interface

Enabled to assign separate hardware interfaces for grippers and arms
Added corresponding controllers for the grippers in yumi_control/controllers.yaml
Changed launch files accordingly

Superseded my recent mods in feature-egm


Feature request: add node names and IPs to /etc/hosts

Use Case: as an administrator I want to connect to individual nodes of a cluster to check settings, apply upgrades or debug & fix errors.
Currently I have to find out the IP address of the node to connect via SSH. I would be very convenient to have the node names and their IP addresses in the /etc/hosts so that I can just ssh blue-worker-02
As a workaround I am currently auto-filling the /etc/hosts via
npm install -g json
json -f .hetzner-kube/config.json clusters | json -a nodes | json -ag ip_address name >> /etc/hosts

This is less than ideal as I have to update the file manually. Also removing nodes is not covered.

Additionally adding the hostname of the node to the .ssh/known_hosts would help when using parallel-ssh


I am running HOOBS, how do I execute tuya-lan-find?

Since HOOBS doesnt use terminal, how do I execute tuya-lan-find from HOOBS interface?

This probably defeats the purpose of getting an appliance but as far as I can tell you only need to do the setup (find the key and id) once for each device, so you could run a software version temporarily and then add the config to your HOOBS instance.

Hi, once I install the plug in, do I just type execute “tuya-lan-find” in the Terminal? Can you please give me a little more detail on getting id and key. I’m new to this and coding.

Hey @alifmusa, I'm just going through these steps myself and in my instance, the Hoobs server is running on the default port tuya-lan-find uses (8080), so I received the following error
Error: Error: listen EADDRINUSE: address already in use :::8080

To fix this, I had to update to the latest rc version:
sudo npm i -g homebridge-tuya-lan@rc

and then re-run the command specifying an available port:
tuya-lan-find --port 8081

That generated the QR code as expected.

@nbaosullivan I replicated your steps, however it seems that the --port flag isn't being accepted as I get the same result (I'm running this in the HOOBS terminal). What am I missing? Do I need to relaunch Tuya Lan or do something else first?
`hoobs@hoobs:/home/hoobs/.hoobs/etc $ sudo npm i -g homebridge-tuya-lan@rc
/usr/local/bin/tuya-lan-find -> /usr/local/lib/node_modules/homebridge-tuya-lan/bin/cli.js

<EMAIL_ADDRESS>added 61 packages from 53 contributors in 20.192s
╭────────────────────────────────────────────────────────────────╮
│                                                                │
│      New minor version of npm available! 6.13.4 -> 6.14.4      │
│   Changelog: https://github.com/npm/cli/releases/tag/v6.14.4   │
│               Run npm install -g npm to update!                │
│                                                                │
╰────────────────────────────────────────────────────────────────╯

hoobs@hoobs:/home/hoobs/.hoobs/etc $ tuya-lan-find --port 8081
Error: Error: listen EADDRINUSE: address already in use :::8080
at Server.setupListenHandle [as _listen2] (net.js:1306:16)
at listenInCluster (net.js:1354:12)
at Server.listen (net.js:1442:7)
at /home/hoobs/.hoobs/node_modules/http-mitm-proxy/lib/proxy.js:95:23
at /home/hoobs/.hoobs/node_modules/http-mitm-proxy/lib/ca.js:132:12
at /home/hoobs/.hoobs/node_modules/async/dist/async.js:3888:9
at /home/hoobs/.hoobs/node_modules/async/dist/async.js:473:16
at replenish (/home/hoobs/.hoobs/node_modules/async/dist/async.js:1006:25)
at iterateeCallback (/home/hoobs/.hoobs/node_modules/async/dist/async.js:995:17)
at /home/hoobs/.hoobs/node_modules/async/dist/async.js:969:16 {
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '::',
port: 8080
}`

hi i also cant seem to run the change of port and get this:
Error starting proxy: Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-tuya-lan/bin/certs'


ExecutionPlan: acquire necessary locks before collecting mutation info

When the collection of task outputs on a node triggers a configuration resolution,
we want to make sure that the lock on the project is acquired before.
If not, the DefaultConfiguration.resolveToStateOrLater method will attempt to
get a lock, and in so doing will free all other ExecutorWorker waiting to
find a new node. This leads to executionQueue iterators from different threads
to work at the same time with possible "ConcurrentModificationException" occurring.
Signed-off-by: Emmanuel Guerin<EMAIL_ADDRESS>This is an attempt at fixing #17905
Contributor Checklist

[x] Review Contribution Guidelines
[x] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[x] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass sanity check: ./gradlew sanityCheck
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

Thank you for your pull request. While your solution may work for some cases, like when resolving the inputs only need a lock for the current project, this can easily fail in the more general case. The solution we thought of would be to split out the resolution of the output (mutations) to a separate node in the execution graph, and then we wouldn't try to resolve the inputs/outputs/mutations while we are holding the coordination lock.

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

I'll run this change through CI now, if it doesn't incur any performance regression or break some other use-case, I think this is something we could do as a first step.

Hello. Thanks for the review. Indeed, I was pretty sure that my fix was incomplete as the problem looked more structural to me.
I've discovered your fix 2 days ago. I haven't tried it yet on our particular use case but it probably fits the bill as well. I'm on vacation with a bad connection, so I won't probably be able to try, but it would be great if any fix can make the 7.2.

@bot-gradle test this

Sorry but I'm afraid you're not allowed to do this.

Hello @wolfs . I'll be back from holidays on Tuesday. I did get a chance to check our bug on master with your change but not mine, and I still get the deadlock.

@emmanuelguerin Which changes on master do you refer to, I didn't do any fixes there to fix this bug.
Regarding the overall change, I wonder what risk this introduces to create a new set of deadlocks for builds which work today. It seems that we don't have much test coverage for the kinds of problems which appeared here. Because of that, I am tempted to close this PR and wait until we have time to work on a better solution for the problem.

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

@emmanuelguerin Which changes on master do you refer to, I didn't do any fixes there to fix this bug.

I misunderstood. In your previous message, I
Thought you implied that the bug was fixed by another PR. 😉
I will probably make a custom release of Gradle with my fix tomorrow and see how our own build works with it during a few days.
I will also try a little harder to find a sample project that allows to reproduce the deadlock that we have.

Hello @wolfs. We've been running a fork of Gradle with this pull request and it has successfully eliminated the problem without apparently causing any regression (we run ~70000 builds a week). I've also tried on the latest master branch, and the deadlock is apparently still there. Any news on a fix for the issue?

Thanks, is there anything that I can do to help? Were the failing tests due to the change or something else?


Duplicated function/method

This function already exists on the object, why add an identical one inside the function?
https://github.com/kennethreitz/responder/blob/78b5bef879380146d0bf14b35e0fd618d9694971/responder/api.py#L645-L647
Original definition:
https://github.com/kennethreitz/responder/blob/78b5bef879380146d0bf14b35e0fd618d9694971/responder/api.py#L624-L627

Hey, actually they are not identical, not the prototype :3.
The why ? The apistar template expects a function with asset as an argument to and returns its static url.
What we can do here is something like
def static_url(asset):
    return self.static_url(asset)

But I don't know why we didn't do it earlier

Closed via #357


Reusing Schemas

We're trying out the latest from master, but we can't seem to find how to reuse schema's like in the old version:
https://dry-rb.org/gems/dry-validation/0.13/reusing-schemas/
Is there a new way to reuse schemas with Dry::Validation::Contract?

schemas in dry-validation use dry-schema now, so you can re-use schemas the same way there https://dry-rb.org/gems/dry-schema/reusing-schemas/
ps. please don't ask support questions in Issues. See CONTRIBUTING.md for more info.


Macromolecule properties should include extinction coefficient

The coefficient calculation should be performed via the toolkit web service.

We need the online HelmToolkitWS to support GET to avoid cross-domain issue:
"Is it possible to modify the RESTful web service to accept QueryString (GET) as well?  Because of cross-domain issue, other web applications cannot POST data to your domain.
http://<IP_ADDRESS>:8080/WebService/service/Calculation/MoleculeProperties "

Tianhong's comments on how to enable CORS:
I added the following to the web.xml file for HELM2WebService, which enables CORS for all services, including POST:
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

Extinction Coefficient is implemented in the javascript side in 2016-09-23 udpate

Confirmed fixed. Close.


Pseudo selector does not support functions

I have the following style
const style = injectSheet({
  colored: {
    background: ({ theme }) => theme.color.primary.normal,
    '&:first-child': {
      paddingLeft: 5,
      background: ({ theme }) => theme.color.primary.light,
    },
  },
})(MyComponent)

While all elements get the normal color and the the first one get the additional padding, the first one don't get the different background

#84 might be related

Fixed, check out react-jss 6.0


Feature: API - Full CRUD Functionality

API Gives access to full CRUD.

[ ] WHEN I test API POST, PUT, and DELETE routes in Insomnia
[ ] THEN I am able to successfully create, update, and delete data in my database

Fill Out the API Routes to Perform RESTful CRUD Operations

[ ] Fill out the unfinished routes in product-routes.js, tag-routes.js, and category-routes.js to perform create, read, update, and delete operations using your Sequelize models.

Notes

The functionality for creating the many-to-many relationship for products is already done for you.

Be sure to look at your module project's code for syntax help and use your model's column definitions to figure out what req.body will be for POST and PUT routes!

Category

[x] GET api/categories/
[x] GET api/categories/:id

[x] Logic for if id doesn't exist

[x] POST /api/categories/
[x] PUT  /api/categories/:id

[x] Logic for if id doesn't exist
[x] Logic for invalid request

[x] DELETE /api/categories/:id

[x] Logic for if id doesn't exist

Product

[x] GET api/products/
[x] GET api/products/:id

[x] Logic for if id doesn't exist

[x] POST /api/products/
[x] PUT  /api/products/:id

[x] Logic for if id doesn't exist
[x] Logic for invalid request

[x] DELETE /api/products/:id

[x] Logic for if id doesn't exist

Tags

[x] GET api/tags/
[x] GET api/tags/:id

[x] Logic for if id doesn't exist

[x] POST /api/tags/
[x] PUT  /api/tags/:id

[x] Logic for if id doesn't exist
[x] Logic for invalid request

[x] DELETE /api/tags/:id

[x] Logic for if id doesn't exist

Added more helpful message when when incorrect route

Stuck on Product POST and PUT ATM.

Taking break to come back lter

All is Good


"Results could not be loaded" when trying to assign admin to event or request

When trying to assign an admin to an event, the drop down does not load, and instead it says "The results could not be loaded"
This happens inconsistently.  Trying again will sometimes make the drop down list load.

Does this only happen to assign admin window?

Looks like this is happening in other views where you try to look up a name.  For example, assigning admin on the event view itself:

And assigning tasks in an event:

Comments from @Talishask
AMY issue tied to the latest update - Hey @maneesha, I have been experiencing issues with name recognition when adding information into AMY. This issue seems to be pretty inconsistent in what it looks like, however this does have a significant impact on my ability to enter workshops. I have mainly been observing:

it is is taking AMY longer than usual to pull up matches
sometimes it doesn't pull up anything at all when I know there is a match in the system.
Once you backspace in the input field it has an even more difficult time matching.
There is a weird phenomenon when the matching works great just as it did before however only on even characters. So, if for example I am trying to pull up 'Talisha Sutton-Kennedy" the field would only show matches on the bolded characters(spaces included): T a l i s h a _ S u t t o n - K e n n e d y

For now it looks like the erratic behavior came from django-select2 using cache database that we didn't explicitly created.
For tests I added such cache table on production server (that's only place where the error would occur) and it seems fine now. I'm waiting for more tests from @Talishask and @maneesha.

This issue appears to be resolved on my end.


One user cannot login to my website

Describe the bug
I've just implemented PKCE with this package.
My application is an Angular 8 app, based on Nebular.
Only one user on my website can't manage to login for the moment.
This user uses Google Chrome (up-to-date) and Windows 10.
I've tried taking control of this computer and it does not work either.
Even clearing local storage and disabling cache did not work.
Implementation
My app authentication is defined in AppAuthService:
import { Injectable } from '@angular/core';
import { AuthConfig, OAuthService } from 'angular-oauth2-oidc';
import { environment } from '../../../environments/environment';
import { Router } from '@angular/router';

/* tslint:disable */
@Injectable()
export class AppAuthService {

  private readonly defaultPage: string = '/pages/trainings/all/instances';

  private authCodeFlowConfig: AuthConfig = {
    issuer: environment.oauthConfig.stsAuthority,
    redirectUri: environment.authorization_redirect_url,
    clientId: environment.oauthConfig.clientId,
    responseType: 'code',
    scope: environment.oauthConfig.clientScope,
    logoutUrl: '/auth/logout',
    showDebugInformation: true,
  };

  constructor(private oauth: OAuthService,
              private router: Router,
  ) {
    console.log('configure');
    this.oauth.configure(this.authCodeFlowConfig);
  }

  /**
   * Return the uuid of the authenticated user find in IdentityClaims
   *
   * @return { string }
   */
  public getAuthenticatedUserUuid(): string {
    console.log('getAuthenticatedUserUuid');
    const authenticatedUuidPropKey = 'uuid';
    return this.oauth.getIdentityClaims()[authenticatedUuidPropKey];
  }

  /**
   * Return TRUE if the token ID and the Access Token are both valid. FALSE otherwise
   *
   * @return { boolean }
   */
  public isAuthenticated(): boolean {
    console.log('isAuthenticated?');
    console.log('this.oauth.hasValidAccessToken()', this.oauth.hasValidAccessToken());
    return this.oauth.hasValidAccessToken();
  }

  /**
   * Performs the necessary redirects according to the state of authentication
   *
   * @return { Promise<void> }
   */
  public authenticationRedirectFlow(): Promise<void> {
    console.log('authenticationRedirectFlow');
    return this.oauth.loadDiscoveryDocumentAndTryLogin().then(() => {
      console.log('loadDiscoveryDocument');
      console.log('this.oauth.hasValidIdToken()', this.oauth.hasValidIdToken());
      console.log('this.oauth.hasValidAccessToken()', this.oauth.hasValidAccessToken());
      if (!this.oauth.hasValidIdToken() || !this.oauth.hasValidAccessToken()) {
        localStorage.setItem('entryRequest', window.location.pathname);
        console.log('initCodeFlow');
        this.oauth.initCodeFlow();
      } else {
        console.log('entryRequest', localStorage.getItem('entryRequest'));
        if (localStorage.getItem('entryRequest')) {
          this.router.navigate([localStorage.getItem('entryRequest')]);
          localStorage.removeItem('entryRequest');
        } else {
          this.router.navigateByUrl(this.defaultPage);
        }
      }
    });
  }
}

And this is my AppComponent:
export class AppComponent implements OnInit {

  constructor(
    private memberService: MemberService,
    private appAuth: AppAuthService,
  ) {
  }

  ngOnInit(): void {
    this.appAuth.authenticationRedirectFlow().then(() => {
      if (this.appAuth.isAuthenticated()) {
        this.fetchUser();
      }
    });
  }

  fetchUser () {
    const userUuid = this.appAuth.getAuthenticatedUserUuid();
    this.memberService.populate(userUuid);
  }
}

This is the console output when this user tries to login to my website:

I've been trying for three days, with no success.
Does somebody have a clue about where my mistake could be?
Should there be any details missing, I'll be happy to give them to you ;)

At first sight your code looks okay. One thing you may want to check is that you have purely synchronous code, but some function calls you make might actually be returning promises...
It could be a problem on your IdentityServer side too, esp. since you say it happens to one specific user? You could try to use my sample app and just change the configuration for your IDS to use your own. Then see if the user can log in.
Apart from that, I'm afraid the problem is specific to your app, not so much a bug with the library...

Thanks for your answer!
Could you add more details about the synchronous aspect of the code?
Especially, what process needs to be synchronous?
I'm not sure to understand what you mean by that ;)
Is it an issue that authenticationRedirectFlow returns a promise?
Thanks for the sample app, I'll try to follow the same principles in order to fix my bug.
I agree with you, this does not seem to be an issue with this library, this is a support request, not a bug issue ;)

By the way, my Angular version is 8.2.5 with angular-oauth2-oidc version 9.2.2.
Does this represent an issue for the stability of my project?

my Angular version is 8.2.5 with angular-oauth2-oidc version 9.2.2.

That should be fine, I think. Although it never hurts to be up to date on both fronts.

this does not seem to be an issue with this library, this is a support request

Thx for confirming that. I'm afraid there's very few active community members here. We can handle bug reports just about, but not too much capacity for support unfortunately. I recommend turning to Stack Overflow, or a colleague/consultant for further help. Alas...


What have I to input for "Selection?" question?

In chromectrl line 29 it ask user to input the selection. http://skrinshoter.ru/i/080519/dxCW55.png
What have I to input?

You’ll need to have the 2048 site open in a tab first, then you will start the bot and input the ID of the tab containing the game (should be identifiable by the tab in the menu - you might need to scroll up to see all options).

Not sure what's going on there, but I noticed you're using Python 3 so I just pushed a change for Python 3 compatibility.

I found a mistake. It worked without errors only because somewhen i added .so library from cygwin, and it doesn't work under windows. Dll lib doesn't work because it has another bitness than python. I'll try to fix it.


update user's default kubectl with cluster context

Currently we create a separate kubeconfig file for each cluster under cluster's folder, along with a bunch of other cluster state stuff. It would be most convenient for users of kubectl and helm to have that information (optionally) exported into their default kubectl unde ~/.kube/config
This might be more easily accomplished in https://github.com/samsung-cnct/k2cli

@maratoid I would lean towards this type of activity being pushed into k2cli.  I'm not sure we want to have people running the docker container manually.  It opens us up to a lot of different support requests/management issues.

I was referring to where the code for this is going to live. You could do this with ansible (probably) or in k2cli's go code.

that's what I was talking about as well.

going to let k2cli handle this


treewide: remove inherit (darwin)s from all-packages.nix

Description of changes

Removing some inherit (darwin)s
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Is there any motivation for this? I have often seen the opposite being done.

https://github.com/NixOS/nixpkgs/issues/204303


Remove unused field in HapticGloveModule actuator msg

This PR to remove unused fields of the wearables actuators message that are not really used.
After https://github.com/robotology/wearables/pull/171 is merged, the CI checks won't pass anymore if the lines addressed by this PR are not removed.

cc @lrapetti


[RESOLVED] High ICMP ping response time

Problem started at 10:42:33 on 2023.07.26
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Operational data: Value: 257ms
Original problem ID: 33107
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23518&eventid=33107

Problem has been resolved in 1m 0s at 10:43:33 on 2023.07.26
Problem name: High ICMP ping response time
Host: S100-Santiago
Severity: Warning
Original problem ID: 33107


Support launchOptions on remote attach operations

During an attach operation look for the file "Microsoft.MIEngine.Attach.Options.xml" in the root of the solution/open folder. Look in the file for SupplementalAttachOptions. Use these to customize the normal attach processing. If the ServerOptions element is present then use gdbserver to perform the attach rather than gdb.
Depends upon a new field in liblinux's GdbServerStartInfo class.

Is there a reason to create a new XML options file rather than extending the current one?


Vision Kit Hangs and/or stops responding when on monitor

I got a vision kit last week and set it up fine. The Joy detection demo works fine. But today was the first day I hooked it up to a monitor and ran Raspbian, at which point it started hanging consistently.

Linux app bar doesn't load icons or icons are loaded by are not clickable
Raspbian generally responding so slowly it eventually stops responding entirely,
Raspbian loads with a black wallpaper, no icons on the top bar or on the desktop
SSH terminal stops responding (not sure if this is a different issue, but it's related to becoming unresponsive so including for now)

So, the kit becomes totally unresponsive and Raspbian sometimes has broken UI (I've had it load correctly only twice out of maybe a dozen attempts). In some cases, the Joy Detection demo would continue to run and work behind an unresponsive Raspbian.
In all cases, it maintains an image on the monitor (Raspbian desktop or the camera image), but it stops accepting keyboard/mouse or SSH input.
I have re-imaged the SD card multiple times, with no change.
I'm not really sure what to look for or report, so let me know if there's anything I can add to this report to make it more informative.

@khaledallen Are there any specific steps to reproduce this issue? I just connected my vision kit with the monitor and it is working fine. I am using release from https://github.com/google/aiyprojects-raspbian/releases/tag/v20191113 along with 2.1 amp of power adaptor to boot the kit.

@manoj7410 The only actions I took were to turn it on, and then when Raspbian started, it was slow with broken UI, and the welcome to raspbian window would become unresponsive if I closed it or attempted to complete setup. At one point, the UI was available and I tried to shutdown via the shutdown button, but the dialog became unresponsive when I clicked any of the options or the close button. I was able to open a terminal window and run things in it, but closing it made it unresponsive, and I could not open a new one.
So in general, attempts to open windows in Raspbian were agonizingly slow, and closing said windows made them unresponsive.
In one case, it was working fine (in the sense that it was responding to mouse and terminal keyboard inputs through a terminal window in Raspbian. Still not full UI) and I stepped away for a minute. When I got back, it had stopped responding to any inputs. I had to unplug it.

Please make sure to use 2.1A power adapter. Does Raspberry Pi work fine when Vision Bonnet is disconnected?


Compile failures due to inaccurate version bounds.

First off, welcome to Hackage!
I have noticed that the build-dependencies specification of portage has inaccurate versions bounds, resulting in build failures such as
Configuring library for portager-<IP_ADDRESS>..
Preprocessing library for portager-<IP_ADDRESS>..
Building library for portager-<IP_ADDRESS>..
[1 of 5] Compiling Portager.DSL     ( src/Portager/DSL.hs, /tmp/matrix-worker/1495391938/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>70505/portager-<IP_ADDRESS>/build/Portager/DSL.o )
[2 of 5] Compiling Portager.Flatten ( src/Portager/Flatten.hs, /tmp/matrix-worker/1495391938/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>70505/portager-<IP_ADDRESS>/build/Portager/Flatten.o )
[3 of 5] Compiling Portager.Options ( src/Portager/Options.hs, /tmp/matrix-worker/1495391938/dist-newstyle/build/x86_64-linux/ghc-<IP_ADDRESS>70505/portager-<IP_ADDRESS>/build/Portager/Options.o )

src/Portager/Options.hs:30:7: error:
    • Variable not in scope: (<>) :: Mod f4 a6 -> Mod f5 a7 -> t4
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
30 |       <> short 't'
   |       ^^

src/Portager/Options.hs:31:7: error:
    • Variable not in scope: (<>) :: t4 -> Mod f3 a5 -> t3
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
31 |       <> metavar "TARGET"
   |       ^^

src/Portager/Options.hs:32:7: error:
    • Variable not in scope: (<>) :: t3 -> Mod f2 [Char] -> t2
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
32 |       <> value "/etc/portage"
   |       ^^

src/Portager/Options.hs:33:7: error:
    • Variable not in scope: (<>) :: t2 -> Mod f1 a4 -> t1
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
33 |       <> showDefault
   |       ^^

src/Portager/Options.hs:34:7: error:
    • Variable not in scope:
        (<>) :: t1 -> Mod f0 a3 -> Mod OptionFields String
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
34 |       <> help "Target directory"
   |       ^^

src/Portager/Options.hs:38:7: error:
    • Variable not in scope: (<>) :: Mod f10 a11 -> Mod f11 a12 -> t8
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
38 |       <> short 'w'
   |       ^^

src/Portager/Options.hs:39:7: error:
    • Variable not in scope: (<>) :: t8 -> Mod f9 a10 -> t7
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
39 |       <> metavar "WORLD_SETS"
   |       ^^

src/Portager/Options.hs:40:7: error:
    • Variable not in scope: (<>) :: t7 -> Mod f8 [Char] -> t6
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Options.Applicative),
        ‘*>’ (imported from Options.Applicative),
        ‘<$’ (imported from Options.Applicative)
   |
40 |       <> value "/var/lib/portage/world_sets"
   |       ^^
...

Please be aware that accurate version bounds are mandated by the PVP, and packages are expected to follow the PVP as part of the Hackage guidelines.  This has various knock off consequences, such as Hackage possibly not being able to generate Haddock documentation for your package, install-plans degrading over time, as well generally resulting in a poor experience for users since they'll risk running into the  compilation errors caused by inaccurate version bounds.
If you're using Stack, you can simply add pvp-bounds: both to your Stack.yaml; see also https://docs.haskellstack.org/en/stable/yaml_configuration/#pvp-bounds
If you have any questions regarding this or cabal packaging in general, please feel free to ask me!

@hvr Thanks a lot for pointing this out. I was not aware of the stack option pvp-bounds. It is very helpful.
It should be fixed now.

@j1r1k please take into account that the .cabal file currently says base >= 4.7 && < 5, so that version range is not changed by pvp-bounds: both. Which means that you should verify that your package is actually compatible with base-4.7 (i.e. GHC 7.8). In fact, it would currently fail with
src/Portager/Flatten.hs:14:8:
    Could not find module ‘Data.List.NonEmpty’
    It is a member of the hidden package ‘semigroups-0.18.3’.
    Perhaps you need to add ‘semigroups’ to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.

src/Portager/Flatten.hs:16:8:
    Could not find module ‘Data.Semigroup’
    It is a member of the hidden package ‘semigroups-0.18.3’.
    Perhaps you need to add ‘semigroups’ to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.

as NonEmpty & Semigroup weren't in base-4.7 yet.

@hvr Ooops, very good hint, thanks a lot. I will look into that.

@hvr Oh I didn't know that you can change metadata without new upload. Thanks a lot for that. I will fix it in the repo.

@j1r1k btw, do you have any suggestions how we can improve the documentation so that newcomers to Hackage notice this easier? How did you go about uploading your first package?

@hvr I took the liberty to message you via private means as it is no longer relevant to the issue. Once again thanks a lot for help.


AT28Cxxx Write Protection Enable/Disable missing

ATMEL eeprom chips (eg.: AT28C64, AT28C256, AT28C512...) have Data Protection feature, and can enable or disable data writing using a sequence of readings and writings of values on specific addresses.
How to lock and unlock can be viewed on page 8 of Datasheet (https://www.alldatasheet.com/datasheet-pdf/download/56115/ATMEL/AT28C256.html)
On my chip I created a specific arduino circuit to send "Software Data Protection Disable Algorithm" before I can use firestarter for the first time, after this I used AT28C256 normally with firestarter.

Cool that you have tried a chip like that!
What is the behavior you are expecting or how do you want it to work?
Always unlock, write and lock the chip again?
A special command for unlocking and locking?
What is the use cases you can see?
Since it's a rear behavior of a chip I don't want it over shadow more common functionally.

I've always had a focus on supporting 27-series (E)EPROMs since they can't easily be programmed on a breadboard whereas 28- and 39-series can. ... but of course it's still easier to skip the breadboarding if you already have a programmer shield :)
Some time ... "soon" ... I'll write the sequences for doing this dance for the sst39sf010. At the very least the "chip erase" and "byte program" operations. Unless someone beats me to it :)
https://ww1.microchip.com/downloads/en/DeviceDoc/20005022C.pdf
It has the same write enable sequence as the AT28C256.
@humbertocsjr  If you've beat me to it and already have some working code for the Programmer, I'd appreciate it :)
The most important part is to make sure firestarter doesn't try to put VPP on any pin... Doing its.. Firestarting.

All chip are treated as 5v memories, unless it is explicitly told.
Or at least has the same variant in the db.
Firestarter info AT28C256 will exactly tell whats know about the chip and hopefully is that correct.


[Bug]: @module-federation/runtime and @module-federation/sdk are included twice in the bundle

Version
System:
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Memory: 75.72 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 130.0.6723.59
Safari: 17.6
npmPackages:
@rsbuild/core: ^1.0.8 => 1.0.17
@rsbuild/plugin-react: ^1.0.5 => 1.0.5
Details
Hello, not sure if this is intended but using simple remote with rsbuild:
moduleFederation: {
		options: {
			name: "my_remote",
			filename: "remoteEntry.js",
			exposes: {
				"./Button": "./src/Button.tsx",
			},
			shared: {
				react: {
					singleton: true,
					requiredVersion: pkg.dependencies["react"],
				},
				"react-dom": {
					singleton: true,
					requiredVersion: pkg.dependencies["react-dom"],
				},
			},
		},
	},

with dummy button
export const Button = () => {
  return <button>I'm remote</button>
}

Makes remoteEntry.js huge - screen from the bundle-analyzer

Reproduce link
https://github.com/Verthon/rsbuild-analyze/tree/main
Reproduce Steps

cd remote
nvm use && npm i
npm run build:analyze
observe the bundle analyzer contents (it will open up automatically in browser)

@Verthon Sorry for the late response. The scenario in your question is the expected result.

When a project is transformed into an MF project, a remoteEntry will be produced. This is a complete entry that can be consumed by the host project. So having MF runtime within remoteEntry is normal.

This MF project is not only consumed by the host app but can also run independently because it is a single SPA(MAP) project. So MF runtime will be built into its main chunk to ensure independent running.

In both scenarios above, MF runtime will only be loaded once because they are two completely independent scenarios.

Hello @nyqykk thank you very much for your explanation.


Expected Joi.allow(null) to only allow null values

Consder the following code:
export const ExampleSchema = Joi.object({
  a: Joi.allow(1).required(),
}).meta({ className: 'Example' });`

// This generates what I would expect on the TS interface side:

export interface Example {
  a: 1;
}

However when I try for only a null value it works differently:
export const ExampleSchema = Joi.object({
  a: Joi.allow(null).required(),
}).meta({ className: 'Example' });`

// generates

export interface Example {
  a: any | null;
}

Is this a bug or intended behavior? If it is intended is there a way I can define a property on a schema to always expect to be null?

Hi @mrjono1 , do you consider this a bug? If so, do you expect you have a quick fix or would you like for me to try and fix it and PR?

I've tagged this as a bug, I'm happy for any pull requests

https://github.com/mrjono1/joi-to-typescript/pull/315 how does this look?


Github Actions

[ ] deno fmt
[ ] deno lint

I'd be happy to help. It could also be used to build the container and send it to DockerHub.
But we need to modify how configs.ts is handled so that it does not get cached and can be overrided with a bind mount.


Add Infura NFT API #957 to NFT Advanced Tasks section

Issue:  https://github.com/Dapp-Learning-DAO/Dapp-Learning/issues/957
Add the Infura NFT API & SDK which is now in GA(General Availability)!
Query NFT data from the blockchain–in just one call.
https://www.infura.io/platform/nft-api
Reference Video: https://www.youtube.com/watch?v=FrR9bF6S_fg

Issue: #957
Add the Infura NFT API & SDK which is now in GA(General Availability)!
Query NFT data from the blockchain–in just one call.
https://www.infura.io/platform/nft-api
Reference Video: https://www.youtube.com/watch?v=FrR9bF6S_fg

cool, thanks for your contribution.


Automatically detect RTL characters and align right?

In a table, where LTR and RTL texts occupy different cells. I would like to see RTL texts aligned right in the preview while keeping LTR texts unchanged. Is it viable?

In general, it's not possible to mix RTL and LTR in the same document because the plugin changes the editor's direction globally.
However, you can use the trick below to change the text direction:
| LTR     | RTL                            |
| ------- | ------------------------------ |
| 123 456 | 123 456 |
| ۱۲۳ ۴۵۶ | ۱۲۳ ۴۵۶ |

👇

LTR
RTL

123 456
123 456

۱۲۳ ۴۵۶
۱۲۳ ۴۵۶

Thanks. I was trying to avoid HTML there. I will seek other options.


Update nexus url + autoversion submodules

I just added also the autoversion submodules as suggested by @gsmet

I also added tagNameFormat while at it.


Xcopy not working -

Hi, Could it be that xcopy is not working anymore?
PS C:\> xcopy
PS C:\> echo $LASTEXITCODE
-1073741511
PS C:\> xcopy -version
-1073741511
Tested on latest dotnet-framework and dotnet-framework-build (Deprecated) images.
Heard of other people having the same issue and "fixed" it by using an older image.
Host: Windows 2016 Server Datacenter
DockerEE: Docker version 17.06.2-ee-8, build 4e8ed51
Thanks,
Ignacio

@ideabelleyra - Can you provide the specific steps used to reproduce this?  I tried the following, which works as expected.

docker pull microsoft/dotnet-framework:latest
docker run --rm microsoft/dotnet-framework:latest xcopy /?

Hi Michael, thanks a lot for your help.
Did command #2 provide any output?
 C:\Users\Administrator> docker pull microsoft/dotnet-framework:latest
latest: Pulling from microsoft/dotnet-framework
Digest: sha256:9939fe883e17d61198733806dca6df4ae6bd562226ceb24627e39d09328aca1c
Status: Image is up to date for microsoft/dotnet-framework:latest
PS C:\Users\Administrator> docker run --rm microsoft/dotnet-framework:latest xcopy /?
PS C:\Users\Administrator>
Specific steps used to reproduce the error:
A) What I did was get into the container by running:  docker exec -it <container_id> powershell
B) Then I did run the xcopy command inside the container: xcopy /?
C) As it did not provide any output I did run echo $LASTEXITCODE in order to retrieve the "xcopy /?" command's exit code. I got -1073741511 as exit code.
Cannot even find what this error code number means in the web.
Thanks,

Thank you,

When you run docker exec -it <container_id> powershell, what image is the container you are using based on?

docker inspect <container_id> shows:
"Image": "microsoft/dotnet-framework:latest",

and
"Image": "sha256:023c98ee4c6b950c468e790e1febf1c4f0babd124f1079a2b66948eb904a2b01",

While docker ps shows:
REPOSITORY                         TAG            IMAGE ID            CREATED             SIZE
microsoft/dotnet-framework         latest         023c98ee4c6b        10 days ago         12.6GB

What happens when you run docker run --rm microsoft/windowsservercore:latest xcopy /??

It takes me back to the command prompt, and does not show any output at all:
PS C:\Users\Administrator> docker run --rm microsoft/windowsservercore:latest xcopy /? PS C:\Users\Administrator>

Can you include the output of docker info?

  What happens if you try to run something interactive?

docker run -it --rm microsoft/windowsservercore:latest
xcopy /?

I'm not sure I am going to be much help on this one.  Something is different about your Docker environment that I can't put a finger on immediately.  We've shown this is not something specific to the microsoft/dotnet-framework images.  You might have better luck getting an answer on StackOverflow where the audience is much larger or logging an issue with Docker
Closing issue as this is not specific to microsoft/dotnet-framework.  Feel free to continue the conversation and post anything you find.

docker run --rm microsoft/windowsservercore:latest dir

I get the following error:
PS C:\Users\Administrator> docker run --rm microsoft/windowsservercore:latest dir
C:\Program Files\Docker\docker.exe: Error response from daemon:
container 44bd2da05093bc54cdce9a721a5faf398e086ce8bf4583366a31e220a0971311
encountered an error during CreateProcess:
failure in a Windows system call:
The system cannot find the file specified.
(0x2) extra info: {"ApplicationName":"","CommandLine":"dir","User":"","WorkingDirectory":
"C:\\","Environment":{},"EmulateConsole":false,"CreateStdInPipe":true,"CreateStdOutPipe":
true,"CreateStdErrPipe":true,
"ConsoleSize":[0,0]}.
PS C:\Users\Administrator>

docker run -it --rm microsoft/windowsservercore:latest
2.xcopy /?

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\>xcopy /?
C:\>

MichaelSimons closed this 3 minutes ago

Thank you for your help, I understand.

@ideabelleyra @MichaelSimons  I am facing similar issue. I am using base image as microsoft/windowsservercore. xcopy is returning the same error code (-1073741511). Any idea how to fix this ?

Facing the same issue.

This is an issue to take up with the Windows base images.  Please post in Windows Containers forum.


how to set up models

I was hoping to try this project, but it seems I missed a step in the setup. I created a docker-compose.yml file, ran docker compose up and in the logs I see:
kurp  |  fopen /config/models/models-cunet/scale2.0x_model.param failed
kurp  |  fopen /config/models/models-cunet/scale2.0x_model.bin failed

I figured I need to download the models myself. Where should I download these models (waifu2x and realcugan) from? I tried cloning these repos:

waifu2x
realcugan-ncnn-vulkan

and changing models_path for waifu2x and realcugan entries in config.yml to the models directory in the corresponding repos.
I am not sure if this is the right way as for waifu2x kurp tries to open models/models-cunet/scale2.0x_model.param and there is no models-cunet directory in the repo (there's only a cunet directory with incompatible files).

I'd advise to create a default config from readme. The problem seem to be wrong default model path when no value is set
For docker deployments it should be :
waifu2x:
  models_path: "./models"

or KURP_WAIFU2X.MODELS_PATH=./models environment variable

Weird, I thought I already had this set to ./models when I tried to run kurp earlier and changed it to the location of the models dir in the waifu2x repo because it wasn't working. I changed it back and it's working now.  Thanks for help!


react-calendar webpart for on prem

Has anybody tried to convert the react-calendar webpart/custom app to be used on prem.  I tried to create a new project via sp 2019 onprem yeoman template, migrated the code files, , i keep running into issues like below. I replaced all the react and @microsoft/sharepoint references to be that for on prem.
Error - 'tslint' sub task errored after 24 s
FatalError in plugin 'gulp-cache'
Message:
Invalid source file: D:/Source/Sharepoint 2019 Upgrade/react-calendar/src/services/parseRecurrentEvent.d.ts. Ensure that the files supplied to lint have a .ts, .tsx, .d.ts, .js or .jsx extension.
Any help or guidance is appreciated.
Thanks,
Rakesh

[x ] Question
[ ] Bug
[] Enhancement

My package.json
{
"name": "react-calendar",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
},
"dependencies": {
"react": "15.6.2",
"react-dom": "15.6.2",
"@types/react": "15.6.6",
"@types/react-dom": "15.5.6",
"@microsoft/sp-core-library": "~1.4.0",
"@microsoft/sp-webpart-base": "~1.4.0",
"@microsoft/sp-lodash-subset": "~1.4.0",
"@microsoft/sp-office-ui-fabric-core": "~1.4.0",
"@pnp/pnpjs": "^1.3.0",
"@pnp/spfx-controls-react": "1.12.0",
"@pnp/spfx-property-controls": "1.14.1",
"@types/draft-js": "^0.10.30",
"@types/es6-promise": "0.0.33",
"@types/globalize": "0.0.34",
"@types/jquery": "^3.3.29",
"@types/react-big-calendar": "^0.20.13",
"@types/webpack-env": "1.13.1",
"@uifabric/fluent-theme": "^0.16.7",
"draft-js": "^0.10.5",
"draftjs-to-html": "^0.8.4",
"globalize": "^1.4.2",
"immutable": "^4.0.0-rc.12",
"jquery": "^3.3.1",
"moment": "^2.24.0",
"office-ui-fabric-react": "6.143.0",
"react-big-calendar": "^0.20.4",
"react-draft-wysiwyg": "^1.13.2",
"spfx-uifabric-themes": "^0.6.0",
"xml2js": "^0.4.19",
"typescript": "^3.2.4"
},
"resolutions": {
"@types/react": "15.6.6"
},
"devDependencies": {
"@microsoft/sp-build-web": "~1.4.1",
"@microsoft/sp-module-interfaces": "~1.4.1",
"@microsoft/sp-webpart-workbench": "~1.4.1",
"gulp": "~3.9.1",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2"
}
}

@bumblebee333 were you able to do what you were trying to achieve? If so, we'd love to hear how you did it.
I'll close this issue because there hasn't been any activity on it for a while, but feel free to re-open it if you still need help with this.


[Question] I want to ask can i use Provider package instead of isolaote

I want to use with provide.So can i use provider instead of isolate.That can make more clean and maintainable.Who did it?

What is the Provider you are referring to? It would be nice if you provide a like to that so I can investigate more.

I mean Provider package one of state management.

Provider is used for state management. Isolate is used to run dart code in another thread besides the main one so you can't replace the Isolate one. But you can use it in conjunction with Provider although I don't know how or why would you do this.

I'm closing this issue to due inactivity, but feel free to open it anytime;


Get rid of dep in favour of go mod

This is going to increase build time in CI significantly due to deps required to be downloaded for every build.
Also bump up K8s dependency to v1.15.3.
Closes: #202

Perhaps add "Closes: #202"

Thanks! Added.

How much is 'significantly'? GOPROXY might be an option for Jenkins at least?

Jenkins is not a problem. TravisCI is. It has a hard time limit of 40 mins and we often hit this limit already. I was trying to say that we might have to disable some tests, e.g. make demos or buildah builds.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #206   +/-   ##
=======================================
  Coverage   79.17%   79.17%
=======================================
  Files          11       11
  Lines        1508     1508
=======================================
  Hits         1194     1194
  Misses        281      281
  Partials       33       33

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 5b2aa6d...e178309. Read the comment docs.

Would this work: https://docs.travis-ci.com/user/caching/

@mythi This looks like the right thing indeed. We might want to cache $GOPATH/pkg/mod.
@kad could you please check if "Build pushed branches" is on in the repo's settings.

@rojkov  it is "on". you can see it from here: https://travis-ci.org/intel/intel-device-plugins-for-kubernetes/branches

@rojkov please squash some of the commits. e.g. group all CI (travis and jenkins) into one commit.

Ok, squashed.

The execution time did not improve too much. The container image builds do not get to see the cache at least

I understood it so that the cache is stored to S3 only for branch builds, not PRs. It's going to benefit new PRs after this one is merged.
And image builds won't benefit from this. I'm experimenting with making the cache available in build containers.


Content Moderation

Details found in https://docs.google.com/document/d/1o2G7w1bTIc0Ge6iuyYG36GQ-xGYF161eyfYTR3ZmFY8
Stately diagram for the flow: https://stately.ai/registry/editor/e9b04fe9-b0c6-41e6-9d95-ed2d685cf358?machineId=98248f71-644a-405f-8995-e0f889db9b91
Principles

Potentially offensive content should be hidden, with the option to view.
Content should never be revised or edited, but can be hidden and ranked lower if it's offensive.
People should be able to submit comments to legislature in their own voice, even if it's offensive.
Moderation policies should be transparently enforced.

Types of users

Moderators: users of the website who are able to make a determination about flagged content
Users: regular site users, who might 1) submit or 2) flag potentially offensive content

Types of moderation

Manual: Users flag content, which get sent to moderators for review. Moderators make determinations about flagged content.
Automatic: When a user submits content with certain sensitive properties, e.g. swear words, the content will automatically be flagged for review by a moderator. A user with repeat offenses or suspicious behavior might be banned.

We could try to leverage react-admin for the moderator views, it would also be useful for other back-of-house admin tasks.

Let's try to find a design lead for this feature tonight

@DevByAthi and @gerlinp  here is the other epic that could use more backend resources.

Tom and I made a sketch of the first few tickets we should create in this Epic --

Update internal data representation to include new set of states.
Have a view that allows admins to manually transition between states for comments
( Needs design attention - what does the view look like )
2b. Designate accounts as admins on backend (create representation and assign accounts admin status)
Create admin view to review flagged content
( Needs design attention - what does the view look like )
Implement automatic SSN filtering
( Needs design attention - show the user it cannot be submitted, visual feedback to user )
Allow users to report (flag content)
( Needs design attention - what does the button to flag content look like )


Error in constructor of ATECCX08A

I am building Micropython for ESP32 as per the instructions https://github.com/micropython/micropython/tree/master/ports/esp32, having first copied the files in modules/cryptoauthlib to the modules/cryptoauthlib in the esp32 directory. This builds successfully and I can see it compiling the cryptoauthlib files. I then deployed this and attempt to test that the device is working. I confirmed that its visible on I2C bus with
from machine import Pin, I2C

scl = Pin(5)
sda = Pin(18)
i2c = I2C(-1, scl, sda)
print(i2c.scan())

which gave 96, which is correct. I then tried to initialize the device with:
from cryptoauthlib.device import ATECCX08A
from machine import Pin, I2C

device = ATECCX08A(bus=I2C(-1, Pin(5), Pin(18), freq=133000))

but this fails with:
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "cryptoauthlib/device.py", line 36, in __init__
  File "cryptoauthlib/packet.py", line 59, in __getitem__
IndexError: memoryview index out of range

I actually have your library working correctly on another esp32 and device, but unfortunately I did not keep a copy of this binary. I have the swapped the devices between the esp32's and they both work correctly with my first esp32. I have tried this new binary on two different esp32's and it gives the same error on both.
Any suggests on how to fix this? Thx
Chris

Hi Chris,
the version of micropython on both boards is the same?
I haven't an esp32, i can't test in hardware different of stm32, if you can please give me more software setup info.
regards,
D.

Yes same version of micropython, have already tried lowering frequency.
Micropython gives following system info on start:
MicroPython v1.12-357-g740946736 on 2020-11-13; ESP32 module with ESP32
This is not now the latest version, so I am going to update before investigating some more.
Chris

I update version of Micropython, so now on 1.13:
MicroPython v1.13 on 2020-11-15; ESP32 module with ESP32
I have managed to work around the error by hardcoding the device at line 36 of device.py:
            self._device = "ATECC508A"  # SUPPORTED_DEVICES[self.atcab_info()[1+2]]

I can then create an instance of ATECCX08A with no error. What is interesting is that if I then call atcab_info() I get no response_data bytes, so that is no doubt what is causing the error:
>>> device.atcab_info()
<ATCAPacket txsize=7 opcode=0x30 param1=0x00 param2=0x0000 request_data= response_data= device=ATECC508A>

But the question is why is there no response data?
Chris