editing not working

yesterday, it worked; today it doesn't.
Editing files is not working.
Vim plugin seems to be in place.   Can move cursor w/ cursor keys, but cannot find any way to edit / insert, delete charcters, etc.
Issue Type: Bug
vim extension (?) appears disabled - I can move cursor in a file via arrow keys - but cannot find a way to insert / edit file (worked yesterday).
VS Code version: Code - Insiders 1.50.0-insider (ddc98c3f620ab1d2ecad5942ebf4736060403d67, 2020-09-25T05:30:23.360Z)
OS version: Linux x64 5.4.0-48-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz (4 x 2700)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: unavailable_offvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
1, 1, 1

Memory (System)
31.26GB (0.35GB free)

Process Argv
. --no-sandbox --crash-reporter-id 2d601a7c-37e8-41d5-a777-e0dfedff81ef

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

Extensions (33)

Extension
Author (truncated)
Version

hugofy
akm
0.1.1

markdown-toc
Ala
1.5.6

asciidoctor-vscode
asc
2.8.3

markdown-extension-pack
bat
0.6.0

markdown-checkbox
bie
0.1.3

markdown-emoji
bie
0.0.9

markdown-preview-github-styles
bie
0.1.6

language-hugo-vscode
bud
1.2.0

better-toml
bun
0.3.2

excel-to-markdown-table
csh
1.2.2

markdown-table-prettify
dar
2.5.0

vscode-markdownlint
Dav
0.36.3

vscode-rust-syntax
dun
0.0.32

mdmath
goe
2.5.1

go
gol
0.17.0

path-autocomplete
ion
1.15.0

asciidoctor-vscode
joa
2.8.0

edgedb
mag
0.1.5

markdown-shortcuts
mdi
0.12.0

rust-assist
moo
0.2.3

vscode-docker
ms-
1.6.0

python
ms-
2020.9.111407

cpptools
ms-
1.0.1

vsliveshare
ms-
1.0.2740

debugger-for-chrome
msj
4.12.11

rust
rus
0.7.8

markdown-preview-enhanced
shd
0.5.13

code-spell-checker
str
1.9.1

vscode-markdown-paste-image
tel
0.12.3

vim
vsc
1.17.0

gitblame
wad
5.0.0

markdown-pdf
yza
1.4.4

markdown-all-in-one
yzh
3.3.0

Removed .vscode directory in work space - apparently my attempts yesterday at configuring command-line debugging (per examples on https://code.visualstudio.com/docs/python/debugging)  affected editing (?).
Specifically, this was added to my json.launch:
{
  "name": "Python: Attach",
  "type": "python",
  "request": "attach",
  "connect": {
    "host": "localhost",
    "port": 5678
  }
}

I don't know if this should be considered a "bug" or not - I'll leave it to the discretion of maintainers to close this issue, or not.

I am having a similar issue with editing. I am not trying to use the Vim extension, but I do have it installed. When I try to insert a line or character, or delete a line or character, the cursor moves over the line and nothing is inserted or deleted.
OS version: macOS Catalina 10.15.6
VS Code version: 1.49.2

Update: I uninstalled the Vim extension, and can edit again.

Update:   I can only edit when first instantiating code-insiders;  after one file edit; I have to exit / enter again (so suspecting this is a Vim extension issue)

...strangely, I notice I can disable vim plugin (editing works) but I cannot disable nor uninstall any of a slew of markdown plugins (which undoubtedly were installed as part of go-hugo enabled installations)...   THAT is troubling...

I had been exclusively using code-insiders;  I just installed code (1.49) and Vim and "Markdown-all-in-one" and everything seems to be working fine here.
So - as for VScode issue:  not being able to disable any of the markdown extensions ... and their apparent interaction with blocking editing function:  this is the CORE issue, it would seem (w/o suggesting where the root of the problem is).

I published a new version of Vim which fixes some of the editing problem mentioned above. @yarko are you still seeing editing issues with Vim extension disabled?
for the extension disablement issue, cc @sandy081

Sorry there are bits and pieces here are there, can you please consolidate the issue about what is not working with extension disablement?

final comment:  on a current code-insiders on my laptop (also Ubuntu), I am not seeing this.  Installing code (not "-insiders"), I am not seeing this.   For now, I will assume it's either some interaction between particular versions of extensions, or (more likely - since I am not able to uninstall any markdown related extension)  that something is corrupted in the copy of code-insiders (or settings) I have here.  Next step:  complete uninstall, clean, re-install (potentially of same mix of extensions?).  No time today, but will post when I've done that.

@rebornix - it does not appear changed (see above comment);
re: disablement / uninstall issue: apparently operator error:  I did not expand the message for disable/uninstall - I just did and saw the dependency in the message, and was thus able to uninstall a particular dependency.  Busy today, but will come back to "chase this dog" in days ahead...

Waiting for info....
Closing this issue until the necessary info is provided.
Please reopen this after providing the info.

Sorry - I'd been using code (as opposed to code insiders), and today just upgraded insiders - this issue no longer shows up.


Update configure-vnet-integration-routing.md

The built-in policy originally referenced has been deprecated. I have linked to the new policy.

@madsd
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


GNOME 41 starts in X11 by default

Describe the bug
When logging in from GDM, with "GNOME" selected in the WM dropdown menu, it still starts in X11. Only when logging out and back in does it start in Wayland mode as it normally should.
Steps To Reproduce
Steps to reproduce the behavior:

Start up computer
Have "GNOME" selected in the cog menu
Log in
Check "Preferences > About"

Expected behavior
GNOME should start in Wayland mode, as it did back on GNOME 40.
Notify maintainers
@jtojnar
Metadata
[mihai@io:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.0-rc6, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module: gnome

For me, it always starts in a broken Wayland session, unless I press on GNOME on X11 before logging in with GDM.

I found out yet another thing. Suspending using GNOME 41 Wayland causes my screen to not turn back on after resuming the system. For a long time I thought it was a kernel regression causing it, but found out that suspending while using Wayfire didn't cause this behaviour. Lately I also found out that suspending even with GNOME 41 X11 doesn't trigger the bug.
So my guess is there's more to this problem than just starting in Wayland by default.

I cannot start GNOME 41 in X11 on NixOS 21.11: selecting "GNOME on Xorg" i still end up in Wayland.
Should it be considered the same issue, or should i open a new one?

@alexeymuranov can you check GDM logs? journalctl -eu display-manager.service
In my case the display-manager starts the X server for some reason, so I suspect the problem lies with GDM itself rather than Gnome Shell.

Today with nixos-21.11.333896.a640d8394f3 everything seems to work normally. I hope i didn't mix up something.

I think this is the issue we are talking about https://gitlab.gnome.org/GNOME/gdm/-/issues/733

@alexeymuranov can you check GDM logs? journalctl -eu display-manager.service In my case the display-manager starts the X server for some reason, so I suspect the problem lies with GDM itself rather than Gnome Shell.

@fufexan, the issue is sporadic, i have it again. Here is a tail of the output of journalctl -eu display-manager.service:
-- Boot c1924e4e235e461b82ae46e243c2a495 --
Dec 04 13:26:10 Alexey-BU403UA-NixOS systemd[1]: Starting X11 Server...
Dec 04 13:26:10 Alexey-BU403UA-NixOS systemd[1]: Started X11 Server.
Dec 04 13:26:24 Alexey-BU403UA-NixOS gdm-password][1599]: gkr-pam: unable to locate daemon control file
Dec 04 13:26:24 Alexey-BU403UA-NixOS gdm-password][1599]: gkr-pam: stashed password to try later in open session
Dec 04 13:26:24 Alexey-BU403UA-NixOS gdm-password][1599]: pam_unix(gdm-password:session): session opened for user alexey(uid=1000) by (uid=0)
Dec 04 13:26:25 Alexey-BU403UA-NixOS gdm-password][1599]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Dec 04 13:26:41 Alexey-BU403UA-NixOS gdm[1047]: Gdm: Child process -1217 was already dead.

@alexeymuranov see @Elinvention's comment. It seems that the issue has been fixed upstream. Now we're waiting for the next release and this should be fixed.
As a sidenote, I've tried manually adding the patch like this:
  nixpkgs.overlays = [
    (final: prev: {
      gnome.gdm = prev.gnome.gdm.overrideAttrs (o: { patches = o.patches ++ [ ../pkgs/patches/gdm.patch ]; });
    })
  ];

but this causes gnome-shell not to build anymore:
error: attribute 'gnome-shell' missing

       at /nix/store/ypirn5v82ry7q8j8s089cx246w1k4gg3-source/nixos/modules/services/x11/desktop-managers/gnome.nix:433:9:

          432|       xdg.portal.extraPortals = [
          433|         pkgs.gnome.gnome-shell
             |         ^
          434|       ];

