AttributeError: 'VisionTransformer' object has no attribute 'forward_flex'

When I train super-resolution stages, a message was thrown out:
Traceback (most recent call last):
File "train.py", line 338, in
main()  # pylint: disable=no-value-for-parameter
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1137, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "train.py", line 323, in main
launch_training(c=c, desc=desc, outdir=opts.outdir, dry_run=opts.dry_run)
File "train.py", line 106, in launch_training
torch.multiprocessing.spawn(fn=subprocess_fn, args=(c, temp_dir), nprocs=c.num_gpus)
File "/home/ubuntu/MyFiles/.local/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 230, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "/home/ubuntu/MyFiles/.local/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 188, in start_processes
while not context.join():
File "/home/ubuntu/MyFiles/.local/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 150, in join
raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "/home/ubuntu/MyFiles/.local/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 59, in wrap
fn(i, *args)
File "/home/ubuntu/user_space/stylegan_xl/train.py", line 49, in subprocess_fn
training_loop.training_loop(rank=rank, **c)
File "/home/ubuntu/user_space/stylegan_xl/training/training_loop.py", line 170, in training_loop
G = dnnlib.util.construct_class_by_name(**G_kwargs, **common_kwargs).train().requires_grad(False).to(device) # subclass of torch.nn.Module
File "/home/ubuntu/user_space/stylegan_xl/dnnlib/util.py", line 303, in construct_class_by_name
return call_func_by_name(*args, func_name=class_name, **kwargs)
File "/home/ubuntu/user_space/stylegan_xl/dnnlib/util.py", line 298, in call_func_by_name
return func_obj(*args, **kwargs)
File "/home/ubuntu/user_space/stylegan_xl/torch_utils/persistence.py", line 104, in init
super().init(*args, **kwargs)
File "/home/ubuntu/user_space/stylegan_xl/training/networks_stylegan3_resetting.py", line 612, in init
G_stem = legacy.load_network_pkl(f)['G_ema']
File "/home/ubuntu/user_space/stylegan_xl/legacy.py", line 25, in load_network_pkl
data = _LegacyUnpickler(f).load()
File "/home/ubuntu/MyFiles/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'VisionTransformer' object has no attribute 'forward_flex'
I use stylegan2, torch ==1.10.1.

I created a Miniconda environment via conda env create -f environment.yml and now the problem is:
ModuleNotFoundError: No module named 'dill._shims'

#55

I created a Miniconda environment via conda env create -f environment.yml and now the problem is: ModuleNotFoundError: No module named 'dill._shims'

I ran into this too. I copied the dill._dill.py and dill._shims.py files from this page https://github.com/uqfoundation/dill/tree/master/dill into my conda environment. It worked but I still have the VusuibTransformer issue.

I don't know whether this is the proper way to solve this, but I bypassed this problem with the code below.
import io
import pickle
import pickletools

def load_g_ema(network_pkl):
    with open(network_pkl, "rb") as handle:
        d_starts = -1
        g_ema_starts = -1

        # assumes that networks are saved in
        # the order of 'G', 'D', 'G_ema'
        for i, op in enumerate(pickletools.genops(handle)):
            if op[0].name == "BINUNICODE":
                if op[1] == 'D':
                    d_starts = op[2]
                elif op[1] == 'G_ema':
                    g_ema_starts = op[2]

        assert d_starts >= 0 and g_ema_starts >= 0

    with open(network_pkl, 'rb') as handle:
        bs = handle.read()
        bs = bs[:d_starts] + bs[g_ema_starts:]
        obj = pickle.Unpickler(io.BytesIO(bs)).load()

    return obj['G_ema']

The point of problem is in the discriminator and discriminator is not what we need for superres training or generation. So I parsed and removed the part related to the discriminator in the pickle file.
I could start superres training with replacing the code
with dnnlib.util.open_url(path_stem) as f:
    G_stem = legacy.load_network_pkl(f)['G_ema']

to
G_stem = load_g_ema(path_stem)

in the file networks_stylegan3_resetting.py.
Similarly, I could generate images with trained model by replacing checkpoint loading part in the file gen_images.py:

Hope this helps

Could you help me understand what you did here a little more? How did you use the first functions you wrote? And what part of the pickle file did you remove?

For example, in the file gen_images.py line 97-99 are for loading trained weight:
with dnnlib.util.open_url(network_pkl) as f:
    G = legacy.load_network_pkl(f)['G_ema']
    G = G.eval().requires_grad_(False).to(device)

I changed this part to
G = load_g_ema(network_pkl)
G = G.eval().requires_grad_(False).to(device)

You can just replace the part that loads G_ema like the above.
About the pickle file, we know that the pickled file is a dictionary and D is the key for discriminator. So I tried to find the point where the information about discriminator starts (which is d_starts) and the point where the information G_ema starts (which is g_ema_starts). Since what we need is G_ema I removed things between them and unpickled.
Actually, this is the first time that I tried to load only the part of the pickle file and I believe that there exists a better way to solve this. Though I could not fully understand it, I did a job based on this link, so reading this link may help you to understand the code.

Did you run first function on network-snapshot.pkl? When I do that op[1] gives me the entire file.

Yes, I ran the first function on network-snapshot.pkl, which is the training process output.

For example, in the file line 97-99 are for loading trained weight:gen_images.py
with dnnlib.util.open_url(network_pkl) as f:
    G = legacy.load_network_pkl(f)['G_ema']
    G = G.eval().requires_grad_(False).to(device)

I changed this part to
G = load_g_ema(network_pkl)
G = G.eval().requires_grad_(False).to(device)

You can just replace the part that loads like the above.G_ema
About the pickle file, we know that the pickled file is a dictionary and is the key for discriminator. So I tried to find the point where the information about discriminator starts (which is ) and the point where the information starts (which is ). Since what we need is I removed things between them and unpickled.D``d_starts``G_ema``g_ema_starts``G_ema
Actually, this is the first time that I tried to load only the part of the pickle file and I believe that there exists a better way to solve this. Though I could not fully understand it, I did a job based on this link, so reading this link may help you to understand the code.

Hello,I improved according to your code, but reported this error.
Traceback (most recent call last):
File "gen_images.py", line 152, in
generate_images() # pylint: disable=no-value-for-parameter
File "/root/.local/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/root/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/root/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "gen_images.py", line 126, in generate_images
G = load_g_ema(network_pkl)
File "gen_images.py", line 42, in load_g_ema
assert d_starts >= 0 and g_ema_starts >= 0
AssertionError

Basically, the error states that this condition is not met:
assert d_starts >= 0 and g_ema_starts >= 0

This happens if at least one of the if-statement is not triggered:
        d_starts = -1
        g_ema_starts = -1

        # assumes that networks are saved in
        # the order of 'G', 'D', 'G_ema'
        for i, op in enumerate(pickletools.genops(handle)):
            if op[0].name == "BINUNICODE":
                if op[1] == 'D':
                    d_starts = op[2]
                elif op[1] == 'G_ema':
                    g_ema_starts = op[2]


⚠ Bofrost.at has degraded performance

In f8ba1f4, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 971 ms

Resolved: Bofrost.at performance has improved in f304ac2 after 13 minutes.


Repl Support

I only got into cloudlink recently but I'd like to think ik enough to atleast setup a server. See I'm using repl (repl? replit? the name is so inconsistent) and I've built my project using the example py file but when I try to push the server to anything other than localhost, I get errors. Here they are:
CloudLink v<IP_ADDRESS>
Set MOTD to "CloudLink test".
Running server on ws://<IP_ADDRESS>:3000/
----------------------------------------
Exception happened during processing of request from ('<IP_ADDRESS>', 58234)
Traceback (most recent call last):
  File "/usr/lib/python3.8/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket_server/websocket_server.py", line 271, in __init__
    StreamRequestHandler.__init__(self, socket, addr, server)
  File "/usr/lib/python3.8/socketserver.py", line 747, in __init__
    self.handle()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket_server/websocket_server.py", line 282, in handle
    self.handshake()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/websocket_server/websocket_server.py", line 433, in handshake
    assert headers['upgrade'].lower() == 'websocket'
