Embedding v8r in Mega-Linter ?

Your repo seems great but it does not seems very used yet ( according to downloads number in https://www.npmjs.com/package/v8r )
Is it stable enough so I can include it in Mega-Linter without risks ? :)
If yes:

it would be nice to have an option --ignore-schema-not-found to make No suitable schema could be found return 0 anyway
Add some cache management to avoid downloading schemas catalog for each v8r call

https://nvuillam.github.io/mega-linter/
Thanks !

Hello. Thanks for your interest in the project. I think the short answer to your question is: Not yet.
To give a longer answer:
As you've noticed, this project is not widely used. Tbh, I suspect I am probably the only person really using it, but I like to document stuff as I go along :) It is useful to get some feedback on the project but there are still some rough edges and I probably wouldn't want to dump it into lots of CI builds just yet.
To give a bit more detail on the rough edges:

External references: As noted in #2, at the moment if a schema references another schema, the reference is not resolved. e.g: echo '{}' > foo.json && npx v8r foo.json -s https://json.schemastore.org/grunt-clean-task. Practically, this prevents a non-trivial subset of the schemas on schemastore.org from being useful and should be a fix-able issue.

There are a some schemas in schemastore which throw some kind of error trying to use them. The reasons for this vary so these are slightly difficult to reason about as a group, but to give three examples:

touch foo.yml && npx v8r foo.yml -s https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json: This fails because the schema is defined using a draft of the JSON Schema spec that AJV is not (yet) compatible with.
echo '{}' > foo.json && npx v8r foo.json -s https://json.schemastore.org/packer: This fails because the first line of the schema is "$schema": "https://json-schema.org/draft-07/schema#" not "$schema": "https://json-schema.org/draft-07/schema#" which is strictly invalid (see https://json-schema.org/understanding-json-schema/reference/schema.html ) but I suspect some validation libraries do accept it as a use-able schema.
touch foo.yml && npx v8r foo.yml -s https://json.schemastore.org/ansible-role-2.9: I couldn't begin to tell you what is wrong in this case.

The upshot of all this is there are a non-zero number of situations in which a suitable schema for the input file does exist in schemastore but then the validation fails for a reason other than the input file is invalid. I don't plan to attempt to fix or address these issues in this project - the objective is to be a fairly thin layer of glue between AJV and schemastore. JSONSchema is a murky world and I think its inevitable there will not always be 100% compatibility, especially as the JSONSchema spec and Schemastore evolve over time. That said, your use-case is interesting :) So far my use-case has been "I know what I'm trying to validate, but I want to outsource the job of maintaining schemas to a registry" whereas I guess yours is more like "Here's a bag of files. Lets see if we can find a schema to validate any of them". I think your suggestion of a flag or mode that treats "we couldn't find a schema" as a success (or at least not a failure) could be expanded to also consider "we did find a schema but couldn't validate the input file with it [for reasons you don't care about]" as not a failure. That would probably be a way to smooth a lot of that messiness over for a situation where validating against a schema is a value-add as opposed to a hard requirement.

Globs and paths: As noted in #1 (and #4 )only exact filenames are matched. Matching paths and glob patterns too would be a big improvement and auto-detect suitable schemas in many more cases.

All of that said, the majority of schemas on schemastore do work with AJV and this tool is quite useful in its current form. Mainly because most of the heavy lifting is done by AJV and schemastore. I have a bit of time free between Christmas and New Year and ideally I'd like to use some of it to tackle the above problems. I'll keep you posted.

Taanks a lot for your detailed answer :)
v8r is not adopted probably because its best use... is in CI, and having to browse files before calling it makes it too long to setup in a project
But in Mega-Linter I clearly see an interest to be able to detect schema errors (that may avoid hours of debugging in some cases).
It's ok if not all cases work, even if "most of them" are working it would already be a great addition, but to do that I would need at least:

Have a way to return 0 code when the schema is not found ,with an additional option --ignore-no-schema
Have a way to return 0 code when schema contains an error or is not supported, with an additioan option ignore-schema-not-supported

For the second point, do you have an idea about how v8r could detect a not supported schema ?
I already made a draft PR embedding v8r, and besides the point I listed it's ready to be added
Are you open to incoming PRs ? If yes, I may submit one someday (and add Mega-Linter to this repo to see if you let some mistakes haha )

I've just released 0.2.0 which adds the ability to find schemas using paths and glob patterns and adds a --ignore-errors flag (see https://github.com/chris48s/v8r#exit-codes ).
Re-reading this thread I notice you edited the top post to mention caching the schema catalog (which I overlooked the first time). That's an interesting topic so I've made a new issue for that: https://github.com/chris48s/v8r/issues/13
I'm going to close this issue now as I think everything outstanding is covered in other issues. I'll continue to pick at these as I have some time over the next week or so. If you want to pick any up and submit a PR, post in the issue first as I don't want us to duplicate the same work.

Thanks a lot for your reactivity :)

@chris48s  I'm glad to announce you that now v8r is officially a member of Mega-Linter :)

https://nvuillam.github.io/mega-linter/descriptors/yaml_v8r/
https://nvuillam.github.io/mega-linter/descriptors/yaml_v8r/

You can now stop using your package in command line and integrate it in CI jobs of your projects :)


Suggestions for the readme.md and droning part1.scd files

thanks - gonna merge now but feel free to keep sending me things if you want! I'm going to edit the main readme with how to test supercollider


Redis connection to UDS

Hello,

Version: 4.3.0.Final
Java version: 8 (1.8.0_121-b13) - Oracle

When connecting to Redis using Unix Domain Sockets, I get the following warnings:
18:15:05.844 [lettuce-eventExecutorLoop-1-1] WARN  io.netty.bootstrap.Bootstrap - Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0x688c6e87]'
18:15:05.845 [lettuce-eventExecutorLoop-1-1] WARN  io.netty.bootstrap.Bootstrap - Unknown channel option 'TCP_NODELAY' for channel '[id: 0x688c6e87]'

So Netty is complaining there's some options set in the parent and handler (I'm just guessing to be honest). At least that's what it looks like?
I can have a look at it on Wednesday, just wanted to post it here in case it's a known error, sounds like an easy fix!
Thanks!

I think we can get rid of those warnings by just not setting these options on domain sockets.

That's fixed now.


Error: Invalid request: The request is not valid, HTTP status: 404. Details: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.

I try to use AzureOpenAI in go program, and try to chat after deployment, but when I send a message to it, an error "Error: Invalid request: The request is not valid, HTTP status: 404. Details: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."
will be reported. What is the reason for this?

I think I'm able to use the endpoint in the Azure OpenAI playground.

This typically means the deployment name is incorrect. Make sure you are using the deployment name instead of the model name, otherwise it won't resolve. Please reopen this issue if you're still having trouble.


Consider support for binding FormCollection as a parameter

MVC 5 scaffolding generates code like this (read/write controller)
        // POST: Default/Edit/5
        [HttpPost]
        public ActionResult Edit(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add update logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }

We don't yet have support for binding the form collection to a parameter.

088bb18eed498d1b2df96bee52ffbaf744254f61


Added unit and integration testing through Github Actions on push/PR

Also includes a badge in the description that shows whether tests are passing

Yesss we're testing our code!!!


Vectorization for spkezr

Uses the same method as spkpos and allows for a vector of ET inputs.
I haven't tested this as I'm not exactly clear as how to set up the development environment to coexist with the installed version of SpiceyPy

Coverage decreased (-0.06%) to 97.461% when pulling fa3d0325c7582b3361f70d2ff7632d4f3c940be7 on skulumani:spkezr_vectorized into d088ee7680426106715715bfdfc2b8b02f94bb0c on AndrewAnnex:master.

for testing, you can install spiceypy in development mode by running python setup.py develop. After that you can run the tests by running pytest in the project directory or by including the path to the test file.

while I haven't vectorized any of the functions in a while, I think the one-liner style I used for the other functions like srfxpt would be better to do unless there is a significant performance improvement. This can be tested in ipython, but it is just not high on my todo list.

Awesome. I'll take a look at it.
Thanks for the great work
On May 27, 2017 5:38 PM, "Andrew Annex"<EMAIL_ADDRESS>wrote:

while I haven't vectorized any of the functions in a while, I think the
one-liner style I used for the other functions like srfxpt would be
better to do unless there is a significant performance improvement. This
can be tested in ipython, but it is just not high on my todo list.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AndrewAnnex/SpiceyPy/pull/192#issuecomment-304478003,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFBaZmsBYc-ofr0VoeQPlNJ9fKtA8Ix9ks5r-JfJgaJpZM4NodQ8
.

Hey so first of all, thanks for the PR. I ended looking into my question on the performance of that I made earlier and I made a version that is about twice as fast. Once I finalized the prototype I can post it to this pr as a code block comment that you could then update your pr to reflect or we can just merge the pr as is, as it is not a huge blocker for me. Let me know what option works for you and thanks again!

That's awesome. Feel free to add your improvements and I can add them to
this function as well as some of the other frequently used ones.
On Sat, Jun 3, 2017 at 1:16 PM, Andrew Annex<EMAIL_ADDRESS>wrote:

Hey so first of all, thanks for the PR. I ended looking into my question
on the performance of that I made earlier and I made a version that is
about twice as fast. Once I finalized the prototype I can post it to this
pr as a code block comment that you could then update your pr to reflect or
we can just merge the pr as is, as it is not a huge blocker for me. Let me
know what option works for you and thanks again!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AndrewAnnex/SpiceyPy/pull/192#issuecomment-305988759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFBaZqDEwmI3jt6PbdW9f28tbSuGvWYVks5sAZTSgaJpZM4NodQ8
.

Hey @skulumani
After trying a few things I came up with this version that works about twice as fast as the implementation I wrote for spkezr.
def spkezr(targ, et, ref, abcorr, obs):
    targ = stypes.stringToCharP(targ)
    ref = stypes.stringToCharP(ref)
    abcorr = stypes.stringToCharP(abcorr)
    obs = stypes.stringToCharP(obs)
    if not hasattr(et, "__iter__"):
        et = (et)
    res = []
    for i, t in enumerate(et):
        starg = stypes.emptyDoubleVector(6)
        lt = ctypes.c_double()
        libspice.spkezr_c(targ, ctypes.c_double(t), ref, abcorr, obs, starg, ctypes.byref(lt))
        res.append((stypes.vectorToList(starg), lt.value))
    return res

I need to think a bit about if it is better to return the results in a single list like this or if I need to split out the results into two lists (probably I do).