Overlays do not perform recursive merges so when you do (final: prev: { gnome = { gdm = …; }; }) you replace the whole gnome attrset. You nee to use (final: prev: { gnome = prev.gnome // { gdm = …; }; }).

After a few updates of the system and tweaks to the kernel, GNOME starts properly in Wayland. Not sure what the cause was in the first place, but it seems to be fixed now.
However, I've got a new small issue, being that whenever I log in, I have to wait for a few seconds before the Shell pops up. I've checked journalctl but not sure what I should be looking for. I'll open a separate issue if it's outside the scope of this one.

Just adding in case anyone else lands here from a search engine.
I had a similar problem to this after switching to gnome from KDE on NixOS 22.11, where the "Gnome" session would boot into X11 rather than Wayland, persisting across reboots.
The following resolved the issue for me:

Log out or restart
Select "Gnome on Xorg" and log back in
Log out again
Select "Gnome" and log in again


[Bug]

Summary
A clear and concise description of what the bug is, and what you expected to happen.
How to reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Please include screenshots.
Additional context
Add any other context about the problem here.

تبا

Hola

I'm going to close this out. If you have an issue to report, please fill in the details in the issue template.

What


Fixed a JS crash when using list view search box to filter in legacy UI

Closes: #4572
What's Changed

TODO

[ ] Explanation of Change(s)
[ ] Added change log fragment(s) (for more information see the documentation)
[ ] Attached Screenshots, Payload Example
[ ] Unit, Integration Tests
[ ] Documentation Updates (when adding/changing features)
[ ] Example Plugin Updates (when adding/changing features)
[ ] Outline Remaining Work, Constraints from Design

Do we know what changed in 2.0 to cause this to happen?

The code in question was added in #3574.

Just to confirm - with this change, does the search now work?

Yes. Trying to think of how to add test coverage for it.

Just to confirm - with this change, does the search now work?

Yes. Trying to think of how to add test coverage for it.

I wonder if we still need to spend time on legacy UI unit tests since it is legacy UI, and the tests for it are gonna be ripped out in the future anyway.


⚠ ClamAV has degraded performance

In 79a5563, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 73 ms

Resolved: ClamAV performance has improved in 89f16b5.


[Feature][Sinker]Add pre_sql and post_sql for JDBC Sinker

Purpose of this pull request
Add pre_sql and post_sql for JDBC Sinker, for example config:
sink {
  jdbc {
      source_table_name = "t_user"
      url = "jdbc:mysql://localhost:3306/test"
      driver = "com.mysql.cj.jdbc.Driver"
      user = "test"
      password = "test"
      pre_sql = ["truncate table t_user"]
      query = "insert into t_user(name,age) values(?,?)"
      post_sql = ["delete from t_user where age>150"]
  }
}

Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[x] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
[x] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

The connection get from connectionProvider, it will be closed when JdbcSinkWriter close by the code:
outputFormat.close();

If the degree of parallelism is >1, does pre_sql  need to be executed multiple times?

The connection get from connectionProvider, it will be closed when JdbcSinkWriter close by the code:
outputFormat.close();

If the degree of parallelism is >1, does pre_sql  need to be executed multiple times?

No, the method 'close' and 'open' of sinkWriter be  called only once in the task life cycle.

Excuse me, but why hasn't this PR been merged?


cmd/compile: missed escape analysis opportunity

Escape analysis says that s escapes in this function even though it doesn't:

func f(s *string) {
    *s = *s
}

If f is called as f(&s), the compiler will (with inlining disabled) allocate s on
the heap even though it could be allocated on the stack. For types that don't contain
pointers, this doesn't happen. For example, if I change string to int, the parameter
isn't considered to escape.

A real-world example of when this might happen is when a function takes a pointer to a
string or slice and then re-slices it:

*s = (*s)[n:]

/cc @rsc @dr2chase @randall77, currently running https://play.golang.org/p/JU4Y50K7ne on tip Go1.8 ac05542 says otherwise, PTAL and help correct me if am mistaken.
$ cat main.go && go tool compile -l -m main.go
package main

func main() {
	var name = "gopher"
	f(&name)

	var nameCopy string
	g(&name, &nameCopy)

	var a, b int
	a = 10
	h(&a, &b)
	i(&b)
}

func i(a *int) {
	*a = *a
}

func h(i, j *int) {
	*j = *i
}

func g(s, t *string) {
	*t = *s
}

func f(s *string) {
	*s = *s
}

main.go:28: leaking param content: s
main.go:24: leaking param content: s
main.go:24: g t does not escape
main.go:20: h i does not escape
main.go:20: h j does not escape
main.go:16: i a does not escape
main.go:5: main &name does not escape
main.go:8: main &name does not escape
main.go:8: main &nameCopy does not escape
main.go:12: main &a does not escape
main.go:12: main &b does not escape
main.go:13: main &b does not escape

$ go version
go version devel +ac05542 Wed Jan 11 01:39:54 2017 +0000 darwin/amd64

@odeke-em If I'm not mistaken, what's going on there is that the pointers don't escape, and strings are always heap-allocated (so nothing's printed out about them escaping).
But it seems what the original report was really concerned about was a reslicing function, and I believe that doesn't escape as of Go 1.8.
  1 package main
  2
  3 //go:noinline
  4 func f(sp *string) {
  5         *sp = (*sp)[1:]
  6 }
  7
  8 //go:noinline
  9 func g(p *[]byte) {
 10         *p = (*p)[1:]
 11 }
 12
 13 //go:noinline
 14 func h(p0, p1 *[]byte) {
 15         *p1 = *p0
 16 }
 17
 18 func main() {
 19         s := "hi"
 20         f(&s)
 21
 22         b := []byte("s")
 23         g(&b)
 24
 25         b0 := []byte("s0")
 26         var b1 []byte
 27         h(&b0, &b1)
 28 }

./test.go:5: f ignoring self-assignment to *sp
./test.go:4: f sp does not escape
./test.go:10: g ignoring self-assignment to *p
./test.go:9: g p does not escape                      <--------
./test.go:14: leaking param content: p0
./test.go:14: h p1 does not escape
./test.go:25: ([]byte)("s0") escapes to heap
./test.go:20: main &s does not escape
./test.go:22: main ([]byte)("s") does not escape      <--------
./test.go:23: main &b does not escape
./test.go:27: main &b0 does not escape
./test.go:27: main &b1 does not escape

The two indicated lines are what I believe show that the reslicing function doesn't cause its underlying slice to escape.
I'm not confident enough in my reading of the -m tea leaves to close this issue, though.

I think the important part of that output are these missing lines:
./test.go:5: leaking param content: sp
./test.go:9: leaking param content: p

Those are the root of the inference chain.  The latter is used to derive the :22 message about the initializer of b not escaping.
I think we should still leave this bug open though.  For this function:
func j(p *string) {
	*p = *p
}

we do get a leaking param content.  Arguably this case is not very useful.  But I would think it is easy to fix.


PROBLEM [Errno 2] No such file or directory: 'requirements.txt'

I'm not able to install this last step.
pip install -r requirements.txt

Can someone help me please?

are you in the right directory?
looks like you are in the root user directory instead of inside video-retalking


Improve the cart page

I want to improve the cart page of the website , please assign me this issue under GSSOC'24.

@Sneha123-zudo go ahead and complete it

Hello!! @Anushkabh  I am a contributor of GSSoC 24 and I would like to design this page in attractive way. So I request you to please assign me this task thankyou!!

Hi there!
Thank you for opening this issue! 😊
I just wanted to check in and see if you need any help or guidance with this issue. If you have any questions or run into any challenges, please feel free to ask. I'm here to assist you!
Additionally, it's been some time since the issue was opened. If we don't hear back from you within a week, the issue will be closed or made available for someone else to work on.
Happy coding!


Fix cidata user-data ca_certs yaml content

This is failing the cloud-config jsonschema validation, later.
  Error: Cloud config schema errors:
    ca_certs.remove_defaults: '<nil>' is not of type 'boolean',
    ca_certs.trusted: None is not of type 'array'

#2265

There are some additional fixes, to be followed up in another PR:

Cloud config schema deprecations: users.0.uid:  Changed in version 22.3. The use of string type is deprecated. Use an integer instead.

-    uid: '1000'
+    uid: 1000

Error: Cloud config schema errors: users.0: Additional properties are not allowed ('ssh-authorized-keys' was unexpected

-    ssh-authorized-keys:
+    ssh_authorized_keys:

These are either version-dependent (on the runtime cloud-init version, which we don't know just yet)
Or depends on the implementation, where the canonical python implementation does a magic replace.

The initial attempt got a bit confusing, since it was trying to validate the config from the test cases...
The actual user-data in the default template looked like:
ca_certs:
    remove_defaults: false
    trusted: null

Better to fail validation, if the boolean pointer is still nil


Beta2

Hey - what's up? :)

Yeah, sorry, new to this github thing. Wanted to push my beta branch to my
master, had no clue how to do that. Anyway thanks for the source. If you'd
like you can add my mailsac.js to your repo, I added auto-refresh to it.

gada 3. okt. 7:08 PM, "Jeff H. Parrish"<EMAIL_ADDRESS>rakstīja:

Hey - what's up? :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ruffrey/mailsac/pull/28#issuecomment-251149209, or mute
the thread
https://github.com/notifications/unsubscribe-auth/APfho0zVvNGdKoPMpxDTl9Kt-YVirATTks5qwSiPgaJpZM4KMaub
.


Ignore virtualenv environment in git

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @chamikaramj

I always stick my virtualenv outside the repository, but I think it's worth having this as well.

LGTM


[chore] Update settings.py to run in QUICK_MODE

By default we will NOT run in QUICK_MODE. Running application in QUICK_MODE implies it will run using SQLite instead of suggested Postgres

Updated setting.py for QUICK_MODE. PR: https://github.com/fafadiatech/newscout_web/pull/14


Value error for Dirichlet distribution

Hi, thank you for sharing the code. I am facing a problem running the code with CIFAR10 or MNIST dataset. I have not tried the other datasets.
python3 -m fedbr.scripts.train_fed   --data_dir=./fedbr/data/CIFAR10/   --algorithm FedBR   --dataset RotatedCIFAR10   --train_envs 10   --steps 50000   --output_dir output-cifar10/FedBR   --local_steps 50   --device 6   --save_model_e
very_checkpoint   --seed 12345

WARNING:root:The WILDS package is out of date. Your version is 1.2.2, while the latest version is 2.0.0.

Environment:
        Python: 3.9.2
        PyTorch: 2.0.1+cu117
        Torchvision: 0.15.2+cu117
        CUDA: 11.7
        CUDNN: 8500
        NumPy: 1.20.3
        PIL: 10.0.0
Args:
        algorithm: FedBR
        checkpoint_freq: None
        data_dir: ./fedbr/data/CIFAR10/
        dataset: RotatedCIFAR10
        device: 6
        fedmix_lambda: 0.1
        holdout_fraction: 0.2
        hparams: None
        hparams_seed: 0
        local_steps: 50
        output_dir: output-cifar10/FedBR
        save_model_every_checkpoint: True
        seed: 12345
        skip_model_save: False
        steps: 50000
        task: domain_generalization
        train_envs: 10
        trial_seed: 0
        uda_holdout_fraction: 0
        use_Mixture: False
        use_Mixup: False
        virtual_set: style_GAN_init_28_c100_200
HParams:
        batch_size: 32
        class_balanced: False
        data_augmentation: True
        lr: 0.01
        nonlinear_classifier: False
        resnet18: False
        resnet_dropout: 0.0
        weight_decay: 0.0
device: 6

Files already downloaded and verified
Files already downloaded and verified

/home/userX/FedBR/fedbr/datasets.py:330: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ../torch/csrc/utils/tensor_new.cpp:245.)
  clients_images[i] = torch.tensor([image for image in clients_images[i]])
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/userX/FedBR/fedbr/scripts/train_fed.py", line 170, in <module>
    dataset = vars(datasets)[args.dataset](args.data_dir,
  File "/home/userX/FedBR/fedbr/datasets.py", line 411, in __init__
    super(RotatedCIFAR10, self).__init__(root, [0] * train_envs + [0, 15, 30, 45, 60, 75, 90, 105, 120, 135],
  File "/home/userX/FedBR/fedbr/datasets.py", line 386, in __init__
    clients_images, clients_labels = self.get_noniid_class_and_labels(original_images_tr, original_labels_tr, len(environments) - 10)
  File "/home/userX/FedBR/fedbr/datasets.py", line 316, in get_noniid_class_and_labels
    q = dirichlet.Dirichlet(0.1 * p).sample()
  File "/home/userX/.local/lib/python3.9/site-packages/torch/distributions/dirichlet.py", line 54, in __init__
    super().__init__(batch_shape, event_shape, validate_args=validate_args)
  File "/home/userX/.local/lib/python3.9/site-packages/torch/distributions/distribution.py", line 62, in __init__
    raise ValueError(
ValueError: Expected parameter concentration (Tensor of shape (10,)) of distribution Dirichlet(concentration: torch.Size([10])) to satisfy the constraint IndependentConstraint(GreaterThan(lower_bound=0.0), 1), but found invalid values:
tensor([0.0111, 0.0111, 0.0111, 0.0111, 0.0000, 0.0111, 0.0111, 0.0111, 0.0111,
        0.0111])

The value of 0 in the tensor is causing the problem. How can I solve this?

The most recent version of the torch prevents initializing "Dirichlet" objects with zero, which results in this error. To fix this issue, you can try to reinstall the torch==1.7.1.


refactor: rethink about the MinIO interface

We shouldn't care about how to deploy and operate the MinIO service. I think we can leverage the operator from the community.
https://github.com/minio/operator

After merging #61, the operator removes the support of MinIO, either deployment or as the storage. We need to redesign the MinIO interface.

I will address this issue. We'll give users two ways to deploy minIO.
The first is to use the deployment YAML file which we provide and maintain, and the other way is to use the official deployment method

I will address this issue. We'll give users two ways to deploy minIO. The first is to use the deployment YAML file which we provide and maintain, and the other way is to use the official deployment method

That would be great!
There're two things we need to do to achieve this:

Revisit the MinIO parts of the CR and rewrite it, providing the ability to specify an endpoint, as well as other things like bucket and credentials
Provide examples and instructions to show how to deploy the RisingWave with a simple MinIO (service + statefulset) and how to do it in a more complex, productional way, e.g., with the MinIO operator or other things.

It has been re-designed in #105 and it is now implemented in #109.

Closing it due to merge of #109


Repository Upgrade according to guide-open-source v22 version

https://github.com/MyPrivateRepositories/guide-open-source

https://github.com/Ruben-Arushanyan/redux-cool/releases/tag/v1.1.0


forward cant works

I try forward to another side request but it doesnt work?
Can everybody help me?
FilterProxy....
std::string public_ip = result[0]["public_ip"].asstd::string();
    if(public_ip.empty())
        return fccb();

    // change protocol
    std::regex pattern("(ws|wss|http|https)://");
    public_ip = std::regex_replace(public_ip, pattern, "");
    public_ip.insert(0, "https://"/*req->isOnSecureConnection() ? "https://" : "http://"*/);
    req->attributes()->insert("public_ip", public_ip);

    // forward to other parking by public IP
    return drogon::app().forward(req, std::move(fcb), public_ip,10);
    //return fccb();
}

Have you printed public_ip before the forward to check if it is forwarded to the right party?
One more thing to note, in the present time Drogon can't forward WebSockets, see this issue #2013
Another issue in case your URL contains spaces to be forwarded, is you have to manually reset the path to its original form before forwarding, see issue #2006


Update video-indexer-embed-widgets.md

@oriziv,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@Juliako - Please assist with the review of these proposed changes. Thanks

@oriziv, Please update your GitHub profile to include your Microsoft email address. Then, close and reopen this pull request. This will enable the automation to verify your account and should remove the CLA requirement.  Thanks

@oriziv,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@oriziv : Thanks for your contribution to the Azure documentation! The author, @juliako, has been notified to review your proposed change.

#sign-off


makes bkjd_to_time discoverable

Tiny PR to make the function bkjd_to_time importable from the top-level.
bkjd_to_time will also show up in the sphinx docs next time we build the docs.

Codecov Report

Merging #119 into master will decrease coverage by 0.27%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #119      +/-   ##
========================================
- Coverage   92.27%    92%   -0.28%
========================================
  Files          17     17
  Lines        2175   2175
========================================
- Hits         2007   2001       -6
- Misses        168    174       +6

Impacted Files
Coverage Δ

lightkurve/utils.py
100% <100%> (ø)
:arrow_up:

lightkurve/prf.py
86.36% <0%> (-3.41%)
:arrow_down:

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 74a9a2b...509c390. Read the comment docs.

:+1: Thanks @mirca!!


Update res.end([data] [, encoding])

This method accepts a callback, which was added in Node version 0.11.6, making it compatible with both Express v4 and v5.
There is probably a backport to Node.js 0.8, but I'm not sure.
ref:

https://nodejs.org/api/http.html#requestenddata-encoding-callback
https://nodejs.org/en/blog/release/v0.11.6/
https://github.com/expressjs/session/issues/477

#1719


Simplify value class API handling and fix sbt/sbt#2497

The previous approach to value class API (introduced by sbt/sbt#2261 and
refined by sbt/sbt#2413 and sbt/sbt#2414) was to store both unerased and
erased signatures so that changes to value classes forced recompilations.
This is no longer necessary thanks to #87: if a class type is
used, then it becomes a dependency of the current class and its name is
part of the used names of the current class. Since the name hash of a
class changes if it stops or start extending AnyVal, this is enough to
force recompilation of anything that uses a value class type. If the
underlying type of a value class change, its name hash doesn't change,
but the name hash of  change and since every class uses the name
, we don't need to do anything special to trigger recompilations
either.

This PR depends on #87, only the last commit is new.

@Duhemm Could you review this?

:+1: LGTM and makes perfect sense!


TailwindCSS with CSS Variables

Describe the Bug
I have a tailwind.config.ts file that uses CSS Variables:
{
	theme: {
		extend: {
			colors: {
				background: 'hsl(var(--color-background) / <alpha-value>)',
			// ...
			},
		},
	},
}

declared in a tailwind.css file:
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
	:root {
		--color-background: 0 0% 100%; /* white */
		// ...
	}
}

When using the <Tailwind config={tailwindConfig}> component, how does one load the tailwind.css file too so we can use custom Tailwind classnames?
The following does not work:
import { Container, Head, Html, Link, Tailwind, Text, Body } from '@react-email/components'
import tailwindConfig from '../../../../tailwind.config.ts'
import tailwindStylesheetUrl from '../../../styles/tailwind.css'

export function SomeEmail() {
	return (
		<Tailwind config={tailwindConfig}>
			<Html lang="en" dir="ltr">
				<Head>
					<meta charSet="utf-8" />
					<title>Welcome to André Casal!</title>
					<style type="text/css">{tailwindStylesheetUrl}</style>
				</Head>
				<Body className="bg-background">
					<Container>
						<h1>
							<Text>Welcome to André Casal!</Text>
						</h1>
					</Container>
				</Body>
			</Html>
		</Tailwind>
	)
}

Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
NA
To Reproduce
NA
Expected Behavior
NA
What's your node version? (if relevant)
No response

assign this issue to me.

assign this issue to me.

Thanks @BHARATHI-GIT-HUB

Iam not able to host locally in my device is their any pre-requirement like docker.

@BHARATHI-GIT-HUB I am running into the same issue. Is there any update for how to use CSS variables with react-email and <Tailwind />? Thanks!

@andrecasal @LeathanTeal
I figured out a way to use variables directly in your <Tailwind/> component.
You can use the plugin @mertasan/tailwindcss-variables
NPM: @mertasan/tailwindcss-variables
I made a gist containing a demo, you can find it here
Let me know if you have any issues

@lordelogos
Its working with mertasan plugin....

may i know what to do further??.....

may i know what to do further??.....

after selecting your project and setting it up locally you can now proceed to make your contribution
You should also read the Contributing guidelines


Branch change to 2.0 for sql, observability and reporting plugins

Signed-off-by: vamsi-amazon<EMAIL_ADDRESS>Description
Use 2.0 branch for sql, observability and reporting plugins  in manifest 2.0 release.
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1989 (7345805) into main (7c732e9) will increase coverage by 5.58%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #1989      +/-   ##
=============================================
+ Coverage     94.41%   100.00%   +5.58%
=============================================
  Files           187         6     -181
  Lines          3739       105    -3634
  Branches         29        19      -10
=============================================
- Hits           3530       105    -3425
+ Misses          203         0     -203
+ Partials          6         0       -6

Impacted Files
Coverage Δ

...RunBwcTestScript_OpenSearch_Dashboards_Jenkinsfile

src/paths/script_finder.py

src/manifests/distribution.py

src/system/thread_safe_counter.py

tests/jenkins/jobs/PostCleanup_Jenkinsfile

...teg_test/integ_test_suite_opensearch_dashboards.py

src/paths/build_output_dir.py

tests/jenkins/jobs/AssembleUpload_Jenkinsfile

...est_workflow/bwc_test/bwc_test_start_properties.py

...rc/test_workflow/test_result/test_suite_results.py

... and 171 more

Continue to review full report at Codecov.

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


Feature/midi

Roughly adding midi support.
Btw my editor removes trailing whitespace, which is all the other lines in the diff.
Can I suggest adding basic flake8 checks to improve code-style? I see a lot of inconsistencies throughout the code-base.

@CorvusPrudens do you really want to have a "final" implementation for this before merging, or could we start with an MPV that simply enables the default midi i/o so that people at least can start playing with it?

Indeed a default implementation seems best. Sorry if we've already discussed this, but is this ready to go with at least a default assignment?

I've added this boolean to the board_info so that hvcc can modify the main template file accordingly.
Otherwise we might enable midi when the board doesn't actually support it.

@CorvusPrudens ok I think it works good for now.
Unless you think we should hold off from json2daisy changes until we have come up with a proper way to do pin configuration. Then I can also temporarily set up the MidiUartHandler on the HVCC template side (although then the user will have to enable it, which might lead to conflicts later).
For now I think it's better to move the MidiUsbHandler to HVCC side so that a user can decide to enable it separately from the hardware.


[DOC] Correct naming of predefined opensearch_dashboards_readonly role and opensearch_dashboards_user user

What do you want to do?

[x] Request a change to existing documentation
[ ] Add new documentation
[ ] Report a technical problem with the documentation
[ ] Other

Tell us about your request. Provide a summary of the request and all versions that are affected.
Coming from https://github.com/opensearch-project/OpenSearch-Dashboards/issues/3391.
From our documentation,predefined roles and the example below is using opensearch_dashboards_read_only and openesarch_dashboards_user as the name of user and role. But actually from the security plugin codebase, you can see it's named kibana_read_only. Similar with opensearch_dashboards_user --> kibana_user
Please correct the naming on our documentation to avoid misleading users.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

tagging @vagimeli for visibility

Status: TWs synced. @cwillum is working on this issue.


MGDOBR-976: include tls certificates in BridgeDTO

MGDOBR-976
PR owner checklist
Please make sure that your PR meets the following requirements:

[ ] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[ ] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-1] - $clear_explanation_of_what_you_did"
[ ] The layers in the kustomize folder have been updated accordingly.
[ ] All new functionality is tested
[ ] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[ ] Pull Request contains link to the JIRA issue
[ ] Pull Request contains link to any dependent or related Pull Request
[ ] Pull Request contains description of the issue
[ ] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

Deploy BOT
Comment with `/deploy <dev,stable> when the PR has been merged to deploy to a target environment.

LGTM...
but I have to ask; what is the benefit having TlsCertificateProvider vs injecting the @ConfigProperty's into BridgeService?

Yeah.. it was my personal bias. I've removed it now

@msmagnanijr we have to add EVENT_BRIDGE_DNS_SUBDOMAIN_TLS_CERTIFICATE and EVENT_BRIDGE_DNS_SUBDOMAIN_TLS_KEY for the app-sre manager

@msmagnanijr we have to add EVENT_BRIDGE_DNS_SUBDOMAIN_TLS_CERTIFICATE and EVENT_BRIDGE_DNS_SUBDOMAIN_TLS_KEY for the app-sre manager

great! tks :)


How to turn on the REST API?

This is probably a stupid question and I apologise for that but I cannot for the life of me find out how to turn on the REST API when running MQ in a docker container.
The console web application works fine out of the box, but when I try to use the REST API I just get 404.
Normally you are supposed to to add <variable name="mqRestAutostart" value="true" /> to mqwebuser.xml; but I can't find any documentation on how to get the REST API started during a docker run.

Hi @boatmisser.
Reading the MQ doc i can see that you're correct that to start the REST API for 9.0.1 you have to add <variable name="mqRestAutostart" value="true" /> to mqwebuser.xml. Unfortunately there is no mechanism in our container image  currently to inject that statement and enable the REST API. Alternatively in 9.0.2+ the REST API is enabled by default.
I'll take this on as a defect and look into getting the REST API enabled by default using one of the two methods above.

Hi @boatmisser - We've just merged a Pull Request that should fix this issue. Could you ensure you have the latest master/release (v3.0) and try to recreate the problem.

Hi Boatmisser, REST API has been enabled and Basic HTTP Authentication has also been setup with the same credentials you use to log in to the Console with.
As it's been several months since you've responded on this issue i'll be closing it. If you get a chance to take a look and the problem is still there then please re-open this issue.


Don't open note after creation via comand

Modify the behavior of command Projects: Create new note. Now new note won't be opened upon creation.
Addressing and will close #929

Please merge this, it should be the default

I'm doing some experiments with view activation and fixing mobile bugs. So probably there will be a significant delay on releasing a new version. You can use BRAT to track beta releases and utilize the most up-to-date features.


Exclude ancostas and maascamp from OpenTelemetry QA

What does this PR do?
Exclude ancostas and maascamp from OpenTelemetry QA
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Add Default Sort

Q
A

Is bugfix?
❌

New feature?
✔/❌

Breaks BC?
❌

Fixed issues

I think it is a good idea if we adopt default sort if property $currentOrder is not set. Because I have a problem if I set order with withOrderString(), and the order is not available in property config

I have a problem if I set order with withOrderString(), and the order is not available in property config

Could you express the withOrderString() problem as code?

This is my code when call withOrderString()
$order = sprintf('%s%s', ($parameter->getOrder() === SORT_DESC ? '-' : ''), $parameter->getSort());

withOrderString($order)

I want to set default sort when $order is empty string. I think I can do that by manually check $order variable, But I think, it is a good idea if yiisoft/data can handle default sort when $order is empty

The problem is there but it's because default isn't taken into account when calling getCriteria(). I'll fix that.


Use self-built TTS instead of azure.cognitiveservices.speech

I recently finished a rebuild of some essential functions of azure.cognitiveservices.speech, and adapted it in aspeak.
It has passed all examples, and my own tts has ran properly in my own code.

Thanks for your work. I'm very busy with course work recently.  I will merge your PR into a developmental branch without review.
I will add a command line option so that users can choose to use your implementation or azure.cognitiveservices.speech


Cannot launch game

Crash Report:
https://paste.ubuntu.com/p/674ZDkRBD5/
Install mods:

can you try it again with Curios?
It shouldn't hard depend but I think it currently does

Thanks!Game is running, so will you add Curios to "Required Dependency"?

I might do this as a workaround, but I would rather want it to not crash when curios is not present


Update Hook's Widget snippet

Currently, if I use this snippet to create a Hook Widget, it doesn't show errors, but it's quite annoying because the lint showing messages that recommend using {super.key}. It's automatically corrected when I do formatting, but I thought it would be convenient to use {super.key} from the beginning.

Thanks @UkiDelly for opening the PR, the extension has been updated to v0.0.6 and your name has been included in the CHANGELOG file.

Thank you so much!


Added support for mod.cairo as module.

This change is

crates/cairo-lang-filesystem/src/ids.rs line 180 at r2 (raw file):

                let dir_file_path =
                    base_path.join(FILE_MODULE_NAME).with_extension(CAIRO_FILE_EXTENSION);
                // println!("dir_file_path: {:?}", dir_file_path);

remove
Code quote:
// println!("dir_file_path: {:?}", dir_file_path);


[Issue]: Cannot report issue against ROCm 6.3 ;)

Problem Description
The drop down for ROCm Version in the issue reporting tool does not have a 6.3 option.
Operating System
n/a
CPU
n/a
GPU
n/a
ROCm Version
ROCm 6.2.3
ROCm Component
No response
Steps to Reproduce

Enter in a new issue.
For ROCm Version select "6.3" -- no option is available.

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response

Hi @prarit, thanks for the heads up! The issue template has been updated.


tambah function

tambah function

Coverage decreased (-0.06%) to 65.231% when pulling d5828cd3f9ec5fd05a5535347fdab6dd54da8b1d on lightmild:dev into 3bda64dc3ab9f790326ae872a4c33f0c3868e00a on danliris:dev.

Coverage increased (+0.02%) to 65.308% when pulling e000275f01ec48ce746686a981fae333161f4548 on lightmild:dev into 3bda64dc3ab9f790326ae872a4c33f0c3868e00a on danliris:dev.

Coverage decreased (-11.8%) to 53.458% when pulling 83acbc3bb4ae8ec6bc0c16c9a1103a9adaeb0a9c on lightmild:dev into efce19eeca2e6060af5e3c7e49bb5f74056e6ad1 on danliris:dev.

Coverage increased (+0.02%) to 65.311% when pulling ac316879ada1486a57dcb1094e98cb0ec9e67027 on lightmild:dev into efce19eeca2e6060af5e3c7e49bb5f74056e6ad1 on danliris:dev.


skeleton of the code added

Ok, so I did install pdb2pqr vis sudo apt on WSL, but I'm not sure how that's going to change what I'm coding since I am only following the commands given on the Web Server
Can you elaborate on the runs part? Do you want me to make all the permutations of the pdb2pqr run commands and run them on terminal?

Why did you close it? Anyways, I hope you can put the pdb2pqr by the end of the day


Add link to the Discord server in the READMEs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 68.502%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
709

Relevant Lines:
1035

💛  - Coveralls


cuda::StreamAccessor::wrapStream and cuda::EventAccessor::wrapEvent

to import existed CUDA stream or CUDA event to OpenCV

@ilya-lavrenov, could you please review it?

:+1:


Placement of red and green bars is broken

Since the last update placement of the red and green bars is broken - for example, left-clicking and holding on the yellow X puts the red bar in the wrong location in the following screensnip:

It is pretty much random where the bars appear now - usually on the wrong edge of the current square/hex/whatever.
I'm seeing this on Chrome (Windows 10).

Oops, sorry about this! Forgot to invert y sign in one last place. Well hopefully last =).
I should probably make a prerelease testing protocol... I usually just play in the preview site but this bug slipped in because I almost never use this feature. Thanks for reporting!


Add settings table generator in dochelpers.

Description

Add a documentation helper to auto-generate a settings table for software documentation.

Add the MOVEABLE flag to the control and plenum blocks in the refSmallReactorBase.

Update the description of the crStartingHeight assembly parameter.

Checklist

[x] The code is understandable and maintainable to people beyond the author.
[x] Tests have been added/updated to verify that the new or changed code works.
[x] There is no commented out code in this PR.
[x] The commit message follows good practices.
[x] All docstrings are still up-to-date with these changes.

If user exposed functionality was added/changed:

[x] Documentation added/updated in the doc folder.
[x] New or updated dependencies have been added to setup.py.

It seems like a minimal enough change.  Can we get a unit test for the new dochelper function?
The rest of the dochelper tests are here: https://github.com/terrapower/armi/blob/master/armi/utils/tests/test_dochelpers.py

Added a test @john-science


Update scalatest to 3.1.0

Updates org.scalatest:scalatest from 3.1.0-RC3 to 3.1.0.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

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

Applied Migrations

https://raw.githubusercontent.com/scalatest/autofix/e4de53fa40fac423bd64d165ff36bde38ce52388/3.0.x/rules/src/main/scala/org/scalatest/autofix/v3_0_x/RenameDeprecatedPackage.scala
https://raw.githubusercontent.com/scalatest/autofix/e4de53fa40fac423bd64d165ff36bde38ce52388/3.1.x/rules/src/main/scala/org/scalatest/autofix/v3_1_x/RewriteDeprecatedNames.scala

labels: semver-pre-release, scalafix-migrations

Codecov Report

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

@@         Coverage Diff          @@
##           master   #94   +/-   ##
====================================
  Coverage      96%   96%
====================================
  Files           4     4
  Lines         100   100
  Branches        4     5    +1
====================================
  Hits           96    96
  Misses          4     4

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 b9c1968...204b5ba. Read the comment docs.


Auto opens and new Auto Ascend

Reopening this one (Hope no confilicts)
For this to be usefull, need to have some research not reset on Ascension
(Pushed to clean up a bit, also silly bug fix with saved corruptions not reset into save file that never had them)

Will update soon

Was asked to separate all 3 new autos into separate PR's


Luke/redirect to signup

Redirects the user to the signup page if they are not found in the database
Also updates the signup screen slightly (allows user to navigate off and shows them the format that is required for the input to be accepted)

Closes #138


Fix #9 - [Vue warn]: Avoid using non-primitive value as key...

Fixed by using page number instead of page element.

Please merge this.


Fix example code in Azure OpenAI function calling document

According to the OpenAI document, the original response message with function_call property should be directly appended to messages, instead of treating function call arguments as content.

Looping in @dereklegenzoff. The difference outlined in this PR between our docs and OpenAI's is also present in the longer example in our samples repo.

emailed author

Thanks for catching this @DeepAQ. I ended up fixing this in a separate PR the other day when I realized the same thing. I implemented it slightly differently because an error gets thrown if "content" isn't explicitly set to None.

#please-close


document kube-stack-private example env

ATM the env doesn't really guide a new engineer through the deployment process, for either the infrastructure w/ TF or the kube cluster itself with kubespray. A new engineer, unfamiliar with kubernetes, should be able to follow the docs and end up with a running kube cluster.  They should see results from kubectl get nodes.

This is all set, additional updates will come in new tickets.


donate

Take a look on what I sent on our channel on Discord
Em qui, 7 de fev de 2019 08:16, Fernando Ultremare<EMAIL_ADDRESS>escreveu:

@feroult commented on this pull request.
In README.md
https://github.com/luanpotter/flame/pull/39#discussion_r254619053:

@@ -18,6 +18,12 @@ Currently it provides you with: a few utilities, images/sprites/sprite sheets, a

You can use whatever ones you want, as they are all somewhat independent.
+## Donate
+
+Donate to support Flame's development:
+
+
+
@luanpotter https://github.com/luanpotter I think it should be open.
(any cons?)
@erickzanardo https://github.com/erickzanardo never used that... but if
it works.... :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/luanpotter/flame/pull/39#discussion_r254619053, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAzAOX-tYgoFQOxfVZmzs3gxVPnJHOsoks5vK_zqgaJpZM4alwwU
.


proposal: net/http: add new Context taking/suffixed helper functions for {Get, Head, Post, PostForm}

The documentation for Client.Do says "Generally Get, Post, or PostForm will be used instead of Do." However, there is no way to pass a context.Context into those methods, so we cannot, for example, set a per-request timeout without resorting to Do. I propose adding the following new methods to http.Client.

GetContext(ctx context.Context, url string) (resp *Response, err error)
HeadContext(ctx context.Context, url string) (resp *Response, err error)
PostContext(ctx context.Context, url, contentType string, body io.Reader) (resp *Response, err error)
PostFormContext(ctx context.Context, url string, data url.Values) (resp *Response, err error)

This would effectively deprecate the existing Get, Head, Post, and PostForm methods.
We should also make a corresponding global function for each of these, and deprecate the existing http.Get, http.Head, http.Post, and http.PostForm functions.

This doesn't resolve the proposal, but you might not be aware of ctxhttp in x/net: https://godoc.org/golang.org/x/net/context/ctxhttp

Hello @rittneje! Thank you for filing this issue. I see how this is inconvenient. However, history beat us to the punch, those functions were added years before context.Context was a thing. I am sympathetic towards adding Context on them. On the flip side though:
The highlighted functions are helper/convenience methods on the global/default HTTPClient.
To customize more things on those methods, we recommend taking a look at NewRequest et al for example https://golang.org/pkg/net/http/#Post

The already existing customizers are:

NewRequestWithContext
Request.WithContext

but perhaps we should add examples enumerating how to make the various requests corresponding to those highlighted functions showing how to accomplish them but with customization and NewRequestWithContext, but also add the notice to use NewRequestWithContext for better customization.
Adding more helper functions with a new flavor would be increasing the API surface for things that we already recommend alternatives to.
/cc @bradfitz

@odeke-em It does kind of stink that there's no real convenience method for issuing a GET request anymore without dropping the context on the floor. I don't really consider that to be a customization at all, since dropping context is a code smell. In any case, if you do decide not to add the missing helpers, you should probably remove that statement from the documentation of Client.Do since it is no longer true.

I was writing some HTTP request code earlier today and I had to use http.NewRequest and client.Do because I had to set some headers. It's not a huge deal to have to do that. The convenience functions don't have to provide for every possible convenience, or else they stop being convenient.

@rsc I agree they don't have to provide for every possible convenience, but the point is that the old convenience methods really should never be used anymore outside toy example code. So either new versions should be added to accept a context (to not encourage developers to drop the incoming context), or the comment on Client.Do should be revised.

I just was reviewing code today that was omitting contexts where it shouldn't have been, and these helper methods I imagine were a big factor in this. I would very much like to see this approved as it will save a lot of time and fix logic errors.

perhaps we should add examples enumerating how to make the various requests corresponding to those highlighted functions showing how to accomplish them but with customization and NewRequestWithContext, but also add the notice to use NewRequestWithContext for better customization.

I agree the documentation could be a little better, but I think that this characterization of contexts as a customization is wrong. In modern idiomatic Go, contexts are not customization. They're bread-and-butter mandatory parts of APIs.

the point is that the old convenience methods really should never be used anymore outside toy example code.

This hits the nail on the head. And the existing API to the package strongly implies that you want to use them, or else why are they there? It sucks to tell someone in code review "No, sorry, you can't use this convenient one-liner, you have to use a more complicated function instead just to add the mandatory context parameter."

Related: see #23707 for designing a new HTTP client package.

I think there is plenty of short-lived command-line use for which these functions are just fine. I do agree that in a long-running program or server or a library that might be used in one of those, the helpers are not appropriate. Let's just document that more clearly. @bradfitz volunteered to write a CL.

Retitled to match previous discussion about updating docs.
We can leave the more general API fixup as a separate proposal (likely based on #23707).
With the rescoping, this seems like a likely accept.

This is incredibly disappointing.
On Wed, 26 Feb 2020 at 13:12, Russ Cox<EMAIL_ADDRESS>wrote:

Retitled to match previous discussion about updating docs.
We can leave the more general API fixup as a separate proposal (likely
based on #23707 https://github.com/golang/go/issues/23707).
With the rescoping, this seems like a likely accept.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/35562?email_source=notifications&email_token=AE7AOVNAAO7BCZXRTF5AIS3RE2WKVA5CNFSM4JM664G2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENBJHSI#issuecomment-591565769,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE7AOVKZLPQVXQ2OGFZLJ73RE2WKVANCNFSM4JM664GQ
.

@alercah I suspect #23707 will happen in upcoming years, so the context will be used as it should be.

No change in consensus, so accepting.


nock.disableNetConnect(); should be the default

Long story short, a series of tests that had hard-coded nock hosts and requests that actually used a config value for the host lead to many requests including mass deletes against our QA server. After much log checking we traced it back to the tests triggering actual calls against the server because we were nocking and requesting different domains. Nock should really really be defaulting to throwing errors if you do a request that is not nocked.

+1

:+1:

:+1: most def

I agree.

I'm inclined of making this change and doing a major release of nock (1.0, finally).
@ierceg @svnlto thoughts?

:+1:

word.

Pushed this to master. Care to take this for a spin?

Landed on v1.0.0.

:sparkling_heart:

awesome thanks!!


huge limitation in LEAN must be fixed

LEAN doesnt allow you to buy a contract of 1000 EURUSD, and then later buy another contract of 1000 EURUSD, and then later only liquidate the second contract. LEAN forces you to liquidate everything first, even though you want to keep the first contract. But on your brokers platform you can have multiple long and short contracts in any given asset.
This fundamental problem also prevents "covering" operations. LEAN doesnt allow you to simultaneously have a long and short contract in any asset, even though covering is a very regular operation in the hedge fund industry and must be allowed by any serious trading platform.
Quant Connect must get away from this "holding" ideology, because it is very limiting, and instead view trading as individual contracts. One should be able to have multiple different long and short contracts in any asset. There is a huge room for improvement here.

Hi @RogerBolin; appreciate the feedback and made an issue for you here. https://github.com/QuantConnect/Lean/issues/3130

Thank you very much Jared. You are truly the best.
Skickat från Outlookhttp://aka.ms/weboutlook

Från: Jared<EMAIL_ADDRESS>Skickat: den 25 april 2019 18:58
Till: QuantConnect/Lean
Kopia: RogerBolin; Mention
Ämne: Re: [QuantConnect/Lean] huge limitation in LEAN must be fixed (#3127)
Hi @RogerBolinhttps://github.com/RogerBolin; appreciate the feedback and made an issue for you here. #3130https://github.com/QuantConnect/Lean/issues/3130
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/QuantConnect/Lean/issues/3127#issuecomment-486754712, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL5JIQCPVMVODUPUYJSMEO3PSHPNBANCNFSM4HIKUHRQ.


CTR dockerfile for 23.06

Contains:

Simplifications
Makes CTR compatible with 23.06

Depends on:
https://github.com/NVIDIA-Merlin/Merlin/pull/1012

@jperez999 This failed test up there. The error message is odd. Cannot really relate to the changes. Do you know what is wrong?

@jperez999 This failed test up there. The error message is odd. Cannot really relate to the changes. Do you know what is wrong?

Yes, that is not a problem, we just needed to update the branch. We changed how faiss is setup and what the setup_faiss function requires as input.


Use DmwGetWindowAttribute on Windows

fn get_foreground_window_position(hwnd: HWND) -> Result<RECT, ()> {
    unsafe {
        let mut rect: RECT = std::mem::zeroed();

        // Try DwmGetWindowAttribute first for more accurate bounds
        let result = DwmGetWindowAttribute(
            hwnd,
            DWMWA_EXTENDED_FRAME_BOUNDS,
            &mut rect as *mut RECT as *mut _,
            std::mem::size_of::<RECT>() as u32,
        );

        // Fall back to GetWindowRect if DwmGetWindowAttribute fails
        if result.is_err() {
            if GetWindowRect(hwnd, &mut rect).is_err() {
                return Err(());
            }
        }

        Ok(rect)
    }
}

This might be preferrable to just GetWindowRect
GetWindowRect includes drop shadow, causing the bounds to seem inaccurate
Not sure if this conflicts with anything, but seems better to me?

sure thing


Please invite me to the community

Name
HappiSmile
Additional Context
I hope contribute to this community.

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is a remarkable open-source solution tailored for serverless platforms, aimed at empowering creators to craft their infrastructure solutions. 💻 We're thrilled to welcome you into our vibrant community! ✨ We eagerly anticipate your valuable contributions! 🤓 Don't forget to explore our community on Github and connect with us on LinkedIn 💜 Feel free to spread the word about our community to like-minded individuals interested in development, DevOps, technology, and collaborative contributions. 👉💜👈


License.txt missing

A License.txt in every artifact helps get approvals for that to be made available in internal repositories. Cannot find it in Spring-cloud-starters

Can you find it in all the spring cloud dependencies?

(Not that we shouldn't add one to the starters of course)

fixed via db8504123fc9efbf49418a9bdc86ff9e04375fbb


1123 | Lowest Common Ancestor of Deepest Leaves | C++

Title  - Lowest Common Ancestor of Deepest Leaves
What will change -
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

Could you assign the problem to me


feat: Add config to control default interdependency ranges

Description
Adds a configuration setting to release groups that controls their interdependency range type. This is a companion change to #15158 and similar changes. That change (and related changes) allowed setting explicit range types in the CI pipeline and used that capability to release builds with ~ interdependencies.
On the other hand, this change adds a setting to the fluid-build configuration that is then used as a default in relevant places rather than the ^ default that was there previously. With this change, the flub release and related commands will use the configured interdependency range type unless one is passed as an argument.
I introduced a couple of new types to help consolidate disparate string union types. I also took this opportunity to deprecate and replace the poorly named exactDepType flag. It's been replaced by the interdependencyType flag, a name which we use throughout the code to refer to this concept.
BREAKING CHANGE:
The --exactDepType flag in the bump command no longer has a default value. It has also been deprecated. It has been replaced by the --interdependencyType flag. The deprecated flag will be removed in an upcoming release.

This was merged into #15053.


Make CARDTargetOntologyProvider cacheable and restorable

Currently, CARDTargetOntologyProvider assumes it's rebuilt from scratch every time. It needs to be made actually cacheable on BL and rebuildable. Probably recommend following the strategy used by CARDTargetAnnotationProvider.
Also, see this [closed] PR for an idea of how to store the tree node list data: https://github.com/rcsb/py-rcsb_utils_targets/pull/11/files#diff-aec634f55648f3f00d36fc4b551dfcc582b0dc2fd879c2fdd4da617a74124299
Afterwards (and ensuring that data is available on BL as well as wherever py-rcsb_exdb fetches files), adjust this line to useCache=useCache. (Discussed in this PR: https://github.com/rcsb/py-rcsb_exdb/pull/11)

FYI @aliciaaevans


Improving compliance to the PEP8 standard / Code cleaning

For more information on PEP8:
https://www.python.org/dev/peps/pep-0008/

Thanks! The code was in need of some clean-up. I'll also see about adding pylint to travis.


Release 1.5.0-rc1

Release 1.5.0 RC1

Feel free to edit + commit in the branch.

that way they would be in the correct order, and not include things like closed PRs.

Also they would not include labels so it's a lot of hassle to combine them under the relevant component subsection.

Maybe we should have separate CHANGELOG.md and RELEASE_NOTES.md

that way they would be in the correct order, and not include things like closed PRs.
Also they would not include labels so it's a lot of hassle to combine them under the relevant component subsection.

What I've done is use e.g. git log ... ./agent to categorize the commits for each category... those should be pretty much 1:1 with the PR labels. The output is directly copy-pasteable into the markdown.

@SpComb

...

@SpComb

Yes, as in https://github.com/kontena/kontena/pull/3287#issuecomment-366616676 that e2e spec is sometimes failing. But AFAIK it's not a flaky spec, which would mean that it's an actual bug that's showing up in the fairly stringent e2e spec. However, it's unlikely to be a regression?
Options for this include all of the below:

ignore it
mark the spec as pending
figure out why the graceful shutdown is still causing client errors in that test case

Waiting for @saana-kontenacm proof-read edits/approval, then merging this to master and branching v1.5 and tagging that v1.5.0.

@SpComb fine with this sort of arrangement? :)

... then merging this to master and branching v1.5 and tagging that v1.5.0.
@SpComb fine with this sort of arrangement? :)

Sure, I guess you tagged v1.5.0.rc1 on the release/1.5.0-rc1 branch? You'll still have to make a commit to change the VERSION (and CHANGELOG header)  to 1.5.0 as well, I guess that would happen on the v1.5 branch... then master will jump from 1.5.0.dev => 1.6.0.dev as IMO makes the most sense (unless it we keep it on something like 1.5.1.dev?)

Yes, exactly, change the VERSIONs to 1.5.0 on the v1.5 branch before tagging.


[feat] createVm

Hello everyone,
first of all I want to thank you for this awesome library. It's very convenient and I love it <3
I have a proposal, I very often use pattern
vm$ = combineLatest([
   this.someService.isLoading$,
   this.someService.items$
]).pipe(
map(([
   isLoading,
   items
]) => ({
   isLoading,
   items
}))
);

So then I can use in template
<ng-container *ngrxLet="this.vm$ as vm">
<div *ngIf="vm.isLoading">Loading...</div>
</ng-container>

And I came up with function
import { combineLatest, Observable } from 'rxjs';
import { map } from 'rxjs/operators';

/**
 * Configuration options for the createVm function.
 *
 * @template T The observable map type.
 */
interface CreateVmOptions<T> {
  /**
   * A combinator function that will be used to combine the provided observables.
   * Some combinators accept an array of observables (e.g., combineLatest),
   * while others expect multiple observables as separate arguments (e.g., zip).
   * The function is built to handle both cases.
   *
   * @default combineLatest
   */
  combiner?: (...arguments_: any[]) => Observable<any>;
}

/**
 * A utility function that takes an object map of observables and combines them into
 * a single observable emitting an object with the same keys, but where the values
 * are the latest emitted values from the respective observables.
 *
 * @template T The type for the object map of observables.
 * @param observableMap An object map where keys are strings and values are observables.
 * @param options Configuration options for the combination process.
 * @returns An observable emitting an object with the same keys as `observableMap`, but where the values are the latest emitted values from the observables.
 */
type ExtractObservableType<T> = T extends Observable<infer U> ? U : never;

export function createVm<T extends Record<string, Observable<any>>>(
  observableMap: T,
  { combiner = combineLatest }: CreateVmOptions<T> = {}
): Observable<{ [K in keyof T]: ExtractObservableType<T[K]> }> {
  const observables = Object.entries(observableMap).map(([key, obs]) => obs);

  /** Some of the creation operators have different signature */
  const combinedObservable =
    combiner.length === 1
      ? combiner(observables) // Expecting array of observables
      : combiner(...observables); // Variadic observables

  const keys = Object.keys(observableMap) as (keyof T)[];

  return combinedObservable.pipe(
    map((values: any) => Object.fromEntries(values.map((value: any, index: number) => [keys[index], value])) as any)
  );
}

Then usage is
  vm$ = createVm({
    isLoading: this.someService.isLoading$,
    items: this.someService.items$
  });

It is typesafe (altough webstorm have ruff time to properly infer type, but autocompletion works), but VScode is at peace with this and TSC as well.
And it is very basic example for what it can do. So I though instead of creating my own package I would like to contribute (a little bit) and add it to this marvelous library.
I am pretty sure that this code could be made so much better and more configurable, but I don't have currently time to implement it properly. So now it is suggestion to you, if you want and have that ambition. I am sure a lot of people (and their codebases) would benefit from this.
If no, please let me know and I will do it on my own in the future.
Thank you guys <3

Thanks for the suggestion. However, the functionality is already baked in to combineLatest
combineLatest({
  isLoading: isLoading$,
  items: items$
})

Man, how could I miss that? Thank you for pointing out. My mind is blown :)


Login screen doesn't show my OAuth option, seems to have its own login

Your Rocket.Chat.Android app version: 1.1.0-DEBUG

Your Rocket.Chat server version: 0.58.1

Device model (or emulator) you're running with:  Nexus 5 Emulator

Steps to reproduce:
Just ran the app on the emulator for the first time.   I'm able to get in and chat and it looks good.

The problem: when logging in, it took me to a 'default login page'.   This is not how the web-based version is setup. I was expecting it to bring me to the regular web-based login.  I don't have this problem when logging into the regular "Rocket.Chat" app in the iOS store on my iPhone.  I haven't tested the regular "Rocket.Chat" app in the Google Play store yet....
This is very important because my login is setup using OAuth, not the regular username/pass login that RocketChat is asking for.  For clarity, here is a link to my server URL:
https://punmessenger.peerunschooling.net
I would expect to get a login screen like this:

Which automatically brings you to this WordPress login screen:

And then logs you into the app.
Instead, I'm getting a regular Rocket.Chat login screen:

@rafaelks    any update on OAuth for Android?   I've been holding off on this... should I move forward with Cordova instead?   I tried opening the Cordova version inside of Android studio and there were no files... really confused.

@flantascience Sorry about that! This is planned in our next sprint (starts Monday). Stay tuned, hopefully in 1 or 2 weeks we'll have the support to all authentication methods in our version 2. 👍

@rafaelks   That's awesome  - will this be for iOS as well?

@flantascience iOS already supports almost all authentication methods in 2.0.2. Have you checked it already?

oh maybe I messed up   - is this under the "Master" branch?

I'm using WordPress OAuth

@flantascience Looks like we don't support WordPress OAuth yet (unless you configure as a Custom OAuth). Could you open an issue for us? https://github.com/RocketChat/Rocket.Chat.iOS/

@rafaelks
Yes, I have it configured as a Custom on my current server.
So do I set this up separately on the app, or does this all use the same settings as my current install?   I'm running an instance on https://punmessenger.peerunschooling.net

@flantascience Not sure what you mean with your question...

@rafaelks   nevermind, I understand it a bit now.  I thought maybe I had to set something up in the app code, looks like it pulls from the server settings


Tab order navigation inconsistent on My Badges page

If navigating to the My Badges page from the Progress and Ranking view, tab order starts at the Service Desk link as opposed to on My Earned Badges or Available Badges. If the page is navigated to directly (as opposed to from the Progress and Ranking page) the tab order behaves as expected.

cannot reproduce


Unknown Bug

Wish I could be more specific here, but I'm solidly outside my area of expertise:
from gpkit import VectorVariable, Variable, units, SignomialProgram, Model
import gpkit
from gpkit.constraints.set import ConstraintSet
import numpy as np

n_Kulfan = 3

A = VectorVariable([4,n_Kulfan], "A_K", "-", "Kulfan Coefficients")

c = Variable("c", 1, "-", "Chord")
v = Variable("v", 100, "-", "Velocity")
rho = Variable("\\rho", 1.23, "-", "Density")
mu = Variable("\\mu", 1e-5, "-", "Viscosity")
Re = Variable("Re", "-", "Reynolds Number")
CL = Variable("C_L", "-", "Lift Coefficient")
CD = Variable("C_D", "-", "Drag Coefficient")

def xfoil(x0):
    Ak = np.asarray(x0["A_K"])
    CD_val = np.sum(np.sum(Ak))
    return [CD >= CD_val]

class AeroModel(ConstraintSet):
    def as_gpconstr(self, x0):
        gpconstr = super(AeroModel, self).as_gpconstr(x0)
        if x0 and x0["Re"] >= 1e7:
            constraints = xfoil(x0)
        else:
            constraints = [CD >= 1. + CL**2]
        return ConstraintSet([gpconstr, constraints])

constraints = AeroModel([CL == 1.0, Re >= c*v*rho/mu, A>=.08*np.asarray([[2, 2, 2], [1, 1, 1], [1, 1, 1], [2, 2, 1]])])

objective = CD

m = Model(objective, constraints)
sp = m.sp(require_signomials=False)
sp.localsolve('cvxopt', verbosity=1)
sp.controlpanel()

Beginning signomial solve.
Solving took 4 GP solves and 0.17 seconds.
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-15-c0a2d602937d> in <module>()
     44 m = Model(objective, constraints)
     45 sp = m.sp(require_signomials=False)
---> 46 sp.localsolve('cvxopt', verbosity=1)
     47 sp.controlpanel()

/Users/codykarcher/Dropbox (MIT)/Research/gpkit/gpkit/constraints/signomial_program.pyc in localsolve(self, solver, verbosity, x0, rel_tol, iteration_limit, **kwargs)
    128         self.sens_from_gpconstr(gp.constraints,
    129                                 result["sensitivities"]["constraints"],
--> 130                                 result["sensitivities"]["constants"])
    131         self.result = result  # NOTE: SIDE EFFECTS
    132         return result

/Users/codykarcher/Dropbox (MIT)/Research/gpkit/gpkit/constraints/set.pyc in sens_from_gpconstr(self, gpapprox, gp_sens, var_senss)
    195             gpa = gpapprox[i]
    196             gp_s = gp_sens[str(gpa)]
--> 197             constr_sens[str(c)] = c.sens_from_gpconstr(gpa, gp_s, var_senss)
    198         return constr_sens
    199

/Users/codykarcher/Dropbox (MIT)/Research/gpkit/gpkit/constraints/set.pyc in sens_from_gpconstr(self, gpapprox, gp_sens, var_senss)
    195             gpa = gpapprox[i]
    196             gp_s = gp_sens[str(gpa)]
--> 197             constr_sens[str(c)] = c.sens_from_gpconstr(gpa, gp_s, var_senss)
    198         return constr_sens
    199

/Users/codykarcher/Dropbox (MIT)/Research/gpkit/gpkit/constraints/set.pyc in sens_from_gpconstr(self, gpapprox, gp_sens, var_senss)
    193         constr_sens = {}
    194         for i, c in enumerate(self):
--> 195             gpa = gpapprox[i]
    196             gp_s = gp_sens[str(gpa)]
    197             constr_sens[str(c)] = c.sens_from_gpconstr(gpa, gp_s, var_senss)

IndexError: list index out of range

Only thing I do know is that it has something to do with A>=.08*np.asarray([[2, 2, 2], [1, 1, 1], [1, 1, 1], [2, 2, 1]])

(this doesn't fix the problem but) You should probably switch back to the master branch, and add the following method to error model instead of using require_signomials:
    def as_posyslt1(self):
        raise ValueError("AeroModel is not allowed to solve as a GP.")

So:
from gpkit import VectorVariable, Variable, units, SignomialProgram, Model
import gpkit
from gpkit.constraints.set import ConstraintSet
import numpy as np

n_Kulfan = 3

A = VectorVariable([4,n_Kulfan], "A_K", "-", "Kulfan Coefficients")

c = Variable("c", 1, "-", "Chord")
v = Variable("v", 100, "-", "Velocity")
rho = Variable("\\rho", 1.23, "-", "Density")
mu = Variable("\\mu", 1e-5, "-", "Viscosity")
Re = Variable("Re", "-", "Reynolds Number")
CL = Variable("C_L", "-", "Lift Coefficient")
CD = Variable("C_D", "-", "Drag Coefficient")

def xfoil(x0):
    Ak = np.asarray(x0["A_K"])
    CD_val = np.sum(np.sum(Ak))
    return [CD >= CD_val]

class AeroModel(ConstraintSet):
    def as_gpconstr(self, x0):
        gpconstr = super(AeroModel, self).as_gpconstr(x0)
        if x0 and x0["Re"] >= 1e7:
            constraints = xfoil(x0)
        else:
            constraints = [CD >= 1. + CL**2]
        return ConstraintSet([gpconstr, constraints])
    def as_posyslt1(self):
        raise ValueError("AeroModel is not allowed to solve as a GP.")

constraints = AeroModel([CL == 1.0, Re >= c*v*rho/mu, A>=.08*np.asarray([[2, 2, 2], [1, 1, 1], [1, 1, 1], [2, 2, 1]])])

objective = CD

m = Model(objective, constraints)
sp.localsolve('cvxopt', verbosity=1)
sp.controlpanel()

Is that right?

Almost; the last two lines are unnecessary and can be replaced by m.localsolve(). And by convention I generally put as_posyslt1 above as_gpconstr and put a line between method declarations.

Cool:
from gpkit import VectorVariable, Variable, units, SignomialProgram, Model
import gpkit
from gpkit.constraints.set import ConstraintSet
import numpy as np

n_Kulfan = 3

A = VectorVariable([4,n_Kulfan], "A_K", "-", "Kulfan Coefficients")

c = Variable("c", 1, "-", "Chord")
v = Variable("v", 100, "-", "Velocity")
rho = Variable("\\rho", 1.23, "-", "Density")
mu = Variable("\\mu", 1e-5, "-", "Viscosity")
Re = Variable("Re", "-", "Reynolds Number")
CL = Variable("C_L", "-", "Lift Coefficient")
CD = Variable("C_D", "-", "Drag Coefficient")

def xfoil(x0):
    Ak = np.asarray(x0["A_K"])
    CD_val = np.sum(np.sum(Ak))
    return [CD >= CD_val]

class AeroModel(ConstraintSet):
    def as_posyslt1(self):
        raise ValueError("AeroModel is not allowed to solve as a GP.")

    def as_gpconstr(self, x0):
        gpconstr = super(AeroModel, self).as_gpconstr(x0)
        if x0 and x0["Re"] >= 1e7:
            constraints = xfoil(x0)
        else:
            constraints = [CD >= 1. + CL**2]
        return ConstraintSet([gpconstr, constraints])

constraints = AeroModel([CL == 1.0, Re >= c*v*rho/mu, A>=.08*np.asarray([[2, 2, 2], [1, 1, 1], [1, 1, 1], [2, 2, 1]])])

objective = CD

m = Model(objective, constraints)
m.localsolve('cvxopt', verbosity=1)

Any thoughts on the original bug?

Yup; instead of adding constraints, replace a default constraint, as below:
from gpkit import VectorVariable, Variable, units, SignomialProgram, Model
import gpkit
from gpkit.constraints.set import ConstraintSet
import numpy as np

n_Kulfan = 3

A = VectorVariable([4,n_Kulfan], "A_K", "-", "Kulfan Coefficients")

c = Variable("c", 1, "-", "Chord")
v = Variable("v", 100, "-", "Velocity")
rho = Variable("\\rho", 1.23, "-", "Density")
mu = Variable("\\mu", 1e-5, "-", "Viscosity")
Re = Variable("Re", "-", "Reynolds Number")
CL = Variable("C_L", "-", "Lift Coefficient")
CD = Variable("C_D", "-", "Drag Coefficient")

def xfoil(x0):
    Ak = np.asarray(x0["A_K"])
    CD_val = np.sum(np.sum(Ak))
    return CD >= CD_val

class AeroModel(ConstraintSet):
    def as_posyslt1(self):
        raise ValueError("AeroModel is not allowed to solve as a GP.")

    def as_gpconstr(self, x0):
        if x0 and x0["Re"] >= 1e7:
            self[0] = xfoil(x0)
        return super(AeroModel, self).as_gpconstr(x0)

constraints = AeroModel([CD >= 1. + CL**2, CL == 1.0, Re >= c*v*rho/mu,
                         A >= .08*np.asarray([[2, 2, 2], [1, 1, 1], [1, 1, 1], [2, 2, 1]])])

objective = CD

m = Model(objective, constraints)
_ = m.localsolve()

So how does this work if Re<1e7?  It seems like I've lost the second condition...

Wait, what is self[0]?  I've never seen that before...

Updated with the second condition, good call. self[0] is the constraint modifying its own first constraint.

This should be renamed.  I'm not sure what though @bqpd @whoburg


Add LINCS as a ChemicalSubstance ID

Fixed in: https://github.com/kevinxin90/biomedical_id_resolver.js/pull/45


Finishing v4

Finalizing little tweaks and missed econ impls.

I will make another PR fixing all the unit tests, this one fails all the token stuff due to econ changes


fix(scheduled): add space between content, time cost and scheduled date when references

Fix: https://github.com/pengx17/logseq-dev-theme/issues/77
After:

Thanks!


v2ray: 4.37.3 -> 4.38.3

Motivation for this change
4.37.3 -> 4.38.3
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

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

1 package built:

v2ray

It builds and I could run v2ray which produced this output:
[nix-shell:~/.cache/nixpkgs-review/pr-121500]$ v2ray
V2Ray 4.38.3 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.16.4 linux/amd64)
A unified platform for anti-censorship.
2021/05/13 17:42:39 Using config from STDIN
2021/05/13 17:42:39 [Info] main/jsonem: Reading config: stdin:

Not sure how to test it more.... But it seems to work fine.

@karolchmist

Not sure how to test it more.

There is a test v2ray.tests.simple-vmess-proxy-test which covers a common use case. When it builds, it should work.

@karolchmist

Not sure how to test it more.

There is a test v2ray.tests.simple-vmess-proxy-test which covers a common use case. When it builds, it should work.

Nice, it worked :+1: Some last lines:
machine: waiting for TCP port 80
machine # Connection to localhost (::1) 80 port [tcp/http] succeeded!
(0.10 seconds)
machine: waiting for TCP port 1080
machine # Connection to localhost (<IP_ADDRESS>) 1080 port [tcp/socks] succeeded!
(0.02 seconds)
machine: must succeed: curl --fail --max-time 10 --proxy http://localhost:1080 http://localhost
machine # [    6.911231] v2ray-start[760]: 2021/05/14 06:08:52 [Warning] proxy/vmess/encoding: Critical Warning: potentially invalid user: a non VMessAEAD connection is received. From 2022 Jan 1st, this kind of connection will be rejected by default. You should update or replace your client software now. This message will not be shown for further violation on this inbound.
(0.08 seconds)
(7.43 seconds)
test script finished in 7.53s
cleaning up
killing machine (pid 10)
(0.00 seconds)
/nix/store/2qpzvpdp1mp51zxqxiwjmq0hy69igzr4-vm-test-run-v2ray


no space left on device issue

There are several things to note:

The system does not appear to clean up properly when the error occurs
The system complains that it runs out of space within the image. My system has 13G free on it.
This is on a Macbook Pro running OSX 10.11.6 with Docker 1.13.1-rc1, build 2527cfc

8e6089554bf8: Download complete
1de1e92a2644: Download complete
Error pulling image (latest) from registry.resin.io/rovimageresindev/8bf5a091a61210874ad1ec90c102b836b4b9c3f4, failed to register layer: Untar re-exec error: exit status 1: output: write /usr/lib/arm-none-eabi/newlib/armv7e-m/fpu/libstdc++_nano.a: no space left on device
Cleaning up
Waiting for Docker to stop
INFO[0209] Layer sha256:0a3e6e75e4fa14fcebaa21d4013b682adc794e3a844a15a1cc39b2ce91141517 cleaned up
INFO[0209] Processing signal 'terminated'
INFO[0209] Layer sha256:78ffbff9010a29a61705dd14df3d354af85626c7cdc7fcac211bb8b2486596a9 cleaned up
INFO[0209] Layer sha256:d608da01debb694e7e673941a34d9875ed92336ba3dba6217954c9e4ab296af4 cleaned up
INFO[0209] Layer sha256:0df2d059d2cd12a389e57ea4e0ed3db86e0fd923be678bac308a0f553bdccdfc cleaned up
INFO[0209] Layer sha256:232ce594dce75c4db134f476f741103da96b5376400f3b7cd8d6250cea342bf0 cleaned up
INFO[0209] Layer sha256:06ac7bfb53a60f19f891cbd7d35ba18f154b5764b62946a630858e81abf41286 cleaned up
INFO[0209] Layer sha256:a4854ec58e58193183329ab6105cc71e1847d8cb4890e75cb4d58246055b7ecb cleaned up
INFO[0209] Layer sha256:efae84cdd08a49f0808203aa18ee9cb623764b6cc85a668f3b501f255fec65fb cleaned up
INFO[0209] Layer sha256:a3c86d54efcab13d7a63496aeb6452e4dca55deec8a75f76790eb0b43bbbf6ed cleaned up
INFO[0209] Layer sha256:9fad352bb9ee0112fdb2ae1f98ef6699d9b3adee286cabbed79afb3289e04077 cleaned up
INFO[0209] Layer sha256:e5ad0c8b1178863e99fd58519c37e15686ca87a56aa5672f0cd9aba334abc3d0 cleaned up
INFO[0210] Layer sha256:076daef40db91808f41ca50418b8f34a4fa6ab3dcc14bb03e1483100a433cb7e cleaned up
ERRO[0210] Error during layer Store.Cleanup(): device or resource busy
Removing Docker tmp files
removed directory: '/tmp/docker-202699'
Unmounting application from /mnt/202699
umount: /mnt/202699: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
rmdir: '/mnt/202699': Resource busy

Startup of the logs:
Container size: 622 MB
Mapping /img/resin.img 46137344:314572800 to /dev/loop0

Mounting rootfs from /dev/loop0 to /mnt/202699-rootfs

Sourcing release info from /mnt/202699-rootfs/etc/os-release
Detected Resin OS 2.0.0-beta.7

id: resin-os
name: Resin OS
version: 2.0.0-beta.7
version_id: 2.0-beta.7
pretty_name: Resin OS 2.0.0-beta.7
resin_board_rev: 82eeb8b
meta_resin_rev: 0870520
slug: raspberrypi3
machine: raspberrypi3

Unmounting rootfs from /mnt/202699-rootfs
umount: /mnt/202699-rootfs unmounted
Unmapping /dev/loop0
Model:  (file)
Disk /img/resin.img: 1778MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
 1      4.19MB  46.1MB  41.9MB  primary   fat16        boot, lba
 2      46.1MB  361MB   315MB   primary   ext3
 3      361MB   675MB   315MB   primary
 4      675MB   1778MB  1103MB  extended               lba
 5      679MB   700MB   21.0MB  logical   ext4         lba
 6      705MB   1778MB  1074MB  logical   ext4

Expanding image by 306 MB
306+0 records in
306+0 records out
Expanding extended partition 4 by 306 MB
Expanding logical partition 6 by 306 MB
Model:  (file)
Disk /img/resin.img: 2099MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
 1      4.19MB  46.1MB  41.9MB  primary   fat16        boot, lba
 2      46.1MB  361MB   315MB   primary   ext3
 3      361MB   675MB   315MB   primary
 4      675MB   2084MB  1409MB  extended               lba
 5      679MB   700MB   21.0MB  logical   ext4         lba
 6      705MB   2084MB  1379MB  logical   ext4

Creating mountpoint /mnt/202699
Expanding filesystem
Using EXTFS
Mapping /img/resin.img 704643072:1379357184 to /dev/loop0
Using /dev/loop0
Resizing filesystem
e2fsck 1.43 (17-May-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
resin-data: 8291/131072 files (0.0% non-contiguous), 39944/262144 blocks
resize2fs 1.43 (17-May-2016)
Resizing the filesystem on /dev/loop0 to 336757 (4k) blocks.
The filesystem on /dev/loop0 is now 336757 (4k) blocks long.

Removing /mnt/202699/rce
Waiting for Docker to start...
INFO[0000] Graph migration to content-addressability took 0.00 seconds
WARN[0000] Running modprobe bridge br_netfilter failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory
, error: exit status 1
WARN[0000] Running modprobe nf_nat failed with message: `modprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1
INFO[0000] Default bridge (docker0) is assigned with an IP address <IP_ADDRESS>/16. Daemon option --bip can be used to set a preferred IP address
INFO[0000] Loading containers: start.

INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon                                 commit=20f81dd execdriver=native-0.2 graphdriver=aufs version=1.10.3
INFO[0000] API listen on /tmp/docker-202699/docker.sock

After retying a bunch of times (subsequent expansions of the partition size), it ended up with
Number  Start   End     Size    Type      File system  Flags
 1      4.19MB  46.1MB  41.9MB  primary   fat16        boot, lba
 2      46.1MB  361MB   315MB   primary   ext3
 3      361MB   675MB   315MB   primary
 4      675MB   3308MB  2633MB  extended               lba
 5      679MB   700MB   21.0MB  logical   ext4         lba
 6      705MB   3308MB  2603MB  logical   ext4

before it would complet the pre-load without error.

Should this line: https://github.com/resin-io/resin-preload-image-script/blob/master/src/preload.sh#L210
be IMAGE_ADD_SPACE=$(($CONTAINER_SIZE / 100 + $CONTAINER_SIZE))

Hey Brian, thanks for reporting this in such detail!
And yes, that's probably it :) Does it work for you now, with that change?

@BrianAdams I see you were running this on MacOS, was this using the new "Docker for Mac" or Docker Machine. As stated in the readme, the are unfortunately some issues with "Docker for Mac" currently because they have removed the btrfs support, not sure if this is causing this issue, but might be worth testing this on an ubuntu linux machine is you have one available.


add bookmarks feature flag

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2280

PR #2281

PR #2282

PR #2283

PR #2284

PR #2285

PR #2286

PR #2287   👈

This comment was auto-generated by Graphite.


No module named tkinter

I'm running Ubuntu 18.04 and coming across this issue when attempting to run the python script.
python src/blynclight.py cycle
Traceback (most recent call last):
File "src/blynclight.py", line 33, in
import tkinter
ImportError: No module named tkinter

@aitaix What version of python are you using?  tkinter is python 2 and Tkinter is python 3.  This particular code is for python 3.

@aitaix I had the same problem and was in fact using the wrong python version.  When I ran python3 blynclight.py it worked, but only after running sudo apt install python3-tk on Ubuntu 16.04.

@aitaix I had the same problem and was in fact using the wrong python version.  When I ran python3 blynclight.py it worked, but only after running sudo apt install python3-tk on Ubuntu 16.04.

@aitaix What version of python are you using? tkinter is python 2 and Tkinter is python 3. This particular code is for python 3.

but i think it's wrong, tkinter is for python 3 and Tkinter is for python 2


PlutusV3 ScriptContext

Based on https://github.com/input-output-hk/plutus/issues/5448.

Is it possible at all to make this contain only the delta, not the full params? Michael and I talked briefly about this and we suspect that including the full params here could be a serious problem due to the lack of efficient lookup operations in Plutus.

We'll need to have a talk on how to best implement this. There are a few potential solutions, all with their own upsides and downsides, it will be a matter of deciding on what is the easiest for Plutus users to use and Plutus engineers to work with. I intentionally left it empty, because I can't make that decision myself, but I do have ideas on how it can be done.
ParameterChange will contain only the fields that are being updated, not the full set of PParams. That being said, nothing prevents a user of creating a proposal that changes all of the PParams, so it can very well be all of the PParams.

I do think we should try to add Haddock, either based on the explanations in the spec or the CIP.

Looks good. It would help to add some inline comments or a NOTE in V3/Contexts.hs about what has changed since V2 (ADDED/CHANGED)

Agree with both. @lehins @WhatisRT Do you happen to have a description of the changes compared to V2 that we can put in the module as a Note, or link to?

Do you happen to have a description of the changes compared to V2 that we can put in the module as a Note, or link to?

@zliu41 No, we don't have anything like that yet.

Going to merge once CI passes. Will add the Note summarizing the changes once we finalize the types.


Upload directory structure up to blob storage

Follows #3
Currently we are uploading one individual file, we need to understand how to upload a number of files into blob storage.

Something like this was done in this project https://github.com/alan-turing-institute/monitoring-ecosystem-resilience/blob/387b038fa8d8ac5f0c4541afa7478db9d18701c5/pyveg/src/azure_utils.py#L198


feat(app): update deck map modal in protocol setup

Overview
update deck map in protocol setup
close RAUT-671

Test Plan

set up a protocol
tap modules and deck
tap map view

Changelog

add ModulesAndDeckMapViewModal and test
update ProtocolSetupModulesAndDeck test

Review requests

Risk assessment
low

[ ] fix test cases


change link to reward faq

based on conversation on #android channel . on my mobile using github web version

there is a typo: tc annel

@nikooo777 done


Message in I18nMessage not translated correctly

In the error message below, it appears in English, but the embedded link was translated.

The string is part of app-string.json and has been translated. But since it was used in a I18nMessage, I'm guessing the string substitution doesn't work there?
    <I18nMessage
      tokens={{
        refreshing_the_app_link: (
          <Button
            button="link"
            className="load-screen__button"
            label={__('refreshing the app')}
            onClick={this.refresh}
          />
        ),
      }}
    >
      There was an error. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing
      Ctrl+R/Cmd+R.
    </I18nMessage>

I then tried encapsulating the string with {__(' ')} and it seems to load the translated text, but it ends up adding the translated string into app-string.json in my workspace at runtime.  I'm not really sure what's going on, so I'll just submit this first.  I'll be willing to help if you can give me pointers.

yarn dev
commit: 7596fd64 (master)

Thanks for spotting and opening the issue! Maybe @seanyesmunt can point you in the right direction.

I think I found the culprit.  PR coming up...