KeyError: 'upgrade'
----------------------------------------`

Thats ment to happen

Thats ment to happen

Ok but the server can't connect. How do I fix it?

replit is odd , i have that problem myself.

in server_example.py
change cl.server() to cl.server(ip="<IP_ADDRESS>")
Hope this helps!

in server_example.py change cl.server() to cl.server(ip="<IP_ADDRESS>") Hope this helps!

I did that. Thats when I get that issue.
For now I've simply made a fork of CloudLink and added the WebSocket Server it creates. It seems to work.


Support for labels and comments

It would be very useful to support RDFS lexicalisation or SKOs lexicalisation.
We need to leave editorial comments and label mappings with references to "fields in a conceptual model".
In RML/RDF is done like this:
tedm:AdditionalOrganisation a rr:TripleMap ;
    rr:subjectMap
        [
            rr:template "http://data.europa.eu/a4g/resource/AdditionalOrganisation/{replace(replace(/TED_EXPORT/CODED_DATA_SECTION/NOTICE_DATA/NO_DOC_OJS, ' ', '-' ), '/' , '-')}/{unparsed-text('https://digest-api.ted-data.eu/api/v1/hashing/fn/uuid/' || encode-for-uri(path()) || '?response_type=raw')}" ;
            rr:class org:Organization

        ] ;
    rml:logicalSource
    [
        rml:source "data/source.xml" ;
        rml:iterator "/TED_EXPORT/FORM_SECTION/F06_2014/CONTRACTING_BODY/ADDRESS_CONTRACTING_BODY_ADDITIONAL" ;
        rml:referenceFormulation ql:XPath
    ] ;
    rr:predicateObjectMap
        [
            rr:predicate epo:hasLegalName ;
            rr:objectMap
                [
                    rdfs:label "I.1.1	Official name	(BT-500	Organisation Name)" ;
                    rdfs:comment "This is a language dependent mapping. The way to access it is specific to each Form as it depends on the Root element." ;
                    rml:reference "OFFICIALNAME";
                    rml:languageMap [
                         rml:reference "lower-case(ancestor::F06_2014/@LG)"
                    ]
                ] ;
        ] .

So, my suggestion for this would be something like:
prefixes:
  foaf: http://xmlns.com/foaf/0.1/

mappings:
  AdditionalOrganisation:
    sources:
      - ['data.xml~XPath', '/Iterator']
    s: http://data.europa.eu/a4g/resource/AdditionalOrganisation/$(PATH_EXPRESION)
    po:
      - [epo:hasLegalName, $(OFFICIALNAME), $(lower-case(ancestor::F06_2014/@LG))~lang] # TITLE: I.1.1 [..] | COMMENT: This is a language [...]

Supporting this feature would require a refractor of the whole code to support the parsing of the YAML file with the structure prosed by Ruamel.yaml instead of primitive Python structures.
Before implementing it, pros&cons must be analyzed to avoid dependence on a specific lib.
Considering this is not "a must" right now, I would suggest not including it in the v1.0

Are there any updates on whether this function will be implemented and if yes, when can we expect the update?

Indeed, it describes the business field corresponding to the mapping source.
The comment may extend that or may be anything else (such an editorial note).
However used, documenting technical constructs have never been a bad practice and is worth supporting.


volar代码提示不生效

vscode版本:
版本: 1.85.1
提交: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
日期: 2023-12-13T09:49:37.021Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
volar版本: v1.8.27
问题描述: vue文件没有任何代码提示, crtl+鼠标左键也不能跳转到变量定义
插件运行时错误:
Request vue/detectTagCasing failed with message: Cannot read properties of undefined (reading 'traceResolution')

Do you have any reproduction?

same problem

As I updated my vsCode, all vue file with Vue3.x and .ts file cannot highlight any syntax.

Do you have any reproduction?

我也是卡的起飞，有没有什么配置秘籍啊，代码提示十多秒都出不来，只能反复重启 Volar。

workbench.desktop.main.js:sourcemap:2004
Error: Pending response rejected since connection got disposed
at Object.dispose (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:31:4574)
at Object.dispose (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:44:9744)
at p.handleConnectionClosed (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:41:12801)
at p.handleConnectionClosed (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:44:38817)
at t (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:41:12417)
at zc.invoke (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:1:11643)
at n.fire (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:1:12412)
at It (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:5:5912)
at zc.invoke (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:1:11643)
at n.fire (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:1:12412)
at bu.fireClose (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:1:16786)
at ChildProcess. (c:\Users\Administrator.vscode\extensions\vue.volar-1.8.27\dist\client.js:31:16294)
at ChildProcess.emit (node:events:526:35)
at maybeClose (node:internal/child_process:1091:16)
at Process.onexit (node:internal/child_process:302:5)

Closing this one as many things have changed since 2.x. Feel free to create a new issue with a minimal reproduction if you're still having issues, thanks!


[Mac] Mesh geometry does not show the first time the model is loaded

On Mac, mesh geometry does not show the first time the GUI is loaded. This is present in the public beta 4.0.

@chrisdembia will verify

Verified 🏁


Problem in running PART stand alone

Dear Zeyu Zheng,
I hope all is well.
I am trying to run PART standalone with this command line:
perl ../panpop/bin/PART_run.pl --in_vcf ../vcf_jasmine_nonlinear_dist_id/file_x_panpop_sorted.vcf.gz -o first_merge_dir -r ../ncbi/reference_hr.fasta -t 30 --tmpdir TMPDIR > first_merge.log
The input .vcf was created in two steps:

bcftools concat between same sample but different variant callers
after sorting and indexing, I used bcftools merge to merge all concat outputs, combining all different samples
When I pass this file to PART, it seems to work at first. But after a few minutes it stops, without saying anything in the logs. It seems to stop at a different point each time.
Take my last run as an example.
This comes from the first_merge.log file
Warn! aln software(muscle) exit status(2)! redo! No. 1
Warn! aln software(muscle) exit status(2)! redo! No. 1
Warn! aln software(muscle) exit status(2)! redo! No. 1
Warn! aln software(muscle) exit status(2)! redo! No. 1
Argument "CTG--------CTGATGCTGCAGCTGACGGACAAGGGCTCCGTGCTCTACCAGCTG..." isn't numeric in subroutine entry at /data/rossir/panpop/scripts/../lib/realign_alts.pm line 856.
Argument "CTG----TGATGCTGCAGCTGACGGACAAGGGCTCCGTGCTCTACCAGCTG..." isn't numeric in subroutine entry at /data/rossir/panpop/scripts/../lib/realign_alts.pm line 856.
Argument "CTG--------CTGATGCTGCAGCTGACGGACAAGGGCTCCGTGCTCTACCAGCTG..." isn't numeric in sort at /data/rossir/panpop/scripts/../lib/realign_alts.pm line 872.
Argument "CTG----TGATGCTGCAGCTGACGGACAAGGGCTCCGTGCTCTACCAGCTG..." isn't numeric in sort at /data/rossir/panpop/scripts/../lib/realign_alts.pm line 872.
Warn! no alt[0] from aln software(famsaP)! redo! No. 1
Warn! aln software(mafft) exit status(1)! redo! No. 1
Warn! aln software(muscle) exit status(2)! redo! No. 1

This is the output directory content:
1.realign0.unsorted.vcf.gz  1.realign0.unsorted.vcf.gz.log
(sometimes there are more files)
Do you have any suggestions? Running the programme with smaller vcfs seems to work fine, I get a file called 3.final.vcf.gz.
Am I doing something wrong?
Your tool looks much better than other merging tools, I really want to make it work for me :)
Thanks in advance
Kind regards,
Riccardo Rossi

Many thanks. Here's attached a subsample and reduced version due to the 25mb limit
file_x_panpop_subsample_reduced.vcf.gz

Thanks for feedback. I added validation of alignment software results, which should solve this bug. Please try again!
(Commit abad15d)


[TACHYON-1399] Implemented listRecursive

Turns out the version of Hadoop we support doesn't have any mechanism
for listing recursively, so all underfs's use the default
implementation.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7238/
Test FAILed.

Jenkins, test this please.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7241/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7249/
Test PASSed.

Thanks for the adding this feature Manu! LGTM

LGTM


Added c++ client library for REST API

Can you please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
git commit --amend -s --no-edit && git push -f

Thank you jfrazelle. Its ok now?

Yep looks good :)

LGTM - @fredlf @jamtur01


WIP - Cleanup

@springdo yeah, let me know when you have time. A lot of the whole "using regex" will no longer be needed and a lot of things will be getting chopped out of here. This branch is very much a work in progress at the moment, but I'm modeling off of an existing repo that I've used for a customer and that repo is currently in working order, so I believe getting something working will be fairly straightforward. Additional pieces that need to be solved first, new repos for some of the things that got chopped

@springdo it's time to get this merged in. there are a lot of changes here, but re-creating and re-running the Jenkinsfile is very easy. If you want to have a call to talk about it, let me know.

No reason for the name. I can make it whatever.
Correct, that is there because it needed to be on that branch to test. It
would be reverted back to the line below just before merging. It's that
whole thing about testing a Jenkinsfile on a PR before it's in master
On Thu, Jan 3, 2019, 08:38 Øystein Bedin<EMAIL_ADDRESS>wrote:

@oybed commented on this pull request.
Just a quick inline comment for now ... Also curious to know the reasoning
for the name site.yml for the playbook(?) (sorry if it is already
explained and I just didn't see it in my quick scan of the changes)
In Jenkinsfile
https://github.com/rht-labs/labs-ci-cd/pull/242#discussion_r245000575:

                 if (env.PR_GITHUB_TOKEN == null || env.PR_GITHUB_TOKEN == ""){

                     error('PR_GITHUB_TOKEN cannot be null or empty')
                 }
                 env.USER_PASS = "${env.PR_GITHUB_USERNAME}:${env.PR_GITHUB_TOKEN}"

               env.PR_BRANCH = "cleanup"

+//                    env.PR_BRANCH = "pull/${env.PR_ID}/head"
Looks like a "left-over" from some testing? Probably should be reverted(?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rht-labs/labs-ci-cd/pull/242#pullrequestreview-189011896,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJzhD5-F3aVq3IYatMWTpKCPR8DMcsmks5u_gfcgaJpZM4Yr4E1
.

also, @oybed i left some secrets stuff in there (not currently working, i corrupted the encryption on purpose) because i would really like to have an example of using a secret in this. But I'm thinking that since we have the infrastructure repo with the labs-robot secret stuff that I'll probably just do it there or open up a specific private repo here on GH. thoughts?

nvm, deleting the secrets from here.


blocking crunchyroll player

tested on chrome and firefox, on cruchyroll beta and alpha.

found the problem, it was "c.evidon.com" commented it (#) and works fine


world.Component panics if component not present on entity

In my project, I want to check the components on an entity that was clicked to determine the right action to take. If I check for a component that does not exist on the entity, the library panics instead of just returning a nil value.
The only alternative I see is to query for all entities with the component, however this is not ideal because I already know the entity I want to check. I do not want to iterate all entities to get to the one I clicked on.

Hello and thank you for spot this, I added your changes to the main branch.
Any other problem you have, just let me know

Btw

The only alternative I see is to query for all entities with the component, however this is not ideal because I already know the entity I want to check. I do not want to iterate all entities to get to the one I clicked on.

You're right, today this is the only way, and I think that adding something like World.GetMask(EntityID) to test for components will just be slower than check the archetype directly in this case, but may be useful in another cases.


export LD_LIBRARY_PATH when nvidia-cudnn-cu11 is installed via pip in the venv

The GPU models need cuda, cuda11 for the time being.
for some reason, even though the libraries are installed as dependencies in the virtualenv, both whisper_online.py and whisper_online_server.py require the path to the nvidia-cudnn-cu11.so libraries to be exported.
(Only when using faster-whisper, to my knowledge).
If others experience the error:
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_ops_infer.so.8 is in your library path!
[1]    16931 IOT instruction (core dumped)  python3.10 whisper_streaming/whisper_online_server.py --min-chunk-size 3

It can be solved by running this before the python program
export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))'`

hi,
I think I had the same issue, but I went through it without noticing. This is included in the "Follow their instructions" for faster-whisper install in README. But I will note this and maybe put it to FAQ/recommendations. Thanks.


Enhancements for travis

updated protractor version to 2.5.1 (latest supported version for node 0.12)
travis will run functional tests on phantomJS, local users will run them on chrome
tweaked package.json file as it had two scripts configs
travis will run in container based infr, making builds to start faster -> sudo: false
travis will use cache for node_modules so that on each push/PR npm install would not happen every time except for dependency updates

@atecarlos all the suff for travis is in place, it looks like you have not yet added the repo on travis, and configure it to build pull requests
in order to do so, here are some steps to follow;
NOTE: you'll need to watch for the things highlighted with yellow
go to https://travis-ci.com & login with your gihub account
step1:

step2:

step3:

Thanks @BogdanLivadariu ! Yeah I had those settings turned on. It seemed like it built this PR. Thanks for the help!


Removing all e2e github workflows but the in-cluster-build one. (#224)

This detach the running cluster from its backend, for example running any other cluster than a cluster using the host kernel (such as minikube with the docker driver or kind) and allow us to re-use those tests in other cluster envs.
The following jobs are removed:

e2e-two-nodes
e2e-crd-variable
e2e-pre-built-kernel-module

Those jobs are not testing anything special, one is just testing the selector of the ds, the second is just using a regex in the kernelMapping flow which IMO should be both tested in UT rather than having their own e2e workflows and the last one is just replicating the second part of the in-cluster-build.
Signed-off-by: Yoni Bettan<EMAIL_ADDRESS>
Fixes https://github.com/rh-ecosystem-edge/kernel-module-management/issues/341
/cc @qbarrand @yevgeny-shnaidman @enriquebelarte

/retest

/retest

/retest

/lgtm


Where are the new repositories based on the new architecture?

I want to install new API umbrella(The new architecture with the two repositories) from source the source code. can you please point me to the right repositories, branches or tags that I can need to use?

Hi @rezadehganpour , you're in the right repo now, and the master branch contains the new architecture.
The vagrant file is probably the easiest to get started with -- more thorough instructions here: https://api-umbrella.readthedocs.org/en/latest/getting-started.html

Thanks @cmc333333
However I want to install umbrella from the source code. I tried this url from your website http://api-umbrella.readthedocs.org/en/latest/compiling-from-source.html but it was no good! can you please point me to the correct two repos.
I installed the old architecture umbrella from the source code as well, now I want to upgrade it with the new one.

@rezadehganpour Sorry, we need to fix that link. Try https://api-umbrella.readthedocs.org/en/latest/developer/compiling-from-source.html instead

Thanks that worked!

Thanks for spotting this broken link! Sorry for the confusion, but the link should now be fixed.


run services with WSGI server - fix remote training

closes #430
fixes #431

@gerardcl, I guess it makes sense to add the gunicorn Option also the "pure" flask boilerplate?

@gerardcl Could I ask you to apply those changes in ods-quickstarters?


feat(map): add center to my location button

Description
Added another button to the bottom of map. Created a wrapper for styling the group of buttons. Implemented handler function.
Motivation
Testing Guidelines
Release Checklist

[ ] This code has unit tests
[ ] I have a plan to verify that these changes are working as expected after deploy
[ ] I have a plan for how to revert, rollback, or disable these changes if things are not working as expected

Security Checklist
This PR creates, modifies, or deletes:

[ ] API routes: API routes, parameters, or user authorization
[ ] Authentication: Authentication mechanism
[ ] Credentials: Server side credentials, or secrets in configuration / source code
[ ] Cryptography: Encryption, hashing, certificates, signatures, random numbers, etc.
[ ] User data: personal information handling, logs, error messages, etc.

Additional Notes
Here're the visual changes:

closes #289

When we center on location we should run the "Update results for this area" function as well.

👍 Look really good! Made one comment, and then I think it's ready to go. @s0 may have some code quality review comments (I'm not super familiar with react)

The latest commit also changes the map zoom. I set it to 8. Here's visual:


Windows empty string for force imports is failing

having a default emptystring for forceimports in gradle is breaking on windows

This issue can be closed as solved in #362.


Con not find delay.h file

Thanks for your work! But I can not find this file:
https://github.com/PhysiologicAILab/PhysioKit/blob/e75c52f326cc8c1bd5bba8717741c2c0de7e5ba4/arduino/default/one_sensor/one_sensor.ino#L1

I got.


Add Jetty logging

Add a system log processor and access log receiver.
System Log

Access Log

Looks like the integrations tests are failing for Jetty. Lets fix that and then we can merge

Uggggh have to rebase again and will merge then (feel free to merge if you can)


Let's talk about fragments

@TakayoshiKochi hello. I'm very happy to see you here!
Here I'd like to answer to your initial questions

I didn't have clarified what this repository (branch from original ES modules polyfill) is for...

This repo is an attempt to write fragments that can work from IE9+. (It is not a polyfill for ES modules) It's an attempt to organize the code to avoid difficult things related to initialization, bundling and other stages related to the development of web-apps. I.e., Angular 1 forces you to package "directives" into difficult function-wrappers. Angular 2 forces you to use something called @Component, React has its own JSX that mixes HTML with JS... and so on. It looks like all frameworks de-facto restrict your code to be into a frame. And I'm convinced that the browser is the framework itself.

So it sounds like there are some commonality with the fragments

I often ask if somebody has already developed this idea... but I couldn't find anything similar :( I will be very grateful if you could give me a hint.
Now, the questions :smile:

Once the content of HTML is loaded, will it be attached under the element?

Yes, it will. By default, it's done via appendChild(html). However, I'd like to retake insertAdjacentHTML in the future...

If the content is attached then

I'm also convinced that <link rel="import" href="url" /> offers a nice solution. But it's a shame that Firefox will not ship it.

Hi, thanks for your answers!
Yeah, the bigger problem we have is to provide an alternative to HTML imports without losing the benefits of it as much as possible.
For base URLs, for fetching you can use new URL('relative_path', document.baseURI).toString()?

@TakayoshiKochi I'm happy to see you here ))
Ok, here we go: https://jsfiddle.net/rianby64/zjuo6qox/8/

Let's imagine that the <my-custom-element></my-custom-element> will not do modifications to the fetched HTML code. It will behave like a proxy as fragments do.
Then, the imported code may content some fetchs that have relative paths. In my case, they're absolute :(
How to implicit set the new URL('relative_path', document.baseURI).toString() without modifying the fetched-imported HTML code? I mean, how to setup a baseURI for all fetch calls?

What I would like to solve here, is to have a mechanism that before doing appendChild it would setup "a global baseURI". In that way, a fetch like this one may stay relative.

I've another idea that may be useful. It's related to document.currentScript.
I know that there's a discussion around that variable. And there's an intention not to implement document.currentScript. But, in the other hand, I'd like to be able to understand the current place of my script. And usually it's done by writing something like
'use strict';
var ownerDocument = document.currentScript.ownerDocument;

But what about if use something like
var ownerDocument = HTMLImport.currentDocument;

?
For fragments I use document.currentFragment.

@TakayoshiKochi I'd be happy to keep this conversation at IRC or here. Please, let's talk about this topic https : // github.com/ w3c/webcomponents/issues/645

Hi, sorry for not being here for long time.  What do you want me to discuss here (or if IRC, what channel are you in)?
If you are interested in HTML Modules design itself, please feel free to join the discussion there.

I'm at ``IRC freenode #whatwgand my nickname isrianby64```

Basically, I'd like to explain to you some things that I found while developing an instrument for my own projects. It looks pretty similar to your tag <include src="...">. Why not there in the public IRC? Because I feel not confident enough...

Sorry, I don't have infinite amount of time for projects that I'm working on, I don't have time to advice specifically for your project myself.
The <include> tag, as I put as an example, is probably a separate project from what HTML Modules will be, so feel free to put your proposal in https://github.com/whatwg/html/ .  Don't be shy.
To add some more context, we (as a broader meaning, that people who develop web standards and implement them in browsers) are interested in what are missing in the platform for web developers or users. If something is very commonly used as a polyfill (e.g. imagine jQuery of old days, now we have querySelector() et al.), we might prioritize to standardize to have one in common in all browsers, but we may not, if that could be polyfilled with existing primitives well enough, that borderline is not so clear.
So a feature such as <include>, which could be polyfilled via fetch() and DOM Parser to some extent, there should be a strong reason to exist in HTML standards, which is a hard part to argue with every implementer.
Good Luck!

@TakayoshiKochi Thanks a lot for this advice. I'll try to use more cases and spread the word. Maybe the idea around <include src="..."> worths more brainstorming. But for me, I've some examples that show the advantages if use this tag. For instance, I can split my app in small pieces. Thanks a lot again.

@tomalec and I (mostly @tomalec) have implemented a similar solution using HTML Imports spec: https://github.com/Juicy/imported-template
The method that we use is explained in detail here: https://starcounter.io/html-partialsincludes-webcomponents-way/
TL;DR: Our method relies on stamping the first <template> found in the imported HTML document. Everything outside of that template is resolved only once, including:

<link rel="stylesheet">
<script>

This is a huge win because you have the document fragment that can be stamped multiple times as well as setup fragments that are executed only once.

TL;DR: Our method relies on stamping the root <template> elements  found in the imported HTML document. Everything outside of that template is resolved as usual in document imported via HTML Import - only once, including:

<link>,  rel="import",  rel="stylesheet"
<script>
<a-custom-or-native-element>
...

Also the root template could contain any valid HTML Element that will be stamped many times.
This is a huge win because you have the document fragment that can be stamped multiple times as well as setup fragments that are executed only once.

Nice approach :+1:  I see our solutions differ on the way to handle the imported. Resolve only once and reuse the imported many times, or, Resolve every time after importing. What are the implications from both approaches? For me is a good question. Also, looks like your approach, as HTML import does, is the correct broad-adopted way.
In the other hand,
<html>
  ...
  <x-fragment src="an-URL.html"></x-fragment>
</html>

, express the idea that the x-fragment is importing some HTML stuff... That looks like: fire-and-forget.
@tomalec , @warpech I'll happy to chat with you about these ideas. Thanks a lot!

IRC: freenode #htmlimport


kile-wl: 2021-09-30 → 2023-07-23

Description of changes
Fixes #248408

Upstream changes:

Breaking change: different configuration format
No docs/manpages provided, instead,  there's a project wiki
Full commit list & diff

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Superseded by https://github.com/NixOS/nixpkgs/pull/250957?

Superseded by #250957?

No. That pull request failed to fix #248408 as it only changed the cargo hash, but not the gitlab hash, meaning it was still pulling the 2021 code. This pull request will update the gitlab hash to the latest version.


Add child nodes for the contents of a string?

Howdy! As you know, I am working on integrating this grammar with neovim https://github.com/J3RN/tree-sitter-gleam/issues/1, during which I realized there is no node for string escape sequences. Without this node, I cannot highlight escape sequences similar to what I did with the nvim-treesitter Elixir highlight queries.
For example, tree-sitter-elixir parses:
"foo\nbar"

as the following tree of nodes:
(string
  quoted_start: """
  (quoted_content)
  (escape_sequence)
  (quoted_content)
  quoted_end: """)

I'm curious what you think!

