Update Hackage index, update Cabal package

Description of changes
This follows https://github.com/NixOS/nixpkgs/pull/324492; that PR fixes Cabal_3_12_0_0.
This updates Cabal to 3_12_1_0
This update would assist this PR: https://github.com/haskell/hackage-server/pull/1322
Other packages also updated
Things done
./maintainers/scripts/haskell/update-hackage.sh
./maintainers/scripts/haskell/regenerate-hackage-packages.sh

nix build .#haskellPackages.Cabal_3_12_1_0 succeeds

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@maralorn , please review

I am sorry, @peterbecich but I don‘t think we can do another hackage bump before doing the current merge. We need to give the branch the chance to stabilize as is. Hopefully we can do another merge quickly after.

No worries, thanks


Latest version returns server error: "All arrays must have same shape except the axis to concatenate"

I'm updating https://github.com/liamjones/PaintsChainer-Docker to pick up recent changes and I'm getting processing errors.
I've bisected the new commits and it seems like something broke in commit e240af8
(looks like this commit is related to issue #53? Thanks for looking at it :+1:).
Stack trace:
load:./images/line/AYS98VK0YU0GB18LR9XD2FF3A0PS8963.png True False
(1, 4, 159, 512)
----------------------------------------
Exception happened during processing of request from ('<IP_ADDRESS>', 47888)
Traceback (most recent call last):
  File "/opt/conda/lib/python3.5/socketserver.py", line 313, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/opt/conda/lib/python3.5/socketserver.py", line 341, in process_request
    self.finish_request(request, client_address)
  File "/opt/conda/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "server.py", line 69, in __init__
    self, req, client_addr, server)
  File "/opt/conda/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/opt/conda/lib/python3.5/http/server.py", line 422, in handle
    self.handle_one_request()
  File "/opt/conda/lib/python3.5/http/server.py", line 410, in handle_one_request
    method()
  File "server.py", line 131, in do_POST
    painter.colorize(id_str, blur=blur)
  File "./cgi-bin/paint_x2_unet/cgi_exe.py", line 151, in colorize
    y = self.cnn.calc(Variable(x, volatile='on'), test=True)
  File "./cgi-bin/paint_x2_unet/unet.py", line 78, in calc
    d6 = F.relu(self.bnd6(self.dc6(F.concat([e6, d7])), test=test), use_cudnn)
  File "/opt/conda/lib/python3.5/site-packages/chainer/functions/array/concat.py", line 65, in concat
    return Concat(axis=axis)(*xs)
  File "/opt/conda/lib/python3.5/site-packages/chainer/function.py", line 199, in __call__
    outputs = self.forward(in_data)
  File "/opt/conda/lib/python3.5/site-packages/chainer/functions/array/concat.py", line 43, in forward
    return xp.concatenate(xs, axis=self.axis),
  File "/opt/conda/lib/python3.5/site-packages/cupy/manipulation/join.py", line 71, in concatenate
    'All arrays must have same shape except the axis to '
----------------------------------------
ValueError: All arrays must have same shape except the axis to concatenate

Oh it seems to be a bug... sorry

I think it is fixed

It is, thank you! :smile:


pulsar-io/hbase fails to build

Describe the bug
All versions of pulsar hbase have begun to fail to build based on build transitive dependency resulting in javax.el:3.0.1-b06-SNAPSHOT reference. This version of the file no longer exists on central. This results in the following maven error when downloading the artifact:
[ERROR] Failed to execute goal on project pulsar-io-hbase: Could not resolve dependencies for project org.apache.pulsar:pulsar-io-hbase:jar:2.7.0: Failed to collect dependencies at org.apache.hbase:hbase-server:jar:2.3.0 -> org.glassfish.web:javax.servlet.jsp:jar:2.3.2 -> org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to spring-plugins-release (https://repo.spring.io/plugins-release/): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
To Reproduce
cd pulsar-io/hbase
mvn -U clean install
Expected behavior
Expected a successful build.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]

Additional context
Since javax.el:3.0.1-b06 is now published, we can simply add dependencyManagement for this artifact, and override the dependent version specified by the transitive dependent poms.

@klwilson227
see https://github.com/apache/pulsar/issues/9332

@klwilson227
see https://github.com/apache/pulsar/issues/9332

Spring repo is already removed: https://github.com/apache/pulsar/pull/9280, please rebase on the latest master.

Spring repo is already removed: https://github.com/apache/pulsar/pull/9280, please rebase on the latest master.


Errant errors printed in the display

I'm using tcell to generate a dashboard for a long-running process which I am really enjoying! However, I've started running into some errant logs printed in the middle of the display when some websockets in another thread timeout.

There should be two columns of numbers there, like on the top line, but an error message has been inserted into the middle of the second line. The log is being thrown from an imported package (Dialer or something that the gorilla websocket package uses) so I can't just remove the logging. Much of my other logs are successfully being written to a file without ever appearing in the display, so I'm not sure why this one is different.
Can anyone describe what is happening here and how I might fix it? Can I do some concurrency locking around the screen drawing to prevent this?
I realize I could probably refresh the entire screen periodically as a "fix" but that really shouldn't be necessary if I'm doing this correctly.

