Problem about opencl backend in libtorch

Hi, I want to use opencl backend for AMD R5 5600g in libtorch 1.13 of cpu version. So I use the following code in my cpp file.
dlhandler = dlopen("/usr/lib/x86_64-linux-gnu/libpt_ocl.so", RTLD_NOW | RTLD_GLOBAL);
It occurs errors when I run it. What should I do to make things right? Thank you!
Accessing device #0:gfx90c:xnack- on AMD Accelerated Parallel Processing
terminate called after throwing an instance of 'c10::Error'
 what():  Attempted to callvariable.set_data(tensor), but variableandtensor have incompatible tensor type.
Exception raised from set_data at ./torch/csrc/autograd/variable.cpp:477 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x9e (0x7f86b65e99ae in /lib/x86_64-linux-gnu/libc10.so.1.13)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*) + 0xfc (0x7f86b65b68de in /lib/x86_64-linux-gnu/libc10.so.1.13)
frame #2: <unknown function> + 0x3b6beaf (0x7f86ba191eaf in /lib/x86_64-linux-gnu/libtorch_cpu.so.1.13)
frame #3: void torch::nn::Module::to_impl<c10::Device&, bool&>(c10::Device&, bool&) + 0x1d4 (0x7f86bab7e824 in /lib/x86_64-linux-gnu/libtorch_cpu.so.1.13)
frame #4: void torch::nn::Module::to_impl<c10::Device&, bool&>(c10::Device&, bool&) + 0x88 (0x7f86bab7e6d8 in /lib/x86_64-linux-gnu/libtorch_cpu.so.1.13)
frame #5: torch::nn::Module::to(c10::Device, bool) + 0x1c (0x7f86bab7a45c in /lib/x86_64-linux-gnu/libtorch_cpu.so.1.13)
frame #6: main + 0xff (0x559ccc74fdc0 in ./mnist_train)
frame #7: <unknown function> + 0x271ca (0x7f86b61aa1ca in /lib/x86_64-linux-gnu/libc.so.6)
frame #8: __libc_start_main + 0x85 (0x7f86b61aa285 in /lib/x86_64-linux-gnu/libc.so.6)
frame #9: _start + 0x21 (0x559ccc74f9c1 in ./mnist_train)

Honestly, I never tested it with C++ API. Do you have a small example of C++ code that run some very-very simple torch code (like add two tensors) that lets say runs on CPU and does not run there?

I write two examples. The exaple in test.tar.gz is the simple code which add two tensors and has correct result. But the example in mnist.tar.gz has crashed when I use opencl backend. You could have a try. Thank you!
test.tar.gz
mnist.tar.gz

Ok, thanks. I reproduced the issue. Can't figure out what it is yet.

Hi,
I try the matmul() function in libtorch, it gives these warning informations.
[W tensor_ops.cpp:324] Warning: The operator 'aten::addmm.out' is not currently supported on the ocl backend. Please open an issue at for requesting support https://github.com/artyom-beilis/pytorch_dlprim/issues (function fallback) [W tensor_ops.cpp:324] Warning: The operator 'aten::mm.out' is not currently supported on the ocl backend. Please open an issue at for requesting support https://github.com/artyom-beilis/pytorch_dlprim/issues (function fallback)
Could you please add these features? Thank you!


esy bootstrap failed with errors

The error happens when I try to run esy bootstrap.
Fedora 31.
  build log:
    # esy-build-package: building: reason-libvim@github:onivim/reason-libvim#4919011
    # esy-build-package: pwd: /home/zpwebbear/.esy/3________________________________________________________________/b/reason_libvim-e9c060c0
    # esy-build-package: running: 'refmterr' 'dune' 'build' '-p' 'libvim'
        discover src/c_flags.sexp,src/cxx_flags.sexp,src/flags.sexp
    -L/home/zpwebbear/.esy/3/i/libvim-8.10869.26-766a79fd/lib
          ocamlc src/bindings.o
    bindings.c: In function 'libvim_vimInit':
    bindings.c:264:22: warning: passing argument 1 of 'vimSetGotoCallback' from incompatible pointer type [-Wincompatible-pointer-types]
      264 |   vimSetGotoCallback(&onGoto);
          |                      ^~~~~~~
          |                      |
          |                      void (*)(gotoRequest_T) {aka void (*)(struct <anonymous>)}
    In file included from bindings.c:1:
    /home/zpwebbear/.esy/3/i/libvim-8.10869.26-766a79fd/include/libvim.h:102:38: note: expected 'GotoCallback' {aka 'int (*)(struct <anonymous>)'} but argument is of type 'void (*)(gotoRequest_T)' {aka 'void (*)(struct <anonymous>)'}
      102 | void vimSetGotoCallback(GotoCallback gotoCallback);
          |                         ~~~~~~~~~~~~~^~~~~~~~~~~~
        ocamlopt src/vim.cmxs (exit 2)
    (cd _build/default && /home/zpwebbear/.esy/3/i/ocaml-4.7.1004-a6ae015e/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src -o src/vim.cmxs src/vim.cmxa)
    /usr/bin/ld: cannot find -lICE
    /usr/bin/ld: cannot find -lSM
    /usr/bin/ld: cannot find -lXt
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'refmterr' 'dune' 'build' '-p' 'libvim' (exited with 1)
    esy-build-package: exiting with errors above...

  building reason-libvim@github:onivim/reason-libvim#4919011
esy: exiting due to errors above

Ah, looks like these libraries are missing:
    /usr/bin/ld: cannot find -lICE
    /usr/bin/ld: cannot find -lSM
    /usr/bin/ld: cannot find -lXt

You'll need to install those with your distro's package manager.
It looks like they are missing from our docs for building on Fedora as well: https://github.com/revery-ui/revery/wiki/Building-&-Installing#for-fedora-you-may-need-these-additional-packages - we should update that wiki page if that solves the issue

Yeah, I messed these libraries in error trace. I have already installed them but got new errors. There were a lot of errors during bootstrapping, but I do not give up.


Load examples by clicking links/dropdown menu

why not load some other examples besides the default right from here, a dropdown menu could select names and then the code variable could be updated with the code from that file which for example could be saved in the p5.eegedu.art repository, or in this repo
@keyfer @korymath

solved with https://github.com/kylemath/p5.eegedu/pull/10


Fix issue of NPE that occur when request body is empty.

ref: https://github.com/line/armeria/issues/410
Please let me know if anything is missing. 😄

OK. please wait. :D

@trustin
I have added some tests.

@be-hase Thank you! LGTM. Will merge once CI passes. :+1:


Adjust fprobe command line parameters

To improve precision at high throughput rates add the snaplen
and kernel buffer size parameters.
Signed-off-by: Stefan Berger<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master     #282   +/-   ##
=======================================
  Coverage   89.31%   89.31%
=======================================
  Files         113      113
  Lines        4229     4229
=======================================
  Hits         3777     3777
  Misses        452      452

Impacted Files
Coverage Δ

...rawler/plugins/systems/fprobe_container_crawler.py
81.98% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

nprobe seems to be very precise in capturing and creating stats on loopback traffic being sent at high rates (10G). fprobe seems to have challenges here and it's not quite clear what the best parameters are to achieve better precision. nprobe may be better written but is a commercial tool that needs a license. I haven't tried any other like yaf or so. Yaf is not available on Ubuntu for example and only available for RHEL 5 or 6 - maybe because it's as bad as pmacct/pmacctd.
pmacctd test run:
[...]
# pmacctd -i lo -O json
ARN ( default/memory ): Failed during write: Resource temporarily unavailable
WARN ( default/memory ): Failed during write: Resource temporarily unavailable
WARN ( default/memory ): Failed during write: Resource temporarily unavailable
ERROR ( default/memory ): We are missing data.
If you see this message once in a while, discard it. Otherwise some solutions follow:

[...]
# pmacct -h
[...]
Promiscuous Mode Accounting Daemon, pmacctd 1.5.2 (20150907-00)
[...]
 Y```
[whatever it may do, but this is not very encouraging...]


Increase and enhance fuzzy testing

Please describe clearly, what is enhanced.

I made some modifications to the existing test cases to make it easier for them to enter the subsequent branches。
[Do some customized settings to cover more code logical branch](https://github.com/DMTF/libspdm/pull/2623/commits/e239ae67c58caadfeb9e88f2f247c24c963b97dc)


fix for syntax error in overcloud-dib.yml

Can you propose this to stackhpc/xena instead?

Will do after this one is merged
śr., 7 gru 2022, 21:14 użytkownik Mark Goddard @.***>
napisał:

Can you propose this to stackhpc/xena instead?
—
Reply to this email directly, view it on GitHub
https://github.com/stackhpc/stackhpc-kayobe-config/pull/287#issuecomment-1341534652,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMNVQ4EYRJ76ZGAJX7ZCLMTWMDVY7ANCNFSM6AAAAAASWVSGQM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Will do after this one is merged śr., 7 gru 2022, 21:14 użytkownik Mark Goddard @.> napisał:
…
Can you propose this to stackhpc/xena instead? — Reply to this email directly, view it on GitHub <#287 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNVQ4EYRJ76ZGAJX7ZCLMTWMDVY7ANCNFSM6AAAAAASWVSGQM . You are receiving this because you authored the thread.Message ID: @.>

It's better to merge to stackhpc/xena first, then we'll merge that branch into stackhpc/yoga. Otherwise we end up with multiple copies of the same commit.

Ok will do

On 7 Dec 2022, at 21:19, Mark Goddard @.***> wrote:
Will do after this one is merged śr., 7 gru 2022, 21:14 użytkownik Mark Goddard @.> napisał:
… x-msg://3/#
Can you propose this to stackhpc/xena instead? — Reply to this email directly, view it on GitHub <#287 (comment) https://github.com/stackhpc/stackhpc-kayobe-config/pull/287#issuecomment-1341534652>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNVQ4EYRJ76ZGAJX7ZCLMTWMDVY7ANCNFSM6AAAAAASWVSGQM . You are receiving this because you authored the thread.Message ID: @.>
It's better to merge to stackhpc/xena first, then we'll merge that branch into stackhpc/yoga. Otherwise we end up with multiple copies of the same commit.
—
Reply to this email directly, view it on GitHub https://github.com/stackhpc/stackhpc-kayobe-config/pull/287#issuecomment-1341540148, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNVQ4GASF6HCX5HFNMSIQDWMDWLNANCNFSM6AAAAAASWVSGQM.
You are receiving this because you authored the thread.


Az/upload anno for task

@bsekachev , could you please look?

@nmanovic
PR, looks well.
I believe it will close issue #123


chore: version bumps

Incremented the version of all packages to the latest version. Included some missing peer dependencies.

While we are at it, please update both index.ts files (of frontend-service and payment-connector) to no longer use deprecated ErrorCode, e.g.


Tooltip weird behavior

If I use Toolip normaly(mouse hovers) and click on the tooltip -> disappear. This is weird. Tooltip should
disappear after mouseleave/mouselout not on the click.
When I try use methods show() and hide() so mouse hovers also works. I dont know how disable mouse hovers and only listen show() and hide() | toggle()
For calling directive methods I use
@ViewChild(MdTooltip) tooltip:MdTooltip;
 ...
onClick(){
  this.isTooltipVisible ? this.tooltip.hide(300) : this.tooltip.show(300);
}

And with mouse hovers is not possible select text in the tooltip bacause mouse hovers ingnore tooltip content as a part of the tooltip.

Possible solution would be a property/function for enabling&disabling the mouseenter and mouseleave listeners. Maybe also longpress and touchend.
@jelbourn @DevVersion @kara Your opinion on that? If you'd like the feature i will create a PR

@thomaspink Should be nice. Tooltip is little bit user unfriendly for now.

@thomaspink Please wait for @andrewseguin's feedback on this. He worked a lot on the tooltip component.

@DevVersion Thanks for the response
@andrewseguin If you have finished your work, pls let me know if this is still up :)

In the future, please use the issue template because it helps us understand your expected use case compared to current behavior. It sounds like this issue involves several different requests.
(1) Clicking should not make the tooltip disappear
(2) Unable to disable mouseenter/mouseleave to show and hide the tooltip
(3) Cannot select the text in the tooltip
I'll try to address them one by one:
(1) The material design spec states that a tooltip will disappear if a user takes an action. We interpret this as inclusive of the user clicking on the page.
(2) Can you provide some use cases that would help us build a convincing argument for an API to disable mouseenter/mouseleave? This seems to be counter-intuitive for users and not a part of the material design spec.
(3) When shown, the tooltip covers up the surrounding user interface and should not keep a user from interacting with these elements. I'm not familiar with tooltips that let the user select their text. You may want to reconsider if your goals are met by using tooltips or if another user experience is better suited.

I am sorry for my late reaction.

Yes, but if you have delay 300ms and you click between 0-300ms nothing happend or tooltip disappear.

If I want use only click evenets. This is normal setting of tooltips. I use hover only on links and buttons(CSS effects). I hate if I am moving with mouse on the page and suddenly tooltip here, some box rise up there etc.

Selecting text is not the best exapmle. But tooltip is the text like other content of the page and you can select normal text on the page. Better example is the link in the tooltip. Now is not possible add link in the tooltip. Imagine it is possible. But you cant click on it. Typical example: "some short info....... More info you find here(link with target blank)"

In my case, I want show tooltip when user click a component, some people don't know long press to display it.

Clicking a tooltip no longer causes it to disappear. If there are other feature requests or issues please open a new issue individually so we can investigate and discuss.


"Connection pool is full" in 1.9.1

I just updated OmniSharp (first through SublimeText auto update, then through package remove and package install), and when I tries to run I get the error "connection pool is full." I've pasted the output below. Everything was working a couple versions ago, until I started getting the issue detailed here: https://github.com/OmniSharp/omnisharp-sublime/issues/135
First, when I launch SublimeText and save a file that's already in my project:
omnisharp plugin_loaded
project file %s found /Users/mafranklin/MyProj.sublime-project
solution_path:/Users/mafranklin/MyProj/MyProj-csharp.sln
omni_port:54790
/Users/mafranklin/Library/Application Support/Sublime Text 3/Packages/OmniSharp
"/Users/mafranklin/Library/Application Support/Sublime Text 3/Packages/OmniSharp/PrebuiltOmniSharpServer/omnisharp" -s "/Users/mafranklin/MyProj/MyProj-csharp.sln" -p 54790 -config "/Users/mafranklin/.config/omnisharp/config.json" --hostPID 71429
project file %s found /Users/mafranklin/MyProj.sublime-project
already_bound_solution:/Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
already_bound_solution:/Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
already_bound_solution:/Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
solution path: /Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
solution path: /Users/mafranklin/MyProj/MyProj-csharp.sln
file changed
======== request ========
 Url: http://localhost:54790/addtoproject
 Data: {"column": "1", "filename": "/Users/mafranklin/MyProj/Assets/Scripts/Game/Peeps/PeepManager.cs", [redacted]
INFO:OmniSharp.lib.urllib3.connectionpool:Starting new HTTP connection (1): localhost
======== request ========
 Url: http://localhost:54790/codecheck
 Data: {"column": "1", "filename": "/Users/mafranklin/MyProj/Assets/Scripts/Game/Peeps/PeepManager.cs", [redacted]
INFO:OmniSharp.lib.urllib3.connectionpool:Starting new HTTP connection (2): localhost
======== response ========
 true
file added to project
True
======== end ========
WARNING:OmniSharp.lib.urllib3.connectionpool:Connection pool is full, discarding connection: localhost
======== response ========
 response is empty
handling Errors
no data
======== end ========

And then, whenever I again save a file that's already in the project, I get this every time:
project file %s found /Users/mafranklin/MyProj.sublime-project
already_bound_solution:/Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
already_bound_solution:/Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
solution path: /Users/mafranklin/MyProj/MyProj-csharp.sln
project file %s found /Users/mafranklin/MyProj.sublime-project
solution path: /Users/mafranklin/MyProj/MyProj-csharp.sln
file changed
======== request ========
 Url: http://localhost:54790/addtoproject
 Data: {"column": "1", "filename": "/Users/mafranklin/MyProj/Assets/Scripts/Game/Peeps/PeepManager.cs", [redacted]
======== request ========
 Url: http://localhost:54790/codecheck
 Data: {"column": "1", "filename": "/Users/mafranklin/MyProj/Assets/Scripts/Game/Peeps/PeepManager.cs", [redacted]
INFO:OmniSharp.lib.urllib3.connectionpool:Starting new HTTP connection (4): localhost
======== response ========
 true
file added to project
True
======== end ========
WARNING:OmniSharp.lib.urllib3.connectionpool:Connection pool is full, discarding connection: localhost
======== response ========
 response is empty
handling Errors
no data
======== end ========

Closing due to having outdated information.


No module named 'utils.time_track'

I run the main.py, but receive the loss of one python file.
Can you provide this file for me?
Thank you a lot！

I'm sorry for forgetting to upload time_track.py due to my negligence. You could pull the new code.


SSH Tunnel Support

Implement SSH Tunneling via Tunnel SSH or another SSH package available on NPM to allow connecting to a mongodb server not open to the internet.

Example of connecting to mongo using (tunnel-ssh)[https://github.com/Finanzchef24-GmbH/tunnel-ssh]
http://pythonhackers.com/p/FBSENDER/tunnel-ssh

+1

:+1:

+1

+1

+1

any new on this ?


feat: source translations

configure example project
refactor and enhance translateNode tests
fix translation overreach in translateNode
source translation to graphql api


Vmdb::Gettext::Domains: Store po and mo paths separately and union them correctly

Previously Vmdb::Gettext::Domains.paths contained duplicate paths, one from mo
and one from po domains.
Note, the second commit drops Vmdb::Gettext::Domains.paths entirely as it's confusing why'd you ever use it without knowing if it's for po or mo.  We can deprecate it if needed.
This is a followup to https://github.com/ManageIQ/manageiq/pull/21799, specifically: https://github.com/ManageIQ/manageiq/commit/61e4f41905d8e471ad29409fe6b866e8d11974ea

@jrafanie A conflict occurred during the backport of this pull request to najdorf.
If this pull request is based on another pull request that has not been marked for backport, add the appropriate labels to the other pull request. Otherwise, please create a new pull request direct to the najdorf branch in order to resolve this.
Conflict details:
diff --cc lib/tasks/locale.rake
index 15edcf98d4,eb4a1dd304..0000000000
--- a/lib/tasks/locale.rake
+++ b/lib/tasks/locale.rake
@@@ -274,7 -274,8 +274,12 @@@ namespace :locale d
        require Rails.root.join("lib/vmdb/gettext/domains")

        po_files = {}
++<<<<<<< HEAD
 +      Vmdb::Gettext::Domains.paths.each do |path|
++=======
+
+       Vmdb::Gettext::Domains.po_paths.each do |path|
++>>>>>>> 81fb7b4dd3 (Merge pull request #21805 from jrafanie/fix_duplicate_vmdb_gettext_domain_paths)
          files = ::Pathname.glob(::File.join(path, "**", "*.po"))
          files.each do |file|
            locale = file.dirname.basename.to_s


[WIP] Remove CC BY default licensing for content

TODO: Important for me to rephrase the body of this PR to fully articulate my thoughts, so I can decide wether to merge this or not
In conversation with a lot of people, the project was
renamted from ipynb.pub to NotebookSharing.space,
with a focus on sharing notebooks with others - individual
or in a group - rather than publishing. The difference
has always seemed minor and cosmetic to me - but I think the
intent of the user needs to be considered. Sharing mostly
seems to be during collaboration, and as a quick 'look at this',
rather than something for perpetuity. The lack of any user
authentication adds to this - publication requires intent,
and control - and here we provide neither intentionally.
So the focus here is on in-progress work products rather
than 'final' work to be 'published'.
I've also been re-reading https://techautonomy.org, and found
it relevant. There's a general feeling of keeping the users
in control, and in this case the users are people who are
uploading notebooks. More specifically, there is

Protect people's privacy and other rights by design

'Other rights' include copyright too.
But it feels important to me that users pick this license,
rather than have it thrust upon them - at this level, at least.
GitHub should pick a default license for repositories at creation

I think that's a good place for people to make an informed
choice about how they want their work to be used. Uploading
a single notebook doesn't seem to be such a place.

Sorted with 707b6172037214f3f493b00a5e80d3bf4c52c401.


selective listeners

Hello,
I'm not sure if I'm missing some way to achieve that but it will be very userful to have the ability to selectively enable/disable the various resize listener, especially click and dom changes in the iframe content.

Yep something on the list for the future.
In the meantime setting interval to a negative number disables the DOM observer. Pick a large negative value to stop the interval check running as well.

Thank you David. In the meanwhile, to achive it manually, it is just a matter of "selectively" commenting the manageTriggerEvent lines of the manageEventListeners function inside iframeResizer.contentWindow.js ?

Yep you can do that.

Great, thanks.

These will be removed in V5


Dreanei Power: Crystal Allignement

For each Arcane Well (house) that is in contact with a building, that building will produce units faster and reimbource a percentage of their cost once they are trained

Couple of discussed issues with this one:

It would discourage players from training units anywhere they don't have a full set of Arcane Wells.
Producing units faster is impossible as far as I know.

Arcane Wells having some of positive effect on buildings is a good idea though, and worth retaining in a document somewhere.


Fixed spelling error

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/index.yml
:white_check_mark:Succeeded
View (azure-node-latest) View (azure-node-preview)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


jsx-wrap-multilines option for always newlining

There are a few other issues related to this concept, where the autofix for jsx-wrap-multilines results in something like this:
return (<div>
  foo
</div>);

This happens in specific scenarios (when there is no indentation set), but this always happens with multiline self-closing tags:
return (<SomeChildlessComponent
  foo="foo"
  bar="bar"
/>);

It would be really handy if there was an option added to jsx-wrap-multiline that always newlined the wrapped output on autofix, so that tag alignment was maintained:
return (
  <SomeChildlessComponent
    foo="foo"
    bar="bar"
  />
);

Since the whole point is that wrapping the element enhances readability, this option would help greatly.

I believe this was already requested here: https://github.com/yannickcr/eslint-plugin-react/issues/1207#issuecomment-302906085
Although that comment is a bit hidden...

Does #1475 cover this?

I think it does. See example below, using autofixer on save + jsx-ident rule.  Not sure why hello world does not get indented, but that's not part of this rule but jsx-indent instead.


npm install does not install dist directory

When installing 0.0.7-beta, the dist folder is missing in the package. Therefore, the module does not work.
When installing the previous version (npm install nestjs-enlighten@0.0.6-beta), everything is fine.
Probably, there is something wrong with the build process.
I hope, I did not break something with my PR from yesterday.

Probably I forgot to build lib before I publish it. I will fix it today.


Resume training from checkpoint

Currently, when log directory exists, a user is offered a choice to keep/backup/delete/etc.
If I choose "keep", the message will say:
Found training history from JSON, now starting from epoch number n.
(where n in the last epoch number from the previous training session for this model.)
It makes it seem like we continue the training process from that point, however, in reality we start training from scratch:
https://github.com/ppwwyyxx/tensorpack/blob/efaf9d7ba0dbc5788395ad02a2371853e4ba007a/tensorpack/utils/logger.py#L111
A more useful option would be to actually resume training from the last saved checkpoint.

That's impossible from a design perspective. All the modules are independent of each other.
Json loader continues the old epoch number so that new data can be appended to the json file, and this has nothing to do with the rest of the world. Maybe the message can be changed a bit to avoid confusion. And frankly I'm not a big fan of this epoch-loading feature since it has caused other troubles in the past.

OK, let's change the message then. Also, the checkpoint names are not very descriptive. It would probably be better to let a user enter a name for a backup/new checkpoint.

What do you mean by "checkpoint names"? Do you mean the logging directory name?
You can use set_logger_dir to set directory name.

Yes. For example, right now:
if act == 'b':
            backup_name = dirname + _get_time_str()
            shutil.move(dirname, backup_name)

After multiple runs with different hyperparams it's hard to determine which backup refers to which run. I have to look into log.log.
It would be better if instead I could simply enter by hand the name of the directory that reflects this particular choice of hyperparams, so that when I want to load a model I can immediately see which checkpoint has it.
Not a big deal though, just a thought.

You can use logger.set_logger_dir, perhaps with a command line argument to do this.
Interacting with users is usually a bad idea. Despite all the other trouble it could cause, it assumes the existence of a user in front of the terminal, which isn't necessarily true at the first place.

I agree in general, but in this case you already ask for user input. My suggestion is to ask for the dir name, if the action answer is "backup" or "new". If you don't think that's useful, fine, let's just change the "starting from epoch number n" message and close this ticket.
By the way, I'm curious, what issues did you mean when you said: "I'm not a big fan of this epoch-loading feature since it has caused other troubles in the past."

Yes in this case it's already interacting with users, which I don't like. I actually have never used "backup" or "new" myself. They turn out to be bad ideas. I usually used set_logger_dir and mentally made sure the name doesn't conflict. If I were to rewrite it I would just throw an error when names conflict.
The message was changed to "Rename the first epoch of this training to epoch #{}.".format(epoch)". Hope this won't give users an impression that the checkpoint will be loaded.
The epoch number is by design not supposed to be changed dynamically. The current way of changing it is a bit hacky. And because of this change, callbacks that run before and after the JSONWriter will see different epoch numbers which is troublesome. Also this overwrites the starting_epoch even if users have manually set it, which is also undesirable.

Actually, the option "keep" does not make sense to me. Why is it needed?

To resume training, if you load the last checkpoint and select "keep", everything will appear as if the training was never interrupted.

Oh, I see. This should probably be mentioned somewhere in documentation.

everything will appear as if the training was never interrupted.

Not exactly.. because how hacky the epoch number is restored, the new epoch number is not visible to hyperparametersetter. Therefore if the learning rate is scheduled by epoch, it will be wrong after restore.
Just one more reason for me to remove the feature...


Search in result dto object instead of db class

Search option in result dto object instead of db class.
I have 3 classes;  Material ,  Material Type and Material Group.
Material includes the material type and material group.
When I show list of materials including material type name to clients , client want search material type name ?
But this filed is not in same db table.
How we can do it ? What is the best case ?

If I got it right, specification and EF Core should handle your request already:
// Assuming Material having a property Type of type MaterialType

internal sealed class MaterialByMaterialTypeNameSpecification : Specification<Material>
{
    internal MaterialByMaterialTypeNameSpecification(string name)
    {
        // Deal with an empty name
        ArgumentException.ThrowIfNullOrEmpty(name);

        Query.Where(material => material.Type.Name == name)
    }
}

// Somewhere in your code
{
    private readonly IRepositoryBase<Material> _repository;

    // ...

    public void Bar(CancellationToken cancellationToken = default)
    {
        var specification = new MaterialByMaterialTypeNameSpecification("Foo");
        List<Material> materials = await _repository.ListAsync(specification, cancellationToken);
        // Do something with the returned materials
    }
}

Hi Thank you for answer. But my question is somehow different.
Let me explain.
I have MachineDto which is also include Machine group And MachineGroup Class.
When i retrivening Machine data including MachineGroup and convert to MachineDto, finally show on table for user. And I already implemented Pagination.
when user try to search MAchineGroupName in the table, serach function is try to search in machine table. On the machine table hasnt machinegroup name in db table.
So that How can i implmemnt this request by using ardalis.specifiacation?
public class MachineBySearchRequestSpec : EntitiesByPaginationFilterSpec<Machine, MachineDto>
{
    public MachineBySearchRequestSpec(SearchMachinesRequest request)
        : base(request) =>
        Query.OrderBy(c => c.Name, !request.HasOrderBy());
}

public class EntitiesByBaseFilterSpec<T> : Specification<T>
{
    public EntitiesByBaseFilterSpec(BaseFilter filter) =>
        Query.SearchBy(filter);
}

> public class MachineDto : IDto
> {
>     public Guid Id { get; set; }
>     public string Name { get; set; } = default!;
>     public Guid MachineGroupId { get; set; }
>     public string MachineGroupName { get; set; } = default!;
>     public string EquipmentNo{ get; set; } = default!;
> }
>
> public class MachineGroup
> {
>     public Guid Id { get; set; }
>     public string Name { get; set; } = default!;
>
> }

> If I got it right, specification and EF Core should handle your request already:
>
> ```cs
> // Assuming Material having a property Type of type MaterialType
>
> internal sealed class MaterialByMaterialTypeNameSpecification : Specification<Material>
> {
>     internal MaterialByMaterialTypeNameSpecification(string name)
>     {
>         // Deal with an empty name
>         ArgumentException.ThrowIfNullOrEmpty(name);
>
>         Query.Where(material => material.Type.Name == name)
>     }
> }
>
> // Somewhere in your code
> {
>     private readonly IRepositoryBase<Material> _repository;
>
>     // ...
>
>     public void Bar(CancellationToken cancellationToken = default)
>     {
>         var specification = new MaterialByMaterialTypeNameSpecification("Foo");
>         List<Material> materials = await _repository.ListAsync(specification, cancellationToken);
>         // Do something with the returned materials
>     }
> }
> ```

Hi...
I'm afraid but I don't understand what you are looking for... In addition there is no SearchBy property nor method in Query property of Specification so I assume you have some extension methods somewhere...
I'd love to help but provide the complete code (regarding the issue, obviously) or a PoC repo

Is this issue still relevant?
I'm closing the issue. Please feel free to re-open it if you have any more questions. And please provide a reproducible sample.


feat(resolver): enable namespaced components

Allows the auto importing of namespaced components

Nice! I like the idea! We can probably do similarly for Nuxt module too. But that can be another PR! 😁

Can we update this installation with unplugin-vue-components abit?

Can we update this installation with unplugin-vue-components abit?

@zernonia Done!

@zernonia Fixed your concerns, but still there seem to be some caveats with Volar and vue-tsc. Can you reproduce it?


create sbx.moov.io

Our API docs mention a "sandbox" API, which would usually imply it is setup for testing/development. There wouldn't be outside impact and data would not be shared with api.moov.io.
Let's deploy this out. We might need to tweak our k8s namespaces a bit.
Let's create sbx-apps and prod-apps namespaces, and setup routing to both.

cc @wadearnold thoughts?


[BUG]: Test Issue 28

Bug Description
N/A
Logs
N/A
Screenshots
No response
Additional Environment Information
No response
Steps to Reproduce
N/A
Expected Behavior
N/A
CSM Driver(s)
N/A
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
N/A
Operating System
N/A

/sync


Context menu should respect agOption 'suppressRowClickSelection'

Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[x] Caught up with develop branch as of last change.
[ ] Added CHANGELOG entry, or determined not required.
[x] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[x] Updated doc comments / prop-types, or determined not required.
[x] Reviewed and tested on Mobile, or determined not required.
[x] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

This partially addresses2460. And it should solve the client app issue we have now. However it does not make this fully configurable via the Hoist API.
Also not sure if this is worthy of a changelog entry or not.


Release v1.3.1

Allow readlayers(::AbstractVector{<:AbstractString})
Add README.md
Deploy documentation automatically

@JuliaRegistrator register

Comments on pull requests will not trigger Registrator, as it is disabled. Please try commenting on a commit or issue.


RE-196 Add script for generating release notes

This will be used by the RE release job, to create the release notes.
These notes will be used in mail notifications and the body of the
github release.
Issue: RE-196

recheck_cit_all

https://rpc.jenkins.cit.rackspace.net/job/RE-Release/44/ ✅


$main_mod key's after affects

Discussed in https://github.com/hyprwm/Hyprland/discussions/7541

Originally posted by aceboii August 27, 2024
As the name suggest every time a use main mod key (which is super key or windows key) to switch mainly to other workspaces the effects remains and if i write some thing or press an alphabet key the functionality for the key and main mod key comes into play so i have to press escape or wait for some time to make to effects go away!
what is the solution for that.

I guess that is not hyprland's fault. Does it happen when you use another desktop environment?


Improve on "Service not applicable/Does not exist" errors

Many users run into the "Service not applicable/Does not exist" error. This may be due to lack of DwD set in the admin console or the given Workspace service being disabled for the user. In any case, it's a poor error message that leaves the admin clueless as to how they can rectify the situation (which in turn means lots of group questions for Ross and Jay).

determine what the actual root issue is, is it DwD, missing scopes? Service disabled?
determine how GAM may be able to rectify the issue itself, DwD check for the given API scopes before throwing the error? Check licenses of the user before throwing error? Check if service is enabled via new policy API? Any additional info GAM can gather that will provide a better picture of the root issue.
instruct the admin as to next steps, "DwD authorization incomplete, please run "gam ... check serviceaccount", etc.

@taers232c penny for your thoughts here.

I'm looking at this.
Ross
Ross Scroggs
@.***

On Nov 26, 2024, at 3:34 AM, Jay Lee @.***> wrote:
Many users run into the "Service not applicable/Does not exist" error. This may be due to lack of DwD set in the admin console or the given Workspace service being disabled for the user. In any case, it's a poor error message that leaves the admin clueless as to how they can rectify the situation (which in turn means lots of group questions for Ross and Jay).
determine what the actual root issue is, is it DwD, missing scopes? Service disabled?
determine how GAM may be able to rectify the issue itself, DwD check for the given API scopes before throwing the error? Check licenses of the user before throwing error? Check if service is enabled via new policy API? Any additional info GAM can gather that will provide a better picture of the root issue.
instruct the admin as to next steps, "DwD authorization incomplete, please run "gam ... check serviceaccount", etc.
@taers232c https://github.com/taers232c penny for your thoughts here.
—
Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1720, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLYIVHJM3ZUKSUQL6ED2CRMETAVCNFSM6AAAAABSQG3NHSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY4TIMZVGE2DKMQ.
You are receiving this because you were mentioned.

Fixed in 7.02.00 and 7.02.04


Design: Create design for Search components

Issue summary
There is currently no design for the search component and in order for the project to have a uniform styleguide, a design has to be created for each of the components.
Proposed fix
Create a design for the search component using the colors of the project which is already given in the README.
Tasks

[ ] Search bar
[ ] Sorting dropdown
[ ] Filter options

Before working on the issue, dm me or @AdityaSingh-02 and @purnima143 to be added to the Figma file and please, strictly follow the styleguide.

Assign this under GSSOC23, I would like to work on this @Lovelyfin00

Sure you can work on it
Send me a dm on discord, add me as a friend and send your email too to be added to the design figma

Assign it to me under GSSOC23

Hey @Ayush9951, yes sure you can work over this issue go ahead and contribute

Hi , I am contributor under GSSOC'23 and I am eager to showcase my skills and make a meaningful contribution to this project.
Kindly assign me this issue.

Hey @tripathishipra
Someone already indicated interest
Issues are assigned on first come first serve
If after 3 days no pr, then you can pick it up

Okay

@tripathishipra
You can checkout other design issues that has been created if you're interested

Hi @AdityaSingh-02, How to send a pull request for the design?

Hey @Ayush9951 , for the design part you can add a PDF of your design and make a PR

@Lovelyfin00 please refer #65 and assign me that


Added CRMScript: forceSaveTrace method

so.version: 7.0 @hjelms ?

Contacted Sverre directly and confirmed it is for 10.2.11, and updated the version.


chore(Topology/Category): fix imports in TopCat.Basic

A new file TopCat.Sphere is added so as to removed the import to Analysis.InnerProductSpace.PiL2 that was added to the file Topology.Category.TopCat.Basic in PR #12502.

While you're at it, could you please add an explanation about Nat vs Int to the file about CW-complexes? Otherwise LGTM. Thanks!
bors d+

bors merge


Add KubeOne as AWS turnkey solution

This PR proposes to add KubeOne as an AWS turnkey solution.
I'm not sure is it needed to propose the change somewhere else before creating a PR, so sorry if I skipped any step.
We should eventually consider removing CoreOS Tectonic from the document at some point as it's deprecated.

/check-cla

/lgtm
/approve


Style selected end date

Hi!
I've noticed that the selected start date and the selected end date share the same css class names. We have the case that we need to set a different styling to the end date. Is it possible to set a different class name for the selected end date?
Or any other ideas how to select the selected end date with css?
We're already doing things like this:
/*
selected end date
*/
.CalendarDay__selected,
.CalendarDay__selected:hover,
td.CalendarDay__selected + td.CalendarDay__selected {
  ...
}

/*
selected start date
*/
.CalendarDay__selected:first-of-type,
:not(.CalendarDay__selected_span) + .CalendarDay__selected {
  ...
}

But it feels super hacky.
Thanks!

I just run into this issue while updating to the latest version. I believe this is a bug. CalendarDay--selected-start and CalendarDay--selected-end class names used to be added to the calendar day.
I'm gonna try to work on a fix.

awesome, thank you!


chore/linting

Motivation
Close #23
Changes
Added linting with golangci, turned off some of the most strict linters. Also implemented most of the linter's suggestions. We should discuss some of the TODOs before merging (a lot of errors were left unchecked...)
Tests done

TODO

[x] I've assigned this PR to myself
[x] I've labeled this PR correctly

Additionally we should talk about/take care of the many open TODO comments that are in our code base.

PR ready after call with developers. The tests will fail (errors unhandled and unittests). Those are handled in a separate PR.

I have just added 2 small things: Indent for json response of checks metrics endpoint; Reduced interval of health check to 15 sec. This will be configurable in the future by  https://github.com/caas-team/sparrow/issues/34
PR is LGTM


TaskInputs.getProperties() result mutation should be disallowed/documented

Mutating the result from calling TaskInputs.getProperties()  could be expected by a user to mutate the inputs used in up-to-date checks for the ad-hoc task.
Expected Behavior
Mutating the output map from TaskInputs.getProperties()  should result in an error, or something else to tell the user not to do that. The Javadoc should also clarify the intended use of the method as well as the return value.
Current Behavior
No errors, feedback to user, and task does not make use of returned properties.
Context
I recently came across this with a coworker in a build script using ad-hoc task inputs registration.
Steps to Reproduce (for bugs)

build.gradle.kts
tasks {
  create("wrapper", Wrapper::class) {
    gradleVersion = "4.10.1"
  }
  create("myAdHocTask") {
    println("Inputs: ${inputs.properties}")
    inputs.property("registered", "value")
    println("Inputs: ${inputs.properties}")
    val content = "hello " + (project.findProperty("myInput") as String? ?: "there")
    // below is line in question
    inputs.properties["content"] = content
    println("Inputs: ${inputs.properties}")

    val outputFile = file("output.txt")
    outputs.files(outputFile)

    doFirst {
      outputFile.writeText(content)
    }
  }
}

Run ./gradlew myAdHocTask --console=plain
> Configure project :
Inputs: {}
Inputs: {registered=value}
Inputs: {registered=value}

> Task :myAdHocTask

cat output.txt
hello there

./gradlew myAdHocTask -P myInput="gradle" --console=plain
> Configure project :
Inputs: {}
Inputs: {registered=value}
Inputs: {registered=value}

> Task :myAdHocTask UP-TO-DATE

cat output.txt
hello there

Expectation from the script author here might be that mutating the returned properties map is allowed and the task would be reexecuted with the new input. It actually does not have impact on the up-to-date checking and is surprising behavior to build script and plugin authors.
Your Environment

Gradle 4.10.1

Making the result of TaskInputs.getProperties() immutable would make the behavior obvious. This is a breaking change we can do in 6.0.


Simplify archetype build profiles so that we build them all by default

Please don't merge this PR yet anyone!
We need to cut a working release first since previous profile logic broke the release build.
After that if we can pass in the new community profile in our CD infrastructure we can try use this PR

@chirino any chance you could rebase please?

rebased.

retest this please


hair update + French translation

Added style, color and translated into French
I try to add new thing but not easy with this YAML Format, moreover I am not yet find the option to add tags and that it is taken into account without passing by the examples case to follow

I don't intend to translate


Please add a callback on select on unselect on Dropzone

It's corrected now. Thanks for your relevant request.

Thanks for your happy contribution !

It was a pleasure.


Make sunlight runnable in node.js

This commit makes sunlight runnable if node.js by using jsdom.
Note: I'm not sure why languageData.customTokens[tokenName].values can be undefined in node.js but not browsers.

Here's a demo of Sunlight using GitBook (a platform running on node.js)
https://lwchkg.gitbooks.io/testing/content/chapter1.html


Generated webpack.config.js does not exclude node modules with slashes in their names

Describe the bug
The webpack.config.js generated by the template does not exclude packages in node_modules if the package's name contains a forward slash (e.g., @google-cloud/firestore).  This breaks __dirname and __filename for these packages.
In my project, I fixed this by replacing the fs.readdirSync('node_modules')  code in webpack.config.js with https://www.npmjs.com/package/webpack-node-externals
To Reproduce

Generate a MS Teams package
npm install @google-cloud/firestore --save
npm run build

Expected behavior
The @google-cloud/firestore source code should not be in dist/server.js.
Detailed information

Generator version: Unknown (we created our project a while ago)
OS: Linux
Node version: The template was probably ran under Node 8, but we are building our package using Node 10
Npm version: Yarn v1.12.3

The bug is here: https://github.com/OfficeDev/generator-teams/blob/52907a4e2cae0fc8e9c1bf873f6891f878a20e6d/src/app/templates/webpack.config.js#L16-L23

Thanks for reporting, we will look into this.

Fixed in #176 (actually even earlier)


[sw,tests] Verify sysrst_ctrl input change interrupts

For test:
chip_sw_sysrst_ctrl_in_irq
Tests that transitions on the input pins to sysrst_ctrl generate appropriate interrupt requests.
Tests indivdual pins and combinations.
Signed-off-by: Dave Williams<EMAIL_ADDRESS>

It seems we have already implemented chip_sw_sysrst_ctrl_in_irq_vseq.sv and sim_dv/sysrst_ctrl_in_irq_test.c, so I suggest we close this PR:
https://github.com/lowRISC/opentitan/blob/b6412cd3b5d3e631b1e6f790a14474e61e418e20/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sysrst_ctrl_in_irq_vseq.sv
https://github.com/lowRISC/opentitan/blob/b6412cd3b5d3e631b1e6f790a14474e61e418e20/sw/device/tests/sim_dv/sysrst_ctrl_in_irq_test.c


Bug: Please  allow for setting up email for az vm auto-shutdown.

This does not create an email for<EMAIL_ADDRESS>az vm auto-shutdown -g MyResourceGroup -n MyVm --time 1730 --email<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 152b549b-d4b3-13e5-081c-c604b6e4d89e
Version Independent ID: 3f79be78-ce75-ad31-304b-bad7d475ec9e
Content: az vm
Content Source: latest/docs-ref-autogen/vm.yml
Service: virtual-machines
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

hi @qwordy could you pls help to  have a look? thanks

@sanjaydatasciencedojo Can you add --debug?

This is  my log.
{
  "createdDate": "2021-02-08T22:19:11.098288+00:00",
  "dailyRecurrence": {
    "time": "1630"
  },
  "hourlyRecurrence": null,
  "id": "/subscriptions/daa06d72-2245-4e5c-b0fb-3294990933a9/resourcegroups/rg-jitsi/providers/microsoft.devtestlab/schedules/shutdown-computevm-vmsouthcentralusjitsiinstance001",
  "location": "southcentralus",
  "name": "shutdown-computevm-vmsouthcentralusjitsiinstance001",
  "notificationSettings": {
    "emailRecipient": null,
    "notificationLocale": null,
    "status": "Disabled",
    "timeInMinutes": 0,
    "webhookUrl": null
  },
  "provisioningState": "Succeeded",
  "resourceGroup": "rg-jitsi",
  "status": "Enabled",
  "tags": null,
  "targetResourceId": "/subscriptions/daa06d72-2245-4e5c-b0fb-3294990933a9/resourceGroups/rg-jitsi/providers/Microsoft.Compute/virtualMachines/vmsouthcentralusjitsiinstance001",
  "taskType": "ComputeVmShutdownTask",
  "timeZoneId": "UTC",
  "type": "microsoft.devtestlab/schedules",
  "uniqueIdentifier": "d5f41124-97d8-416c-8c65-9913f795a753",
  "weeklyRecurrence": null
}

Hi @sanjaydatasciencedojo ,I found the "-- webhook" parameter missing in your input command. After my test, this is the main reason for your issue. Please add this parameter according to the example and try again.
eg:
az vm auto-shutdown -g MyResourceGroup -n MyVm --time 1730 --email<EMAIL_ADDRESS>--webhook "https://example.com/"

@BigCat20196 What value should I use for webhook? Should not email and webhook be decoupled?


Handle file errors

The file command may somtimes fail. For example, certain versions of it fail on .wasm files: https://bugs.astron.com/view.php?id=170
It's only used for determining if a file is a Mach-O file, so it seems like errors can be safely ignored here.
This PR makes it possible to package an app that contains a wasm file with asar disabled.

Oops, I just realized @erkyrath already did this in #13.


Cannot integrate TypeScript_15beta_Dev12 with VS 2013

The installer runs completely but it does not integrate with VS 2013. I tried all the previous versions but in vain. I looked in https://github.com/Microsoft/TypeScript/issues/1162 thread and it still does not seem to be fixed in 1.5 Beta version. Can you please help me out with this?

I'm currently having the same issue w/ VS 2015 and a coworker is experiencing this with VS 2013.

@Mustafa-Sadikot and @DustinEwan do you have other versions of TypeScript installed on these machines? if so what are they? also can you try uninstalling TypeScript and reinstalling it again, and share the installer logs. these should be in %TEMP%\dd_Typescript*.log

what do you mean, does not integrate? What is working and what is not?
What files are in the following folder:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript
Do you have any other extensions installed, like resharper?
Do you see the TypeScript extension in the Add/Remove Programs dialog in Windows?

@Mustafa-Sadikot and @DustinEwan are you still running into this issue?

Closing this until we have more info.


support to 22.04 ?

any ideas how to support ubuntu 22.04 ?

any ideas how to support ubuntu 22.04 ?

If I remember correctly, this script do support 22.04. Is there anything wrong when you tried with 22.04?

run this command
sudo ./setup-pxe-server.sh --url=https://releases.ubuntu.com/22.04/ubuntu-22.04-live-server-amd64.iso
====================================================================================
NOTE! You may want to clean the files previously downloaded.
sudo rm -rf /var/www/html/*.iso /var/lib/tftpboot/* ${HOME}/jammy-live-server-arm64
====================================================================================

then the script will cp "my rootfs" to /var/lib/tftpboot/
I think there might have some variables need to be fixed ??

Hi, I tried the same command, and I could not reproduce the issue. Would you mind elaborating more details about your issue?
For example,

the output of ls /var/lib/tftpboot/
invoke set -x before invoking sudo ./setup-pxe-server.sh --url=https://releases.ubuntu.com/22.04/ubuntu-22.04-live-server-amd64.iso

run this command
sudo ./setup-pxe-server.sh --url=https://releases.ubuntu.com/22.04/ubuntu-22.04-live-server-amd64.iso
====================================================================================
NOTE! You may want to clean the files previously downloaded.
sudo rm -rf /var/www/html/*.iso /var/lib/tftpboot/* ${HOME}/jammy-live-server-arm64
====================================================================================

then the script will cp "my rootfs" to /var/lib/tftpboot/
I think there might have some variables need to be fixed ??

I try to run the script in a new ubuntu 22.04 system and it works now.


Integrate headless cms init

Need to deploy a Netlify CMS config so that we can add Identity users and test the CMS (yes, even locally).
Doesn't close anything, just an intermediary PR.

This pretty much closes #8, the real fixing that had to be done was in the Netlify UI.
There will definitely be more changes to our CMS config, but it works minimally.


How to create inline fields of relations

Hello there voyager commnity, I´m pretty new to using voyager, laravel and php, so pardon my lack of knowledge... I´m trying to create a inline list of documents and addresses related to one user (meaning, one user could have many addresses and documents).
I would like to have like a list of already registered documents and addresses to the user and also simultaneously have like a plus(+) button to be able to add new records for this same user
So my question is
how to include a field like user has many addresses or user has many documents? How could one include this type of field? Inline?
Where I could find some examples?
Thanks...
God bless you all.... 😃

Please use our issue templates.  It prompts you to enter the information we need to troubleshoot issues.  If you find that information does not seem relevant to your issue/question, then you're likely asking a "how do I...?" question, which is best asked in our slack group.

ok...


mysql  create database

When the database does not exist，$dsn stitching ';dbname=database', so can not create database successfully

I also don't know how to use createDatabase() and dropDatabase(). Is there any documentation about those?

"create database databasename " this query is enough.

Closing due to lack of activity or out of scope. If there is new interest, please open a PR.


Generate sprites for svg icons

From @hacknug in #522:

@erquhart it is possible to style different versions of the same symbol in different ways and that would probably the best way to do it. Here's a couple links with more info on the subject:

https://github.com/jesstelford/color-svg-sprite
https://css-tricks.com/svg-sprites-use-better-icon-fonts/

Should the sprite contain all icons from this directory or maybe from somewhere else? I could take a look at this today since it sounds like a fun way to spend the rest of my Sunday 😄 https://github.com/netlify/netlify-cms/tree/master/src/components/UI/Icon/images

@hacknug I believe that is the correct directory (although I'd have to ask @erquhart to be sure).

Ack, sorry for the delay @hacknug! Yes, we expect to use icons solely from that directory for the foreseeable future.


Use ErrorHandling in Atum agent

Background
For robust processing while remaining flexible leverage Spark-Commons ErrorHandling
Feature
Use ErrorHandling in checkpoint method.
Depends on #26
Depends on #34

This item depends on:

AbsaOSS/atum-service#26
AbsaOSS/atum-service#34
By Dependent Issues.

This item depends on:

AbsaOSS/atum-service#26
AbsaOSS/atum-service#34
By Dependent Issues.

This item depends on:

AbsaOSS/atum-service#26
AbsaOSS/atum-service#34
By Dependent Issues.

This item depends on:

AbsaOSS/atum-service#26
AbsaOSS/atum-service#34
By Dependent Issues.


global options conflict

with current approach, it is possible to defined conflict global options

I think global node should be unique and always be the last node in the graph


To do list

Better indications on slot monitor (slot number, icons for each bar?)
Multiple slots (should be easy to implement now)
Stream of orders to be filled - maybe level complete after a certain order count?
Indication of successful command and unsuccessful command (beep tones?  Colour?)
More variability in toasting/bread types

I'm working on a stack displayed down the screen. Guess we need to sort priorities here so we actually make proper progress and not just (me in particular) do what we feel like :-)
We can set up a kanban board on this thing I believe

Think we need to agree on main screen layout - I had in mind to have additional slots horizontally.   The abstract command list (1PW1T etc at bottom of screen) was an attempt to preserve screen real estate - plus it made the game more crap and therefore on brief!

I think the "crapness" is meant to be the mundanity of the concept and the
sheer tedium of playing but also that - to do well - you need some high
production values. lol
On Sun, 20 Aug 2023 at 23:08, ConorMcPersonal @.***>
wrote:

Think we need to agree on main screen layout - I had in mind to have
additional slots horizontally. The abstract command list (1PW1T etc at
bottom of screen) was an attempt to preserve screen real estate - plus it
made the game more crap and therefore on brief!
—
Reply to this email directly, view it on GitHub
https://github.com/ConorMcPersonal/Toaster/issues/5#issuecomment-1685408574,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACQK2MPGOPQVPEKE7PG2KDXWKDETANCNFSM6AAAAAA3XMN2FI
.
You are receiving this because you commented.Message ID:
@.***>

Sorry updated my comment above - didn't think you'd be online.  I have a 4.30 start tomorrow though so signing off!


[3pt] Possible R&R FIM issue at GLDN7 (Vlab #86744)

Noted discrepancy between NWM R&R FIM based on peak RFC forecast flow of 15k cfs (stage 22ft) and the North Carolina EM FIMAN scenario for the same peak flood stage (22ft). The FIMAN shows inundation of Ferry Bridge Rd and the R&R based FIM does not. Confirmed in person that a large stretch of Ferry Bridge Rd was indeed closed. Attached FIM and photos.
https://vlab.ncep.noaa.gov/redmine/issues/86744

Appears to be rating curve issue on the southern incoming stream:, but let's investigate.

Appears to be rating curve issue on the southern incoming stream:, but let's investigate.

See Vlab ticket for attached Powerpoint presentation

See Vlab ticket for attached Powerpoint presentation

FIM 3_0_15_0 flood extent for 15kcfs -->

It appears the same behavior occurs in FIM3, and the solution would be to have an improved rating curve for this location. Because this feedback is specific to FIM2, I have labeled this issue as "wontfix".

Nearby USGS 02089000 (this is also GLDN7 the AHPS location) -->

The rating curve comparison between FIM <IP_ADDRESS> and the USGS gage rating looks to be in good agreement at the gage location -->


Active Directory setup fails if Default Domain is specified [BUG]

Rancher Server Setup

Rancher version: v2.8
Installation option (Docker install/Helm Chart): Docker

Information about the Cluster

Kubernetes version: v1.28.6+k3s2
Cluster Type (Local/Downstream): N/A

User Information

What is the role of the user logged in? Admin

Describe the bug
Having problems with the configuration of ActiveDirectory. If I set the option Default Login Domain with my domain, the configuration fails and I can't use ActiveDirectory. But if I left it empty, I can log as domain\username without problems.
I try to set the option as:
<domain_name>
<@domain>
<domain\>

And none of them work. Seems like bug or maybe I'm doing something wrong? Issue appears to be similar to this issue

@sec252 I also had this problem in an installation scenario with Kubernetes/Helm. This problem seems to be just validating or saving changes to the Rancher UI.
There is a workaround for this problem, as follows:

In a first phase, save the ActiveDirectory settings without indicating Default Login Domain and in the username field indicate the domain and username, for example: domain\username.

Therefore, whenever you log in you will need to indicate the domain. Alternatively, I edited the respective custom resource definition:
kubectl edit authconfig/activedirectory -n cattle-system
In the defaultLoginDomain parameter, which must be empty at this moment, now indicate the desired domain. This way, whenever you log in, you can only indicate your username.

@alexandra-branco Thanks! I'll give that a shot.


Allow a user choose a path when a Thrift/gRPC service has more than one path

Make doc service can let users choose a path when RPC service has more than two paths.

Make thrift/grpc doc plugin automatically fill the example paths using all endpoints.
Filter example paths at the client-side. Exclude the path which doesn't have supported mime-type.
User can input arbitrary endpoint, will check if the input is existing in the endpoints.
If the user doesn't select endpoint, use arbitrary one of the endpoints which have supported mime-type. Same as the current implementation.

Fix https://github.com/line/armeria/issues/2167

 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.koji.lin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

retest this please

Let me do double check again, looks like few edge cases may have problem :)

Updated, ready for review again. I added some examples in the example project.

Could you invalidate and invalidate the TextField for additionalPath when it's Thrift for gRPC?

also query?

also query?

Yes. 😊

Updated.

Make submit async and adding a new flag to avoid debug response cleaning by URL change
Make endpoints page support rpc/annotated http service separately(Only use drop down to select)
Move path check logic to transport, and make it return error instead of throw
Disable query when it's rpc.

I tried to avoid changing dramatically, maybe there is a better way to achieve 1 and 2. ^^;;;

It looks like examplePaths is used for the candidate paths for RPC services. Is this a correct approach? They are not example strictly speaking. How about exposing multiple EndpointInfos in a MethodInfo instead? 🤔

I'm also thought about this and originally thought it's ok to tread rpc exact path as example and it's not that wrong to set default for them.
So one is let user add example path for rpc maunally, but I think it's not intuitive.
Looks like using method info's endpoint and totally separate logic of client side of endpoint module (tsx) is better?

updated, using supported endpointInfos in methodinfo when method is rpc.

Thanks a lot, @kojilin. Would you mind updating the PR description so it reflects the changes made since the initial work?


Broken label

https://wipfli.github.io/positioned-glyph-font/examples/protomaps/#map=11.91/26.9058/85.70416

Might be because we are using sometimes "name" instead of "@name". This means we uses non-encoded strings but reference the positioned glyph font with it so stuff will go wrong.
Example:
https://github.com/wipfli/positioned-glyph-font/blob/13a7aec3f3fdcfe269235e1d846cfa755afa7a6c/examples/protomaps/style.json#L2482

If I replace "name" with "@name" in the entire style, the broken label mentioned here goes away. This means that the feature has no "@name" even though it should have...

Broken label:


Disabling "coming soon" locations

Disabling and styling "coming soon" locations in listing and map

@franciscoxrra Nice work on this! Thanks for the quick turnaround. I'll get this merged and give it a quick test before pushing to test.roti.com.


charts/catools/certs/orderer1-ca.crt written by staging release is overwritten by prod release later

Describe the bug
A clear and concise description of what the bug is.
platforms/hyperledger-fabric/charts/catools/certs/orderer1-ca.crt written by staging release is overwritten by prod release later.
To Reproduce
Steps to reproduce the behavior:

deploy network into platforms/hyperledger-fabric/releases/staging
deploy network into platforms/hyperledger-fabric/releases/prod
see: staging platforms/hyperledger-fabric/charts/catools/certs/orderer1-ca.crt overwritten by prod

Expected behavior
One crt per release, i.e.

platforms/hyperledger-fabric/charts/catools/certs/staging-orderer1-ca.crt
platforms/hyperledger-fabric/charts/catools/certs/prod-orderer1-ca.crt

@uqix That is most likely because you have specified the same path in network.yaml. Bevel does not create the certs in platforms/hyperledger-fabric/charts/catools/certs

https://github.com/hyperledger/bevel/blob/fcc190d5903061c0cb39790319670c370fd02c75/platforms/hyperledger-fabric/configuration/roles/create/ca-tools/peer/tasks/main.yaml#L69-L74

@uqix Thanks. That does look like a bug. Needs to be fixed properly.


Error in results.js due to setting callback as an integer

Hi! Wow, wonderful work here! In results.js, on line 13, you have some code which adds an event listener. However, the callback you specify is setTimeout(). This calls the function setTimeout() and therefore will set the callback as its return value.
As it happens, setTimeout returns an ID which can be used later to cancel the timeout. What you should do is pass the actual setTimeout function to the callback.
One way to do this is to wrap the setTimeout into another function (e.g. function() { setTimeout(...) }; or, you could do some clever binding of arguments which will accomplish a similar thing.
(This issue causes errors in my console)
Again, awesome project!

(There should be a fix in #2)

Hi,
Thanks for the report and I'm glad you like the extension!
I have tested your fix and it resolved the error for me. I personally hadn't noticed that error so I have a feeling it is a new one - perhaps caused by a Chromium/Chrome update? I guess the only way to know is to try it in an old version of the browser!
I've merged your fix and all seems to be working smoothly!
On a side note, do you mind me asking how you found the extension? As far as I knew I was the only person using it, as it is really quite noddy and has a lot of quirks, I just rely on it so much!
Thanks for your help,
Jamie

@JamieOnUbuntu Yay! I came from HackerOne, I felt like this would be my best bet (it wasn't, this looks Very Secure), but found the errors when setting it up

Ah right, I was actually going to offer to invite you to my HackerOne, looks like you were already automatically invited!
Thanks again for your help with this!
Jamie

As for you not noticing the issue, perhaps it's that the error doesn't matter. Before the fix, the setTimeout function would be called immediately, and then 1.1 seconds later, your code would run and everything would look normal.
The only difference is that now it waits for the page to load, and then calls the function.
The only way to notice is to actually check for error messages (most pages load within 1.1 seconds so it doesn't matter whether you wait or not).
And thanks to you too!

I just tried removing the timeout all together and it seems to work fine, you don't have to wait the 1.1 seconds and the results are reliably highlighted straight away.
The reason I originally put the timeout in is because the script would sometimes run before the page fully loaded. I know the timeout isn't ideal but it worked.
I'm going to test with this for a bit and see if there are any problems.
Thanks

@JamieOnUbuntu That was because of your bug! Now it highlights immediately because the event listener works properly ;)
[i.e. Perhaps when you were doing it you were doing runTheCode() instead of function(){runTheCode()} ]

No... I'm wrong.
https://github.com/JamieOnUbuntu/results-whitelist/blob/70cebe779dbb13e1adcb392521fcda305bdb15b9/results.js#L13 - however, why did you change the event listener. This looks cool for the issue you described with Reddit? :)

I removed the DOMNodeInserted event listener as that would make the script run every time a node was inserted, which for something like Google search is hundreds of times per page.

Ah, fair enough.


feat(api-server): show unique messages when API is called

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Ref #49396
This PR is open based on my understanding of this request https://github.com/freeCodeCamp/freeCodeCamp/pull/49396?notification_referrer_id=NT_kwDOBUKR3bM1NjIwNDM3NzY0Ojg4MjQ4Nzk3#pullrequestreview-1349922113

To remove Block label, this PR need to be merged #49782

This should be ready for review.

please merge main into this pr. @Sboonny


get locals on all stack frames

I find the with_locals feature really useful. It helps give the data context needed to spot issues quickly in many cases.
Unfortunately, we only seem to get locals for the first ~12 and last ~12 stack frames in our Python project. Because almost all of that is framework code in both cases (request handling up top, error handling at the bottom), we rarely get the locals relevant to our business logic.
Is there some way to get stack locals for all (or at least most) frames? I understand this might be arbitrarily expensive, but just having a way to increase the limit would be helpful

@wiltzius you can set in_app_include and in_app_exclude to mark specific frames as part of your application vs not being part: https://docs.sentry.io/error-reporting/configuration/?platform=python#in-app-include
E.g. if your app is in a python module foobar, set init(in_app_include=["foobar"]).
The server should then start trimming framework frames first.
Which framework are you using?

Cool, thank you. in_app_include is just what we need.
The framework in question sorta depends on the bug. We use Pyramid as a web framework and Celery as the task runner, so those are at the top of the stack, but at the bottom sometimes its a deep SqlAlchemy stack trace or Python logging framework.
We aren't on the latest version so I'll update it when I modify in_app_include and see if the auto-detect works better.

Sorry for the confusion: The latest version doesn't do it any better. I only created a follow-up ticket to do this at some point.

I'm still having trouble with this. I upgraded to the unified client,
but in_app_excludes doesn't seem to work unless you also set in_app_includes. I eventually tracked it down to here:
https://github.com/getsentry/sentry-python/blob/3735cb5fb155c24dadacd53bf0e7ce8b1a3cd34f/sentry_sdk/utils.py#L610
the fallback for any_in_app over-triggers if you don't have in_app_includes set to anything (since nothing is explicitly marked in). I'd expect anything that isn't excluded would be included, but not so.
Docs don't mention this behavior, is it intended? It's unfortunately an annoyance for us, since we've got a large number of packages that are "ours" and we would want to include, and nobody's going to remember to update this list when they add a new one.

The fact that init(in_app_exclude=[...]) doesn't work is definetly a bug. I will make a note in #320, thanks for reporting. I will prioritize fixing this in the next week because I can't think of a workaround you could use right now.
I would set in_app_include regardless. I wonder if you could hack something together where you discover installed packages at runtime and filter them by author information (assuming all those packages of yours do have the same author set). Presumably pkg_resources has metadata about this.

Thanks for filing the bug.
It's actually even a little bit more confusing, I think. You need to set both the in_app_exclude and the in_app_include for it to have any effect. If you set only one, the rest default to the same value (it seems).
I was able to use setuptools.find_packages to get a list of the packages we care about, so that handles the include issue I mentioned above.

I think fixing this is as simple as adding a tiny bit of logic in the line I mentioned above to default stack frames to the "other" value if only one of in_app_exclude or in_app_include is set.

Yeah, I have a PR open and hope to make a release soon. Thanks for taking
the time to investigate this yourself.
On Fri, Apr 5, 2019, 20:33 Tom Wiltzius<EMAIL_ADDRESS>wrote:

I think fixing this is as simple as adding a tiny bit of logic in the line
I mentioned above to default stack frames to the "other" value if only one
of in_app_exclude or in_app_include is set.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/sentry-python/issues/316#issuecomment-480379329,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzHxdP8urWuiz7cxVWdSFcEPssUfBNZks5vd5cJgaJpZM4cZWyj
.

@wiltzius 0.7.10 should allow you to use in_app_exclude properly. #320 is still open for doing this for most frameworks automatically.


New Presentation/Visual Editing tool not working on clean and existing Astro project

Describe the bug
renderVisualEditing.js?v=e31608a7:1 Uncaught (in promise) SyntaxError: The requested module '/node_modules/react-is/index.js?v=e31608a7' does not provide an export named 'isValidElementType' (at renderVisualEditing.js?v=e31608a7:1:2047)

To Reproduce
Steps to reproduce the behavior:
Follow the Sanity/Astro tutorial to create a clean Astro-Sanity project.
I am trying to setup visual editing but inside my existing project as a new clean Astro project I do get errors and there is no way to connect. My sanity config:
...,
plugins: [
		structureTool(),
		presentationTool({
			previewUrl: 'http://localhost:4321/',
		}),
],
...,

---
import { VisualEditing } from '@sanity/astro/visual-editing'
---

		<meta charset="utf-8" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<meta name="viewport" content="width=device-width" />
		<meta name="generator" content={Astro.generator} />
		<title>Astro</title>

Astro

		<VisualEditing enabled={true} zIndex={1000} />

Screenshots

Which versions of Sanity are you using?
@sanity/cli (global)  3.30.1 (latest: 3.43.0)
@sanity/astro          3.1.0 (up to date)
@sanity/types         3.43.0 (up to date)
sanity                3.43.0 (up to date)
What operating system are you using?
Mac OS
Which versions of Node.js / npm are you running?
10.5.0
v20.11.0

Thank you for reporting this. I'll look into it.

Hi again!
Could you try the latest version, v3.1.3, and see if it works? It should! 🤞
Please note that your Astro app will need the React integration for visual editing to work (it's a React component).
More docs will come soon, but hopefully this latest release make the overlay work for you.

@christianhg Yes, working now! Thanks. It's a bit unstable in terms of finding import resolutions and type declarations depending on how you setup your tsconfig, but ignoring the errors for now. Everything is working great

Well actually, building the project does break. But I am using Turborepo so it might because of that
12:42:02 [ERROR] [vite] x Build failed in 465ms
Rollup failed to resolve import "@sanity/visual-editing/react" from<EMAIL_ADDRESS>

Thanks for the feedback! Do you have @sanity/visual-editing in your dependencies? It's a peer dependency of @sanity/astro now.

I am running into a similar issue, seems that the connection for the preview fails I am running sanity 3.4.4 and the latest version of astro. It seems that the websocket is just not able to connect, not sure where the error is but the error

"WebSocket connection to 'wss://9gy3ebd9.api.sanity.io/v2022-06-30/socket/production?tag=sanity.studio' failed: WebSocket is closed before the connection is established."

Thanks for the feedback! Do you have @sanity/visual-editing in your dependencies? It's a peer dependency of @sanity/astro now.

That was exactly the thing. Thanks. Everything is working perfectly.

Great to hear! I'll close this issue now.
@Jay-Ferguson , could you open a new issue for the problem you are facing, perhaps representing a repository to reproduce or some reproduction steps?

@sanity/visual-editing

I can create a new issue, but before I do that I should confirm that visual editing is only possible with the actual data that the editor will be updating via the visual editor is created from a react component? As many of the pages on the site that I would like to edit are just astro files I don't want to try this solution if I don't even know if it is possible.

It does work on .Astro files.

sanityClient

I am looking at the example in the sanity docs - https://www.sanity.io/docs/loaders
but it states under what about SSG it - "While static site generators can make it simple to build websites, they are not well-suited for providing a Visual Editing experience for content teams. Static site generators pre-render pages at build time, meaning any content changes require a full or partial site rebuild. This usually doesn't scale well as the site grows and does not provide the real-time editing experience that Loaders enable.
However, some frameworks, like Astro, also support server-side rendering. Suppose you wish to use static site generation for your production builds. In that case, a strategy can be to set up a secondary deployment for previews that uses server-side rendering with Loaders." So I would assume this means I would only be able to set this up using SSR on each route that would need visual editing enabled?

Yes, but in my case I don't feel the speed difference comparing SSG and SSR, if you setup proper caching and validation.
However, the example sets the Visual Editing on and off using a ENV variable, so you might do that as well and provide a second deployment for your client which will be the preview/staging with SSR enabled. And whenever they deploy the updated content, you trigger a new build for your production.
It should be able to enable draft mode using an API route within your application, but I have not tried that yet with the latest update.

Ok I see, for my clients case SSG would be optimal to reduce hosting costs, I assume this makes it basically impossible to set up visual editing without either SSR or CSR for real time. Just to clarify to get around this limitation I would set up another staging environment on Netlify based off an another git branch, change that to be rendered on the server and use the loader data with draft mode in the API routes? I appreciate the help, would you be able to link the example, as I just want to make sure we are referring to the same code.


Sock Shop deployed to Docker Swarm does not work

The Problem
As someone reported on the Weave Users Slack group, the deployment with Docker Swarm is broken.
Here's a screenshot of how it looks when trying to access the shop via the browser:

To reproduce the error one simply needs to follow our official guide to deploy the Sock Shop to Docker Swarm
Setting up Docker Swarm, bundling the shop with Docker Compose and deploying the service works good. It's only during runtime that one gets this error.
Errors
When querying the catalogue service, this is the response:
$ curl http://localhost:30000/catalogue?size=5
{"message":"getaddrinfo ENOTFOUND catalogue catalogue:80","error":{"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"catalogue","host":"catalogue","port":80}}

A similar error is returned for the cart service
$ curl http://localhost:30000/cart
{"message":"getaddrinfo ENOTFOUND carts carts:80","error":{"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"carts","host":"carts","port":80}}

Specs
My system:
macOS Sierra 10.12.4
$ docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Tue Mar 28 00:40:02 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Fri Mar 24 00:00:50 2017
 OS/Arch:      linux/amd64
 Experimental: true

Further, deploying the Sock Shop to Docker Compose using Weave, the service does seem to come up nicely, but the user-sim run fails at some point:
user-sim_1      | Locust file: /config/locustfile.py
user-sim_1      | Will run /config/locustfile.py against edge-router. Spawning 2 clients and 200 total requests.
user-sim_1      | [2017-06-07 16:00:41,669] user-simulator.weave.local/INFO/locust.main: Starting Locust 0.7.5
user-sim_1      | [2017-06-07 16:00:41,670] user-simulator.weave.local/INFO/locust.runners: Hatching and swarming 2 clients at the rate 5 clients/s...
user-sim_1      | [2017-06-07 16:00:42,071] user-simulator.weave.local/INFO/locust.runners: All locusts hatched: Web: 2
user-sim_1      | [2017-06-07 16:00:42,071] user-simulator.weave.local/INFO/locust.runners: Resetting stats
user-sim_1      |
user-sim_1      | [2017-06-07 16:00:47,427] user-simulator.weave.local/INFO/locust.runners: All locusts dead
user-sim_1      |
user-sim_1      | [2017-06-07 16:00:47,427] user-simulator.weave.local/INFO/locust.main: Shutting down (exit code 1), bye.
user-sim_1      |  Name                                                          # reqs      # fails     Avg     Min     Max  |  Median   req/s
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |  GET /                                                             21     0(0.00%)       5       4       9  |       5    2.33
user-sim_1      |  GET /basket.html                                                  22     0(0.00%)       5       4       9  |       5    2.67
user-sim_1      |  DELETE /cart                                                      23     0(0.00%)      18      10      35  |      18    2.67
user-sim_1      |  POST /cart                                                        23     0(0.00%)      66      21     263  |      40    2.67
user-sim_1      |  GET /catalogue                                                    21     0(0.00%)      23       7      63  |      12    2.33
user-sim_1      |  GET /category.html                                                23     0(0.00%)       5       4      11  |       5    2.67
user-sim_1      |  GET /detail.html?id=03fef6ac-1896-4ce8-bd69-b798f85c6e0b           3     0(0.00%)       6       5       8  |       5    0.33
user-sim_1      |  GET /detail.html?id=3395a43e-2d88-40de-b95f-e00e1502085b           1     0(0.00%)       9       9       9  |       9    0.33
user-sim_1      |  GET /detail.html?id=510a0d7e-8e83-4193-b483-e27e09ddc34d           2     0(0.00%)       4       4       4  |       4    0.67
user-sim_1      |  GET /detail.html?id=808a2de1-1aaa-4c25-a9b9-6612e8f29a38           1     0(0.00%)       4       4       4  |       4    0.00
user-sim_1      |  GET /detail.html?id=819e1fbf-8b7e-4f6d-811f-693534916a8b           2     0(0.00%)       4       4       5  |       4    0.00
user-sim_1      |  GET /detail.html?id=837ab141-399e-4c1f-9abc-bace40296bac           4     0(0.00%)       5       4       7  |       4    0.00
user-sim_1      |  GET /detail.html?id=a0a4f044-b040-410d-8ead-4de0446aec7e           3     0(0.00%)       5       4       6  |       5    0.67
user-sim_1      |  GET /detail.html?id=d3588630-ad8e-49df-bbd7-3167f7efb246           3     0(0.00%)       6       4       8  |       7    0.33
user-sim_1      |  GET /detail.html?id=zzz4f044-b040-410d-8ead-4de0446aec7e           4     0(0.00%)      15       4      43  |       6    0.33
user-sim_1      |  GET /login                                                        23     0(0.00%)      98      60     451  |      73    2.67
user-sim_1      |  POST /orders                                                      20     1(4.76%)     282     125    1255  |     160    2.33
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |  Total                                                            199     1(0.50%)                                      23.00
user-sim_1      |
user-sim_1      | Percentage of the requests completed within given times
user-sim_1      |  Name                                                           # reqs    50%    66%    75%    80%    90%    95%    98%    99%   100%
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |  GET /                                                              21      5      5      7      7      8      8      9      9      9
user-sim_1      |  GET /basket.html                                                   22      5      5      6      6      7      7      9      9      9
user-sim_1      |  DELETE /cart                                                       23     18     20     22     22     27     30     35     35     35
user-sim_1      |  POST /cart                                                         23     40     54     58     80    190    260    260    260    263
user-sim_1      |  GET /catalogue                                                     21     12     15     48     49     59     59     63     63     63
user-sim_1      |  GET /category.html                                                 23      5      6      7      7      9     10     11     11     11
user-sim_1      |  GET /detail.html?id=03fef6ac-1896-4ce8-bd69-b798f85c6e0b            3      5      5      8      8      8      8      8      8      8
user-sim_1      |  GET /detail.html?id=3395a43e-2d88-40de-b95f-e00e1502085b            1      9      9      9      9      9      9      9      9      9
user-sim_1      |  GET /detail.html?id=510a0d7e-8e83-4193-b483-e27e09ddc34d            2      4      4      4      4      4      4      4      4      4
user-sim_1      |  GET /detail.html?id=808a2de1-1aaa-4c25-a9b9-6612e8f29a38            1      4      4      4      4      4      4      4      4      4
user-sim_1      |  GET /detail.html?id=819e1fbf-8b7e-4f6d-811f-693534916a8b            2      5      5      5      5      5      5      5      5      5
user-sim_1      |  GET /detail.html?id=837ab141-399e-4c1f-9abc-bace40296bac            4      6      6      7      7      7      7      7      7      7
user-sim_1      |  GET /detail.html?id=a0a4f044-b040-410d-8ead-4de0446aec7e            3      5      5      6      6      6      6      6      6      6
user-sim_1      |  GET /detail.html?id=d3588630-ad8e-49df-bbd7-3167f7efb246            3      7      7      8      8      8      8      8      8      8
user-sim_1      |  GET /detail.html?id=zzz4f044-b040-410d-8ead-4de0446aec7e            4      8      8     43     43     43     43     43     43     43
user-sim_1      |  GET /login                                                         23     73     80     83     88     95    250    450    450    451
user-sim_1      |  POST /orders                                                       20    160    180    230    280   1200   1300   1300   1300   1255
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |
user-sim_1      | Error report
user-sim_1      |  # occurences       Error
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |  1                  POST /orders: "HTTPError(u'406 Client Error: Not Acceptable for url: http://edge-router/orders',)"
user-sim_1      | --------------------------------------------------------------------------------------------------------------------------------------------
user-sim_1      |
user-sim_1      | done

Weird because from the browser I was able to place an order in the Shop.

@vlal you're a little more familiar than me on this area. Would you know top of your mind after a quick glance why this is not working as expected?

I´ve got the same behaviour with kubernetes... the carts and catalogue services can´t find their databases...

com.mongodb.MongoSocketException: carts-db: Try again
        at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:188) ~[mongodb-driver-core-3.2.2.jar!/:na]
        at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50) ~[mongodb-driver-core-3.2.2.jar!/:na]
        at com.mongodb.connection.SocketStream.open(SocketStream.java:58) ~[mongodb-driver-core-3.2.2.jar!/:na]
        at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114) ~[mongodb-driver-core-3.2.2.jar!/:na]
        at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128) ~[mongodb-driver-core-3.2.2.jar!/:na]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111-internal]
Caused by: java.net.UnknownHostException: carts-db: Try again
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_111-internal]
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) ~[na:1.8.0_111-internal]
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) ~[na:1.8.0_111-internal]
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276) ~[na:1.8.0_111-internal]
        at java.net.InetAddress.getAllByName(InetAddress.java:1192) ~[na:1.8.0_111-internal]
        at java.net.InetAddress.getAllByName(InetAddress.java:1126) ~[na:1.8.0_111-internal]
        at java.net.InetAddress.getByName(InetAddress.java:1076) ~[na:1.8.0_111-internal]
        at com.mongodb.ServerAddress.getSocketAddress(ServerAddress.java:186) ~[mongodb-driver-core-3.2.2.jar!/:na]
        ... 5 common frames omitted

ts=2017-06-13T11:49:03Z caller=main.go:108 Error="Unable to connect to Database" DSN=catalogue_user:default_password@tcp(catalogue-db:3306)/socksdb

Hi @mongrelion
I had the same problem before. I solved that by setting the associate_public_ip_address = true in my aws_instance.

@cmendesce Great to know that you got it working!
However, this is also present when deploying to a local instance of Docker :C

For future reference: if anyone runs into this issue, please check that all of the containers/services are up and running. The user-sim container can start before the other services are ready.

With kubernetes，DNS(e.g. CoreDNS) seems like to be necesary.

root@my-pc~# microk8s.enable dns made it work

Hello @pidster, @keltik85, @muhonglong , @mongrelion, @patrickse,
I am facing the similar problem, but with API requests. Not able to send GET and POST  requests on orders and POST requests on carts.
from locust import HttpLocust, TaskSet, task, HttpUser
from random import randint, choice
import base64
import time
import uuid

counter = 0
customer_id = ""
class APITasks(TaskSet):
	@task
	def on_start(self):
	    self.login()

	@task
	def purchaseItem(self):
		self.login()
		self.buy()

	@task
	def addRemoveFromCart(self):
		self.createCustomer()
		self.login()

	@task
	def buy(self):
		base64_str = base64.encodebytes(('%s:%s' % ("user","password")).encode()).decode().strip()
		login = self.client.get("/login", headers={"Authorization":"Basic %s" % base64_str})
		self.cust_id = login.cookies["logged_in"]
		cookie = {'logged_in': self.cust_id}
		orde = self.client.get("http://<IP_ADDRESS>:30001/orders/", cookies=cookie, catch_response=True)
		print("Orders responce :",orde)
		self.client.post("http://<IP_ADDRESS>:30001/orders/", cookies=cookie)
		time.sleep(2.0)

	def login(self):
		base64_str = base64.encodebytes(('%s:%s' % ("user","password")).encode()).decode().strip()
		login = self.client.get("http://<IP_ADDRESS>:30001/login", headers={"Authorization":"Basic %s" % base64_str})
		self.cust_id = login.cookies["logged_in"]
		customer_id = login.cookies["logged_in"]
		time.sleep(2.0)
	@task
	def createCustomer(self):

		global counter
		counter += 1
		self.username = "test_user_" + str(uuid.uuid4())

		self.password = "test_password"
		customer = self.client.post("http://<IP_ADDRESS>:30001/register", json={"username": self.username, "password": self.password}).json()
		print("Customer---> :", customer["id"])
		self.cust_id = customer["id"]
		customer_id = self.cust_id
		time.sleep(2.0)

class Web(HttpUser):
    tasks = [APITasks]
    min_wait = 0
    max_wait = 0

Response can be:
Orders responce : <Response [0]>
Orders responce : <Response [0]>
Orders responce : <Response [201]>
Orders responce : <Response [0]>
Orders responce : <Response [0]>
Orders responce : <Response [500]>
Orders responce : <Response [500]>

Hello @pidster, @keltik85, @muhonglong , @mongrelion, @patrickse,
I am facing the similar problem, but with API requests. Not able to send GET and POST  requests on orders and POST requests on carts.
from locust import HttpLocust, TaskSet, task, HttpUser
from random import randint, choice
import base64
import time
import uuid

counter = 0
customer_id = ""
class APITasks(TaskSet):
	@task
	def on_start(self):
	    self.login()

	@task
	def purchaseItem(self):
		self.login()
		self.buy()

	@task
	def addRemoveFromCart(self):
		self.createCustomer()
		self.login()

	@task
	def buy(self):
		base64_str = base64.encodebytes(('%s:%s' % ("user","password")).encode()).decode().strip()
		login = self.client.get("/login", headers={"Authorization":"Basic %s" % base64_str})
		self.cust_id = login.cookies["logged_in"]
		cookie = {'logged_in': self.cust_id}
		orde = self.client.get("http://<IP_ADDRESS>:30001/orders/", cookies=cookie, catch_response=True)
		print("Orders responce :",orde)
		self.client.post("http://<IP_ADDRESS>:30001/orders/", cookies=cookie)
		time.sleep(2.0)

	def login(self):
		base64_str = base64.encodebytes(('%s:%s' % ("user","password")).encode()).decode().strip()
		login = self.client.get("http://<IP_ADDRESS>:30001/login", headers={"Authorization":"Basic %s" % base64_str})
		self.cust_id = login.cookies["logged_in"]
		customer_id = login.cookies["logged_in"]
		time.sleep(2.0)
	@task
	def createCustomer(self):

		global counter
		counter += 1
		self.username = "test_user_" + str(uuid.uuid4())

		self.password = "test_password"
		customer = self.client.post("http://<IP_ADDRESS>:30001/register", json={"username": self.username, "password": self.password}).json()
		print("Customer---> :", customer["id"])
		self.cust_id = customer["id"]
		customer_id = self.cust_id
		time.sleep(2.0)

class Web(HttpUser):
    tasks = [APITasks]
    min_wait = 0
    max_wait = 0

Response can be:
Orders responce : <Response [0]>
Orders responce : <Response [0]>
Orders responce : <Response [201]>
Orders responce : <Response [0]>
Orders responce : <Response [0]>
Orders responce : <Response [500]>
Orders responce : <Response [500]>


Does not apply transforms to values typed in

When entering transform values by typing (using numeric keys), the entity does not take on these changes.
Seems to work fine when you click and drag the numbers.

Also worth noting that numerical values typed into components work fine (ie. adjusting radius of cylinder)

In which browser?

Chrome

I found it only works on the second try.


Treat catch clauses the same as other variable declarations

Fixes #47383
This changes our handling of catch clauses to work just like other variable declarations, with the exception that:

You can only annotate the variable declaration with any or unknown.
If you don't annotate it, we treat it as an implicit annotation of any or unknown depending on useUnknownInCatchVariables.

Now that we check these declarations, we can correctly and consistently handle destructuring within catch clauses.
This is technically a breaking change, as you'll get errors on destructure if the type is unknown. Before, we'd treat all destructured variables as either any or unknown depending on useUnknownInCatchVariables, which is very different to how destructured variable declarations work.

@typescript-bot test this
@typescript-bot test top100
@typescript-bot user test this
@typescript-bot user test tsserver
@typescript-bot test tsserver top100
@typescript-bot run dt
@typescript-bot perf test this
@typescript-bot pack this

Also, with his change in place, it would be really, really easy to allow arbitrary type annotations on catch clauses.


Chef cron 4 14

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
GitHub Users Who Are Not Authorized To Contribute
The following GitHub users do not appear to have signed a CLA:

@jaxjacobs
@mikeAtTealium

Please sign the CLA here.

I don't think you meant to open this up against the upstream repo. This looks like an in house customization so I'm going to close it out now.