This is an interesting idea. We will, likely, eventually, have to do more string introspection seeing as string interpolation is planned, so this seems like a reasonable place to start. I'll probably not have time to look at this until the weekend, so you're welcome to give it a go if you'll have time sooner :grin:


Windows Device Recovery Tool Link

This page has a link to Windows Device Recovery Tool that redirects to a private Azure Devops page to which the public does not have access. Is there a public-facing link?

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

ID: cd4de184-bdeb-2611-8d75-28376e30b0fc
Version Independent ID: 7b330f9a-d1c0-72f9-0d00-d7fac13e7e00
Content: Reset or recover your HoloLens
Content Source: devices/hololens/hololens-recovery.md
Product: hololens
Technology: windows
GitHub Login: @mattzmsft
Microsoft Alias: mazeller

@officedocsbot assign @jvsam

Hi @natejgardner, can you please try http://go.microsoft.com/fwlink/p/?LinkId=522381, which you can also find here. Here's another link http://go.microsoft.com/fwlink/?LinkID=525569. Please let us know if they work for you.
Hello @mattzmsft, how are you? Does the private link for the Windows Device Recovery Tool that goes to this URL - https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/, still work? We're unable to verify due to error. Thank you.

@jvsam : I tested both your links

http://go.microsoft.com/fwlink/p/?LinkId=522381
http://go.microsoft.com/fwlink/?LinkID=525569

and they both start downloading the same file (same size, same version).

Even so, I am guessing that it could be better if the Hololens doc page could have a link to the download page instead of the direct download link. What are your thoughts?

@illfated yes they are, same version and confirmed with the same release log. I am not sure if https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/ is a private link that requires special access, or if it's a broken link. The author can confirm.

@officedocsbot assign @mattzmsft

Thank you for your reply. Well, I have tried to access that site (https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/) and I do not have access to that site with my Microsoft address, with which I have access to ordinary developer sites like MS Visual Studio Team services for ordinary users, but I do not have a subscription to the full DevOps service. The page is blocked from others than subscribers or members of the MS VS Dev Team members and owners.

Hi @natejgardner, can you please try http://go.microsoft.com/fwlink/p/?LinkId=522381, which you can also find here. Here's another link http://go.microsoft.com/fwlink/?LinkID=525569. Please let us know if they work for you.
Hello @mattzmsft, how are you? Does the private link for the Windows Device Recovery Tool that goes to this URL - https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/, still work? We're unable to verify due to error. Thank you.

@jvsam, I verified the two public-facing links you posted work just fine for me as well. The dev.azure link gives the following:

I get exactly the same error message for that page, so that page is truly private and only accessible by Microsoft employed developers (or possibly also paying subscribers).

The link in the image to show a list of your organizations is: https://go.microsoft.com/fwlink/?LinkId=309329
The link resolves to the following for me: https://aex.dev.azure.com/me?mkt=en-US
and it shows me my current project pages on <username>.visualstudio.com
Under "Manage authorizations" I am only able to revoke my Visual Studio Developer Community access, which I created when I started using Microsoft Visual Studio 2017.
I don't know if the access to https://dev.azure.com/ContentIdea/ContentIdea/ is comparable to Github private repositories or if the access is limited to access via specific paid application subscriptions, because the content or information about that page/repository does not appear in web search results.

BTW, I looked back at the page Reset or recover your HoloLens (https://docs.microsoft.com/en-us/hololens/hololens-recovery#hololens-1st-gen) and verified that the link in

To recover your HoloLens

Download and install the Windows Device Recovery Tool on your computer.

still is the inaccessible private link for https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/
After tracing the steps back to the origin of the link in commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/b9b113b873d1aa7abd4c708299dc1e7284f34d49#diff-f01cada38b185d6bc7b081a3e428178d , I find it reasonable to ask @scooley if any customers have got access to that page at all, and if yes, then how is the access granted.

Hi @mattzmsft, do you own this documentation now? I referred to the metadata before tagging you. It would be great to hear from you if the link is valid and only accessible to, e.g. specific subscriptions, etc.? If it's no longer working, then we can create a PR to correct the link (if you can provide one) so other users will not have the same issue in the future. Looking forward to your feedback. Thank you.

I am experiencing the same Uh-oh, you don't have access issues as @illfated using my microsoft.com corporate login ID.  The https://dev.azure.com/ContentIdea/ContentIdea/_queries/query/8a004dbe-73f8-4a32-94bc-368fc2f2a895/  link  from page https://github.com/MicrosoftDocs/windows-itpro-docs/issues/5281  doesn't work and hasn't been fixed.

@craigarno : That has been the case for at least 3 weeks now, since commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/b9b113b873d1aa7abd4c708299dc1e7284f34d49 (would appreciate hearing from @scooley about it) and we need to replace that link with one that points to a publicly available page.
If you do find a working public page, please post the information here for us to open a correcting Pull Request to have that broken link repaired.

@illfated The links above work.  I used the direct links above, ran the software, and it still doesn't recognize my Hololens 1.  Something about outdated certificate or some such.  I left both at work, so can't repro at the moment.  I tried all contingencies in the documentation, still nothing works.  The problem I have is an account login which says<EMAIL_ADDRESS>and it wants a password I don't have.  So I am attempting to do a factory reset, or full reinstall to restore the unit to service.
I took this unit to China and discovered the internet to the US (through the Chinese firewall) is so bad ~80K/sec data rate (on a good day) with session disconnects every 15 minutes, that I couldn't even run this software.  We really need a standalone installer.  Now that I'm back in the US, I'm experiencing different show stopping problems.  This unit is effectively "bricked" if I can't find a workaround.  We need this unit for a customer who is creating an Azure cloud AR application for his BIM business.  I ended up having a second unit flown over to replace this one because of all these unresolved issues.

Oh. I see. I can only offer my sympathy with your recent issues using this technology.
Looks like we need to await some direct feedback from the document author/manager.

Hi @natejgardner, how are you? Were you able to update your device? I've been sleuthing :) since we haven't heard from MS team, it seems that there was an issue before where the Microsoft’s firmware servers were not working. Hence, even if you had the recovery tool installed, you wouldn't be able to reset HoloLens to the earlier version. The tool will need to connect to the server to download the updates. Perhaps the Azure link may have been a workaround? But the issue is it's not working anymore. Here's an old discussion in Twitter (this is an external and public site, and I can't guarantee the accuracy of it) and from this conversation, it may have been fixed and the WDRT tool should be working again. I'm really hoping you can get it to work. By the way, have you contacted Windows Support to get their feedback on this matter?
Hi @illfated, the azure link may have been a private project to host the firmware. Since it's no longer working (I even created a dev account and I still can't access it), I personally think we can go ahead and propose an update to the URL. We can reference to the Update HoloLens (see Go back to a previous version - HoloLens (1st Gen) section) content page. The instruction is to download the Windows Device Recovery Tool (WDRT) from https://support.microsoft.com/help/12379/windows-10-mobile-device-recovery-tool-faq. What do you think? Happy to hear your opinion.

@jvsam : Thank you very much for your follow-up and suggestion. I presume that the link https://support.microsoft.com/en-ph/help/12379/windows-10-mobile-device-recovery-tool-faq can be used as an alternative to the current private link, but it would be preferable if we could have a confirmation from @natejgardner and/or @craigarno if that linked page provides the correct version for the Windows Device Recovery Tool.
When we get a confirmation that this link and the downloaded tool works as expected, I will be happy to create a Pull Request to have the link in question amended as shown below:

To recover your HoloLens

Download and install the Windows Device Recovery Tool on your computer.
Connect the HoloLens (1st gen) to your computer using the Micro USB cable that came with your HoloLens.
Run the Windows Device Recovery Tool and follow the instructions.

@illfated , this procedure/tool version recognized and reflashed my Hololens 1 in the US @ the Microsoft campus.  This solution appears to be what I need when connected to a very high speed network.  My Hololens 1 appears to be ready to configure/use.
I still need an off-line version of this tool so it will work in remote places like China where download speeds are 80K/Sec or less and the connection is interrupted every 15 minutes.  Reflash (this procedure and link) won't work in China without an off-line version of this software as this procedure tries to download 2.3GB of data which will never succeed with current China network conditions.

Hey, for some reason I didn't get a notification for this thread.  Sincere apologies for the slow response.  Reading through and will update shortly.

Fixed in PR https://github.com/MicrosoftDocs/windows-docs-pr/pull/1692

Thank you so much for your help, @scooley and @illfated! I can see the link has been updated.
@natejgardner, with regard to the offline version of the tool, I encourage you to submit this feedback on UserVoice when you have time. Your feedback goes directly to the Microsoft product team and they would love to hear what you think. If there's already a request or suggestion similar to yours, you can add your vote to the request. Thanks for being part of the Microsoft Docs community!


fix: test EC only for a single component

Due to https://issues.redhat.com/browse/KFLUXBUGS-24, testing the EC pipelines takes extremely long (the tests have to wait for the attestation to exist before they can start the EC pipelines).
Run the test only for one component to try and improve the situation.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

Tip: hide whitespace changes while reviewing

There was a potential nil dereference in the AfterAll, fixed now

Tested in https://github.com/redhat-appstudio/build-definitions/pull/901, where it seems to achieve what's needed
Failing here, don't know why
/retest

Dropping, the Chains performance is not tragic anymore so this shouldn't be needed


Online topological sort

What is the expected enhancement?
I'm interested in replacing graphlib.TopologicalSorter with something that will also let me do other graph operations (namely pruning subgraphs based on nodes, which it seems like I can do with PyDAG.substitute_node_with_subgraph).
In particular, this sort of topological sort allows you to poll for available dependencies as you process them, vs. just giving you a topologically sorted list of all of the nodes in the graph.

Thanks for opening this. Can you elaborate a bit more on the usecase you have in mind?
Adding a functionality like graphlib.TopologicalSorter should be possible but one key limitation might be that you will not be able to add/remove nodes/modify the graph while you iterate over it. For reference, we recently added an "online" BFS traversal https://github.com/Qiskit/retworkx/blob/main/retworkx/init.py#L1739-L1808 that it'll be in the next release.

Hi, thank you for the quick reply!

Can you elaborate a bit more on the usecase you have in mind?

My use case is for a dependency injection library. Dependencies could take ns to execute or ms, so simply following a predefined topological order is inefficient. I basically need to make dependencies available for processing as they are freed up (freed up meaning they have no children / predecessors). FWIW my current implementation of this is here. The reason I don't want to use ToplogicalSorter itself is that I need to make copies of the "solved" (checked for cycles, etc.) state so that I can execute it in a tight loop. I also eventually want to be able to do Graph operations on it.