@AndrewAnnex Thanks for the hint on the vectorization. I'll implement it and run some tests on my own to get a feel for the codebase.
I can also parse the results into two lists (position/state, and lighttime). I'll also include a version of this into some of the other functions (str2et, spkezp etc)

Coverage decreased (-0.06%) to 97.774% when pulling e3a2619f5487f32f9733ff7f7dbb3265ba0b772a on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

Coverage decreased (-0.06%) to 97.774% when pulling e3a2619f5487f32f9733ff7f7dbb3265ba0b772a on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

Coverage decreased (-0.06%) to 97.774% when pulling e3a2619f5487f32f9733ff7f7dbb3265ba0b772a on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

Coverage decreased (-0.06%) to 97.774% when pulling e3a2619f5487f32f9733ff7f7dbb3265ba0b772a on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

@AndrewAnnex
I modified your version slightly and it has a slight penalty in my testing over the original version you posted above.

The et should be iterable, so now it's a tuple even if it's a single element
I split out the resulting list of tuples into two lists. These lists are then squashed by numpy to remove the redundant dimension.
This also handles both the vectorized and scalar output cases.

I've tried several different version of getting it vectorized and you're right that this is the fastest that I can think of.
If you think this is a good approach I can add it to this pull request, in addition to implementing the same approach for other functions.

def spkezr(targ, et, ref, abcorr, obs):
    targ = stypes.stringToCharP(targ)
    ref = stypes.stringToCharP(ref)
    abcorr = stypes.stringToCharP(abcorr)
    obs = stypes.stringToCharP(obs)
    if not hasattr(et, "__iter__"):
        et = (et,)
    res = []
    for i, t in enumerate(et):
        starg = stypes.emptyDoubleVector(6)
        lt = ctypes.c_double()
        libspice.spkezr_c(targ, ctypes.c_double(t), ref, abcorr, obs, starg, ctypes.byref(lt))
        res.append((stypes.vectorToList(starg), lt.value))

    state, lt = map(list, zip(*res))

    return numpy.squeeze(state), numpy.squeeze(lt)

First of all good catch on the time variable et=(et,), but IMHO it is cleaner to write et=[et].
I think it is more pythonic to not return two separate lists at this point, as logically users would either unpack the values in a for loop i.e.:
for state, time in spkezr(...):
    print(state, time)

or they could trivially index the states or times once the result as it is a numpy array. The calls to map, zip, and squeeze (once you unpack in a loop) are not necessary.
Also I realized that there was no need to reallocate the starg and lt variables which resulted in a bit of a performance gain, so the function prototype is now:
def spkezr9(targ, et, ref, abcorr, obs):
    targ = stypes.stringToCharP(targ)
    ref = stypes.stringToCharP(ref)
    abcorr = stypes.stringToCharP(abcorr)
    obs = stypes.stringToCharP(obs)
    starg = stypes.emptyDoubleVector(6)
    lt = ctypes.c_double()
    if not hasattr(et, "__iter__"):
        et = [et]
    res = []
    for i, t in enumerate(et):
        libspice.spkezr_c(targ, ctypes.c_double(t), ref, abcorr, obs, starg, ctypes.byref(lt))
        res.append((stypes.vectorToList(starg), lt.value))
    return numpy.array(res)

I will also need to think a bit about/prototype what happens when SPICE hits an error within the loop however, I think I can look through ICY/MICE to look at what the naif chooses to do and I will follow that

I think it is more pythonic to not return two separate lists at this point
My only comment is that the other realizations of SPICE tend to return two variables from spkezr. My thought was that the Python version should follow suit.

But I'm all for being as Pythonic as possible. Let me use the latest version of the vectorization and add it to this pull request.

hey, I was wondering what the status on this pr was

Sorry dude.
I've been working on a paper recently. Let me make some progress on it this
week and try to update the PR by this weekend.
On Mon, Jul 3, 2017 at 2:10 PM, Andrew Annex<EMAIL_ADDRESS>wrote:

hey, I was wondering what the status on this pr was
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AndrewAnnex/SpiceyPy/pull/192#issuecomment-312706766,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFBaZja-6-wXSW_CntwClDgH869x_Tgyks5sKS6ugaJpZM4NodQ8
.

oh, no rush on this, we all got stuff to do 😄