This is a fairly typical problem for UNIX terminal applications.  Usually the approach is to add a keybinding to your application for CTRL-L, that will refresh the terminal, so you only have to do it on demand.  (The problem is caused by something else outputting to the screen, such as a program running in the background, which your program isn't aware of.)
Probably you should look to see if the imported package's logging can be reconfigured to point somewhere else.  It's very poor form for a library to blithely emit to a program's stdout, but some do.  If that's the case, your only real "fix" is to modify the offending package.  (Usually the solution here would be to fix it so that logged output only occurred if certain flags were passed, or to offer a way to configure the logged output to be redirected to another io.Writer or somesuch.)

Thanks @gdamore, I'm glad it's not something indicating a deeper problem with how I'm using the package. I will use the refresh command to cover things for now!


Saving vector representation as text or pickle

Question: the file extension of the vector representation is .npz:
https://github.com/YaleDHLab/tsne-images-webgl/blob/9fc627da78d09c11924a2654a5d2e5905faa96fa/utils/classify_images.py#L208
... but I think we may be saving as a generic text file:
https://github.com/YaleDHLab/tsne-images-webgl/blob/9fc627da78d09c11924a2654a5d2e5905faa96fa/utils/classify_images.py#L210
This only affects whether we numpy.load or numpy.loadtxt in later stages but just thought I'd check...

Ah yes, we've been doing both. We should probably actually store zipped arrays to minimize disk usage...


Doesn't work with Angular 1.6.x

According to https://docs.angularjs.org/guide/migration#migrate1.5to1.6-ng-services-$http the success and error methods on $http have been removed. Angular  Swagger UI uses these extensively. They should be changed to then and catch.

+1 , thanks !


Fix typo and suggested addition of closest

Hi,
Thanks for a nice module! I'm using it. I have two suggestions:

When removing the use of the map function a while ago, I believe you forgot to rename key to keys[i] in some places.

When clicking on a link, it's not always sure the anchor tag will be the target of the click event (my case), it could also be a child element of the anchor. A solution is to look for the closest anchor parent.

Appreciate these changes, thanks.


Feature: add --output or --fields to CLI

Add option to specify which fields get printed in CLI dump or query commands
e.g.
--field=filename
--field=path
etc..., description, title, keywords, persons, albums, missing, uuid, adjustments, date, favorite, edited, edited_path, shared,

This can be accomplished with a variety of other command line tools like miller so better left to those.


web-component-tester 6.6.0 critical audit issues

I am making this issue because my team is looking at audit issues in web-component-tester for more than few months now.
This is the result of npm audit when installing the newest version of web-component-tester (6.6.0):
=== npm audit security report ===

                                 Manual Review
             Some vulnerabilities require your attention to resolve

          Visit https://go.npm.me/audit-guide for additional guidance

  High            Regular Expression Denial of Service

  Package         fresh

  Patched in      >= 0.5.2

  Dependency of   web-component-tester

  Path            web-component-tester > polyserve > send > fresh

  More info       https://nodesecurity.io/advisories/526

  High            Regular Expression Denial of Service

  Package         fresh

  Patched in      >= 0.5.2

  Dependency of   web-component-tester

  Path            web-component-tester > send > fresh

  More info       https://nodesecurity.io/advisories/526

  Critical        Command Injection

  Package         growl

  Patched in      >=1.10.2

  Dependency of   web-component-tester

  Path            web-component-tester > mocha > growl

  More info       https://nodesecurity.io/advisories/146

  Moderate        Regular Expression Denial of Service

  Package         ms

  Patched in      >0.7.0

  Dependency of   web-component-tester

  Path            web-component-tester > send > debug > ms

  More info       https://nodesecurity.io/advisories/46

  Moderate        Regular Expression Denial of Service

  Package         ms

  Patched in      >0.7.0

  Dependency of   web-component-tester

  Path            web-component-tester > send > ms

  More info       https://nodesecurity.io/advisories/46

  Moderate        Regular Expression Denial of Service

  Package         mime

  Patched in      >= 1.4.1 < 2.0.0 || >= 2.0.3

  Dependency of   web-component-tester

  Path            web-component-tester > polyserve > send > mime

  More info       https://nodesecurity.io/advisories/535

  Moderate        Regular Expression Denial of Service

  Package         mime

  Patched in      >= 1.4.1 < 2.0.0 || >= 2.0.3

  Dependency of   web-component-tester

  Path            web-component-tester > send > mime

  More info       https://nodesecurity.io/advisories/535

  Low             Prototype Pollution

  Package         lodash

  Patched in      >=4.17.5

  Dependency of   web-component-tester

  Path            web-component-tester > lodash

  More info       https://nodesecurity.io/advisories/577

  Low             Prototype Pollution

  Package         lodash

  Patched in      >=4.17.5

  Dependency of   web-component-tester

  Path            web-component-tester > stacky > lodash

  More info       https://nodesecurity.io/advisories/577

  Low             Prototype Pollution

  Package         lodash

  Patched in      >=4.17.5

  Dependency of   web-component-tester

  Path            web-component-tester > wct-sauce > lodash

  More info       https://nodesecurity.io/advisories/577

  Low             Regular Expression Denial of Service

  Package         debug

  Patched in      >= 2.6.9 < 3.0.0 || >= 3.1.0

  Dependency of   web-component-tester

  Path            web-component-tester > mocha > debug

  More info       https://nodesecurity.io/advisories/534

  Low             Regular Expression Denial of Service

  Package         debug

  Patched in      >= 2.6.9 < 3.0.0 || >= 3.1.0

  Dependency of   web-component-tester

  Path            web-component-tester > polyserve > send > debug

  More info       https://nodesecurity.io/advisories/534

  Low             Regular Expression Denial of Service

  Package         debug

  Patched in      >= 2.6.9 < 3.0.0 || >= 3.1.0

  Dependency of   web-component-tester

  Path            web-component-tester > send > debug

  More info       https://nodesecurity.io/advisories/534

  Low             Prototype Pollution

  Package         deep-extend

  Patched in      >=0.5.1

  Dependency of   web-component-tester

  Path            web-component-tester > polyserve > command-line-usage >
                  table-layout > deep-extend

  More info       https://nodesecurity.io/advisories/612

  Low             Prototype Pollution

  Package         deep-extend

  Patched in      >=0.5.1

  Dependency of   web-component-tester

  Path            web-component-tester > polyserve > polymer-build >
                  polymer-bundler > command-line-usage > table-layout >
                  deep-extend

  More info       https://nodesecurity.io/advisories/612

found 15 vulnerabilities (8 low, 4 moderate, 2 high, 1 critical) in 5634 scanned packages
  15 vulnerabilities require manual review. See the full report for details.

I just checked npm install --save web-component-tester 6.7.1. The problem is only slightly improved:
found 13 vulnerabilities (7 low, 4 moderate, 2 high)

What is needed to help this move further?

I am working on this in #533

With<EMAIL_ADDRESS>there's only 2 low severity vulnerabilities left and both are from lodash 3. This can't be fixed without a breaking update to lodash 4. Consider using wct-mocha instead.


[C++] Overload UTF8StringToUTF16 and UTF16StringToUTF8 to accept string_views

Describe the enhancement requested
UTF8StringToUTF16 and UTF16StringToUTF8 accept const references as inputs. As @kou pointed out, we should overload these functions to also accept string_views.
Component(s)
C++

take


[Feature Request] Save status of WSL2 before restart windows

Since wsl2 uses hyper v, is saving status of wsl2 possible? Then I can continue to run program in wsl without stop even if I restart windows.
Since windows insider update is very often and I have to restart windows about twice a week, I hope I can restart windows without restarting programs in wsl.

It may be possible. There is an exported function HcsPauseComputeSystem() in computecore.dll which can pause/hibernate the utility VM that WSL2 uses.

Pause != saving state.
Short answer, no; you want Hyper-V. Long answer you might be able to off road it with Save-VM somehow, but there are probably nontrivial barriers to getting that working, because WSL != Hyper-V.

Any news about this feature? or is it something that can already be done? I googled this but found nothing.

@urkh I think ms want you to treat this vm called wsl2 as subsystem, not vm. So, do not expect this feature.

Same, this would be an awesome feature

Using windows terminal, I often have to run multiple nodes on multiple instances of the terminal with different env variable for work, it easily takes me 30 minutes to set up everything, knowing I will have to do it again the next day.
Saving the state of WSL could be lifechanging for this kind of situation


feat: make staleness check more robust

now we keep track of the mtime updated by the current process, and if we lose some cycles in the update process but recover and the mtime is still ours we do not mark the lock as compromised
closes #71
ref:
https://github.com/ipfs/js-ipfs-repo/issues/188#issuecomment-468682971

@hugomrdias CI is failing for some reason, can you also check that?

Feel free to merge! Don’t forget to add the (possible) breaking change in the commit message.

@hugomrdias do you mind doing git pull && npm install? I've resolved a conflict against master that might need the package-lock.json to be updated.

Ok this is working great for me! 👌


Couldn't save to the backend database

Error message as below even after I remove almost everything on the canvas.
Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.

@DonnaFang this is expected behaviour as your drawing is too big so you will need to save the drawing in local. You can check the nerd stats to see how big your canvas is

Thanks. Below is the stats. The problem is that even after I deleted my
work and then later start to draw again, soon the error kept happening. Do
you have any tip?
[image: image.png]
On Mon, Oct 30, 2023 at 10:58 PM Aakansha Doshi @.***>
wrote:

@DonnaFang https://github.com/DonnaFang this is expected behaviour as
your drawing is too big so you will need to save the drawing in local. You
can check the nerd stats to see how big your canvas is
[image: Screenshot 2023-10-31 at 11 27 26 AM]
https://user-images.githubusercontent.com/11256141/279272699-454c4d54-cef4-4ec2-b402-428a9dde44ae.png
—
Reply to this email directly, view it on GitHub
https://github.com/excalidraw/excalidraw/issues/7204#issuecomment-1786499828,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMYDGWFFRR42XOPGL4SEP4TYCCHOVAVCNFSM6AAAAAA6VRS37OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWGQ4TSOBSHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

For others with this issue, note that Excalidraw Support sent me the following response, indicating there is indeed a storage limit to free 'Live collaboration' pages, but Excalidraw Plus (paid) does not have a limit.
"The backend database we use on excalidraw.com has a 1MB limit — the excalidraw.com collab rooms are meant for quick collaboration with people, not for long-term storage 😇. There's no such limit on Excalidraw+.
Note that the Storage size shown in the screenshot relates to the local scene size, outside the collaboration room. We need to improve both the error, and the size shown in stats — for starters!"

@ad1992 I am now getting this same error with a practically blank drawing.

Second time it happens to me that I delete stuff (and check that indeed the saved JSON is less than 1MB), only to see the error remain, never to be able to fix it that room


fix article

/check-cla

/check-cla

@kondr57 Looks like you have got two github handles. You have to commit a PR using the ID for which the CLA was signed.

@kondr57 thanks for your contribution! 🎉 We really would love to have it, unfortunately to continue we need to have your (or your company's) signature on a CLA! For now I'm going to close this, but fret not! You can re-open whenever you have a chance. Thanks!
/close


CLOUD-55042 Flow simplification, simplify stack creation flow

@schfeca75 @mhmxs plz check

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2360/


Plist links in topics section should not be in code voice

Rationale: Plist links are being displayed in code voice in the topics section, which is misleading and inconsistent with how the same links are displayed on other sections of the page
Risk: Low
Risk Detail: Only affects plist links in the topic section; does not affect other types of pages.
Reward: High
Reward Details: Plist items will no longer be incorrectly displayed in code voice in the Topics section
Original PR: https://github.com/apple/swift-docc-render/pull/390
Issue: rdar://62751444
Code Reviewed By: @mportiz08
Testing Details: Tested manually in the browser and added relevant unit tests

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci test


Problem in new update 1.4

This message appears after a while from the start of the program :
Traceback (most recent call last):
File "duce.py", line 685, in main1
File "duce.py", line 518, in auto
File "duce.py", line 337, in affiliate_api
KeyError: 'primary_category'

can i get the course in which the error occured

can i get the course in which the error occured

From what I noticed, it's only happening on E-next's links, if I disable that website it works and no error is thrown.


Validate and WhenAsync do not work properly together

Hi,
I examined the issue #752 and found another bug. If user uses Validate method which belongs to AbstractValidator and WhenAsync together, none of the Rule(s) that ‘WhenAsync’ method is used work. As a result, issue #752 occurs.
I would like to offer some modifications for Validation method in PropertyRule.cs file. One solution can be that validation method is checked. If it is async, InvokePropertyValidatorAsync method is called. If it is not async, InvokePropertyValidator method is called.
Another solution can be that, Validation method in PropertyRule.cs file can be changed such that: return ValidationAsync(context, default(CancellationToken)).Result;. This second solution works as well. One positive affect of this solution is that Validation method in PropertyRule.cs file is run from a single operation.
If you offer another solution, I would like to try to implement it.
(Test Case)

public class DummyClass
{
    public string XValue { get; set; }
    public string YValue { get; set; }
    public string ZValue { get; set; }
}

public class DummyValidator : AbstractValidator<DummyClass>
{
    public DummyValidator()
    {
        RuleFor(obj => obj.XValue).NotNull().WhenAsync(obj => Task.Run(() => obj.YValue != null));
        RuleFor(obj => obj.ZValue).MustAsync((z, t) => Task.Run(() => { return !string.IsNullOrEmpty(z); }));
    }

    private bool ValidateZ(string z)
    {
        return !string.IsNullOrWhiteSpace(z);
    }
}

[Test]
public void TestCase()
{
    DummyClass order = new DummyClass();
    DummyValidator orderValidator = new DummyValidator();

    var validateAsyncResult = orderValidator.ValidateAsync(order).Result;
    var validateResult = orderValidator.Validate(order);

    Assert.AreEqual(2, validateResult.Errors.Count);
    Assert.AreEqual(2, validateAsyncResult.Errors.Count);
}

Hi, thanks for this.
The first solution is better. The second solution (wrapping the async method in a synchronous call) is generally considered bad practice. Having 2 methods is a better approach.
I’ll also point out that if you have async calls in your validator you should always be invoking ValidateAsync on your root validator, not Validate.

Hello,
The line introduced with this fix now causes async deadlocks:
https://github.com/JeremySkinner/FluentValidation/blob/976b198207b9e6b53b07af46bc21af203b0712a0/src/FluentValidation/Internal/CollectionPropertyRule.cs#L103
The issue appeared after updating FluentValidation from 7.5.0 to 7.6.0.
Observed in the following circumstances:

Validator for an item is passed to RuleForEach()
The validator has overridden ValidateAsync method from where a DB call is made
Right after DB query is issued the execution never returns, the thread hangs forever

The described conditions are a bit weird and under refactoring at the moment extracting the data loading responsibility out of the validation flow.
Thank you!

Thanks, yes that's definitely a regression. Tracking in #779.


Move jQuery files to vendor subdirectory

This was discussed in #4577.  This will hopefully make it more clear which files are independently maintained outside of Django.

You may squash the commits and could you please also add the 1.9 release note in "backwards incompatible changes"?

Did CI fail because of rebase?

Just the occasional Jenkins / Github hiccups, @oinopion

Merged (with a negligible edit of the commit message) in 788071e.


Need to fully implement an image component to use for image lists

Description:

The wxToolbook will require a wxImageList, and there are other controls that would definitely benefit from it. We do have a "image" node type declared, but no compinfo class any more. We need to recreate this component and allow it as unlimited children for components that need multiple images. We can then have the parent component generator parse those children and create an image list from them.

Adding this to the 1.1 milestone because this needs to be checked out to see if it's needed for the new python, lua and php code generation.

Not needed for wxPython, and the other languages were dropped. Postponed to a 1.x release.

wxToolBook supports a bundle_list for multiple images. I think the current code generation for all three languages now generated image lists as needed.


Error in LSRegisterURL: -10811

whenever i try to start the discord rpc it gives me this error
Error in LSRegisterURL: -10811

does anyone know how to fix this?
(I'm on macos/darwin)

Duplicate of #33


[chores] Added css for object-tool button

I found css used for object-tools is enough when buttons are used so added some more changes

Coverage remained the same at 98.4% when pulling 22e653eeb557464565d30c556ac1d0a98eb5e7f9 on new-theme/fix-object-tool-buttons into 501475e3089bcb91e47d03ddbb5dad91605fb950 on master.


[Regression from v2.2+] Returning an input element in render function fails two-way binding

Version
2.5.13
Reproduction link
https://codepen.io/leonfu103/pen/YevXbX
Steps to reproduce
Write a functional component with a render function that returns an input element, and a 'clear' button to clear the value of the input element
What is expected?
The two-way binding on the returned component should work as on the html input element.
What is actually happening?
If you click on the 'clear' button, it doesn't clear the value of the input element.
But if you use older version of Vue (older than V2.2.0, e.g V2.1.10) it works OK.

You just forgot the prop value in your component 🙂

@posva Do you mean add props: ['value']? It will warn about Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "value".
And, change Vue to version 2.1.10 really works well without adding props: ['value'].

Of course, they also need to remove the self.value = event.target.value 😄
They were not using v-model correctly

Then can you please update your document https://vuejs.org/v2/guide/render-function.html#v-model as I copied the code from there straight away @posva.

Done! Don't forget you can also do it, it is a nice contribution 🙂


Add onEdit action when we start editing

@swastik Not trying to rush, but any ETA on a merge for this?

Sorry, I totally missed it! Merged now, I'll release in a few hours. 🙂

@swastik - awesome! thank you!


varchar(max) panics on makeslice: len out of range

Hello,
I love this library. But I have a little issue with varchar(max). When I try to execute a statement on a table that has varchar(MAX) defined column, gofreetds crashes with this stacktrace:
panic: runtime error: makeslice: len out of range

goroutine 35 [running]:
github.com/minus5/gofreetds.(*Conn).fetchResults(0xc8200dc0d0, 0x0, 0x0, 0x0, 0x0, 0x0)
        [...]/Godeps/_workspace/src/github.com/minus5/gofreetds/fetch.go:50 +0x6a5
github.com/minus5/gofreetds.(*Conn).exec(0xc8200dc0d0, 0xc82017a000, 0x597, 0x0, 0x0, 0x0, 0x0, 0x0)
        [...]/Godeps/_workspace/src/github.com/minus5/gofreetds/conn.go:276 +0x1be
github.com/minus5/gofreetds.(*Conn).Exec(0xc8200dc0d0, 0xc82017a000, 0x597, 0x0, 0x0, 0x0, 0x0, 0x0)
        [...]/Godeps/_workspace/src/github.com/minus5/gofreetds/conn.go:214 +0x6e
github.com/minus5/gofreetds.(*Conn).ExecuteSql(0xc8200dc0d0, 0xc820168000, 0x2ce, 0xc8200e2200, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
        [...]/Godeps/_workspace/src/github.com/minus5/gofreetds/executesql.go:30 +0x679
// ...

Which is caused by the last line of this:
// fetch.go line
			col := &columns[i]
// ...
			col.size = int(size)
// ...
			col.buffer = make([]byte, size+1)

Why is there that "+1" and why we need to preallocate the memory before the data are read from the connection? I don't know how freetds works, but doesn't it know the data size in advance?
I tried to avoid this issue by not using varchar(max), but now I have to use database which I cannot change.
Tested on latest rev. (0594db19), go 1.5.1 darwin/amd64.
Maybe it has something in common with #25 ?

Thanks, NoICE.
For varchar(max) this line:
size := C.dbcollen(conn.dbproc, no)

returns<PHONE_NUMBER>. Adding one to int32 results in negative number, and the slice allocation panics.
Fixing this in: https://github.com/minus5/gofreetds/commit/c14e66f7a5f44595c1eeadcf872f29b711e895ff

Hello and thanks! But isn't limiting to 8k a little too much restraining? I mean, there are many people who have texts in their databases. I did a query for max length of data column present in a table which uses varchar(max) and the largest one was 32k.
I'm currently exploring the option of use dbdatlen() (http://www.freetds.org/reference/a00341.html#gae666d141533126babb0235af21bdca0f) freetds function, but freetds is new to me and I don't know if it returns this thing different for each row and if I can all dbbind for each row...


Restore release pipeline

Currently the release pipeline is disabled (well it just echoes a "build") as we were reworking the artifacts.

Re-enable the pipeline build_all target and release jobs to release the created artifacts on new tag

No idea what we would release as part of elemental...maybe the docker image built? A text file containing the links tot he docker images released?
Note that the official release comes from OBS, not from github so maybe we dont release stuff, only tag points in time?

IMHO a release of Elemental Teal should encompass essentially three elements:

Elemental Teal OS image version X. This is based on or it includes:

Elemental-toolkit version Y
Elemental-operator version Z

IMHO the release page of this repo should not include any binary, just links to the registry fro OS Image version X and links to the appropriate releases of elemental-toolkit and elemental-operator.
The challenge here is how sync all this and make it automated, specially given the fact this includes OBS builds... 🤔
@rancher/elemental what you think? does it makes sense.

The discussion is moved on #361


build new container [unstable_identity]

use our jsx builder tools to build new container
make sure following is in

mdbooks (can be apt install or rust build)
zola (see https://github.com/getzola/zola, build with rust)
micro editor (golang build or apt install)

all on [unstable_identity]

use syncer to sync to central server then build

push the new container

Moving to blocked because unstable_identity not ready yet.

@despiegk pushed a new image already.


[BUG] Indexing problem with latest 3.1.0 builds

(ATEM Constalletion HD 4 M/E)
Thanks to the use of variables and triggers, i've designed (and currently use) a single page to assign source to my ouputs.
Everything was working fine untill the latest versions of builds past 3.1.0+5771.
To quickly explain how it works : I'm using variables that gets increment or decrement based on two navigationnal buttons (left & right arrows as shown below)

A trigger also computes the max and min values in order to get the loop right between the 24 outputs available on this particular ATEM (4 M/E Constellation HD).
So when the variable is superior to 24 it is changed to 1 and when it's inferior to 1 it is changed to 1.
So far so good.
As shown on the pictures below  the texts displayed under the white arrows are correct.
On output 1 previous page is 24, next page is 2 (as seen on the previous picture).
On output 24 previous page is 23, next page is 1 (as seen below).

I'm using the same "trick" to shift my input values in order to get access to the other available inputs, M/Es, CleanFeeds, SuperSources... etc. etc. Of course I'm using a different set of variables, triggers and commands.

Everything is working fine. Sources are correctly routed
BUT From 3.1.0+5862 to the current +5866
Indexes get wrong.

For some reason the triggers ignore the <1 or >24 conditions.

Shifts are also impacted with variables being wrongly increased or decreased.

Variables got 0 and 25 values where the triggers should avoid and reassign them to be 1 and 24.
Is this a bug of some kind in the newer builds or a wrong usage of both variables/triggers I'm using ?
Thanks in advance for any troubleshooting and/or solution to this weird situation.

Are you using the ME: One ME program source from variables and ME: One ME preview source from variables feedbacks here? There was a bug fixed recently where the me input field was off by one compared to every other action and feedback.
I need to re-read this later when I can think better, maybe I will have other ideas then.
Do you know what version you were using which worked?

Hello Julian, thank you for your response.
Indeed I'm using "Aux/Output: Set source from variables".
But it appears that it's not the problem.
It seems that variables and triggers are not being computed correctly.
I'm just using a set of variables and triggers in order to display and navigate.
In instance for the right arrow (button 4.31):
Button text string :
$(internal:custom_OutputNumNextPage)
Actions
internal: Custom Variable: Set with expression
Custom variable : A custom variable (OutputNum)
Expression: $(internal:custom_OutputNum)+1
(No other action, step, feedback)
On its change, the custom variable is then monitored by a trigger. Said trigger looks if the variable is >24 or <1 (strictly inferior or superior). But from +5862, it seems the triggers are not correctly computing/monitoring their designated variables.
And It's working fine with +5771.

Do you know what version you were using which worked?

As stated above it's working fine with 3.1.0+5771. Beyond this build (from +5862) it is not working correctly.

Also, I generally wouldn't recommend running the experimental 3.1 builds. They are where we put some upcoming but not very tested changes, and lag behind the beta 3.0 builds on module updates and bug fixes

And you're 100% right.
We're not using this for critical live shows.
It's done to test new features, experiment new things.
In this case we could use it in live production. By navigating past the wrong variables and circling around  we're able to get the proper informations displayed. It's just the 0 and 25 that are incorrectly computed by the triggers. As if the operator "strictly" was ignored for some reason.

OK, I think this is a core bug rather than this module.
By doing:

The variable will sit at 3 which is out of bounds of the condition. This was caused by https://github.com/bitfocus/companion/commit/671e327fa0b311acf54794f30fead158ca32c8dd, with the debounce causing the event to fire, then some ms the condition would become true. Meaning that when the event fired the condition would always be for the previous run.

This should be fixed in the latest beta/develop builds

Great. Many thanx Juliusan !


ATTITUDE_QUATERNION: fill repr_offset_q for tailsitters

This is a follow up for the MAVLink update https://github.com/mavlink/mavlink/pull/1247.
A new field repr_offset_q was added to the message ATTITUDE_QUATERNION to indicate that the attitude have to be rotated before it is displayed to the user.
This is useful for example for tailsitters, which rotate their reference frame by 90 between hover mode and fixed wing mode. This leads to discontinuities in the euler representation (see screenshots in the MAVLink PR).
With this new field, a correct attitude can be displayed in QGC in both modes.
fixes #10405
partially fixes #9179

I rebased to master (mavlink has been updated elsewhere)


⚠ Turnos 24x7 has degraded performance

In 6443688, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 936 ms

Resolved: Turnos 24x7 performance has improved in bf6af18.


[Datafusion] Support joins on TimestampMillisecond columns

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11940
Joining DataFrames on a TimestampMillisecond column gives error:

'called `Result::unwrap()` on an `Err` value: Internal("Unsupported data type in hasher")

arrow/rust/datafusion/src/physical_plan/hash_join.rs:252:30

'

Same issue to me:
When the join condition is c3=c3, there will be no problem, but c1=c1 or c2=c2 will cause panic.
Panic:
> select * from (select * from public.simple as a join (select * from public.simple as b) on a.c3=b.c3 where a.c1>0) join (select * from public.simple as d) on a.c2=d.c2 order by a.c1;
thread 'thread 'tokio-runtime-workertokio-runtime-worker' panicked at '' panicked at 'called `Result::unwrap()` on an `Err` value: Internal("Unsupported data type in hasher")called `Result::unwrap()` on an `Err` value: Internal("Unsupported data type in hasher")', ', datafusion/src/physical_plan/hash_join.rsdatafusion/src/physical_plan/hash_join.rs::583583::1414

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Internal("Unsupported data type in hasher")', thread 'datafusion/src/physical_plan/hash_join.rstokio-runtime-worker:' panicked at '583called `Result::unwrap()` on an `Err` value: Internal("Unsupported data type in hasher"):', 14datafusion/src/physical_plan/hash_join.rs
:583:14
++
++

Table info:

> show columns from public.simple;
+---------------+--------------+------------+-------------+-----------+-------------+
| table_catalog | table_schema | table_name | column_name | data_type | is_nullable |
+---------------+--------------+------------+-------------+-----------+-------------+
| datafusion    | public       | simple     | c1          | Float64   | NO          |
| datafusion    | public       | simple     | c2          | Float64   | NO          |
| datafusion    | public       | simple     | c3          | Boolean   | NO          |
+---------------+--------------+------------+-------------+-----------+-------------+

Query plan:

> explain  select * from (select * from public.simple as a join (select * from public.simple as b) on a.c3=b.c3 where a.c1>0) join (select * from public.simple as d) on a.c2=d.c2 order by a.c1;
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| plan_type     | plan                                                                                |
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| logical_plan  | Sort: #a.c1 ASC NULLS FIRST                                                                                |
|               |   Projection: #a.c1, #a.c2, #a.c3, #b.c1, #b.c2, #b.c3, #d.c1, #d.c2, #d.c3                                                                                |
|               |     Join: #a.c2 = #d.c2                                                                                |
|               |       Projection: #a.c1, #a.c2, #a.c3, #b.c1, #b.c2, #b.c3                                                                                |
|               |         Join: #a.c3 = #b.c3                                                                                |
|               |           Filter: #a.c1 > Int64(0)                                                                                |
|               |             TableScan: a projection=Some([0, 1, 2])                                                                                |
|               |           Projection: #b.c1, #b.c2, #b.c3                                                                                |
|               |             TableScan: b projection=Some([0, 1, 2])                                                                                |
|               |       Projection: #d.c1, #d.c2, #d.c3                                                                                |
|               |         TableScan: d projection=Some([0, 1, 2])                                                                                |
| physical_plan | SortExec: [c1@0 ASC]                                                                                |
|               |   CoalescePartitionsExec                                                                                |
|               |     ProjectionExec: expr=[c1@0 as c1, c2@1 as c2, c3@2 as c3, c1@3 as c1, c2@4 as c2, c3@5 as c3, c1@6 as c1, c2@7 as c2, c3@8 as c3]                                                                                |
|               |       CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |         HashJoinExec: mode=Partitioned, join_type=Inner, on=[(Column { name: "c2", index: 1 }, Column { name: "c2", index: 1 })]                                                                                |
|               |           CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |             RepartitionExec: partitioning=Hash([Column { name: "c2", index: 1 }], 8)                                                                                |
|               |               ProjectionExec: expr=[c1@0 as c1, c2@1 as c2, c3@2 as c3, c1@3 as c1, c2@4 as c2, c3@5 as c3]                                                                                |
|               |                 CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |                   HashJoinExec: mode=Partitioned, join_type=Inner, on=[(Column { name: "c3", index: 2 }, Column { name: "c3", index: 2 })]                                                                                |
|               |                     CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |                       RepartitionExec: partitioning=Hash([Column { name: "c3", index: 2 }], 8)                                                                                |
|               |                         CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |                           FilterExec: c1@0 > CAST(0 AS Float64)                                                                                |
|               |                             RepartitionExec: partitioning=RoundRobinBatch(8)                                                                                |
|               |                               CsvExec: source=Path(/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv: [/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv]), has_header=false |
|               |                     CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |                       RepartitionExec: partitioning=Hash([Column { name: "c3", index: 2 }], 8)                                                                                |
|               |                         ProjectionExec: expr=[c1@0 as c1, c2@1 as c2, c3@2 as c3]                                                                                |
|               |                           RepartitionExec: partitioning=RoundRobinBatch(8)                                                                                |
|               |                             CsvExec: source=Path(/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv: [/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv]), has_header=false   |
|               |           CoalesceBatchesExec: target_batch_size=4096                                                                                |
|               |             RepartitionExec: partitioning=Hash([Column { name: "c2", index: 1 }], 8)                                                                                |
|               |               ProjectionExec: expr=[c1@0 as c1, c2@1 as c2, c3@2 as c3]                                                                                |
|               |                 RepartitionExec: partitioning=RoundRobinBatch(8)                                                                                |
|               |                   CsvExec: source=Path(/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv: [/Users/francisdu/Code/Rust/arrow-datafusion/datafusion/tests/aggregate_simple.csv]), has_header=false             |
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I want to participate in fixing this problem, can you provide some help. 😊

Thanks for the report @francis-du !
This search can help you find the relevant code: https://github.com/apache/arrow-datafusion/search?q=Unsupported+data+type+in+hasher
The two locations that create that error are :
https://github.com/apache/arrow-datafusion/blob/65483d32f6ee86766bb74988659bb51142a4edff/datafusion/src/physical_plan/hash_join.rs#L789
https://github.com/apache/arrow-datafusion/blob/65483d32f6ee86766bb74988659bb51142a4edff/datafusion/src/physical_plan/hash_utils.rs#L507
To begin debugging I would suggest:

Write a test in sql.rs or exec.rs showing the problem
Figure out which of the two instances are being hit and then add the appropriate fix (I wonder if your data somehow has Timestamp(Milliseconds, Some(..) (aka some timezone information?)

@alamb Thanks for your help, I try to fix it.


Node not recognized in normal CMD

I've followed the instructions:
Delete all previous versions of nodejs and clear Npm folders
Install NVM
open Admin CMD
nvm install 12.22.12
nvm use 12.22.12
I get the message that I'm now using 12.22.12
When i open a normal CMD it doesn't work, node -v returns no node installed
I am using windows 11, and latest version of the NVM
Earlier I got the issue when I installed 18.15.0, I could not switch away from it, although i had 12.22.12 installed with nvm, in admin it switched and normal it didnt.

You should be able to run node -v and get a response, but you cannot run nvm use ___ without elevated/admin privileges. Windows requires these permissions to create or modify a symlink. The nvm use command just modifies the symlink, so it's important to have the appropriate permissions. If you cannot even run node -v, then you'll need to check the PATH of the specific user account. See this for details.
If you're using the latest version of NVM (1.1.10), you should see the UAC prompt requesting elevated permissions to run nvm use.

@konieckropka NVM_HOME and NVM_SYMLINK cannot be the same value. NVM_HOME is the installation root for NVM for Windows (i.e. where nvm.exe is installed). NVM_SYMLINK is the location where Windows will look for node.exe. NVM4W manages the symlink for you, but you have to specify the location. This should have been done in the installation.
Here's an example (v1.1.11 is not released yet, but it shows how the highlighted values should be different).

I'm getting the same now after using the updater app to upgrade from 1.1.9 to 1.1.11. nvm list still shows that I have 2 node versions installed.

@JacquesDoubell post the output of nvm debug.

@coreybutler Already uninstalled and reinstalled nvm to fix it. Sorry.

Uninstalling Node and leaving nvm installed solved the issue.

Closing since this appears to be resolved for folks.


Improve "not recommended for large number of consumers" message

Resolves #524

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

Please sign the CLA, close and reopen PR, and rebase off master.

@patelh should be good


Typo in dotnet command on Wiki page

Tool version
Current version of the Azure Naming Tool you are running.
Describe the bug
On Wiki page for this project in section 5. Enable GitHub Action in Notes there is typo in command dontnet AzureNamingTool.dll  (dontnet) and it should be dotnet AzureNamingTool.dll
To Reproduce
Nothing to do to reproduce
Expected behavior
After fix, web application is loading as expected.
Installation Method
Following installation method used.
Additional context
If you will fix it, I do believe it will save some troubleshooting to people like me, who just copy paste that command and do not read it :) Thank you.

Thank you, @filipvagner!  I've updated the documentation with the correct command.
-Bryan


I meet some problems when i run 'python main.py' about "from tfsnippet.scaffold import VariableSaver"

It cannot run because of "ImportError: cannot import name 'VariableSaver'". And I cannot find VariableSaver in tfsnippet.scaffold

It's only available in 0.2.0.alpha1.


Write tests for GROOVY-7968

Write tests for issue:
A field and a property with the same name aren't flagged as a duplicate
https://issues.apache.org/jira/browse/GROOVY-7968

Compilation is now expected to fail if class has any fields or properties with duplicate names.


Update interesting people sidebar block

Use steem API to get interesting people based on description here: https://trello.com/c/Ag4M0Qlg/144-user-profile-intersting-people-box

Can we render only username (dont need to call getAccounts to get description) with a limit of 5?
This PR should change interesting people from user profile page, we should not change interesting people box on others pages. You can create 2 differents components. One called "Intersting People" that we have already in current busy version with refresh icon. And another one "Recommended" that you are doing now.

Layout of interesting people should be same before:

Also the request is sent 2 times if you are logged and open a user profile from new tab

Make sure not to lose changes made in #893 when merging.

@bonustrack @Sekhmet Just merged and got latest changes from new-design (as in https://github.com/busyorg/busy/pull/893)
This should fix: https://github.com/busyorg/busy/issues/904

Quick question - should you be making a network call (i.e. steemAPI.getBlogAuthorsAsync) from within a component? The typical approach I've seen in this app, since we're using Redux, is to dispatch actions that make use of the Redux state tree to feed in data.
I'm newer to the codebase so maybe there's something I'm missing, but that stands out to me. user/userActions.js is a good example that also makes use of steemAPI but with this approach.

Actually a little more to say here:

Could you please update the description with a summary of what's in the Trello card? Those of us not on Trello won't have full context for this issue

This feature likely needs the same treatment I just gave to the without-api version of Interesting People - don't display people in the list that the user already follows. I'm checking out the app on your branch for someone I follow and it looks like this:

Following up on above, the first place I viewed this feature was on my own page and, as you'd expect, everyone in that list is someone that I follow. I think we should display the original Interesting People module on the user's own page.

@ryanbaer good question, I figured since this is a standalone component, and can be separated away from the entire app state. I think it is fine to make API calls within the component. It might be a heavy load to go through the reducers just for a simple block component. The same thing is done in PostRecommendation component

@ryanbaer

updated description with the contents of trello card
good point, with displaying the original InterestingPeople component on the users own page, I'll add it in

Thanks for those updates - much appreciated.
I've thought about and done some reading on the network request from the component. Personally, I feel that since the app primarily functions with Redux, we should keep all application state in the state tree. This was also the general impression I got from reading issues on the redux repo (i.e. Question: How to choose between Redux's store and React's state? )
The co-creator of redux (Dan Abramov) said the following:

Use React for ephemeral state that doesn't matter to the app globally and doesn't mutate in complex ways. For example, a toggle in some UI element, a form input state. Use Redux for state that matters globally or is mutated in complex ways. For example, cached users, or a post draft.

It's not a strict rule. There are always exceptions, but in our case, I'd consider the interesting posts and and interesting users to be application state rather than ephemeral UI state.
And either way, from the perspective of contributors, I think it's important we clarify when state should be managed by Redux versus dropping it down into the individual components.
I know it is a little more work to setup action creators, etc., but I personally think we should stick to the paradigm that's present throughout the rest of the app.
I'd like to hear from others on this as well, like @bonustrack and @Sekhmet.
I'm open to the idea of managing state in components if there's a solid argument for it, but I think it'd be good to setup guidelines on when each approach should be applied.

As an aside, I also wanted to say I'm looking forward to this feature being merged in. I think it helps to enhance the network effect on Busy by allowing you to be introduced to "Related People" in a sense. Nice work on getting it in.

When page is loading i will see this:

It feel like the loading is complete and little bit confusing. There should be either a loading or the component completely loaded with users visible but not empty component.

@ryanbaer You make a valid point, but the reason why I think interesting posts and interesting people should be in its own React state is that the data for them is always rapidly changing, when navigating between the different users.
Heres a few questions when determining what kind of data should be put into Redux (taken from https://spin.atomicobject.com/2017/06/07/react-state-vs-redux-state/):

Do other parts of the application care about this data?
Do you need to be able to create further derived data based on this original data?
Is the same data being used to drive multiple components?
Is there value to you in being able to restore this state to a given point in time (ie, time travel debugging)?
Do you want to cache the data (ie, use what’s in state if it’s already there instead of re-requesting it)?

For this specific component, here is how I would answer these questions:

No the application is completely separated from this component, the InterestingPeopleWithAPI component is dependent to each /user page. The original InterestingPeople is not specific to each /user page, it's more specific to the current user, that's why it should be in the redux state
Nope
Nope
Maybe, for caching the data, so you don't have to make another request, just check to see if data is already present
The data set is specific to each /user page, so caching it might be good, but the data might be changing since we want to get the top reblogged users for each user.

When i open the page i can see the right sidebar empty for few seconds. There should be a loading instead:

All fair points @jm90m, thanks for looking into it as well. You're helping me to see what's about preferences here - I really prefer lifting state into a single location in the Redux store, and having components be dumb (i.e. decoupled from the logic of how the data is produced). Tell me if this isn't right, but it sounds like you prefer to keep components isolated to their concerns when it's possible, i.e. the only place we're currently making use of interesting people and interesting posts is in the respective components.
Another question on this PR: now that I'm looking at your network call in the component - should your call have a .catch to respond to any possible errors on your request as well? And maybe that simply prompts the noUsers: true that you set in other cases. In this case. Alternatively, I guess you could avoid doing a catch handler if you set noUsers default to true, but that would change your logic around a bit.
Also I saw that you added a filter for already followed users, which is awesome. When I suggested it, it didn't occur to me that accomplishing that means we have to forfeit the limit on the network request, effectively always retrieving the user's entire blogAuthors list to increase the probability that we can find 5 users not already followed. If that list is incredibly long for some users, it could take a while to load, but I think feedback from the community will be a good driver of tackling that issue.
Thanks for the discussion and the great PR. Excited to have this feature live.

@ryanbaer yeah I think it's all a matter of preference, but I do prefer to keep components isolated within themselves, if they don't affect the entire app. But I'm actually looking into refactoring this PR, to try to move it over to the state (I will test to see which is more performant) and just use one component for InterestingPeople. Good point on the .catch clause, I will make sure to add that whether I decide to keep it within the component / move it over to redux. Thanks for your feedback :)

@ryanbaer Actually I've been trying to refactor it for the past few hrs, I think having theblogAuthors in the redux state will just overcomplicate it. Going to keep it 2 components for now. And see what other people think.


DeployStudio fails to build NBI from booted volume.

@pexner reported an error where the DeployStudio workflow will fail at the end without any error information. The current debug logging is not enough to determine the error.
I've added verbose logging to all build scripts in this build, download and try to build a DS NIB on the affected system and post the logs here so we can find what's causing the failure.
I've tested building on a freshly imaged machined without problems, so haven't been able to reproduce.
NBICreator.zip

Closed as the user with these problems could not reproduce


FeatureLayer geometry filter?

ArcRest or ArcRestHelper
Hi was recommended to post my question here also https://geonet.esri.com/message/612026?et=watches.email.thread#comment-612026
Basically I'm just after sample code on the most efficient way of using a geometry obtained from a feature layer query operation and plugging that in to a subsequent feature layer query as a geometry filter.

Here is an example:
import arcrest
if __name__ == "__main__":
    fl_url = "https://site.com/arcgis/rest/services/reference/adminboundaries/FeatureServer/0"
    token_url = "https://site.com/arcgis/admin/generateToken"
    org_url="https://sitecom/arcgis"
    username = "admin"
    pw = "some password"
    where = "ISO_CC = 'US'"
    sh = arcrest.AGSTokenSecurityHandler(username=username,
                                         password=pw,
                                         org_url=org_url,
                                         token_url=token_url)
    fl = arcrest.ags.FeatureLayer(url=fl_url,securityHandler=sh)
    fs = fl.query(where=where)
    print ("Found %s features with the where clause: %s" % (len(fs), where) )
    if len(fs.features) > 0:
        feature = fs.features[0]
        geom = feature.geometry
        geomFilter = arcrest.filters.GeometryFilter(geomObject=geom)
        result = fl.query(where=where, geomtryFilter=geomFilter, as_json=True) # set as_json=False for the featureset object
        print ("Found %s features with the where clause: %s and geometry filter" % (len(result['features']), where) )```


Frontend Project "Project_Tracking_Intro_Component" Homepage Buttons Styling

Title and Issue number
Frontend Project "Project_Tracking_Intro_Component" Homepage Buttons Styling
Close #3667
Output
Before

After

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md

@MohitGupta121 Kindly review this pull request.

@MohitGupta121 Kindly review this pull request so that I can work on other issues.

@iamRabia-N please resolves conflicts

@MohitGupta121 Done with resolving conflicts. You can review now.


Race Condition in Upload command

When uploading files with a fast enough sleep time sometimes, the handle won't be closed in time before the next chunk arrives to the agent:
Failed to process message.System.IO.IOException: The process cannot access the file 'C:\Users\myuser\Desktop\Athena.exe' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at Agent.Plugin. (Byte[], String)

Likely cause is chunks arriving quicker than the handle is able to be closed by the OS, need to add some locking or waiting to fix

Fixed in latest release


Home page rework

This is a benchmark review for experiment review_of_reviews.
Run ID: 2024-04-04T10-53-24/v1.16.0-60-gbc7b4c61d-dirty/c84c73.
This pull request was cloned from https://github.com/fairdataihub/fairdataihub.org/pull/615. (Note: the URL is not a link to avoid triggering a notification on the original pull request.)


Github Action BuildX

Hi,
Does anybody have an example of using test containers with Github and the BuildX plugin.
I have been attempting to do the following GH action:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Docker Buildx
        uses: docker/setup-buildx-action@v1
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          push: true
          platforms: linux/amd64
          allow: "security.insecure,network.host"

This fails though on the testcontainers part as I cant see how to tell Github actions to pass the docker.sock through?
Thanks
Mark

buildx is a Docker CLI plugin for extended build capabilities with [BuildKit](https://github.com/moby/buildkit). From https://github.com/docker/buildx
Read this comment


Rewrite the WebJob to remove references to System.Drawing

There is a potential issue with System.Drawing where there could be a memory leak. We should rewrite this to use the recommended image resize library

Fixed in d8e790489f414b438b0102d1c334364ed0148aa2


Typst Universe publishing

This is a feature request/discussion. Since discussions are not enabled, I am posting it here as an issue.
To simplify the process and the ease of use for our students, it would be interesting to publish this template on Typst Universe.
I would love to use this template in an "out-of-tree" fashion by importing it like this (or similar):
#import "@preview/hei-template-thesis:1.0.0": typst-thesis

This would allow me to have my own repo with my documentation, without having all the files linked to the template (out-of-tree fashion). It should work out of the box for the students as well.

I'm working on it


Calling methods made easy

I have improved call_method method and generated functions that they accept generic parameter T in that response will be serialized. Also I have updated example.

I imagine serde_json is not needed at all in the examples then?

Yes, it is. I have fixed it.

You'd probably want to remove it from README.md lines 31-36 and line 74 as well :wink:

You'd probably want to remove it from README.md lines 31-36 and line 74 as well wink

Ok, it's done! :)


Update README.md

changed the '!' at the end of line 51 to '.'

this change feels entirely unneccessary


update circle ci

@conda-forge-admin, please update circle

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I updated the circle-ci deploy key and followed the project.


added the mongodb poc work

added the create, find and delete of records
Tasks description
### Related Issues
- [ ] #226

Solution
### Tasks
- [ ] first done with poc
- [ ] modularize and abstract the working into some interface and member function
- [ ] then complete the addition

Note to reviewers

[ ] Ran Tests locally
[ ] Checked Contribution's guidelines

@dipankardas011
Look into modelling data and different models for each collection. Reference this: https://www.mongodb.com/blog/post/quick-start-golang--mongodb--modeling-documents-with-go-data-structures
Better than directly interacting with documents.

@dipankardas011
Look into modelling data and different models for each collection. Reference this: https://www.mongodb.com/blog/post/quick-start-golang--mongodb--modeling-documents-with-go-data-structures
Better than directly interacting with documents.

Thanks for sharing

@prateek041 you can try out the latest poc

I had tested it using the mongodb cloud (free tier)


Issue with Manim Interactive Mode in Sublime Text Workflow

I am trying to use Manim with Grant Sanderson's "Sublime Text" workflow. I have done the following setup:

Installed Terminus: I installed Terminus via Package Control to enable the terminal within Sublime Text.
Copied custom command files: I copied the files from the sublime_custom_commands subdirectory in the repository to the
Packages/User/ directory in Sublime Text.
Set up key bindings: I configured the shift+super+r key binding in Sublime Text to run the manim_run_scene command.

However, when I press shift+super+r, instead of seeing "interactive mode at that point of the scene," only "untitled" is displayed, and I also see the message "using gpu buffer for window" in the console.
Questions for troubleshooting:

Why does only "untitled" appear when running the manim_run_scene command instead of "interactive mode"?
Is the console error message "using gpu buffer for window" related to this issue, and are there any additional steps required to resolve it?

Environment
OS System:  macos Monterey(12.7.6)
manim version:  manimgl(1.7.1)
python version: 3.12
**sublime text3(3211)

"It seems like it was an issue with the Sublime settings. Thank you!"


Keeping a DbContext open overtime eventually slows down SaveChanges()

As part of trying to re-engineer my application to combat GC collections, I've come across what I consider to be an EFCore performance degradation.
My scenario is a pretty much insert-only application, where I completely disable change tracking and set AutoDetectChangesEnabled = false.
Here's the code I'm using the in-memory database to prove my point...
When I run the benchmark program I've written (dotnet run -c release fast) while constantly creating and disposing the DbContext objects I get a very consistent time for SaveChanges() which is around 4-6ms per 1000 entities saves.
When I run the benchmark in the "slow" mode (dotnet run -c release slow) where a single DbContext is preallocated and used throughout the test, the time for SaveChanges() gradually increases over a few hundred cycles and reaches tens of millieseconds within a few hundred cycles... The expectation is that the reuse of the same DbContext instance would be better for performance, but in fact it causes a pretty severe degradation. It would seem as though there's some sort of resource leakage even after SaveChanges() is called.
Steps to reproduce
Here's the small test I've come up with:
class Program
{
    static void Main(string[] args)
    {
        if (args[0] == "fast")
            Fast(args);
        if (args[0] == "slow")
            Slow(args);
    }

    static void Slow(string[] args)
    {
        using (var ctx = new BlogContext())
        {
            ctx.Database.EnsureDeleted();
            ctx.Database.EnsureCreated();
            ctx.ChangeTracker.QueryTrackingBehavior    = QueryTrackingBehavior.NoTracking;
            ctx.ChangeTracker.AutoDetectChangesEnabled = false;

            var sw = Stopwatch.StartNew();
            var cycle = 1;
            while (true)
            {
                PumpIntoDB(ctx, sw, cycle++);
            }
        }
    }

    static void Fast(string[] args)
    {
        using (var ctx = new BlogContext())
        {
            ctx.Database.EnsureDeleted();
            ctx.Database.EnsureCreated();
        }

        var sw = Stopwatch.StartNew();
        var cycle = 1;
        while (true)
        {
            using (var ctx = new BlogContext())
            {
                ctx.ChangeTracker.AutoDetectChangesEnabled = false;
                ctx.ChangeTracker.QueryTrackingBehavior    = QueryTrackingBehavior.NoTracking;

                PumpIntoDB(ctx, sw, cycle++);
            }
        }
    }

    static void PumpIntoDB(BlogContext ctx, Stopwatch sw, int cycle)
    {
        foreach (var i in Enumerable.Range(0, 1000))
            ctx.Blogs.Add(new Blog() {Author = $"dans{i}"});

        sw.Restart();
        ctx.SaveChanges();
        var saveChangesAdd = sw.ElapsedMilliseconds;
        Console.WriteLine($"Cycle {cycle:D4}\tSave:{saveChangesAdd}ms");
    }
}

public class Blog
{
    public int Id { get; set; }
    public string Author { get; set; }
}

public class BlogContext : DbContext
{
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        //optionsBuilder.UseNpgsql("Host=localhost;Username=test;Password=test;Database=leakymcleakage");
        optionsBuilder.UseInMemoryDatabase("leakymcleakage");
    }

    public DbSet<Blog> Blogs { get; set; }
}

Further technical details
EFCore version: <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.1.0-preview2-final" />
Operating system: ubuntu 18.04
IDE: console

cc @roji

When you run on Windows?

Looks pretty much the same.
I've rebooted into my windows install, windows maybe be a few ms faster than linux right now, but I'm still seeing the same degradation.
If you want a more complete result set with (gasp) charts, I'll be more than happy to provide that...

@damageboy we have certainly not optimized the DbContext code for this usage. At the minimum every time you call SaveChanges in your test, we are iterating over an ever-growing dictionary to figure out what entities need saving.
In general we recommend using short-lived DbContext isntance. If you care enough to avoid allocating a full DbContext instance for every request, we offer the alternative to use DbContext pooling which can reuse DbContext instances by resetting just enough state on them on each request.
If you really think optimizing for this usage could help your scenario, we can talk about possible optimizations, but as far as we don't consider it a recommended usage pattern, we should avoid any changes that make the change tracking code significantly more complex.

@divega thanks for looking at this. I know that @damageboy is working around this by instantiating a new DbContext for each batch of data to be inserted (we used to be colleagues :)), and that the idea of using the same instance was to reduce allocations.
Why DbContext pooling may address that, it's surprising for a DbContext that turns off all change tracking and does inserts only to grow - my personal expectation is for there not to be any accumulated state once SaveChanges() is called. I have no idea how complicated it would be to make that happen, but I wonder if there couldn't be other conceivable issues caused by this: it does mean that there is at least a theoretical behavioral difference in behavior before and after the SaveChanges().
If the effort required here is large or you feel there really isn't enough value, then I don't think it's extremely critical (although we'll see what @damageboy says), but otherwise it seems like a good thing to maintain as a goal..

One more comment - one of the really nice improvements EF Core brought to the table over EF6 was batched updates, allowing efficient bulk insertion to happen within EF. This issue seems to be part of supporting that scenario as well (at least for some cases).

@roji, @damageboy more concretely, if you look at the code I pointed to before, we use a single dictionary to hold the identity map of the DbContext. Every time after we successfully save changes we will set the state of all entries to Unchanged, but the next time you call SaveChanges we will still have to iterate over all entries to figure out which contain modified or new entities. And this becomes more expensive every time. One possible optimization would be to maintain unchanged entries in a separate dictionary, to avoid revisiting them every time, but that would mean in other places (e.g. fix up) where we are currently querying just one dictionary we would need to start looking into more. State changes would need to move entries from one dictionary to another. In general I think it is possible but I am not sure the scenario warrants the added complexity. I am not sure how this would compare with just using DbContext pooling.

@divega thanks for the explanation. I think I understand better.
My expectation was that if one turns off change tracking on the context (ctx.ChangeTracker.AutoDetectChangesEnabled = false; ctx.ChangeTracker.QueryTrackingBehavior    = QueryTrackingBehavior.NoTracking;) there would be no need for the DbContext to remember anything about entities which were inserted. However, I understand that the above two properties allow one to turn off certain aspects of change tracking, but without turning the feature off as a whole.
I know that at least some users (such as @damageboy) really aren't interested in the change tracking part of EF, and prefer to manage that part themselves, but it would seem as though that isn't 100% possible at this point. As you already provide knobs for disabling some parts of change tracking, it may be worth thinking about allowing users to go all the way and disable it altogether.

Well, in @damageboy’s test, at the point both auto-detect changes and tracking of queries are disabled, we are doing only enough “change tracking” to remember what calls to Add the program made. If there was a way to also disabled that part, I don’t think the program would do what @damageboy wants it to do. So it is really a question on whether we can optimize for this test, or whether we add a feature so that all unchanged entries are automatically detached.

If there was a way to also disabled that part, I don’t think the program would do what @damageboy wants it to do

I was thinking more about a way to make the context reset its tracking dictionary as part of SaveChanges(), bringing it more or less back to the same state as when it was instantiated - but that may be the same thing as what you said.
In any case, you obviously know best how much effort this would be and whether it's worth it...

bringing it more or less back to the same state as when it was instantiated

Yes, I think that would be possible. But it would be equivalent to what DbContext pooling already does, only with a different API.

Understood. IIRC DbContext pooling requires users to use dependency injection, which isn't always appropriate (@damageboy's application doesn't use it all), so it may be interesting to provide this.

BTW this actually reminds me of a conversation I had with @anpete about how it would have been nice to have the perf advantages of DbContext pooling without having to go into dependency injection...

I am in no way recommending using IDbContextPoolable.ResetState for this :trollface:

Thanks @anpete, I'll see with @damageboy about trying this out, I think he can stomach an internal method call :)

@roji @damageboy @anpete @divega See also #9118. A mode that throws entities away once saved would have additional perf benefits when using store-generated keys.

Duplicate of #9118

Looks good, thanks!

Sure, closing...


Add support for "buildpacks" field in app.json

@jamesward I feel like we should just assume --builder=heroku/buildpacks, and then have an optional array for --buildpack, so we call the CLI like:
pack build --builder=heroku/buildpacks [--buildpack=foo --buildpack=bar ...]

wdyt?

Sounds great to me but we do need to push to get a Cloud Run bug fixed where most buildpack built images do not currently work (Node & Python are currently broken).

There is a way to specify specific buildpacks via a project.toml file in the root:
https://github.com/buildpacks/pack/pull/421


Folder styled-engine is missing [version 5.0.0-beta.4]

It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template-next), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

Closing since no reproduction was provided within 14 days.


Improves docker.run documentation in README

Adds information about the possible values to pass as the create_options or start_options.
I had to take a look into the source code of this repo (and some additional digging around) to find out what values I have to pass to the create_options object.

:+1:


How to fix error

root@localhost:~# npm install bedrock-protocol
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /root/.npm/_cacache/tmp/74d8f717
npm ERR! dest /root/.npm/_cacache/content-v2/sha512/36/c6/13346dd748d41330d5aa3faaf15fc4f92faa5531e43d0051844f1051e86d55151f1ec93560b1b19a7bcaf02e9a101b01fc9b434b21954dc20f1951a8281a
npm ERR! errno ENOENT
npm ERR! enoent Invalid response body while trying to fetch https://registry.npmjs.org/uuid: ENOENT: no such file or directory, rename '/root/.npm/_cacache/tmp/74d8f717' -> '/root/.npm/_cacache/content-v2/sha512/36/c6/13346dd748d41330d5aa3faaf15fc4f92faa5531e43d0051844f1051e86d55151f1ec93560b1b19a7bcaf02e9a101b01fc9b434b21954dc20f1951a8281a'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-08-15T19_48_34_095Z-debug-0.log

Reinstall nodejs and npm

tried already, i install 14.20.0 version with nvm

Переустановите nodejs и npm

Try a different folder. This is not an issue with bedrock protocol.

Okay, but when you start the bot with this code:
const bedrock = require('bedrock-protocol') const client = bedrock.createClient({   host: 'localhost',   port: 19132,           username: 'Tester123',    offline: true        })
It writes an error to the console:
[RakLib thread/NOTICE]: Blocked <IP_ADDRESS> for 5 seconds  [RakLib thread/ERROR]: Bad packet from <IP_ADDRESS> 46912: Not enough bytes left in buffer: need 8, have 5
I have a Minecraft server PocketMine-MP 1.19.10


Queries regarding offline testing

Hello
Currently for offline testing we configure :
export FIPSLD_CC=gcc     (or whatever compiler is being used)
./configure --with-ssl-dir= --with-fom-dir= --prefix= --enable-static --enable-offline
if i configure: without FOM, is giving compilation error
./configure --with-ssl-dir=/home/nagarjun/FIPS/usr/local/ssl  --prefix=/home/nagarjun/offline/v2/libacvp-libacvp_1_4_0-throttle  --enable-static --enable-offline
Making all in safe_c_stub
make[1]: Entering directory '/home/nagarjun/offline/v2/libacvp-libacvp_1_4_0-throttle/safe_c_stub'
Making all in lib
make[2]: Entering directory '/home/nagarjun/offline/v2/libacvp-libacvp_1_4_0-throttle/safe_c_stub/lib'
/bin/bash ../../libtool  --tag=CC   --mode=compile /bin/fipsld -DPACKAGE_NAME="libacvp" -DPACKAGE_TARNAME="libacvp" -DPACKAGE_VERSION="1.3.1" -DPACKAGE_STRING="libacvp\ 1.3.1" -DPACKAGE_BUGREPORT="https://github.com/cisco/libacvp/issues\" -DPACKAGE_URL="" -DPACKAGE="libacvp" -DVERSION="1.3.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I.    -I../include -fPIC -g -O2 -Wall -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wl,-z,noexecstack -DACVP_OFFLINE -MT ../src/libsafe_lib_la-safe_mem_stub.lo -MD -MP -MF ../src/.deps/libsafe_lib_la-safe_mem_stub.Tpo -c -o ../src/libsafe_lib_la-safe_mem_stub.lo test -f '../src/safe_mem_stub.c' || echo './'../src/safe_mem_stub.c
libtool: compile:  /bin/fipsld -DPACKAGE_NAME="libacvp" -DPACKAGE_TARNAME="libacvp" -DPACKAGE_VERSION="1.3.1" "-DPACKAGE_STRING="libacvp 1.3.1"" -DPACKAGE_BUGREPORT="https://github.com/cisco/libacvp/issues\" -DPACKAGE_URL="" -DPACKAGE="libacvp" -DVERSION="1.3.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I../include -fPIC -g -O2 -Wall -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wl,-z,noexecstack -DACVP_OFFLINE -MT ../src/libsafe_lib_la-safe_mem_stub.lo -MD -MP -MF ../src/.deps/libsafe_lib_la-safe_mem_stub.Tpo -c ../src/safe_mem_stub.c  -fPIC -DPIC -o ../src/.libs/libsafe_lib_la-safe_mem_stub.o
../../libtool: line 970: /bin/fipsld: No such file or directory
Makefile:426: recipe for target '../src/libsafe_lib_la-safe_mem_stub.lo' failed
make[2]: *** [../src/libsafe_lib_la-safe_mem_stub.lo] Error 1
make[2]: Leaving directory '/home/nagarjun/offline/v2/libacvp-libacvp_1_4_0-throttle/safe_c_stub/lib'
Makefile:361: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/nagarjun/offline/v2/libacvp-libacvp_1_4_0-throttle/safe_c_stub'
Makefile:454: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Here we are giving FOM path, Does only non-runtime testing is supported in offline mode ?
What is the way if i want to test  openssl-1.1.1 in offline mode ?

Regards
Nagarjun

Currently, only non runtime testing is supported in offline mode. We are not aware of a use case for needing to test just openSSL in offline mode. If there is one, we can make an internal case for it but it would be low priority at this time.
You could just create a regular build and use it offline with the same steps, as the offline steps still work in a regular build.
Thanks,
Andrew

Since openssl 1.1.1 does not have a FOM, unless you have created one, there are no APIs to test the algorithms that are limited to offline mode.

Hello,
As it seems the questions have been answered I will be closing this issue for now; please feel free to reopen if you have any more questions specific to this issue. Thanks!
Andrew


lodash is a dependency, not a dev dependency

lodash is not a dev dependency, it is used https://github.com/mzgol/grunt-ng-annotate/blob/master/tasks/ng-annotate.js#L12

Thanks! 0.9.1 published.
I wish such things were easier to find during testing...

Thanks for the quick merge!


Devx for low_level_call usage from the sway stdlib

low_level_call  in the sway std lib (Note, not yet merged ATTOW)
Calling a contract is done via the CALL instruction.
Currently, when users want to call a contract method, we'll create a script with a CALL instruction and the data into which the instruction registers point.
Now, the sway stdlib has a function (currently called  call_with_function_selector  and call_with_raw_payload which, although private currently, might also be exported) which is expected to be used by our users while writing their contracts.
This means that we're probably looking at improving the devx of preparing the data for the CALL instruction so that it may be given to the contract method which in turn gives it to the CALL instruction via the helpers in the low_level_call library.
Currently, the code doing this is private (pub(crate)) and not meant to be used directly by our users. Also, it is intimately coupled with our internal abstractions (i.e. ContractCall and other structures).
With the help of the app-dev team (and @simonr0204 who is working on this), we're to figure out the best experience for supporting this workflow.
Some of the key points might be:

how will our users get the function selector?

By letting them manually populate the args for resolve_fn_selector ?
Or having them use the JSON abi to convert the function into ParamTypes first via ParamType::try_from_type_application?
Will we store the function selector during the abigen! process? So that the users might just extract it from the function they wish to call?

How will we handle vectors/offsets?

Are we sure we can calculate the memory location into which the SDK-generated payload is going to be loaded into?
What can the receiving contract do with the payload? What can cause the pointers inside the payload to become invalid?
And probably other considerations I can't think of off the top of my head.
Also take a look at a macro I threw together to lessen the pain during the testing of this feature.
Do we want to have the SDK support something like this? Is it redundant? And much much more :)

From a devex perspective, the ultimate would be to leverage the existing contract API, so something like:
let payload = callee_instance.methods().is_low_level_called(my_args).raw_payload();

where payload would end up being the encoded target_contract_id ++ function_selector ++ encoded_calldata that can be directly passed through to CALL(r1, r2, r3, r4) (as r1).
The problem with this, as I understand it, is that the offsets used when generating the payload for the callee contract depend on the exact ordering of the args in the caller contract. i.e.
caller_instance.methods().makes_a_low_level_call(param1, param2, calldata)
would have different offsets to
caller_instance.methods().makes_a_low_level_call(calldata, param1, param2)

@Braqzen also has a similar use-case.
He has a struct containing a vector. The struct is not part of a Contract/Script ABI, thus not abi-generated.
Since the offset resolving is not public, he has no way of getting the encoded payload.
The unique twist to @Braqzen use case is that he would not have the bindings generated and thus a solution making use of methods(). and anything related to that would not work for him.

Might be related: https://github.com/FuelLabs/fuels-rs/issues/709


I created a goto-regex version

https://github.com/Ivanca/sublime-goto-regex
I needed a goto-regex plugin, so I just changed the re.escape (character) part for character instead; that way I can use it with regex from key bindings, as in:
  {
    "keys": ["alt+down"],
    "command": "goto_character",
    "args": {
      "character": "\\{|\\}"
    }
  }

(Created this issue just for reference/linking)

This looks like "goto expression" plugin, here is usage example: https://github.com/shagabutdinov/sublime-expression/blob/master/macro/goto_in_nesting_forward.sublime-macro
Goto expression was intended to provide smart code navigation (like selection inside brackets and etc.) and may look complex at first glance but it is stable and works well.


SVG images do not get go toTex as \includesvg

Currently, these are rendered in \includegraphics commands which will. not compile in latex.

At this stage we are converting SVGs to PDF, which includegraphics is happy with!


improve update_metadata_dictionary.yml

revise testing of changed files so that scripts are run when certain files, other than the model, change

PR #75  addresses most of this but I'm leaving the issue open for now b/c I couldn't get update_metadata_dictionary.yml configured into different jobs the way I had hoped.

https://docs.github.com/en/actions


Update to have a better error message for tf.math.segment_[*]

This PR tries to address the issue in #40653 where the error message
of tf.math.segment_[*] does not match the error.
This PR fixes #40653.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

@jaingaurav Can you please review this PR ? Thanks!

@yongtang  Here are the internal errors, can you please verify ?
Traceback (most recent call last):
File "/third_party/tensorflow/python/framework/ops.py", line 1840, in _create_c_op
c_op = pywrap_tf_session.TF_FinishOperation(op_desc)
third_party.tensorflow.python.framework.errors_impl.InvalidArgumentError: Shape must be at least rank 1 but is rank 0 for '{{node SegmentMean}} = SegmentMean[T=DT_UINT16, Tindices=DT_INT64](SegmentMean/data, SegmentMean/segment_ids)' with input shapes: [], [0].
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/third_party/tensorflow/python/framework/test_util.py", line 2963, in assertRaisesWithPredicateMatch
yield
File "/third_party/tensorflow/python/kernel_tests/segment_reduction_ops_test.py", line 264, in testDataInvalid
data=np.uint16(10), segment_ids=np.array([]).astype("int64"))
File "/third_party/tensorflow/python/ops/gen_math_ops.py", line 8403, in segment_mean
"SegmentMean", data=data, segment_ids=segment_ids, name=name)
File "/third_party/tensorflow/python/framework/op_def_library.py", line 776, in _apply_op_helper
attrs=attr_protos, op_def=op_def)
File "/third_party/tensorflow/python/framework/ops.py", line 3519, in _create_op_internal
op_def=op_def)
File "/third_party/tensorflow/python/framework/ops.py", line 2003, in init
control_input_ops, op_def)
File "/third_party/tensorflow/python/framework/ops.py", line 1843, in _create_c_op
raise ValueError(str(e))
ValueError: Shape must be at least rank 1 but is rank 0 for '{{node SegmentMean}} = SegmentMean[T=DT_UINT16, Tindices=DT_INT64](SegmentMean/data, SegmentMean/segment_ids)' with input shapes: [], [0].
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/unittest/case.py", line 59, in testPartExecutor
yield
File "/unittest/case.py", line 605, in run
testMethod()
File "/third_party/tensorflow/python/kernel_tests/segment_reduction_ops_test.py", line 265, in testDataInvalid
self.evaluate(s)
File "/contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "/third_party/tensorflow/python/framework/test_util.py", line 2968, in assertRaisesWithPredicateMatch
(str(type(e)), str(e)))
AssertionError: Exception of type <class 'ValueError'>: Shape must be at least rank 1 but is rank 0 for '{{node SegmentMean}} = SegmentMean[T=DT_UINT16, Tindices=DT_INT64](SegmentMean/data, SegmentMean/segment_ids)' with input shapes: [], [0].

Thanks @gbaned, the PR has been updated to match the error string in graph and eager mode. Think this will resolve the issue in internal tests. Can you give it a try and let me know if the issue still persists?

Retriggering tests now.


Adding missing packages from the measurements block

The turf library provides point features and polygon features, which are still missing :
pointOnFeature

polygonTangents

pointToLineDistance

Since those three modules are the last missing parts for the measurement block, I put them together to finish this task.

The implementation of pointOnFeature is blocked by missing packages.

https://github.com/diogomatoschaves/pyturf/issues/18
https://github.com/diogomatoschaves/pyturf/issues/19
https://github.com/diogomatoschaves/pyturf/issues/20

The implementation of polygonTangents is blocked by missing packages.

https://github.com/diogomatoschaves/pyturf/issues/18


Credit original game designers

For mobile web party games that are based on other games, add an optional field to credit original game designers to the game info box.
thx rocktopus 👍

What do you think about making this field mandatory?

i.e. mandatory fields for Game Credit and Adaptation Credit, which could be the same person.
Game Credit: Author of the original game
Adaptation Credit: Author of the software adaptation

added in 94acce1d375f6b24ef00f5a69dcae8e8278f0a0f let me know what you think!

Looks great, thank you for adding this!

🎉 🎉 🎉


[feature request] show rollout status output when deploying

When deploying you're left in the dark about what's happening and what the progress is. It would be nice if there was some sort of progress indicator so would know what's happening.
Workaround: Use --debug, but that's overly verbose and thus not suitable for CI.

Hi there, I thought worth mentioning here that since v0.146.0, helmfile now supports passing the --enable-live-output argument, which in combination of Werf resource tracking can provide a pretty nice output progress for the deployment, please checkout this discussion where I first suggested the feature.


Remove unexpected Default Game Object in Cave Rule Tile.

Please check Assets/Rule Tiles/Dungeon Tile/Tile Asset/Cave.
When put only one tile in Grid, unexpected SpriteRenderer object is created.

In Assets/Rule Tiles/Dungeon Tile/Tile Asset/Cave, the Bones_3 is set as Default Game Object.

I think this is unexpected setting.
So, How about remove it?

Thanks for fixing this!

Thanks 👍
Yeah!!


Wysihtml5  bootstrap 3 Insert Link Button not working in Firefox 69.0 and Opera

Hi,
The popup don't open when I click on  the Insert Link Button in Firefox 69.0 (but was working in previous version) & Opera 63.0.3368.71 using your demo page http://vitalets.github.io/x-editable/demo-bs3.html
The button is only working in MS EDGE.
Thank you for your reply.

I finally solve the problem :
unminify this file : bootstrap-wysihtml5-0.0.3/bootstrap-wysihtml5-0.0.3.min.js
and replace
return a ? !0 : (i.editor.currentView.element.focus(!1)
by
return a ? !0 : (i.editor.currentView.element.focus()
That'all !


Need Update, for latest Material UI Version

Several import is not suitable with latest material ui, and i facing some issue
Error: You are calling withTheme(Component) with an undefined component. You may have forgotten to import it.
error found in material-ui-pickers.esm.js:133
`
var SelectableCell = withTheme()(styled(Cell)(_templateObject5(), getBorderRadius, function (_ref5) {
var theme = _ref5.theme,
isCurrent = _ref5.isCurrent;
return isCurrent ? fromTheme(theme, 'current', '#9e9e9e') : 'transparent';
}, getBackground, getColor));
`

Hey Ario Setiawan, thx for reporting! 👏
Unfortunately I haven't looked into the project for a while, as I do not
use the picker myself atm. Would be very happy to review and merge any
fixes.


[test] Include Eiger on Slurm tests

Addresses UES-1434

Codecov Report

Merging #1784 (f3be599) into master (5d6b262) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1784   +/-   ##
=======================================
  Coverage   87.36%   87.36%
=======================================
  Files          47       47
  Lines        7765     7765
=======================================
  Hits         6784     6784
  Misses        981      981

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 5d6b262...f3be599. Read the comment docs.


refresh dag with dag id and refresh all dags not work

Here is the detail response.
{
"arguments": {
"api": "refresh_all_dags"
},
"call_time": "Mon, 30 Mar 2020 23:33:31 GMT",
"http_response_code": 500,
"output": "An error occurred while trying to Refresh all the DAGs: 'Airflow' object has no attribute 'refresh_all'",
"post_arguments": {},
"response_time": "Tue, 31 Mar 2020 07:08:24 GMT",
"status": "ERROR"
}

Versions
Airflow Version: 1.10.9
Rest API Plugin Version: 1.0.8

the refresh all function has been deleted in the version of 1.10.stable

An issue with Airflow has been opened and it should be included in the next incremental release: https://github.com/apache/airflow/issues/9749


Fix cylinder's triangle winding and normals

Issue became apparent with back face culling:
function lovr.draw(pass)
  pass:setCullMode('back')
  local pose = mat4(0, 1.5, -1)
        :scale(0.2)
        :rotate(lovr.timer.getTime(), 0,1,0)
  pass:cylinder(pose, true, nil, nil, 12)
end

Thank you thank you


Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured

OS: CentOS 7
Ansible playbook stops at
TASK [node : Start kubelet] ***********************************************************************************************************************************************************
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to start service kubelet: A dependency job for kubelet.service failed. See 'journalctl -xe' for details.\n"}
Logs says:
Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured
This was working a week ago. Any ideas?

I think you can debug by yourself. First, go to check the kubelet log to see which dependency job is failed and go to check that job logs to see why it failed to be started.

Worked after yum update.


Social login doc is missing

Hello @mqueme, there is no doc about https://github.com/mautic/mautic/pull/1552, could you please help ?
Thanks :)
N.

I'll look at writing this doc.