one key limitation might be that you will not be able to add/remove nodes/modify the graph while you iterate over it

Logically! In fact that is how TopologicalSorter works: you can't iterate over it until you call prepare(), and once you call prepare() you can't add any more nodes. It does not have the ability to remove nodes.

we recently added an "online" BFS traversal

Yes, I saw that while I was searching for this issue. The callback / visitor API looks nice (great work btw), although I'm not sure if it'll work out for an online topological sort as described here.

This is great!
In between the time I made this issue and now I wrote my own implementation: https://github.com/adriangb/graphlib2
The main differences vs. this implementation is 1:1 API parity with the stdlib, including supporting Python objects as nodes in the graph.
Now that this got merged, I added benchmarks comparing this vs. the stdlib vs. my implementation: https://github.com/adriangb/graphlib2/blob/main/bench.ipynb
Looks like this implementation performs considerably better than the stdlib, and about the same as my implementation. Nice work (to both of us)!


Quick perf audit

Look out for any disasters. Eg we should probably preload some of our fonts.

https://github.com/GoogleChrome/devsummit/pull/238

Landed


Winning with Simple, even Linear, Models - Slides

Hey Vincent,
is it possible to upload your slides from your PyData 2018 talk: Winning with Simple, even Linear, Models?
That would be really great!
Thanks,
Maki

Redirecting it to @koaning

Hey Vincent,
is it possible to upload your slides from your PyData 2018 talk: Winning with Simple, even Linear, Models?
That would be really great!
Thanks,
Maki

It seems that I've lost track of the slides ... may be recoverable but requires some digging.
@maki-markie what part were you looking for? A lot of the stuff mentioned in the talk can be found on https://koaning.io or https://github.com/koaning/scikit-lego


Allow to specify the mount path in an Azure ML Job with SDK v2

Is your feature request related to a problem? Please describe.
When creating an Azure ML Job using the python sdk, I can't specify the path on the compute where I want my data asset to be mounted. This is an issue, as this functionality existed in sdk v1, and a lot of our pipeline code expects to find the data at a specific path on the compute.
In sdk v1, the mount path could be specified as follows:
dataset.as_mount(path_on_compute=<mount-path>)

Describe the solution you'd like
When creating an Azure ML Job, I would like to be able to specify the path on the compute where I want my data asset to be mounted. For example, in the Input class:
Input(type='uri_folder', path=<data-asset-path>, mode='ro_mount', path_on_compute=<mount-path>)

Describe alternatives you've considered
I can't think of an alternative.

Thank you for the feedback @sarah-wayve . We will investigate and get back to you asap.
cc @azureml-github