So there's some trickyness with array shapes.
Many tests and other functions assume the state is a 1d array, but our current approach with return a 2d array (`(6,) vs. (6,1)')
I think that's why I originally used the np.squeeze to squash the extra dimension in the scalar case but have no impact when vectorized.

Coverage increased (+0.001%) to 97.831% when pulling e894a41a4607d2532ca615e77e6f97108047b6e8 on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

Coverage increased (+0.003%) to 97.833% when pulling aefb33f9399b504ff536687b05394c789ccfc294 on skulumani:spkezr_vectorized into 54049a97660aaf3445638412ed01a754e474c685 on AndrewAnnex:master.

Ok, I took a look at your changes and I think we are very close, I made a few changes that clean it up and add error checking within the loop, also the ltime variable needs to be changed as there is a function with the same name. Thanks for adding a test!
def spkezr(targ, et, ref, abcorr, obs):
    targ = stypes.stringToCharP(targ)
    ref = stypes.stringToCharP(ref)
    abcorr = stypes.stringToCharP(abcorr)
    obs = stypes.stringToCharP(obs)
    starg = stypes.emptyDoubleVector(6)
    lt = ctypes.c_double()
    if not hasattr(et, "__iter__"):
        et = [et]
    state = []
    times = []
    for t in et:
        libspice.spkezr_c(targ, ctypes.c_double(t), ref, abcorr, obs, starg, ctypes.byref(lt))
        checkForSpiceError(None)
        state.append(stypes.vectorToList(starg))
        times.append(lt.value)
    return numpy.squeeze(state), numpy.squeeze(times)

it looks like the tests broke because the phobos dsk kernel was moved to https://naif.jpl.nasa.gov/pub/naif/generic_kernels/dsk/satellites/, try updating that

Oh thanks. I was wondering why everything was failing but didn't put a lot
of effort to diagnosing it.
I'll update it tomorrow and test.
On Sun, Jul 9, 2017 at 9:14 PM, Andrew Annex<EMAIL_ADDRESS>wrote:

it looks like the tests broke because the phobos dsk kernel was moved to
https://naif.jpl.nasa.gov/pub/naif/generic_kernels/dsk/satellites/, try
updating that
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AndrewAnnex/SpiceyPy/pull/192#issuecomment-313978880,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFBaZg3luALUTC3t8CxqqbMCz9IvzYpqks5sMXsQgaJpZM4NodQ8
.

hey I ended up putting in the fix for the dsk kernel for a thing I was changing last night, If you merge with the master branch again the tests should pass.

Thanks for the fix. I'll give it a shot.
Do you have other suggestions for functions that should be vectorized? I can add a similar format to those as well. I spent a little time looking through the Matlab docs to try and see which ones were setup to handle vector inputs.

I think if we cover the ICY/MICE vectorized functions that would be enough, but we don't have to get everything done in this PR, so once your changes are up and the tests pass I will merge. I made a list a while ago for the ICY vectorized functions in the wiki https://github.com/AndrewAnnex/SpiceyPy/wiki/ICY-Vectorized-Functions, which may need to be updated.

I merged your modifications from master and Seemed to work well on my computer.
Once this one is merged I'd be happy to start working vectorizing some of the other functions.

Coverage increased (+0.004%) to 97.833% when pulling 0511f9d7fa45a6dc25b80947190febd3935e5949 on skulumani:spkezr_vectorized into c9373487043c01cae7779722f966fe5193727332 on AndrewAnnex:master.


CORS Error in Chrome on React

cors error on react unpkg url
We include React-DOM with unpkg and starting from today we got in chrome an cors error.
<EMAIL_ADDRESS>The problem is after the redirect no access-control-allow-origin: * header is send.
curl headers<EMAIL_ADDRESS> curl -H "Access-Control-Request-Method: GET" -H "Origin: https://example.com" --head<EMAIL_ADDRESS>HTTP/2 302
date: Wed, 30 Jan 2019 17:30:51 GMT
content-type: text/plain; charset=utf-8
content-length: 71
access-control-allow-origin: *
location<EMAIL_ADDRESS>vary: Accept
x-cloud-trace-context: 1d90e29ae2075b0fb7398cbb1875eebc
cache-control: public, s-maxage=14400, max-age=3600
cf-cache-status: HIT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare

curl headers of redirect location<EMAIL_ADDRESS>curl -H "Access-Control-Request-Method: GET" -H "Origin: https://example.com" --head<EMAIL_ADDRESS>HTTP/2 200
date: Wed, 30 Jan 2019 17:30:29 GMT
content-type: application/javascript; charset=UTF-8
vary: Accept-Encoding
last-modified: Sun, 27 Jan 2019 08:08:11 GMT
etag: W/"189cd-1688e5a05f8"
via: 1.1 google
cache-control: public, max-age=31536000
cf-cache-status: HIT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 4a15aaab9d139756-FRA

Still broken here after the redirect from<EMAIL_ADDRESS>

This is still broken as of the time of this writing. Access-Control-Allow-Origin is still missing for some content:
$ curl --head<EMAIL_ADDRESS>HTTP/2 200
date: Fri, 01 Feb 2019 11:26:32 GMT
content-type: application/javascript; charset=UTF-8
vary: Accept-Encoding
last-modified: Sun, 27 Jan 2019 08:08:11 GMT
etag: W/"b5a5b-1688e5a05f8"
via: 1.1 google
cache-control: public, max-age=31536000
cf-cache-status: HIT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 4a24104cc95c8e73-DME

It is correctly present for other content:
$ curl --head<EMAIL_ADDRESS>HTTP/2 200
date: Fri, 01 Feb 2019 11:28:27 GMT
content-type: application/javascript; charset=utf-8
vary: Accept-Encoding
access-control-allow-origin: *
cache-control: public, max-age=31536000
last-modified: Sat, 26 Oct 1985 08:15:00 GMT
etag: W/"8c08-cKQNQXP732lLz/jXTrm/DRSZ9+w"
via: 1.1 google
cf-cache-status: HIT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 4a24131bcdc08f09-DME

It seems like this problem is not going to be solved any time soon. While it's being sorted out, here are two workarounds:

Replace
<script crossorigin="anonymous"<EMAIL_ADDRESS>with
<script<EMAIL_ADDRESS>

Replace
<script crossorigin="anonymous"<EMAIL_ADDRESS>with
<script crossorigin="anonymous"<EMAIL_ADDRESS>

Can confirm that it does not exist on:

<EMAIL_ADDRESS>
But it does exist on 16.8 and development counterparts:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
spytec@Alioth:~$ curl --head<EMAIL_ADDRESS>| grep access-control-allow-origin

spytec@Alioth:~$ curl --head<EMAIL_ADDRESS>| grep access-control-allow-origin
access-control-allow-origin: *

spytec@Alioth:~$ curl --head<EMAIL_ADDRESS>| grep access-control-allow-origin
access-control-allow-origin: *

spytec@Alioth:~$ curl --head<EMAIL_ADDRESS>| grep access-control-allow-origin
access-control-allow-origin: *

I believe this is broken at the moment. If this breaks periodically, should we just not use the crossorigin attribute in production or rely on a more stable CDN?

Yep, broken again. It seems like a good tradition now. Breaks every few months with the same issue. It's free, so we can't complain. Still, it is a good concept. Too bad it's so unreliable.

guys this is broken and affects my production apps with actual customers.

note to self, don't use unpkg on production


Add branding assets to seasonal announcements in #changelog

What feature are you proposing?
Possible Ideas

Add server icon as embed thumbnail
Add server banner as embed image
Add shoutout to users that contributed branding assets

Current sample announcement:

What is your justification for the proposed feature?
We have lovely branding  that we use throughout the year based on the season or holiday, and have automated #changelog announcements that describe the event.
However, if you're not online during each seasonal transition, looking back at #changelog announcements might be unclear since the announcement itself isn't paired with any visuals in the message.
I think adding the images to the embed will help users make that connection, especially if they're not familiar with the event.
Giving credit to the members that spent time making the branded assets would also be a nice touch.

@vivekashok1221 Are you still planning on working on this?

Wow, blast from the past. Totally forgot about this one, sorry.
I can still work on this issue but not in the immediate future. Maybe I can give it a look after a few days.

Hi @vivekashok1221, are you still planning to work on this? If not, I would like to give it a try.
If I understand correctly, the agreement is to include the server icon as either the author or the thumbnail of the embed. We're not intending to go for the other ideas at the moment, correct?

@kwzrd Go for it 👍

I have explored the proposed approaches.
The easiest option is to include the icon in the embed thumbnail:

Another option is to use the author field. However, the author also needs a name, in addition to the icon. This opens a nice opportunity to move the event's name there, but the problem is that we currently include the event name in the body of the description:

It's difficult for the bot to remove the name from the description, as it's already included when we fetch the content from the branding repository. I think that the best solution here would be to remove the names from the descriptions in the markdown manifests, and instead move the names into the frontmatter. So there would be the name, the start and end dates, and then the description. The bot would then be able to place the name where it belongs. It's more work, but feasible.
In fact, I like the idea of moving the name into the frontmatter for other reasons as well. For the calendar view, the bot currently extracts the event names from their paths. It's awkward and error-prone. If we place the name in the frontmatter, the bot can simply use it in the calendar as well.
What do you think?


Opt-out installation leaves deployments in error state because uninstallation is a work in progress

Describe the bug
While installing in a cluster with existing deployments, installing and using the opt-out option for odigos leads to a situation where cluster services end up in crashloopbackoff with no easy way to fix other than reapplying all deployment manifests.
I understand that the documentation states uninstalling is a work in progress, but the mutation of deployments and statefulsets leaves them in a bad state after uninstall, and users without gitops or similar deployment methods will face challenges in fixing their deployments. A workaround and a prominent warning should be displayed on this repo until there is a clean uninstall path.
To Reproduce
Steps to reproduce the behavior:

Install Odigos
In UI setup, go through the opt-out option flow for setup
Setup a backend (optional)
wait for services to be instrumented
disable services that are enabled for instrumentation in odigos UI
helm uninstall odigos
Pods that start up that were instrumented still have odigos sidecar, configurations, volumemount, and command changes. These pods may also be in crashloop/containerconfigcreateerror states.

Expected behavior
Changes by odigos to deployments should be reverted when odigos is disabled and uninstalled.

Thank you for filling the issue @arnaudaz
We are planning a change in Odigos to make installation/uninstallation much easier.
In the upcoming version, we will use a custom CSI driver instead of modifying Deployments / StatefulSets for adding the instrumentation. This should keep the YAMLs untouched.

@arnaudaz This is now resolved by moving to instrumentation using Kubernetes device plugin.
Happy to hear your feedback


Legal review prior to release of v1.0

A comprehensive review of potential legal problems with the way that FOSSBilling handles personal data, payment information, taxation, etc.
From my provisional discussion with someone who knows a lot more about these things than I do, basically all legal responsibility falls with a service provider and not with the creator of the software that they use. Also the fact that the software does not store any payment card information helps a lot.
Despite that we should conduct a review to ensure that we are not explicitly enabling either deliberate or accidental illegal activity, and if there are countries where FOSSBilling is clearly not capable of providing services that meet legal requirements then those should be documented.

From my provisional discussion with someone who knows a lot more about these things than I do, basically all legal responsibility falls with a service provider and not with the creator of the software that they use.

To my knowledge, that isn't 100% true, at least in parts of the EU. If you are selling (and I know, that's not the case with FOSSBilling so where that falls legally, I'm unable to say) Software that does any kind of book-keeping in Switzerland or Germany for example, you are required to provide and maintain certain features. As FOSSBilling doesn't do accounting, we might get around that. Never the less, there are other countries f.ex Hungary, where book-keeping software needs to be approved from the state, or Italy where every electronic invoice issued by a legal entity needs to be sent to the state.
I generally see that we need to review three areas:

Privacy & Data Protection (GDPR et al)
Invoicing & Tax Laws (VAT, Sales Tax)
KYC / Data retention laws.

Privacy & Data Protection (GDPR et al)
There's many webpages with information regarding that. I found this for example.
Tasks I already know:

[ ] Encrypting users personal data in the database
[ ] GDPR compliant consent forms

Invoicing / Tax Laws (VAT, Sales Tax)
Tax laws are complex AF. There's a really good resource here, where many requirements are detailed.
For my country (Switzerland) I can and will review FOSSBillings functionality. Many of these requirements are the same as in most EU countries as well.
Tasks I already know about:

[ ] Functionality to change Tax rates. (Will create separate issue)
[ ] Functionality to get swiss "default monthly currency rates"
[ ] Ability for invoices to be done with two different VAT rates (Rate 1 until 31.12. and Rate 2. until end of Period"

[ ] Can also be a function to create two invoices if tax rates are going to switch.
I will expand on this at a later stage but this quite complex.

[ ] Reporting functionality for VAT
[ ] Ability to switch between "collected" (tax is due when customer pays) and "agreed" (tax is due when customer orders) tax modes.
[ ] Making sure invoice numbers can't be used again. (Should be fixed by #1473 and #131 )
[ ] Making sure taxes are stated correctly on the invoices.
[ ] Making sure invoices can't be edited or deleted, only cancelled / countermanded once they have been created / sent.
[ ] A functionality to download all invoices ever created in a ZIP File would be required. (You need to save them along your incoming invoices for bookkeeping)

KYC / Data retention
AFAIK KYC is primarily relevant (regulatory-wise) in banking / finance sectors. There may however be countries where there are far more wide-reaching requirements.
Also, for reselling Hosting, you might want to prohibit your customers to be scam artists that lead to your whole account with your provider to be suspended.
Imho, the best thing would probably be a module "enhanced-kyc" that handles that if necessary. Maybe (at a later stage), we might want to implement some KYC service.
As a start we could implement a "KYC Process completed" flag that can only be set by staff and is required before customers can place orders.
Ragarding Data retention, for example in Switzerland you need to keep all invoices (and legal documents) you send out for 10 Years.
Also, in the EU, there are discussions regarding Data transferrability, so we should also take this into account.

VAT in the EU is different cans of worm as every country has different vat rate(s) and rules for handling with consumers... or not ...

I feel the need to clarify regarding my statement above, due to it being misunderstood in internal discussions as well as f. ex here:
I am not suggesting (and I'll edit the text above accordingly) that FOSSBilling, a Project licensed under the Apache License is liable in regards to the code shipped. The License very clearly states that all liability to all extent possible under the law lies with the user of the software.
My point is that it is in the interest of FOSSBilling that certain legal requirements are met to help adoption of the software, and this is what my text describes.
I will now edit the text to make it better reflect that.
Otherwise, I do not think my understanding of the sentence "Despite that we should conduct a review to ensure that we are not explicitly enabling either deliberate or accidental illegal activity, and if there are countries where FOSSBilling is clearly not capable of providing services that meet legal requirements then those should be documented." is amiss in pointing out the issues I did.

I feel the need to clarify regarding my statement above, due to it being misunderstood in internal discussions as well as f. ex here:

My thoughts in 1698 were not about your comments here directly but just about the whole legal review in general. I really do think that a checkbox on install that says essentially 'It's my fault if I do something illegal with this software' is a very good idea.


Remove in-line styling used for the navigation links

Replace the inline styling on the Links components with native material-ui props.

Resolved

This has been resolved.


Returning 'created at' date from posts

Hey, thanks for creating this gem; it's been really useful!
It would be great to scrape the time that posts were created at. I'm happy to submit a PR with that change if that's okay with you :)

Absolutely! Thanks for extending your help. Just send me the PR and I'll review it. If you can write supporting tests as well, that would be great.
Looking forward to your contribution!

Merged -- will deploy a new release to rubygems after updating the readme.


"Change All Occurrences" regression: Match Whole Word / Match Case state is broken

VSCode Version: 1.11.2
OS Version: Ubuntu

Steps to Reproduce:

Use "Change All Occurrences" on any word / symbol
Try to set "Match Whole World" and/or "Match Case". Issues:
a. "Match Whole World",  "Match Case" buttons toggle each other (appear to be exclusive, no way to set both as in previous version of vs code)
b. Subsequent "Change All Occurrences" do not use the last state - it resets to both "Match Whole World",  "Match Case" unchecked.

The toggles were not painted correctly.

duplicate of #23540


Improve the home window

Use material design to improve the UI http://materializecss.com/

Hi! I'd like to work in this task.
I was also wondering if it's a problem to use MDL instead of Materialize, since I feel more comfortable with it, and I think it's more robust.

Sure. Use MDL. @shashank-sharma is also working on the UI. But with experience gained from working on this would be useful for follow up work. So don't feel bad if only one of your work will be merged :) Because there will be more issues regarding the UI following up to work on.
Looking forward for a PR.

Great! Thanks.

@roonyh It's great if @YagoGG is working. Currently I have been facing problem with npm start as it showing error and I am trying to find out the error so that's why I am updating most of my files. Still it might take loads of time to update and then after-all I really don't have much experience so its better if YagoGG will do. I will learn few things and if possible I might help later.

@shashank-sharma, I also had some trouble with the setup. If you want to chat and see if I can help, I'm on Freenode IRC #fossasia channel ;)

@shashank-sharma @YagoGG Please show me the error. If you had trouble tell me.  If you report the troubles you had chances are we can fix something so that someone else's time is saved from going over the same thing. I also am available on #fossasia.
Again, Please ask for help If you are stuck for more than half an hour or so. Its fine.

@roonyh I solved mine in 10 minutes, wasn't a big deal (my node and npm packages were too old), but thanks for your disposition!

@YagoGG ah. Great! glad its resolved :)

@roonyh I also saw that link which @YagoGG provided me I just wanted to update some files. And I guess after that update it will work fine

@shashank-sharma ok. great!

#7 is a great starting point. We can close this and add further issues for new UI feature requests.


File separator has to be escaped for Windows environmnent

Otherwise following failure is observed:
java.util.regex.PatternSyntaxException: Unexpected internal error near index 1

^
at com.aoe.gebspockreports.GebReportUtils.createSpecLabelFromPath(GebReportUtils.groovy:80)
at com.aoe.gebspockreports.GebReportingListener.onReport(GebReportingListener.groovy:40)

Hey @lubosek,
thanks for the pull request! I will try to test the change in the coming week and will get back to you afterwards.

OK, thanks, if it would of any help there's patched jar here:
https://github.com/lubosek/geb-spock-reports/tree/repository/com/aoe/geb-spock-reports/0.2.0-dev.1%2B2600238
It can be used simply by configuring a new repo (yep, I'm still Maven guy, sorry ;-) ):
        <repository>
            <url>https://raw.githubusercontent.com/lubosek/geb-spock-reports/repository/</url>
            <id>github</id>
            <name>github</name>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>

@lubosek I just published version 0.1.3 with your fix, thank you!


Avoid race condition for AppState.currentState

When the AppState module is initialized, it subscribes to the appStateDidChange event and sends an async native method call to the AppState native module. There is a small race condition window where the native module can read the current app state as uninitialized before calling the JavaScript callback, and then be interrupted by the underlying mechanism to trigger the appStateDidChange event. If the appStateDidChange event is processed before the JavaScript callback, the resulting value of AppState.currentState will be invalid.
Fixes Microsoft/react-native-windows#1300
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
I simulated (over-exaggerated) the race condition by injecting "thread sleep" calls in the native method call and the native mechanism for updating the app state.
I then ran the AppStateExample in the RNTester and found that the current app state was set to uninitialized, as opposed to the expected value of active.
Once I made this JavaScript change, the over-exaggerated race condition no longer resulted in an invalid app state.

cc @hramos, not sure why the import failed above.


Pull out _create_likelihood_distribution method as function

I think this would be better suited as a function outside of the MMM class.
https://github.com/pymc-labs/pymc-marketing/blob/9480869b9b9e03774a081eb7e5f2da96f1bb95a4/pymc_marketing/mmm/delayed_saturated_mmm.py#L152-L248
Same thoughts on _get_distribution

maybe in mmm/utils.py?

Why do you think it's better? Will you use it outside of a Model class?

I just brought it up since #267 isn't very clear in my eyes and a custom MMM with a config like ours would require this functionality. It can stay as a method of a class but I don't think it hurts to have it independent of a class as well
related to #708

Are nested priors the primary motivation for this?
That was my understanding when I commented on https://github.com/pymc-labs/pymc-marketing/issues/708. If so, I think this should be relocated to the base ModelBuilder class so it's also supported in the CLV module.
If there are no other anticipated uses for this function apart from nested/heirarchical priors, I also think it should be renamed to something more meaningful.

Just related. Not the motivator.
I just oppose putting it in ModelBuilder method because I use this elsewhere. I haven't fully warmed up to the ModelBuilder yet

Realizing also that this list of distributions could have Beta as it has as mu parameter


Topology/Structure validation changes

Thanks @ccassler merging this one and will expect another PR to unify the error handling.


How to train my custom dataset?

Dear Author.
When I train with my own dataset, and print
"
Traceback (most recent call last):
File "/home/zzy/Revisiting-Reverse-Distillation/main.py", line 225, in
auroc_sp, auroc_px, aupro_px = train(c, pars)
File "/home/zzy/Revisiting-Reverse-Distillation/main.py", line 58, in train
train_dataloader = torch.utils.data.DataLoader(train_data, batch_size=pars.batch_size, shuffle=True)
File "/home/zzy/.conda/envs/zzyRD/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 344, in init
sampler = RandomSampler(dataset, generator=generator)  # type: ignore[arg-type]
File "/home/zzy/.conda/envs/zzyRD/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0
"
I'd like to know how to solve this, thx

I have fixed this bug. The image format in my dataset is "jpg", I changed them to 'png' and the bug is fixed.

Dear Author.
Will you provide the Dockerfile for this project


bug: A simple CommonJS Bot, but: revolt-api/node_modules/axios: 404 error when someone joins server: http Request of members/00000000000000000000000000

What happened?
Plain simple bot gives an error of 404 when another bot joins the server.
OS: Linux/Debian
Setup: I'm using CommonJS, not TypeScript
Bot example:
const { Client } = require("revolt.js");

let client = new Client();

client.loginBot("YOUR_BOT_TOKEN");

Steps:

Invite your bot example
invite another bot for testing
In the bot console: 404 error with a Request of members/00000000000000000000000000

Full error message: new 19.txt

Are you using v6 or v7?

Are you using v6 or v7?

root@vps:~/GuildBot2# node ./bot.js
NodeJS version: v18.16.0
revolt.js version: 7.0.0-beta.4
revolt.js documentation: https://revolt.js.org/
_______________________________
Welcome to a Basic Revolt Bot.
Client API URL: https://api.revolt.chat
Client API version: 0.5.19

I would say if you're using serverMemberJoin event the way i fixed this is just simply checking if there's a user.id / member.id, or if its a message causing this issue, you could try message.system check (i think) as well as message.author.id; this could be a temp fix.
if you aren't using an serverMemberJoin event, i would say try adding it with this method i stated?
this worked for me on  7.0.0-beta.9, but i am unsure if that's a me problem though then again.


Add option to duplicate banner

Hi @diana-cq
Thank you for your suggestion. I've implemented the feature and it will be available in next release 💙

Hi @runelaenen,
that's great - thanks for the quick implementation! 💙


More on Jupyter notebooks

Also note that jupytext allows you to run all static checkers on them.
Point out that you can get most IDEs to talk Jupyter to get more static insight

Also there's a tool that allows various tooling to run on notebooks. I don't remember what it was, I mostly used it for black then black started supporting notebooks natively.

Oh, interesting, that would be quite useful.
I only found various versions of static checkers like flake8-nb, the black extension, etc.
Obviously, if you just want to check things, you can always convert && check
With jupyter notebooks being everywhere in data science, I think this might even be worth a full talk/deck of slides just to address all these things...

@matthewfeickert might remember it? I’ve still got it somewhere, but don’t remember where.

Found it on Hist: https://github.com/nbQA-dev/nbQA

Ah I thought you were talking about https://github.com/Nikoleta-v3/blackbook. Yeah, we still use nbQA in pyhf for nbqa-pyupgrade.


[UT3] Entries and Intros map section

Entries and Intros section should be renamed to Movies, Machinimas and Entries, like it's UT2004 counterpart.

Fixed


apstra_blueprint_iba_dashboard resource not compatible with current SDK

The grid attribute  (two-dimensional slice of widget IDs) is no longer IDs. 2D slice of widget data objects now?
Looks like there's also a problem with IbaWidgetData.Type

Yes.
This is why the apstra-go-sdk dashboard api is not compatible with anything lower than 5.0.
Anyone using the terraform provider for dashboards need to wait for the provider to be updated to match with 5.0 or use the earlier provider for older versions.

At least that is how I think I have set the compatibility strings :-)

We need to do something about it in the provider project because I can't build the provider using the current SDK.

Give me some time, I will disable this in the provider.

Yep, not an emergency.
If we're pulling those resources/data source from the provider for the time being, that's okay.
The files I had to butcher to get it to compile are:

apstra/data_source_blueprint_iba_widget.go
apstra/data_source_blueprint_iba_widgets.go
apstra/iba/dashboard.go
apstra/iba/widget.go
apstra/resource_blueprint_iba_widget.go

Closed by #995


is HashedModuleIdsPlugin needed for this project?

as commonschunkplugin is used in this projec,in order to guarantee the module identifiers will be stable,is HashedModuleIdsPlugin needed to add to this project too?

I make a PR for it but seems no one interesting... #406

it's added now.


ReadWriteMany mode fails to mount

Given the following situation all within the same namespace.
NodeA --- PodA --- Volume A  ---+
                                | ---- PersistentVolumeClaim (RWM) ---- StorageClass
NodeB --- PodB --- Volume B  ---+

Volume A will successfully mount and you see this pod running:
juicefs-k3d-nodeA-pvc-467cfe22-0099-442f-8165-61be09295da1

But PodB will fail to start with this error:
Could not mount juicefs: rpc error: code = Internal desc = Could not mount juicef │
│ s: pods "juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1" not found

And this error in the juicefs-csi-node for NodeB:
│ I1110 11:04:53.566859       1 juicefs.go:328] Mount: skip mounting for existing mount point "/jfs/pvc-467cfe22-0099-442f-8165-61be09295da1"                                                                                │
│ I1110 11:04:53.566869       1 juicefs.go:331] Mount: add mount ref of configMap of volumeId "pvc-467cfe22-0099-442f-8165-61be09295da1"                                                                                │
│ I1110 11:04:53.566880       1 client.go:65] Get pod juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1                                                                                │
│ I1110 11:04:53.571303       1 client.go:68] Can't get pod juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1 namespace system-filesystem: pods "juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1" not found               │
│ E1110 11:04:53.571324       1 driver.go:60] GRPC error: rpc error: code = Internal desc = Could not mount juicefs: rpc error: code = Internal desc = Could not mount juicefs: pods "juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1" not │
│ I1110 11:06:55.655175       1 node.go:217] NodeGetCapabilities: called with args                                                                                ```

Hi @nadenf , can you tell which version did you use? And would you check if path "/jfs/pvc-467cfe22-0099-442f-8165-61be09295da1" is a mountpoint when the issue happened?
kubectl -n <namespace> exec -it juicefs-csi-node-<xxx> bash
df | grep /jfs/pvc-467cfe22-0099-442f-8165-61be09295da1

Hi @nadenf ,
I can't reproduce this issue. Can you provide complete log of csi-node pod on NodeB?

It's just a repeat of the logs above. Which component is responsible for launching PVC pods ?
juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1

csi-node pod on NodeB is responsible for launching PVC pods. Can you search in juicefs-csi-node-c7k49 log whether there is a record of pod creation and deletion?
Also confirm whether csi is deployed in system-filesystem, and whether there is pod juicefs-k3d-nodeB-pvc-467cfe22-0099-442f-8165-61be09295da1 in system-filesystem.

No feedback for a long time. closing, reopen when needed.


Install shopware.zip in apache docker

Hello all,
I want to install shopware locally on my windows 10 pc using a docker php:apache container (xampp did not work very well or is it normal that the shop has no styling at all after installation?).
So I just wanted to install the zip file you can get here by following the installation instructions.
The installation process runs without error. Even the shopware-platform.error.log has no entry in it but in the end the installed shop has no styling at all and the admin area is not present.
The request in the shopware.access.log looks like this:
<IP_ADDRESS> - - [14/Aug/2019:10:18:01 +0000] "GET /admin HTTP/1.1" 404 501 "http://myshopware6.com/recovery/install/index.php/finish/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0"

Probably someone of you has an idea what I did wrong or what I forgot?
This is my setup:
docker-compose

services:
  apache:
    build:
      context: ./apache
      dockerfile: Dockerfile
    volumes:
      - ./apache/shopware.conf:/etc/apache2/sites-enabled/shopware.conf
      - ./apache/php.ini:/usr/local/etc/php/php.ini
    ports:
      - "80:80"

  mysql:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    ports:
      - "3306:3306"
    environment:
      MYSQL_ROOT_PASSWORD: example

Dockerfile

FROM php:apache

COPY www/ /var/www/html/shopware6/
RUN chmod -R 755 /var/www/html/shopware6 \
    && chown -R www-data:www-data /var/www/html/shopware6

ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/

RUN chmod uga+x /usr/local/bin/install-php-extensions \
    && sync \
    && install-php-extensions pdo_mysql gd zip intl

shopware.conf

<VirtualHost *:80>
    ServerName myshopware6.com
    DocumentRoot "/var/www/html/shopware6/public"

    <Directory "/var/www/html/shopware6">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/shopware-platform.error.log
    CustomLog ${APACHE_LOG_DIR}/shopware-platform.access.log combined
    LogLevel warn
</VirtualHost>

php.ini

[PHP]
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 6M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
extension=intl
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[imap]
[intl]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = On
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.cookie_samesite =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
[Assertion]
ertions = 1)
zend.assertions = 1
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[dba]
[opcache]
[curl]
[openssl]
; End:

In the php.ini I removed the comments for better readability but it is a standard php.ini where I only changed these three settings
memory_limit = 512M
upload_max_filesize = 6M
extension=intl

I also added the domain to my hosts file like this
<IP_ADDRESS>           myshopware6.com

The shopware6.zip file lays extracted in the www/ folder beside the Dockerfile.
As a database host you need to use mysql. It is the service name from the docker-compose.yml
Any help is appreciated!
Best regards,
Stefan

Did you check if style files are accessible from the browser?
Check with the "Developer tools" from chrome to see the path of the CSS and open it on a tab.
I had a similar issue and was permissions

Hello,
these two things are probably connected. If the installation finishes, a theme will be assigned to the Storefront sales channel and then compiled. If the administration isn't available, the route for finishing the installer and compiling the theme is probably also missing.
How have you created the vhost for your installation? Have you created a entry in the apache configuration for "myshopware6.com"? If thats the case, does it map to /installation/path/of/shopware/public?
If the vhost which maps to the public directory is missing, you could try to access the administration by using the URL myshopware6.com/public/admin but this is not recommended.

Ah that makes sense.
You pointed me in the right direction and after reading the prerequesites again I missed the following
Other
Apache 2.4 or higher with active mod-rewrite

Yes mod-rewrite was not active and therefore it did not find any routes. I added now
RUN a2enmod rewrite

to the dockerfile and all seems to be working.
Thanks a lot guys for your investigation.
Best regards,
Stefan


python310Packages.robotframework-requests: 0.9.3 -> 0.9.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.robotframework-requests is: "Robot Framework keyword library wrapper around the HTTP client library requests"
meta.homepage for python310Packages.robotframework-requests is: "https://github.com/bulkan/robotframework-requests"
meta.changelog for python310Packages.robotframework-requests is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.9.4 with grep in /nix/store/x5iqvpy3sywm1kf9crf69c2lfljb7fmv-python3.10-robotframework-requests-0.9.4
found 0.9.4 in filename of file in /nix/store/x5iqvpy3sywm1kf9crf69c2lfljb7fmv-python3.10-robotframework-requests-0.9.4

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
python310Packages.robotframework-requests
python39Packages.robotframework-requests

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x5iqvpy3sywm1kf9crf69c2lfljb7fmv-python3.10-robotframework-requests-0.9.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.robotframework-requests https://github.com/r-ryantm/nixpkgs/archive/f6ddbf25240c5b6f49229153b9060e87b7a66286.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/x5iqvpy3sywm1kf9crf69c2lfljb7fmv-python3.10-robotframework-requests-0.9.4
ls -la /nix/store/x5iqvpy3sywm1kf9crf69c2lfljb7fmv-python3.10-robotframework-requests-0.9.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python310Packages.robotframework-requests
python39Packages.robotframework-requests

Maintainer pings

Result of nixpkgs-review pr 198647 run on x86_64-linux 1

2 packages built:

python310Packages.robotframework-requests
python39Packages.robotframework-requests


Ruby caching still not working

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Ruby install is still not being cached correctly, originally reported in https://github.com/railwayapp/nixpacks/issues/624
I'm seeing two problems:
1. Locally, intermediately COPY . /app/ is being executed before rvm install.
Using https://github.com/bullet-train-co/bullet_train repo, running nixpacks build . repeatedly results in randomly different order of COPY ./app/ and rvm install.
Install before file copy
 => [stage-0  1/19] FROM ghcr.io/railwayapp/nixpacks:debian-1666656625@sha256:07f8d22eb2a00effe17fc6304  0.0s
 => CACHED [stage-0  2/19] WORKDIR /app/                                                                 0.0s
 => CACHED [stage-0  3/19] COPY .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.nix .nixpack  0.0s
 => CACHED [stage-0  4/19] RUN nix-env -if .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.n  0.0s
 => CACHED [stage-0  5/19] RUN apt-get update && apt-get install -y --no-install-recommends procps libp  0.0s
 => CACHED [stage-0  6/19] RUN  curl -sSL https://get.rvm.io | bash -s stable && . /etc/profile.d/rvm.s  0.0s
 => CACHED [stage-0  7/19] RUN  rvm install 3.1.2                                                        0.0s
 => CACHED [stage-0  8/19] RUN  rvm --default use 3.1.2                                                  0.0s
 => CACHED [stage-0  9/19] RUN  gem install bundler:2.3.8                                                0.0s
 => CACHED [stage-0 10/19] RUN  echo 'source /usr/local/rvm/scripts/rvm' >> /root/.profile               0.0s
 => CACHED [stage-0 11/19] COPY . /app/                                                                  0.0s
 => CACHED [stage-0 12/19] RUN printf '\nPATH=/usr/local/rvm/rubies/3.1.2/bin:/usr/local/rvm/gems/3.1.2  0.0s
 => CACHED [stage-0 13/19] COPY . /app/                                                                  0.0s
 => CANCELED [stage-0 14/19] RUN --mount=type=cache,id=muk66F5hTK4-/root/bundle/cache,target=/root/.bun  1.1s

File copy before install
 => [stage-0  1/19] FROM ghcr.io/railwayapp/nixpacks:debian-1666656625@sha256:07f8d22eb2a00effe17fc6304  0.0s
 => [internal] load build context                                                                        0.2s
 => => transferring context: 3.74MB                                                                      0.1s
 => CACHED [stage-0  2/19] WORKDIR /app/                                                                 0.0s
 => CACHED [stage-0  3/19] COPY .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.nix .nixpack  0.0s
 => CACHED [stage-0  4/19] RUN nix-env -if .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.n  0.0s
 => CACHED [stage-0  5/19] RUN apt-get update && apt-get install -y --no-install-recommends procps libp  0.0s
 => [stage-0  6/19] COPY . /app/                                                                         0.1s
 => CANCELED [stage-0  7/19] RUN  curl -sSL https://get.rvm.io | bash -s stable && . /etc/profile.d/rvm  2.6s