I was told about this workaround, in case anyone comes across the same problem:
job = command(...)
job.properties["properties[f"AZURE_ML_INPUT_PathOnCompute_{input_name}"] = desired_mount_path


Throw exception "std::range_error" when using nana::menubar::push_back() to push a chinese string

void make_menu()
{
menu_bar.push_back("&Data Import");
menu_bar.push_back("&Extrume");
menu_bar.push_back("分析");
menu_bar.push_back("&Help");
}
after running "menu_bar.push_back("分析"); " , the program stopped and throw an exception "std::range_error".
It looks like that "wide_string from_bytes(const char *_First, const char *_Last)" has got an error after calling "_Pcvt->in()" .
Thanks for your help. Any suggestion will be very appreciated.

The program running on windows10 X64 chinese version and complied by Visual Studio 2013

It's an expected behavior that throws an std::range_error. The parameter whose type is std::string for most API only accepts a string in UTF-8 encoded. So use one of following proper way.
menu_bar.push_back(::nana::charset("分析").to_bytes(::nana::unicode::utf8));
menu_bar.push_back(nana::to_utf8(L"分析")); //VS2013, don't forget L
menu_bar.push_back(u8"分析"); //other C++11 compilers. e.g VS2015

The prototypes of to_utf8 are
const std::string& to_utf8(const std::string& u8text); //directly returns u8text, it must be a UTF-8 string.
std::string to_utf8(const std::wstring& wtext); //returns a string of wtext in UTF8 encoded.

"分析" is not a UTF-8 string in Windows, so L is required to call the const-ref std::string overloading of to_utf8.

Maybe this compile option /utf-8 can be used.
https://msdn.microsoft.com/ja-jp/library/mt708821.aspx

Many thanks for your quick responses.
I did it as JinHao's advise, it works. Now my project can be moved on.
Thanks for beru's advise about the complie option, it provides me another knowledge point.
Unfortunately, the option /utf-8 doesn't work on vs2013, maybe it is for vs2015.

@bigmammoth You are correct. I hope you'll be able to migrate newer versions of Visual Studio in future.
https://blogs.msdn.microsoft.com/vcblog/2016/02/22/new-options-for-managing-character-sets-in-the-microsoft-cc-compiler/


[question] gateway only producing discovery for battery

I have some First Alert Z-Combo alarms that I'm trying to add to a zwave2mqtt/mosquitto/hassos group. I can see the alarms pairing and zwave2mqtt publishing information to mosquitto, but when creating events for hassos discovery only the batteries are getting recognized. It seems like the classid for the alarm is correct and should be converted into a discovery event. Any ideas? Attaching a picture from mqttexplorer showing the queues.

@mitharen Are you using latest version from master ?

No, I'm using the 2.1.1 release from last month packaged through the hassio addon. That might explain it. Thanks.


onKeyUp, onKeyDown, onKeyPress not working

I've tried passing a callback into these 3 props, as stated in the react-quill API, and haven't seen anything get returned. I checked in component.js and I see that at line 225 it calls onChange (which I do receive updates for). I need onKeyUp to register that a user has hit the enter key but I don't see onKeyUp, onKeyDown, or onKeyPress being used anywhere. Is there anyway to get the key code for enter other than these 3 functions?

This change has not yet been published to npm.
Can you verify if this still happens when using master?

When are you planning on publishing this to npm? Thanks!

Published to NPM just now! This has been a long release, so thanks for the patience.


Training on custom dataset ?

Hey, I am curious if I could use my own dataset for training instead of the COCO dataset which is already being used.

Hello, we currently do not support retraining for this MAX model yet, but if you want to try it out on your own you can find the source code here.
https://github.com/tensorflow/models/tree/master/research/im2txt

Thanks will check that out @djalova


getting handled element from click with children?

Sorry for the awkward title, wasn't sure how to word it.
untested short version for simplicity sake:
//clicktest.tag
<clicktest>
   <parent each={parents} onclick={clicktest}>

 Title!

...

   </parent>
</clicktest>

this.parents = array(...);

clicktest(e) {
   console.log(e);
}

So using this example, if I click on any "parent" tag the clicktest handler fires as expected, but in the event object, I can't find any way to reference the "parent" tag that the onclick handler was assigned to. The toElement property references the child that was clicked, not the "parent", and the fromElement is always null.
For example: If I click on the "title" div, the parent onclick fires but the event only references the title div.  Likewise if I click on the img tag, the onclick fires but only references the img tag.
What I'm looking for is a way to reference the "parent" tag regardless of which child was clicked.  Any idea what I'm doing wrong?
EDIT:
jsfiddle showing that the evens only reference the children. (check the console, I'm logging the event object).
https://jsfiddle.net/05yao3hd/1/

So you want get <parent> tag, when user click on something inside this tag?
You can use simple function:
function findParentNode(node, tagName) {
   while(node) {
      if (node.tagName.toUpperCase() === tagName.toUpperCase()) {
         return node;
      }
      node = node.parentNode;
   }
   return null;
}

Use it in following way:
clicked(e) {
   var item = findParentNode(e.target, 'member-item'); // try to find <member-item> parent
}

Sorry, I do not test this function. Only want to give main idea.

Thanks!    works just fine!    I guess I just assumed there would be a more elegant way to do it since the onclick is being assigned to one specific element.
Still, this works perfectly, thanks again!

Yep, but riotjs have minimalistic philosophy. So for different manipulations with DOM you should include some other libraries like jQuery. Buy the way if you use jQuery you can find parent in more short way. ;)
Good luck!

Thanks! it's crazy how Riot can be so minimalist, but still do everything I was using react + react-router +react-templates + webcomponents for.
If the trade off for ditching 5 libraries is having to loop through a dom once in a while, I'll survive ;)

Riot like magic :crystal_ball:

https://jsfiddle.net/05yao3hd/3/
item is what you clicked, self(parent) is the tag, self.root is the element


External links

Report from external link checker (Gulp):
File: /refguide5/consumed-web-services.html has the following errors:

   + Has link to http://www.w3schools.com/webservices/tempconvert.asmx?WSDL which return a Page not found. Please fix this

File: /howto6/access-a-samba-share-from-the-mxcloud.html has the following errors:

   + Has link to http://www.stderr.org/doc/libjcifs-java-doc/resolver.html which return a Page not found. Please fix this
   + Has link to http://www.stderr.org/doc/libjcifs-java-doc/wins.html which return a Page not found. Please fix this

File: /howto6/deploy-a-mendix-app-to-ibm-bluemix.html has the following errors:

   + Has link to https://api.ng.bluemix.net/ which return a Page not found. Please fix this
   + Has link to https://api.eu-gb.bluemix.net which return a Page not found. Please fix this
   + Has link to https://api.au-syd.bluemix.net which return a Page not found. Please fix this

File: /howto50/access-a-samba-share-from-the-mxcloud.html has the following errors:

   + Has link to http://www.stderr.org/doc/libjcifs-java-doc/resolver.html which return a Page not found. Please fix this
   + Has link to http://www.stderr.org/doc/libjcifs-java-doc/wins.html which return a Page not found. Please fix this
   + Has link to http://www.stderr.org/doc/libjcifs-java-doc/overview.html#scp which return a Page not found. Please fix this

These links should be checked and/or fixed

Fixed file #2. Waiting on verification for possible fixes for other files.

Fixed all the links. The bluemix.net links are example links, so these can be ignored


Regen

Apply gtk-rs/gir#419, gtk-rs/gir#418 and appveyour version fix
cc @EPashkin @sdroege

👍 Thanks


resolve naming conflict cause by 'type' and 'titleColor'

Platforms Impacted

[x] Android

Description of changes
resolve naming conflict cause by 'type' and 'titleColor'
Verification
tested demo app

Before
After

Screenshot or description before this change
Screenshot or description with this change

Pull request checklist
This PR has considered:

[x] Light and Dark appearances
[x] VoiceOver and Keyboard Accessibility
[x] Internationalization and Right to Left layouts
[x] Size classes and window sizes (notched devices, multitasking, different window sizes, etc)

Please raise it against develop

Please raise it against develop

done, will resolve conflicts soon.

This issue has been resolved with Mayank's PR here https://github.com/microsoft/fluentui-android/pull/145
I will be closing this request without merging.


WIP - Add account-specific configuration

Add possibility to make plugin configurations account specific and so
load different configuration based on logged in user.
Closes #2220 and closes #249
Signed-off-by: Tomas Slusny<EMAIL_ADDRESS>

IMO there should be a separate storage for account/player data (e.g. slayer, farming, bird house, kc).
Then the plugin configuration system can be extended with a profile/preset system, which allows mixing and matching between accounts and profiles (i.e. you can choose to create multiple profiles for 1 account - this seems to be what #2220 is requesting for).

Well the config system is already well-suited for account-specific data as we already use it for that in farming tracker, I just made this functionality more generic. And for #2220 for the use-case there just account-specific settings would be enough.

I guess there is no good way atm to do this without putting the usernames to the group, so closing this for now, no reason to keep this up


Bootstrap commands

Content
Ref #839

cluster sizing through worker and manager counts
force start option
Cluster label

Verification
This verification doesn't use the AMP CLI because it's not ready yet.
./bootstrap/bootstrap -m 3 -w 2 -l test
./hack/nodecheck 5 30 Cluster=test
./bootstrap/bootstrap -c

Limitations
Right now the manager count is ignored (defaults to 3). It will be implemented in a subsequent PR

Tried using the force start option, got an error response.
$ ./bootstrap/bootstrap -f
preparing a Docker image with the configuration data
warning: force start, removing Docker volume amp-bootstrap
Error response from daemon: unable to remove volume: remove amp-bootstrap: volume is in use - [2b7fa2847fb68b7aca5b522f8b566323ca942a0495274f188d6079cfd58e8247, 78a3168d9fcb3c79d66f256a696c51734ae05ffd06da1937d1b380aaafb5fa5b]

the -f option will not allow you to create a cluster if the infrakit container is already created. It will only allow you to discard the infrakit configuration volume if it was not properly removed.

Closing and reopening to trigger a CI build.

@ndegory Looks like the build is failing because you have a dependency on the cli update pending in #862. I'll go ahead and fix it for you.


chore: unify get border size function names

Current functions to access the width of the borders directly on lipgloss.Style.

GetBorderTopWidth
GetBorderLeftSize
GetBorderBottomSize
GetBorderRightSize

From this list GetBorderTopWidth is a bit of an odd function name compared to the rest because it has different suffix. This PR adds GetBorderTopSize and deprecates GetBorderTopWidth.

Looks reasonable to me!
@meowgorithm Can you confirm this was just an accident and not the intended name?

Good catch and, yes, totally an accident. Thanks for the PR @nerg4l!


Dnd5e 2.4.x Compatibility Release 1

#31
Ensures Tidy 5e Sheets is ready for the 2.4.x dnd5e release.
Review these PRs and determine what work needs to be done to prepare Tidy 5e for 2.4.x:

[x] https://github.com/foundryvtt/dnd5e/pull/2589
[x] https://github.com/foundryvtt/dnd5e/pull/2588
[x] https://github.com/foundryvtt/dnd5e/pull/2584
[x] https://github.com/foundryvtt/dnd5e/pull/2581
[x] https://github.com/foundryvtt/dnd5e/pull/2576
[x] https://github.com/foundryvtt/dnd5e/pull/2575
[x] https://github.com/foundryvtt/dnd5e/pull/2570
[x] https://github.com/foundryvtt/dnd5e/pull/2565
[x] https://github.com/foundryvtt/dnd5e/pull/2563
[x] https://github.com/foundryvtt/dnd5e/pull/2559
[x] https://github.com/foundryvtt/dnd5e/pull/2557
[x] https://github.com/foundryvtt/dnd5e/pull/2556
[x] https://github.com/foundryvtt/dnd5e/pull/2555
[x] https://github.com/foundryvtt/dnd5e/pull/2547
[x] https://github.com/foundryvtt/dnd5e/pull/2546
[x] https://github.com/foundryvtt/dnd5e/pull/2544
[x] https://github.com/foundryvtt/dnd5e/pull/2543
[x] https://github.com/foundryvtt/dnd5e/pull/2542
[x] https://github.com/foundryvtt/dnd5e/pull/2541
[x] https://github.com/foundryvtt/dnd5e/pull/2540
[x] https://github.com/foundryvtt/dnd5e/pull/2537
[x] https://github.com/foundryvtt/dnd5e/pull/2536
[x] https://github.com/foundryvtt/dnd5e/pull/2535
[x] https://github.com/foundryvtt/dnd5e/pull/2534
[x] https://github.com/foundryvtt/dnd5e/pull/2533
[x] https://github.com/foundryvtt/dnd5e/pull/2530
[x] https://github.com/foundryvtt/dnd5e/pull/2525
[x] https://github.com/foundryvtt/dnd5e/pull/2524
[x] https://github.com/foundryvtt/dnd5e/pull/2522
[x] https://github.com/foundryvtt/dnd5e/pull/2520
[x] https://github.com/foundryvtt/dnd5e/pull/2516
[x] https://github.com/foundryvtt/dnd5e/pull/2514
[x] https://github.com/foundryvtt/dnd5e/pull/2510
[x] https://github.com/foundryvtt/dnd5e/pull/2506
[x] https://github.com/foundryvtt/dnd5e/pull/2505
[x] https://github.com/foundryvtt/dnd5e/pull/2502
[x] https://github.com/foundryvtt/dnd5e/pull/2500
[x] https://github.com/foundryvtt/dnd5e/pull/2499
[x] https://github.com/foundryvtt/dnd5e/pull/2498
[x] https://github.com/foundryvtt/dnd5e/pull/2494
[x] https://github.com/foundryvtt/dnd5e/pull/2493
[x] https://github.com/foundryvtt/dnd5e/pull/2486
[x] https://github.com/foundryvtt/dnd5e/pull/2485
[x] https://github.com/foundryvtt/dnd5e/pull/2471
[x] https://github.com/foundryvtt/dnd5e/pull/2458
[x] https://github.com/foundryvtt/dnd5e/pull/2447
[x] https://github.com/foundryvtt/dnd5e/pull/2445
[x] https://github.com/foundryvtt/dnd5e/pull/2443
[x] https://github.com/foundryvtt/dnd5e/pull/2425
[x] https://github.com/foundryvtt/dnd5e/pull/2424
[x] https://github.com/foundryvtt/dnd5e/pull/2320
[x] https://github.com/foundryvtt/dnd5e/pull/2244
[x] https://github.com/foundryvtt/dnd5e/pull/2239
[x] https://github.com/foundryvtt/dnd5e/pull/2137
[x] https://github.com/foundryvtt/dnd5e/pull/2016

Add to this list of PRs if more PRs are included in the milestone later: https://github.com/foundryvtt/dnd5e/pulls?q=is%3Apr+milestone%3A"D%26D5E+2.4.0"+
To Do:

[x] Implement Item Sheet for item type "race"

Gotta stop somewhere and get this out the door


Backend Transaction Validation Similar to verifyReceipt API

Hi,
I was wondering if your system supports backend transaction validation similar to what was possible with the verifyReceipt API. If yes, could you provide some details or documentation on how to implement this?
Thanks

Hi,
Speaking of receipt verification, this is not a responsibility of this library (as it provides only features available through the App Store Server API).
However, I have another library which does exactly what you are looking for: https://github.com/readdle/app-store-receipt-verification.
Let me know if this answer addresses your question :)

Thank you very much, it's exactly what I needed


TileMap node doesn't work - can't see grid/tiles + console errors

Godot version
4.0.alpha13
System information
Windows 10, Vulkan (either mode), Ryzen 3 1200, GTX 980
Issue description
The new TileMap node does not work properly. The grid (including all terrain tiles) does not show up after clicking the node in the scene tree sidebar. Additionally, attempting to change any tiles (using the bottom editors) causes this error to be infinitely spammed in the console:
ERROR: Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size.
The editors in the bottom panel (TileMap and TileSet) both work fine. Its just the node itself which seems to be broken.
Example of invisible terrain grid. The grid that is visible is just the normal 2D editor grid, not the TileMap grid.

Example console output: GD4TilesBug.log
Steps to reproduce

Create a new 2D scene
Add a TileMap node
Add a TileSet and configure some tiles
Attempt to add a tile to the map
[bug here] Tile will not be added and console spam will start

Minimal reproduction project
Minimal reproduction project: GD4TilesBug.zip

Actually the issue is that your TileMap has infinite scale for whatever reason:

Actually the issue is that your TileMap has infinite scale for whatever reason:

I'm confused on how is that even possible 🤔

Nice catch, thanks! I have no idea how that happened - this was a brand new project and I didn't touch the scale.

I wonder if "inf" properties in the editor should be displayed in red, as they're almost never intentional.


[web][api][SIMS #894] Ministry user Approve / Deny Education Program

added client Type to vuex store
AEST user now has the option to approve or decline pending education program
now default sort of the all program summary is approval status
created 2 forms for approval and decline
created a new originalDateOnlyLongString that will transform date only or Z or 0 offsets to date string without converting to local time.
created a component for header label and value
formio datetime component is having issue when used in vuetify modal popup. so, for popup we are using day component (when stable vuetify 3 is realed, we can test and keep datetime component, if its working)
screenshots
AEST

INSTITUTION

Good work @ann-aot 👍Added some comments.


mWeb-Android - Login - White screen displayed for a while after login

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to https://staging.expensify.cash
Put your username
Put your password
Click sign in

Expected Result:
The LHN page should displayed without any delay
Actual Result:
White screen displayed for a while after tap sign in
Workaround:
Unknown
Platform:
Where is this issue occurring?
Web
iOS
Android
Desktop App
Mobile Web ✔
Version Number: 1.0.69-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/122140742-fa133880-ce19-11eb-97ba-fa7c24cc661b.mp4
Issue occurs 3 out of 5 times
Expensify/Expensify Issue URL:
View all open jobs on Upwork

Triggered auto assignment to @timszot (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Haven't been able to reproduce this on my iPhone, using chrome, after 5 tries. I'd say let's close this and see if it reoccurs since I can't reproduce reliably.

I can't reproduce this on my devices, using chrome. Going to close this out, but please reopen if it is reproducible in the future.


How does Fetch notifty the app about file already present

Hi @tonyofrancis ,
I want that my app should be notified by fetch if the requested file already exists.
I tried in the listener to get it notified, but couldn't.
I used Fetch.ERROR_ENQUEUE_ERROR and Fetch.ERROR_FILE_ALREADY_CREATED but couldn't get any response from fetch.
Any idea ?
Thanks,

@raju249 If a request already exist, when enqueuing a request into Fetch, Fetch will return -1 as the id which means that the request could not be enqueued because it is already in the database.
Request request = new Request("sample.txt");
long downloadId = fetch.enqueue(request);

if(downloadId == -1) {
  //The request was not queued because a request already exist.
}

Advanced
You can use Fetch.ERROR_ENQUEUE_ERROR and Fetch.ERROR_FILE_ALREADY_CREATED if you are working directly with the FetchService. You can used the FetchService directly if you want to create your own Manager and not use Fetch. You can look at the project source code and see how Fetch sends messages to the FetchService.

Great, Thanks @tonyofrancis
Once again @tonyofrancis , this is the most awesome down-loader library I have seen for android.
🙌 🙌 Hats off.
Closing this issue, and my problem was that I didn't know that id is -1 for enqueue error. 😄


Create vital_vitamins.py

Eating a balanced and nutritious diet is essential for maintaining good health and well-being. Incorporating a variety of nutrient-dense foods into your meals can provide your body with the essential vitamins, minerals, and macronutrients it needs. Here's a guide to some of the most naturally nutritious foods for humans:

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


🛠 Repo: Two-column lists in the docs should not be the default style for lists!

This should not be the default list style:

Change the stylesheet to display a "normal" list unless we apply a specific class for two-column display.  I think it's OK to use in some places, but not for all lists.
unless there's a way to specify the class in our markdown compiler (not sure), just use html for the ones we keep.  features and table of contents are good to keep... not sure about the rest.
For implementors:
To see changes locally, run npm start docs and open up docs/_dist/index.html with your browser. You can also do npm start docs.watch to rebuild as you work (you'll still have to reload).

would like to take this one.  any documentation on getting the local development environment running?  struggling with Karma/saucelabs auth process  to pass all tests

@crossaaron the wd module is only used for tests on SauceLabs, which you aren't running locally, so not sure what the problem was there.
at any rate, changes here should not affect any browser tests; the only potential failure would be a linting error.

Hi! I'm new to Open Source and was looking for a good first issue to start contributing. May I give it a try? (#3702)
Thanks in advance!


Not learning from block; trace is missing

I have a block log which should have a generate trace associated with it but I only see exec traces.
Block log

{
  "id": "01HZ3K97HMF590J823F10RJZ4T",
  "execTraceIds": [
    "01HZ3KB7Q01XB8QNH30MZN5BDF",
    "01HZ3KBAKYKZXH8TS6WZ4S1K9E",
    "01HZ3KA0DK5YBG9JRK8P1TY9SD",
    "01HZ3KA0DK5YBG9JRK8P1TY9SD",
    "01HZ3KBAKYKZXH8TS6WZ4S1K9E",
    "01HZ3KB7Q01XB8QNH30MZN5BDF"
  ],
  "executedBlock": {
    "kind": "CODE",
    "contents": "flux reconcile kustomization dev-cluster ----with-source "
  },
  "exitCode": -2377
}

Here's the result of grepping the logs for that block
/Users/jlewi/.foyle/logs/raw/foyle.logs.2024-05-28T17:39:34.json:{"severity":"info","time":1717034065.4601119,"caller":"agent/agent.go:105","function":"github.com/jlewi/foyle/app/pkg/agent.(*Agent).Generate","message":"Agent.Generate returning blocks","traceId":"a0d115795efe207d614f4fb0aacf177d","evalMode":false,"blockIds":["01HZ3K97HMF590J823EY849AB2","01HZ3K97HMF590J823EYM78T13","01HZ3K97HMF590J823F06DQRRM","01HZ3K97HMF590J823F10RJZ4T","01HZ3K97HMF590J823F18XD0FD"]}

The timestamp of the log file seems off; why is it from 24 hours ago?

When I ran it under a debugger it got the trace and updated the block.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1123  100  1123    0     0  75663      0 --:--:-- --:--:-- --:--:--  109k
{
  "id": "01HZ3K97HMF590J823F10RJZ4T",
  "genTraceId": "a0d115795efe207d614f4fb0aacf177d",
  "execTraceIds": [
    "01HZ3KB7Q01XB8QNH30MZN5BDF",
    "01HZ3KBAKYKZXH8TS6WZ4S1K9E",
    "01HZ3KA0DK5YBG9JRK8P1TY9SD",
    "01HZ3KA0DK5YBG9JRK8P1TY9SD",
    "01HZ3KBAKYKZXH8TS6WZ4S1K9E",
    "01HZ3KB7Q01XB8QNH30MZN5BDF",
    "01HZ3KB7Q01XB8QNH30MZN5BDF",
    "01HZ3KBAKYKZXH8TS6WZ4S1K9E",
    "01HZ3KA0DK5YBG9JRK8P1TY9SD"
  ],
  "doc": {
    "blocks": [
      {
        "kind": "MARKUP",
        "language": "markdown",
        "contents": "Use gitops to aply the latest manifests to the dev cluster"
      }
    ]
  },
  "generatedBlock": {
    "kind": "CODE",
    "language": "bash",
    "contents": "# Step 1: Commit your latest changes to the Git repository holding the dev cluster manifests\ncd /path/to/dev-cluster-manifests\ngit add .\ngit commit -m \"Update manifests for dev cluster\"\ngit push origin main\n\n# Step 2: Trigger a synchronization in your GitOps tool to apply the changes to the dev cluster\n# Replace 'gitops-tool' with the actual tool you are using for GitOps\ngitops-tool sync dev-cluster",
    "id": "01HZ3K97HMF590J823F10RJZ4T"
  },
  "executedBlock": {
    "kind": "CODE",
    "contents": "flux reconcile kustomization dev-cluster ----with-source "
  },
  "exitCode": -2377
}

Is it possible I need to rebuild my binary?


Throws when imported via require in webpack

This plugin states "vite": "^2.9.12" among its devDependencies and in src/index.ts it has
import { transformWithEsbuild } from 'vite'
that results in an error when imported  as const svgr = require('vite-plugin-svgr'); :
Error: Cannot find module 'vite'
I assume since it has this import into the module main file vite should be among dependencies and not devDependencies but when doing that please make sure that the tree-shaked version is shipped in dist bundle

obviously the issue is solvable via installing vite among consumer project devDependencies


Express-rate-limit package blocking all requests instead of limiting specific IPs

I have encountered an issue with the express-rate-limit package in my URL shortener app. Instead of only blocking the IP addresses that exceed the rate limit, it is blocking all requests, regardless of whether they have hit the limit or not. This behaviour is not desired; it should only block the IPs causing repeated requests.

I have identified that the issue is related to the Nginx configuration. It seems that Nginx is not properly forwarding the client IP address to the Node.js server, causing the rate limiting middleware to block all requests indiscriminately.


Simpler error when command neither recognised nor plugin

Fixes #1187.
$ ./target/debug/spin versio
Unknown command: 'versio' is not a Spin command. See spin --help.

Confirmed that plugins are still resolved correctly and that built-in commands still work.
We could amend the wording to say "is not a Spin command or plugin" but, as @bacongobbler notes, from a new user point of view this is introducing a whole new concept when all they want to do is run their thing.  But I'm happy to wordsmith if folks have opinions!
If.  Heh.

Looks great. The “Unknown command:” seems a bit off, as it gets re-stated in the same sentence (“not a Spin command”).
RE: not including “plugins” into the error message, what if we referred to commands as “known commands”? That would imply Spin has a way to be “taught” new commands.
With those two points of feedback, would it be appropriate to change the error message to “Error: ‘versio’ is not a known Spin command”, or perhaps more simply “‘versio’ is not a known Spin command”?

MOAR FANCINESS:
$ spin vareasreasdf
Unknown command: 'vareasreasdf' is not a Spin command. See spin --help.

$ spin u
Unknown command: 'u' is not a Spin command. See spin --help.

The most similar command is:
    up

$ spin bulp
Unknown command: 'bulp' is not a Spin command. See spin --help.

The most similar commands are:
    up
    build

$

Updated message:
$ spin bulp
Error: 'bulp' is not a known Spin command. See spin --help.

The most similar commands are:
    up
    build

Note that plugins are not currently considered for the "similar commands" suggestions, though we could add them if considered worthwhile.  (If/when we move spin cloud to a plugin, being able to respond helpfully to spin clod might be a good plan.)


Symfony 3.4 Comptability

Hello,
I have a symfony project is on 3.4.26 version but when I want update it on the last (3.4.37) the bundle become incompatible. Do you have a solution ?
Thanks
Best regards
Csonil

@csonil
Are you referring to https://github.com/willdurand/BazingaFakerBundle?
If so, perhaps it's best to open an issue there - what do you think?


After pwsh+ssh to a windows pc, it changes from pwsh to cmd. How to use remote pwsh on the remote pc?

PC-a (pwsh) ssh to PC-b (pwsh installed), after connected, it defaults to cmd on PC-b.
How to default to pwsh after ssh connected.

https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/ssh-remoting-in-powershell-core?view=powershell-7

This isn't related to PowerShell, look at the wiki for Win32-OpenSSH on how to configure the default shell https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell.


Delete/warn user about expiring watcher

If a watcher's checkin(or checkout?) date has passed, some appropriate action should be taken.

Furthermore there should be a new table that holds deleted watchers.

Closed by a20d610


Add ECS and apply standard sets

replace cs fixer with ecs
update compose run
[cs] apply PSR-12 and other sets

As request yesterday :)
I see the php-cs-fixer now requires PHP 7.3, which is a pitty. ECS solves this :+1:
I've applied all typical comon sets, including PSR 12 and strict types. Let me know if there is something you really don't like.O

Looks great. 🙏

Awesome :+1:

btw: I have also running a green PHP 7.2 CI job.


1.1-new

Codecov Report

Merging #2 (e617fae) into master (54c0353) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head e617fae differs from pull request most recent head 3b0c0cd. Consider uploading reports for the commit 3b0c0cd to get more accurate results

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   89.87%   89.87%
=======================================
  Files           4        4
  Lines         158      158
=======================================
  Hits          142      142
  Misses         16       16

Flag
Coverage Δ

Apex
89.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


1.4.4 Write use case descriptions - Managers

Tasks:

[x] Identify Use Cases
[x] Name Use Cases
[x] Write a Brief Description
[x] List Preconditions
[x] List Postconditions
[x] Detail the Main Flow
[x] Include Alternate Flows
[x] Specify Exception Handling

*Reference #8  , or the drawio file in the drive...

Summary:
Following up from #8, wrote use case descriptions for Managers in detail for a more comprehensive understanding of the flow of individual use cases within our use case diagram.
Duration: 2 days


Cookie example is broken

I just cloned the auth example with cookie:
https://github.com/crossbario/crossbarexamples/blob/master/authenticate/cookie/.crossbar/config.json
It raises:
Exception: Web transport 'WebSocket' path service - encountered unknown attribute 'cookie'

Removing the offending line leads to:
Exception: invalid authentication method key 'cookie' - must be one of ['ticket', 'wampcra', 'anonymous']

@oberstet : i need cookies for the polymer demo as I'm making a auction simulation so is there a workaround so I don't need to wait for the patch ?

The cookie code has been refactored in the upcoming 0.11.0 only. Not sure about  the current release. Probably broken. Could you retry with trunk?
Am 26.08.2015 8:59 nachm. schrieb sametmax<EMAIL_ADDRESS>I just clone the auth example with cookie:
https://github.com/crossbario/crossbarexamples/blob/master/authenticate/cookie/.crossbar/config.json
It raises:
Exception: Web transport 'WebSocket' path service - encountered unknown attribute 'cookie'
Removing the offending line leads to:
Exception: invalid authentication method key 'cookie' - must be one of ['ticket', 'wampcra', 'anonymous']
@oberstethttps://github.com/oberstet : i need cookies for the polymer demo as I'm making a auction simulation so is there a workaround so I don't need to wait for the patch ?
—
Reply to this email directly or view it on GitHubhttps://github.com/crossbario/crossbarexamples/issues/34.

With the trunk version, I get a very pretty output (nice !) and a different error:
File "/home/sam/.local/share/virtualenvs/test/lib/python2.7/site-packages/crossbar-0.11.0-py2.7.egg/crossbar/router/protocol.py", line 371, in init
cookie_store_type = config['cookie']['store']['type']
exceptions.KeyError: 'store'
So the demo si still broken.
I can remove the error by removing the first cookie bloc, and copy/paste it's content in the second cookie block in the config.json.
So:
              "ws": {
                 "type": "websocket",
                 "cookie": {
                       "store": {
                          "type": "file",
                          "filename": "cookies.dat"
                       }
                 },
                 "auth": {
                    "wampcra": {
                       "type": "dynamic",
                       "authenticator": "com.example.authenticate"
                    }
                 },
                 "cookie": {

                 }
              }
           }

Becomes:
              "ws": {
                 "type": "websocket",
                 "auth": {
                    "wampcra": {
                       "type": "dynamic",
                       "authenticator": "com.example.authenticate"
                    }
                 },
                 "cookie": {
                   "store": {
                          "type": "file",
                          "filename": "cookies.dat"
                       }
                 }
              }

Doing this, the router will start properly, and ouput the path with the cookie store in the log.
However, the browser console log still output:
authenticated using method 'wampcra' and provider 'dynamic'

Not matter how many time I reload the page. It seems like cookies are still not used.

@oberstet ?

@sametmax neither of the configs you pasted above is correct. the correct config is https://github.com/crossbario/crossbarexamples/blob/master/authenticate/cookie/.crossbar/config.json
                  "ws": {
                     "type": "websocket",
                     "cookie": {
                        "store": {
                           "type": "file",
                           "filename": "cookies.dat"
                        }
                     },
                     "auth": {
                        "wampcra": {
                           "type": "static",
                           "users": {
                              "joe": {
                                 "role": "frontend",
                                 "secret": "123456"
                              }
                           }
                        },
                        "cookie": {
                        }
                     }
                  }

I just rechecked the example. There was an issue actually flushing the cookies to disk I just fixed (https://github.com/crossbario/crossbar/commit/fa4a394cd66e6cfa9a8badbd1fb7429309d4c2a). However, that was only hitting when restarting CB.
Here is what I did:
(python279_1)oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/authenticate/cookie$ rm .crossbar/cookies.dat
(python279_1)oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/authenticate/cookie$ crossbar start
2015-09-02T23:39:22+0200 [Controller  19743]      __  __  __  __  __  __      __     __
2015-09-02T23:39:22+0200 [Controller  19743]     /  `|__)/  \/__`/__`|__) /\ |__)  |/  \
2015-09-02T23:39:22+0200 [Controller  19743]     \__,|  \\__/.__/.__/|__)/~~\|  \. |\__/
2015-09-02T23:39:22+0200 [Controller  19743]
2015-09-02T23:39:22+0200 [Controller  19743]     Version: 0.11.0
2015-09-02T23:39:22+0200 [Controller  19743]
2015-09-02T23:39:22+0200 [Controller  19743] Starting from node directory /home/oberstet/scm/crossbar/crossbarexamples/authenticate/cookie/.crossbar
2015-09-02T23:39:22+0200 [Controller  19743] Loading node configuration file '/home/oberstet/scm/crossbar/crossbarexamples/authenticate/cookie/.crossbar/config.json'
2015-09-02T23:39:22+0200 [Controller  19743] Entering reactor event loop...
2015-09-02T23:39:22+0200 [Controller  19743] Joined realm 'crossbar' on node management router
2015-09-02T23:39:22+0200 [Controller  19743] No WAMPlets detected in enviroment.
2015-09-02T23:39:22+0200 [Controller  19743] Starting Router with ID 'worker1'...
2015-09-02T23:39:22+0200 [Router      19748] Worker running under CPython-EPollReactor
2015-09-02T23:39:23+0200 [Controller  19743] Router with ID 'worker1' and PID 19748 started
2015-09-02T23:39:23+0200 [Controller  19743] Router 'worker1': realm 'realm1' (named 'realm1') started
2015-09-02T23:39:23+0200 [Controller  19743] Router 'worker1': role 'role1' (named 'backend') started on realm 'realm1'
2015-09-02T23:39:23+0200 [Controller  19743] Router 'worker1': role 'role2' (named 'frontend') started on realm 'realm1'
2015-09-02T23:39:23+0200 [Router      19748] procedure add2() registered
2015-09-02T23:39:23+0200 [Controller  19743] Router 'worker1': component 'component1' started
2015-09-02T23:39:23+0200 [Router      19748] Loaded 0 cookie records from file. Cookie store has 0 entries.
2015-09-02T23:39:23+0200 [Router      19748] File-backed cookie store active /home/oberstet/scm/crossbar/crossbarexamples/authenticate/cookie/.crossbar/cookies.dat
2015-09-02T23:39:23+0200 [Router      19748] Site starting on 8080
2015-09-02T23:39:23+0200 [Controller  19743] Router 'worker1': transport 'transport1' started
2015-09-02T23:39:23+0200 [Router      19748] onAuthenticate: LgrKXyZs6t6Rq8nNjgxyKe/YBNP5q9GJQouUgH3ceeo= {}
2015-09-02T23:39:23+0200 [Router      19748] add2() called with 2 and 3
2015-09-02T23:40:04+0200 [Router      19748] add2() called with 2 and 3
...

First time opening Web page:
connected session with ID<PHONE_NUMBER>292805
(index):49 authenticated using method 'wampcra' and provider 'static'
(index):50 authenticated with authid 'joe' and authrole 'frontend'

Second time:
connected session with ID<PHONE_NUMBER>363018
localhost/:49 authenticated using method 'wampcra' and provider 'cookie'
localhost/:50 authenticated with authid 'joe' and authrole 'frontend'

OT:

With the trunk version, I get a very pretty output (nice !)

Ah, that feels good you noticed;) We've put a lot of effort into improving the logging in CB. It was a frequent critique .. I think you've been one of the earliest and most vocal. Things improved a lot.
 Also muuuch improved. And currently, I am going through the complete docs.

We try to really address each of them. Did I miss something?

Just one : the API is not intuitive and verbose.
But honestly, tavendo's team has been doing an incredible job at:

listening to the issues;
working on fixing them.

So kudos. I will test the new version and checkout all these goodies.

@sametmax Thanks for recognizing the efforts! This is good to hear;) If we had more resources, we could do even better.
rgd the API: yes, I know about your view. I haven't forgotten;) I agree that this needs improvements too.
AutobahnPython/AutobahnJS now has reached a certain level of maturity. And in fact, before going to 1.0 with these, the "API question" is one of the most important to solve:
https://github.com/tavendo/AutobahnPython/issues/472
I'd highly welcome your input and thoughts on that! If you want to chime in, yes please!

Updating to your last patch did the trick. Cookies are now working perfectly, thanks.

@sametmax thanks for reporting back and testing! let me know if you run into issues, have Qs or something .. Cheers;)


Compile warning: compile on ventura warns that 'FSEventStreamScheduleWithRunLoop' is deprecated

Which version of macOS are you using?
ProductName:            macOS
ProductVersion:         13.2.1
BuildVersion:           22D68
Please describe the issue that occurred.
Compilation throws a warning:
# github.com/fsnotify/fsevents
cgo-gcc-prolog:452:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here

There is no functionality problem right now, as far as I see. I hope it does not mean a future update to MacOS will break it.
Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
Yes, on a machine that runs Ventura (13.0 and up) any compilation of a project that contains fsevents v0.1.1 will throw the warning.

This library is essentially unmaintained (I'm not maintaining it, anyway). If you want a fix you'll have to send a patch.

Fixed via  #62.


[bug]: Installation fails (Python not found or too new?)

Is there an existing issue for this problem?

[X] I have searched the existing issues

Operating system
Linux
GPU vendor
AMD (ROCm)
GPU model
7900 XTX
GPU VRAM
24 GB
Version number
5.4.1
Browser
Firefox
Python dependencies
No response
What happened
Installation fails with the following error:
A suitable Python interpreter could not be found
Please install Python 3.10.0 or higher (maximum 3.11.100) before running this script. See instructions at  for help.
Press any key to exit
On my machine Python 3.12.7 is installed:
InvokeAI-Installer python --version
Python 3.12.7
➜  InvokeAI-Installer pip --version
pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)
What you expected to happen
I would have expected the installer to work with Python 3.12.
Is there a reason 3.11 is the maximum supported version (according to error message)?
How to reproduce the problem
Start ./install.sh
Additional context
No response
Discord username
No response

Python 3.12 is not currently supported. Not a bug.