2. In production, rvm install is always before files are copied but it's never cached.
8:03:14 PM: #7 [internal] load build context
8:03:14 PM: #7 sha*56:1eb9a8*bacd3f8d*660bfb868156abadc79175*3cafd8*63c14e65feb967*7a1
8:03:14 PM: #7 transferring context: 9.69MB 0.*s done
8:03:14 PM: #7 DONE 0.*s
8:03:14 PM:
8:03:14 PM: #6 [stage-0  2/20] WORKDIR /app/
8:03:14 PM: #6 sha*56:7177063938fcb83ad1c0696**7c06c*e8c870b94*57cc94fae0f5*d8c5b*fa65
8:03:14 PM: #6 CACHED
8:03:14 PM:
8:03:14 PM: #8 [stage-0  3/20] COPY .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.nix .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.nix
8:03:14 PM: #8 sha*56:c8aa349d619**076ebc6f0c*b906dafa3b108de76dfdf354d3904735a807677*
8:03:14 PM: #8 CACHED
8:03:14 PM:
8:03:14 PM: #9 [stage-0  4/20] RUN nix-env -if .nixpacks/nixpkgs-a0b7e70db7a55088d3de0cc370a59f9fbcc906c3.nix && nix-collect-garbage -d
8:03:14 PM: #9 sha*56:f90d4b0*f843935a6*e06ae8*fc3f9b34ff67b836171f44b74570be19d*9*469
8:03:14 PM: #9 CACHED
8:03:14 PM:
8:03:14 PM: #10 [stage-0  5/20] RUN apt-get update && apt-get install -y --no-install-recommends *** procps libpq-dev ***
8:03:14 PM: #10 sha*56:8480d5357788e8bc9ffc6f1be1686bab50f*ef*fef964f63d*9600a4f*193a97
8:03:14 PM: #10 CACHED
8:03:14 PM:
8:03:14 PM: #11 [stage-0  6/20] RUN  curl -sSL https://get.rvm.io | bash -s stable && . /etc/profile.d/rvm.sh
8:03:14 PM: #11 sha*56:fb0581ac6f170c4*a393e7bbe00490d81cb8b896fa86078dd6e55c0edabb7813
8:03:16 PM: #11 0.819 curl: (**) The requested URL returned error: 403
8:03:16 PM: #11 0.8*0 WARN: ...the preceeding error with code ** occurred while fetching https://api.github.com/repos/rvm/rvm/tags
8:03:16 PM: #11 1.5*4 Downloading https://github.com/rvm/rvm/archive/1.*9.1*.tar.gz
8:03:16 PM: #11 1.734 Downloading https://github.com/rvm/rvm/releases/download/1.*9.1*/1.*9.1*.tar.gz.asc
8:03:16 PM: #11 1.953 Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.*9.1*/1.*9.1*.tar.gz.asc',
8:03:16 PM: #11 1.953 but no GPG software exists to validate it, skipping.
8:03:16 PM: #11 *.033 Creating group 'rvm'
8:03:16 PM: #11 *.050 Installing RVM to /usr/local/rvm/
8:03:18 PM: #11 3.5*6 Installation of RVM in /usr/local/rvm/ is almost complete:
8:03:18 PM: #11 3.5*6
8:03:18 PM: #11 3.5*6   * First you need to add all users that will be using rvm to 'rvm' group,
8:03:18 PM: #11 3.5*6     and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
8:03:18 PM: #11 3.5*6
8:03:18 PM: #11 3.5*6   * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
8:03:18 PM: #11 3.5*6     in all your open shell windows, in rare cases you need to reopen all shell windows.
8:03:18 PM: #11 3.568   * Please do NOT forget to add your users to the rvm group.
8:03:18 PM: #11 3.568      The installer no longer auto-adds root or users to the rvm group. Admins must do this.
8:03:18 PM: #11 3.568      Also, please note that group memberships are ONLY evaluated at login time.
8:03:18 PM: #11 3.568      This means that users must log out then back in before group membership takes effect!
8:03:18 PM: #11 3.580 <warn>Thanks for installing RVM 🙏</warn>
8:03:18 PM: #11 3.580 Please consider donating to our open collective to help us maintain RVM.
8:03:18 PM: #11 3.580
8:03:18 PM: #11 3.580 👉  Donate: https://opencollective.com/rvm/donate
8:03:18 PM: #11 3.580
8:03:18 PM: #11 3.580
8:03:20 PM: #11 DONE 5.5s
8:03:20 PM:
8:03:20 PM: #1* [stage-0  7/20] RUN  rvm install 3.0.3
8:03:20 PM: #1* sha*56:ee69f16fbb84f8*3764b195ce3953*e99ad0bebbd9118dc84b0f904837f1*518
8:03:20 PM: #1* 0.57* Warning! PATH is not properly set up, /usr/local/rvm/gems/3.0.3/bin is not available.
8:03:20 PM: #1* 0.57*          <log>Usually this is caused by shell initialization files. Search for PATH=... entries.
8:03:20 PM: #1* 0.57*          You can also re-add RVM to your profile by running: rvm get stable --auto-dotfiles
8:03:20 PM: #1* 0.57*          To fix it temporarily in this shell session run: rvm use 3.0.3
8:03:20 PM: #1* 0.57*          To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
8:03:22 PM: #1* 0.885 Searching for binary rubies, this might take some time.
8:03:24 PM: #1* 3.716 No binary rubies available for: debian/11/x86_64/ruby-3.0.3.
8:03:24 PM: #1* 3.716 Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
8:03:24 PM: #1* 3.7*4 Checking requirements for debian.
8:03:24 PM: #1* 4.055 Installing requirements for debian.
8:03:26 PM: #1* 4.070 Updating system..
8:03:32 PM: #1* 4.780 Installing required packages: patch, bzip*, gawk, g++, gcc, bison, libgdbm-dev, libncurses5-dev, libsqlite3-dev, libtool, libyaml-dev, patch, sqlite3, libgmp-dev, libreadline-dev, libssl-dev...........................
8:03:32 PM: #1* 1*.44 Requirements installation successful.
8:03:32 PM: #1* 1*.5* Installing Ruby from source to: /usr/local/rvm/rubies/ruby-3.0.3, this may take a while depending on your cpu(s)...
8:03:32 PM: #1* 1*.58 ruby-3.0.3 - #downloading ruby-3.0.3, this may take a while depending on your connection...
8:03:32 PM: #1* 1*.66   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
8:03:32 PM: #1* 1*.66                                  Dload  Upload   Total   Spent    Left  Speed
8:03:34 PM: 100 19.3M  100 19.3M    0     0  31.4M      0 --:--:-- --:--:-- --:--:-- 31.3M
8:03:34 PM: #1* 13.*7 No checksum for downloaded archive, recording checksum in user configuration.
8:03:34 PM: #1* 13.38 ruby-3.0.3 - #extracting ruby-3.0.3 to /usr/local/rvm/src/ruby-3.0.3.....
8:03:56 PM: #1* 14.1* ruby-3.0.3 - #configuring.........................................................................
8:03:56 PM: #1* 36.63 ruby-3.0.3 - #post-configuration..
8:05:36 PM: #1* 36.64 ruby-3.0.3 - #compiling............................................................................................
8:05:40 PM: #1* 136.5 ruby-3.0.3 - #installing.....................
8:05:40 PM: #1* 139.5 ruby-3.0.3 - #making binaries executable...
8:05:40 PM: #1* 139.8 Installed rubygems 3.*.3* is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation.
8:05:40 PM: #1* 139.8 ruby-3.0.3 - #gemset created /usr/local/rvm/gems/ruby-3.0.3@global
8:05:42 PM: #1* 139.8 ruby-3.0.3 - #importing gemset /usr/local/rvm/gemsets/global.gems..........................................................
8:05:42 PM: #1* 141.6 ruby-3.0.3 - #generating global wrappers........
8:05:42 PM: #1* 14*.0 ruby-3.0.3 - #gemset created /usr/local/rvm/gems/ruby-3.0.3
8:05:42 PM: #1* 14*.1 ruby-3.0.3 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
8:05:42 PM: #1* 14*.1 ruby-3.0.3 - #generating default wrappers........
8:05:42 PM: #1* 14*.6 ruby-3.0.3 - #adjusting #shebangs for (gem irb erb ri rdoc ***rb rake).
8:05:42 PM: #1* 14*.6 Install of ruby-3.0.3 - #complete
8:05:42 PM: #1* 14*.7 Ruby was built without documentation, to build it run: rvm docs generate-ri
8:05:44 PM: #1* DONE 143.4s

Environment
nixpacks 0.11.3

I think I see what the issue is. With the bullet_train repo both Ruby and Node get installed. There seems to be some inconsistency with the order that these phases run in which is invalidating the Docker layer cache. I'm just taking a look at making the order deterministic now.

This should fix the layer caching issue when installing Ruby when Node is also included. https://github.com/railwayapp/nixpacks/pull/644
There were two problems

The dockerfile content for the phases was not in a deterministic order. This was only a problem when multiple providers were running. (In this case the ruby:setup and node:setup phases would flip back and forth and invalidate the Docker layer cache between runs)
The node setup phase was just outputting COPY . /app and nothing else. This would invalidate the layer cache for any further phases. Fixed by simplifying nooping in that case.

As for this PR, https://github.com/railwayapp/nixpacks/pull/642. It does break a few Ruby apps that we have seen on Railway so will need to check that the Gemfile does not use any local apps by default. That should be as simple as checking that gem "local" is not present in the Gemfile (example: https://github.com/railwayapp/nixpacks/blob/main/examples/ruby-local-deps/Gemfile#L3).


lost link to an example

One of your developers implemented a les mis version with a person-selector to feature just the person-relationships.
The issue where I found the example is closed.
The example uses two size values (11 for the number of groups and 55 - which we do not understand)
It also uses type: person which may be part of the technique to set the person-selector.
Can you point me to the issue that featured the customized version?
I would like to ask the developer an implementation question.

@jaygray0919 it's not clear to me how your request relates to this repo, but you can always browse the list of closed issues on github: https://github.com/vasturiano/d3-force-3d/issues?q=

this is the example i was looking for:
https://github.com/vasturiano/3d-force-graph/issues/225


i.MX RT1064 FlexSPI configuration block

Hi everybody!
I'm currently looking into the i.MX RT1064, trying to boot a MIMXRT1064-EVK using the imxrt-rs ecosystem. It works - at least to the extend that I am able to reproduce the basic example from the book on said evk (the adapted example is available here). Now that it works, I'm trying to understand how it works/what I actually did (I should have done it the other way round 😅 ).
Maybe you can shed some light on below questions on the generation of FlexSPI config blocks, please? I should start with a "disclaimer", though: I'm kind of new to both Rust and the embedded software development, so if you feel like my questions are out of place here, then that's fine, too.
Quick wrap-up of what I did: to the best of my knowledge, there is no "plug-and-play" fcb package targeting the 1064 like the ones shipped e.g. for the 1010, 1060 and 1170. To my understanding, the 1062 and the 1064 are quite similar, which is why I tried porting the fcb contained in the teensy4-rs repository. Please find the result here. Basically, there is only a single code change: specify 4MB flash size instead of 2MB. Ah, and please correct me, if my understanding of this is wrong!
While reading through the code, I encountered several questions:

The opcodes, operands, pads and sequences have been taken from the mcus' reference manuals, right? I noticed a corresponding comment in the sources Where does this docstring show up in the docs? I searched the docs for it, but I could not find it.
How did you choose which sequences to include in the code? In the reference manuals there are multiple sequences described  (IMXRT1060RM, rev. 3 and IMXRT1064RM, rev. 2; section 27.6.2 in both manuals), but not all of them are represented in code. Probably there just has to be one sequence per flexspi::Command, but then I guess the question simply becomes: how did you choose which commands to include in the code?
How did you decide in which order to place the sequences in a lookup table? I feel like I'm missing some part of documentation here.
Where did you take all the values required to setup the common configuration block from? Also, if you're aware of some material explaining the meaning of the individual values, please let me know 😃

Thank you so much for your help! 🙏

The configuration settings should come from the timning and requirements of the flash chip being used. E.g. some ISSI chip works up to X MHz, requires some delay between CS toggles, and wants read addresses written to a single SPI line, will return data in blocks of X using quad spi. The flash has blocks X bytes big that can be erased.
This information needs to then be translated into the table. For example if you were to modify the 1060evk for hyper flash boot (I'm tempted to try it) it would require a completely different configuration block.
Enabling the sdram so that its memory mapped would require... more configuration block updates.
And so on.
It's helpful to look at the FlexSPI IP docs, the flash chip docs, and imagine how you'd read/write to the flash chip with flexspi outside of the configuration block to understand this a little more I feel like. The block is sort of a template + metadata of what the boot rom needs to do just that.

Thanks for the clarification! I now get the overall idea of the configuration block.
To get into the details, I will certainly have to sort out the basic stuff first. It may sound silly, but not being familiar with the topic, I already struggle with:

imagine how you'd read/write to the flash chip with flexspi outside of the configuration block to understand this a little more

In case you're familiar with some introductory material covering the general concepts, please let me know. If not, that's okay, too (i.e. no need to do the googleing on my behalf 😉 ).

Thanks for all the pointers! I'm currently looking into the materials (I had the reference manuals at hand before, but it certainly is a good idea to compare it so some code in the SDK or Zephyr). I guess for now it's best to close this issue. I will open more specific ones in case I encounter follow up questions.


Inaccuracy in special.j1 function

It appears that the scipy implementation of the j1 function gets more and more inaccurate as the input grows. This is based on a comparison to mpmath's arbitrary-precision and double-precision implementations (shown below) as well as GSL, all of which agree while scipy diverges further and further from the general consensus. If we treat the arbitrary-precision implementation as the ground truth, then the relative error between the mpmath double-precision output and the scipy output in the last example with an input of999999999999999 is 0.05611426102699589
Reproducing code example:

Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpmath import *
>>> from scipy import special
>>> x = 9999
>>> (mp.j1(x),fp.j1(x),special.j1(x))
(mpf('0.0079424897098126258'), 0.007942489709812628, 0.007942489709812468)
>>> x = 99999999
>>> (mp.j1(x),fp.j1(x),special.j1(x))
(mpf('1.2498792106242295e-5'), 1.2498792106242292e-05, 1.2498791636381654e-05)
>>> x =<PHONE_NUMBER>99
>>> (mp.j1(x),fp.j1(x),special.j1(x))
(mpf('-5.1313799111280379e-7'), -5.131379911128037e-07, -5.131339086579077e-07)
>>> x =<PHONE_NUMBER>999999
>>> (mp.j1(x),fp.j1(x),special.j1(x))
(mpf('3.556678693744154e-9'), 7.931694266803263e-09, 7.73585954284989e-09)
>>> x =<PHONE_NUMBER>99999
>>> (mp.j1(x),fp.j1(x),special.j1(x))
(mpf('8.039843402588297e-9'), 8.0398434025883e-09, 7.58869353127929e-09)

Error message:

Scipy/Numpy/Python version information:
1.3.1 1.17.2 sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)<!-- You can simply run the following and paste the result in a code block
import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)

-->

Loss in relative precision is expected for floating-point implementations of oscillatory functions at large arguments. Even a function as simple as e.g. sin experiences loss of precision because the period is not exactly representable in double precision.

Perhaps this then would be better phrased as a feature request. GSL's implementation which is based on the SLATEC source is more stable at larger arguments than the cephes algorithm. Both use double precision. Perhaps worth looking into for someone who is interested? This is a bit outside of my wheelhouse at this point. Thanks!


High-res image wont show up

Hi,
I have truobles getting the High-res image up. Blurry is working fine. I'll try fetching the images in a foreach.
<?php
$projects = page('work')->children()->listed()->filterBy('onhome', true);
if(isset($limit)) $projects = $projects->limit($limit);
?>
<?php foreach($projects as $project): ?>
<img src="<?= $project->cover()->toFile()->placeholderUri() ?>" data-src="<?= $project->cover()->toFile()->url() ?>" data-lazyload data-sizes="auto">
<?php endforeach ?>

Sorry, but I don't follow. What is the problem you're experiencing exactly? Do blurry images show up, but aren't replaced by the normal images? You'll have to use the included JS library for that.

Exactly!
I put the "useLazyload.js" file in my footer. Is that correct?

No, it has to be initialized first. Please see the instructions section of the readme.
The JS library is primarily intended to be used alongside a build chain (with bundling).

I also tried the initialising code from the readme. With that I'll get "Uncaught SyntaxError: Cannot use import statement outside a module".

Yes, you'll have to add the type="module" attribute. But I have a better solution for you – I have prebundled the library for you. Take this code:
(()=>{var z=!("onscroll"in window)||/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),b=(t,o=250)=>{let e;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{e=null,t(...s)},o)}},c=t=>{let o=t.dataset.src;o&&(t.src=o);let e=t.dataset.srcset;if(e){t.srcset=e;let s=t.dataset.sizes;s&&(t.sizes=s==="auto"?`${t.offsetWidth}px`:s)}t.dataset.loaded="true"},d=t=>t.dataset.loaded==="true",g=t=>{for(let o of t)o.dataset.sizes==="auto"&&(o.sizes=`${o.offsetWidth}px`)},w=t=>(o,e)=>{for(let s of o)if(s.intersectionRatio>0||s.isIntersecting){let{target:n}=s;if(e.unobserve(n),d(n))continue;c(n),t(n)}},v=(t,o=document)=>t instanceof Element?[t]:t instanceof NodeList?[...t]:o.querySelectorAll(t);function f(t="[data-lazyload]",o={}){let{root:e,rootMargin:s="0px",threshold:n=0,loaded:a=()=>{}}=o,u=new IntersectionObserver(w(a),{root:e,rootMargin:s,threshold:n});return{observe(){let r=v(t,e);for(let i of r)if(!d(i)){if(z){c(i),a(i);continue}u.observe(i)}let l=b(()=>g(r),100);window.addEventListener("resize",l)},triggerLoad(r){d(r)||(c(r),a(r))},observer:u}}var L=f();L.observe();})();

Just save it to a filename of your liking and include it in your footer. All done. 🙂

The prebundled libary is working perfectly. Thanks Johann!

If anyone reads this and still wonders. From version 1.3 of this plugin forward, the lazy loading library can be used without a build step:
Simply load it from a CDN:
<script src="https://unpkg.com/loadeer" defer init></script>

The defer attribute makes the script execute after HTML content is parsed.
The init attribute tells Loadeer.js to automatically initialize and watch all elements that have a data-lazyload attribute.


How to use seenreq?

It is indicated :
Cache :  options.skipDuplicates: Boolean If true skips URIs that were already crawled, without even calling callback() (Default false). This is not recommended, it's better to handle outside Crawler use seenreq
How to use seenreq? Is it possible to have an example?

Hey guy, it's better to go through the README of seenreq quickly.

OK.
From my point of view I think you should use a BloomFilter.
For example: https://github.com/jasondavies/bloomfilter.js

BloomFilter is one of hashing algorithms. When you wanna test if a url is crawled, no matter which algorithm, you should normalize all the request headers, even requests body with POST method, and manage cache life circle.
BloomFilter only make difference when you are doing with huge amount of urls, say billions.
So I'm not clear what you want. if you are using crawler,  seenreq is the best choice, if you have to face the scenario, seenreq could be extended using BloomFilter easily.
Feel free to tell me the update.


need help for moving dll's

Hi, sorry if i have posted in wrong section. Just want to figure out how to do to move root folder ll's to subfolder, ex: bin subfolder.
Any help would be appreciated.
Regards

That's not something you should do, I need to do it when linking the assemblies. Hopefully I can manage and the next version will have this.

Next version will be cleaner


15.1.3 (URI Handling) chapter test262 failures

Hello.
The following test262 tests related to 15.1.3 chapter are failing on current master (906558b8e94aa9118971188af9880eb47ff9b791):

ch15/15.1/15.1.3/<IP_ADDRESS>/S<IP_ADDRESS>_A2.5_T1
ch15/15.1/15.1.3/<IP_ADDRESS>/S<IP_ADDRESS>_A2.5_T1

Works on master (f17f785b6ec0c71c2ef37e4e80a98aff1eff0963)


Update deepcopy to handle nested documents

In queries that include nested documents, deepcopy wasn't
capturing that the nested documents were documents,
which is sometimes tested using isinstance. This ensures
that the type is retained through deep copies.
This adds two tests, as well. "without - 38" failed prior to
this patch. "without - 39" succeeded, but was included to
test that the order of the merge() and without() methods was
signficant in triggering the deepcopy issue.

I'm pretty sure that deepCopy should never return a Document. If we have to deep copy it, it means that we can no longer update it.
I think the problem is more that when we merge a Document, we should merge its values and not the two fields doc/table.


stabel/jenkins: Feature: whitelist ip ranges and namespaces for agents connections

Is this a new chart
No.

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
This PR adds master.networkPolicy.internalAgents and master.networkPolicy.externalAgents stanzas to fine grained controls over where internal/external agents can connect from. Internal ones are allowed based on pod labels and (optionally) namespaces, and external ones are allowed based on IP ranges.
In order to achieve the above,  two issues were discovered and fixed a long the way:

The default config.xml template leaves a space after the default PodLabel if custom labels are not provided. The kubernetes plugin replaces spaces with an x character making the network policy podSelector fail to match the label on the agent.

When JCasC is enabled, it overrides the config.xml and does not assign the expected PodLables to the created agents, thus prevents network policies from functioning as intended.

Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
@lachie83 @viglesiasce @maorfr @torstenwalter @mogaal
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @maorfr

Hi @torstenwalter and @maorfr
Is there anything i can do to make this pr go through? I've tested all the cases i could think of, both where it should work, and where it shouldnt. We really need this feature, as networkpolicy is broken in the current release and we have a need to control where external agents connects from.

@hoeghh Sorry for the late reply.
Can you merge latest changes into it or rebase onto master?
I am going to check afterwards.

thanks @torstenwalter .. changes are merged from master now!

/ok-to-test

/ok-to-test

/lgtm

@sami-alajrami Thank you for the PR and the quick reaction. I intended to mention you in my earlier reply.


Improve test fixture readability

I've made the error output of a test fixture failure more readable, and enabled writing test fixture expected errors inline in the Test.s file. See the commit messages for more info

damn dope idea
would be good to have this work for multiline queries [line 2 col 0] as well but thats not blocking for this pr


EventEmitter leak in the batchingReceiver

Describe the bug
There is an eventEmitter leak in the batchingReceiver.
To Reproduce

With the same client instance, call receiveBatch more than 10 times.
The MaxListenersExceededWarning is received as the sessionError listener is added at every call, but never removed.

Expected behavior
Event emitters are correctly managed.
Proposed fix:
--- a/lib/core/batchingReceiver.ts
+++ b/lib/core/batchingReceiver.ts
@@ -96,6 +96,7 @@ export class BatchingReceiver extends MessageReceiver {
         if (this._receiver) {
           this._receiver.removeListener(ReceiverEvents.receiverError, onReceiveError);
           this._receiver.removeListener(ReceiverEvents.message, onReceiveMessage);
+          this._receiver.session.removeListener(SessionEvents.sessionError, onReceiveError);
         }

Thanks for reporting this @gcstarr!
Would you like to send a PR?
cc @amarzavery

Fixed with https://github.com/Azure/azure-service-bus-node/pull/85
Thanks again for reporting @gcstarr

Thanks!

Hey @gcstarr,
We wanted to give you an update that Preview 1 for this library has now been released.
See https://www.npmjs.com/package/@azure/service-bus
We have also moved the project from this repo to https://github.com/Azure/azure-sdk-for-js/tree/master/packages/%40azure/servicebus/data-plane
Please do give the published package a try. If you see any issues, please log them at  https://github.com/Azure/azure-sdk-for-js/issues. We appreciate any feedback you have.


Loading backend styles in frontend: Unusable with Gutenberg 7.5 AND performance/GDPR issue

I created a completely clean WordPress-Website.
I created a new block with create-guten-block: It loads all backend styles. -> Performance problem. Even a Google font style is being loaded and that's a real problem for GDPR.
I installed Gutenberg 7.5: Backend styles are loaded and there is a new backend-style for mobile devices:

html {
    position: fixed;
    width: 100%;
}

-> EVERY website with create-guten-block and Gutenberg 7.5 can't be scrolled on mobile
Without cgb-block:

With cgb-block

I can confirm for every website, every theme and every block I created with cgb and with Gutenberg 7.5.
Issue in Gutenberg github: https://github.com/WordPress/gutenberg/issues/20214

CGB gives you the code, you can edit all of it. If you can improve it, send in a PR. @asharirfan look into this.

I think it seems to relate to #210 and #267.  (Didn't see it earlier, I'm sorry.)

This issue must have been solved via #267.
Successfully published:

<EMAIL_ADDRESS><EMAIL_ADDRESS>
You do have to manually update the init.php file like this.


Update: Postman.Postman version 8.3.1

Removing old versions to reduce clutter
Microsoft Reviewers: Open in CodeFlow

/azp run


save/restore column visbility and order

Is it somehow possible to restore a certain order of columns?
Let's say I let the user move columns around. I want my app to save this new order so that the user sees the same order he "left" with when he opens the app next time.
For this I would need to read the column order, save it somewhere (localStorage f.i.) and then set it again when loading the app.

Think we should be able to do something like that. I havent added the option to create column setup with binding a configuration, but that and a way to get the current setup would fix it.
Could be useful to just have a get and set function for this, so you could have multiple option not just duing load, sometimes when working with data your column setup really depends on what you are doing at that moment

Could be useful to just have a get and set function for this,

Perfect! 👍

If you clone repo you can check a early version of this, in the long run this will need some work, but something to work on.
PS! row-repeat wont work with this this.. ( I think... maybe it does, really dont know)

just select this navigation, edit the column setup and click saveColConfig, then go to the first and back again, it should remember the column setup

Wow, you're fast. 👍
I will clone it tomorrow, anyway.

row-repeat wont work with this this..

With row-repeat  have literally full control anyway, right? :smiley:

yes.
but pinned columns might work at the same time, if it does Im not sure if I should call it feature or bug :joy:

u trying to use the grid with real data will prb help a lot seeing missing parts, stuff that needs to improve, esp on the datasource, and prb gridconnector too.
thats the 2 of 3 replacable part (that I want to be replaceable ) selection is the 3 :-)
just need to get them 100% for local array before creating interfaces.

Added a set function too, since you missed that a lot :-)

Thank you so much! :smiley:

fix this so if you set null it restores grid to default column set in html (this will not work with the html row-repeat)

Sum up this:
Get:
let columnConfigArray = this.gridConnector.getColConfig();

Set
this.gridConnector.getColConfig(columnConfigArray);

Set default
this.gridConnector.getColConfig(null);

Nice, thanks! :+1:
Would it be possible to, for example read the columns, set the column templates to null, then set the columns so order etc. is restored but only the col templates are taken from default?

this.gridConnector.getColConfig(null) restores default set in the html, even if you havent read any columns first, or did I just misunderstand where you where headed with this? :-)

Yes. :smiley:
In short: I want to save all column parameters but I'd like to be able to reset only the template.
I thought the best way to do it is this.gridConnector.setColConfig(config) with a config that has all templates set to null. config itself is not null.

but I'd like to be able to reset only the template

Not sure if Im following you here, if you dont have custom html making you columns, you can clear out the colRowTemplate & colheaderTemplate, that will be rebuild.
If you have custom html making you column then you cant, since thats what Im putting inside in the columns in the rows. I could maybe try and split these later, making it easier to know whats generated by grid, and whats generated by you.

Adding this should solve this ?
Give better control over it atleast
https://github.com/vegarringdal/vGrid/issues/68

this should be solved, just reopen if I missed something


operator-sdk scorecard does not work when run inside a container

Bug Report
What did you do?
Inside of a container, I ran the  operator-sdk scorecard command specifying the serviceaccount and namespace options.
operator-sdk scorecard ... --namespace=mynamespace --service-account=my-sa ...
What did you expect to see?
I expected to see the scorecard tests running using the serviceaccount that I specified.
What did you see instead? Under which circumstances?
I saw the following error after issuing the operator-sdk command:
Error: error running tests error creating ConfigMap configmaps is forbidden: User "system:serviceaccount:pw-xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx:default" cannot create resource "configmaps"
The serviceaccount specified is not correct and does not exist.
Environment
Operator type:
/language go
Kubernetes cluster type:
OpenShift 4.7
$ operator-sdk version
operator-sdk version: "v1.6.4", commit: "3cd22bdcce2ebe150f69afca75c1320799e476cf", kubernetes version: "1.19.4", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"
$ go version (if language is Go)
"go1.15.5", GOOS: "linux", GOARCH: "amd64"
$ kubectl version
Possible Solution
Additional context

scorecard does create a ConfigMap when it runs, it stores the bundle contents in that ConfigMap essentially, as part of scorecard's cleanup it removes the ConfigMap as well.  As scorecard runs tests (as Pods), it will mount that ConfigMap into each test pod so that each test can have access to the bundle contents.
So, whatever context that scorecard runs in, it needs to run using a ServiceAccount that allows for creating ConfigMaps.  You might verify that your ServiceAccount that you are using to execute scorecard within has those rbac privs.

The service account that I specified on the command does have the necessary rbac privileges.  The problem is that it is not using that serviceaccount when it tries to create the ConfigMap as shown in the error:  User "system:serviceaccount:pw-xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx:default" cannot create resource "configmaps"
That is not the serviceaccount that was specified on the command.
In addition, this works fine if I do not run the operator-sdk command from within a container.  Is running the operator-sdk scorecard command supported inside of a container.

the test Pods that get created will specify the ServiceAccount you are passing on the command line, not the actual operator-sdk container that you are running.  So, the Pod that you are running the operator-sdk command from, does that specify a ServiceAccount that has the ConfigMap create priv?

No, the pod that is running the operator-sdk command does not specify a ServiceAccount that has ConfigMap create priv.

ok, that would be the issue, you would need to provide that priv to the pod since operator-sdk scorecard requires that priv to work.

Looks like this was addressed, closing for now. Please feel free to reopen if you aren't all set.


More memory issues

Hi,
So, another small bug causing some valgrind complaints.
https://github.com/utwente-fmt/ltsmin/blob/031d920ca8c7703f4cfb94373b82d15960afe0b1/src/mc-lib/lb.c#L115-L122
because of the size_t + cast to int*, the top 4 bytes of "res" are not assigned by random_r.
I get this trace :
==2243== Conditional jump or move depends on uninitialised value(s)
==2243==    at 0x93E3F6: request_random (lb.c:121)
==2243==    by 0x93E95F: lb_internal (lb.c:183)
==2243==    by 0x5ECC95: lb_balance (lb.h:75)
==2243==    by 0x5EDAA8: dfs_fifo_bfs (dfs-fifo.c:229)
==2243==    by 0x5EE272: dfs_fifo_run (dfs-fifo.c:338)
==2243==    by 0x5E88F1: alg_run (algorithm.c:66)
==2243==    by 0x5E4E12: run_alg (run.c:50)
==2243==    by 0x5E0AAF: main (pins2lts-mc.c:209)
==2243==  Uninitialised value was created by a stack allocation
==2243==    at 0x93E363: request_random (lb.c:114)
==2243==
==2243== Use of uninitialised value of size 8
==2243==    at 0x93E423: request_random (lb.c:122)
==2243==    by 0x93E95F: lb_internal (lb.c:183)
==2243==    by 0x5ECC95: lb_balance (lb.h:75)
==2243==    by 0x5EDAA8: dfs_fifo_bfs (dfs-fifo.c:229)
==2243==    by 0x5EE272: dfs_fifo_run (dfs-fifo.c:338)
==2243==    by 0x5E88F1: alg_run (algorithm.c:66)
==2243==    by 0x5E4E12: run_alg (run.c:50)
==2243==    by 0x5E0AAF: main (pins2lts-mc.c:209)
==2243==  Uninitialised value was created by a stack allocation
==2243==    at 0x93E363: request_random (lb.c:114)

I think using size_t res=0 at line 115 should solve the issue, the type is still too large for the use that is made of it (random is not producing a random size_t) but it suppresses the error.
yann

this is closed by the accepted PR https://github.com/utwente-fmt/ltsmin/pull/182


Null Reference Exceptions At Startup

_configuration at line 33 is never initialized
At line 37 there is a call to InitializeConfigurationFileDependencies which in turn calls GetAppSettingsByHostName() which uses _logger which is not initialized yet (Its being initialized at line 38) which causes a null reference exception
At line 38 you try to initialize _logger by using _configuration which is not yet initialized which causes a null reference exception.

@shrage Gotcha, I'll get this patched for you ASAP. We've been using a different host project internally, so I missed this bug as our internal host project has some minor differences.

@shrage So I've verified now that the default setup will connect to ARI (assuming you configure Asterisk correctly) and will answer a call, play a prompt (one of the default prompts included with Asterisk) and then hangup the line. Let me know if you run into any issues.