.cs support (instead of .csx)

i tried to support "cs" source files. For a first step i changed only the "(kind: SourceCodeKind.Regular," in your RoslynHost.cs, but I did not get any source completion after this.

Have you copied the RoslynHost implementation and created a custom one? If so, you need to change a few more things (note I haven't tested this):
In CreateSubmissionProject:

Remove isSubmission: true
Remove compilationOptions: compilationOptions.WithScriptClassName(name)

You can also (optionally) remove sourceReferenceResolver and metadataReferenceResolver in CreateCompilationOptions.
In the next version these methods would be virtual in order to simplify custom scenarios.

the isSubmission: true was the one I've missed...
After these changes it works

I've created a pull req: https://github.com/aelij/RoslynPad/pull/153

Hey, can I ask what's your scenario? Usually when you need a whole program (as opposed to a script), there's an entire Project with several Documents involved. RoslynHost is currently designed for scripts, with a single document per project. I'm considering how to enable more scenarios, but essentially it may be just simpler to implement a host that fits your needs.

I have a application, where a User can Run Extension Scripts. This Scripts are Classes wich need to implement a specific Interface. So I need to support to compile a class

You can create classes in the Script kind. The only limitation is that you can't use namespaces, since the entire script is compiled into a class, and any type you define within it is compiled as a nested type.

yes, but that is what i want to!
Sometimes we include the classes later in our Software!

@aelij I now tried to copy your RoslynHost to my software and implement my own, but IDocumentationProviderService is not public and RoslynWorkspace is also not...
how can I switch to c# mode then?

I'll be releasing a new version soon that would enable your scenario (and many others).
For the time being, you do not have to copy RoslynHost, you can create a wrapper:
class MyHost : IRoslynHost
{
    private readonly RoslynHost _host = new RoslynHost();

    private readonly ConcurrentDictionary<DocumentId, Workspace> _workspaces =
        new ConcurrentDictionary<DocumentId, Workspace>();

    public DocumentId AddDocument(SourceTextContainer container, string workingDirectory, Action<DiagnosticsUpdatedArgs> onDiagnosticsUpdated, Action<SourceText> onTextUpdated)
    {
        var workspace = _host.CreateWorkspace();
        var projectId = ProjectId.CreateNewId();
        var solution = workspace.CurrentSolution.AddProject(ProjectInfo.Create(projectId, ...));
        var project = solution.GetProject(projectId);
        var document = project.AddDocument(...);
        var documentId = document.Id;

        if (onTextUpdated != null)
        {
            workspace.ApplyingTextChange += (d, s) =>
            {
                if (documentId == d) onTextUpdated(s);
            };
        }

        workspace.SetCurrentSolution(document.Project.Solution);
        workspace.OpenDocument(documentId, container);

        return documentId;
    }

    public void CloseDocument(DocumentId documentId)
    {
        if (_workspaces.TryRemove(documentId, out var workspace))
        {
            workspace.Dispose();
        }
    }

    public Document GetDocument(DocumentId documentId)
    {
        if (_workspaces.TryGetValue(documentId, out var workspace))
        {
            workspace.CurrentSolution.GetDocument(documentId);
        }

        return null;
    }

    public TService GetService<TService>()
    {
        return _host.GetService<TService>();
    }
}

thx...
have you also seen, a new version of avalonedit is out

This is now my working code:
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
using RoslynPad.Roslyn.Diagnostics;
using System;
using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Reflection;
using RoslynPad.Roslyn;
namespace MCC.Configurator.DesignTimeScripting
{
public class MccRoslynHost : IRoslynHost
{
public MccRoslynHost(Assembly[] additionalAssemblies)
{
_host = new RoslynHost(additionalAssemblies: additionalAssemblies);
}
    private readonly RoslynHost _host;

    private readonly ConcurrentDictionary<DocumentId, Workspace> _workspaces =
        new ConcurrentDictionary<DocumentId, Workspace>();

    public DocumentId AddDocument(SourceTextContainer container, string workingDirectory, Action<DiagnosticsUpdatedArgs> onDiagnosticsUpdated, Action<SourceText> onTextUpdated)
    {
        var workspace = _host.CreateWorkspace();
        var projectId = ProjectId.CreateNewId();

        var name = "Program";
        var id = ProjectId.CreateNewId(name);
        var prj=ProjectInfo.Create(
            id,
            VersionStamp.Create(),
            name,
            name,
            LanguageNames.CSharp,
            parseOptions: new CSharpParseOptions(kind: SourceCodeKind.Regular,
                preprocessorSymbols: ImmutableArray.CreateRange(new[] {"__DEMO__", "__DEMO_EXPERIMENTAL__", "TRACE", "DEBUG"}), languageVersion: LanguageVersion.Latest),
            compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary,
                usings: ImmutableArray<string>.Empty,
                allowUnsafe: true));

        var solution = workspace.CurrentSolution.AddProject(prj);
        var project = solution.GetProject(projectId);
        var docId = DocumentId.CreateNewId(project.Id);
        solution = project.Solution.AddDocument(docId, prj.Name, "");
        workspace.SetCurrentSolution(solution);
        workspace.OpenDocument(docId, container);
        var document = solution.GetDocument(docId);
        var documentId = document.Id;

        if (onTextUpdated != null)
        {
            workspace.ApplyingTextChange += (d, s) =>
            {
                if (documentId == d)
                    onTextUpdated(s);
            };
        }

        workspace.SetCurrentSolution(document.Project.Solution);
        workspace.OpenDocument(documentId, container);

        return documentId;
    }

    public void CloseDocument(DocumentId documentId)
    {
        if (_workspaces.TryRemove(documentId, out var workspace))
        {
            workspace.Dispose();
        }
    }

    public Document GetDocument(DocumentId documentId)
    {
        if (_workspaces.TryGetValue(documentId, out var workspace))
        {
            workspace.CurrentSolution.GetDocument(documentId);
        }

        return null;
    }

    public TService GetService<TService>()
    {
        return _host.GetService<TService>();
    }
}

}

I've one bug: wrong code is not red underlined, don't know why.

You should be able to override the CreateDefaultParseOptions method now.


WIP1

Added LICENSE and Python.gitignore to hello-world repository

When you  make your official project please remember to also give it a  python-specific .gitignore file


OP-1916: Updates to scripts and READMEs for packaging.

Updated DEB_README.md with clarifications.
Updated VALIDATOR_KEYS_README.md to use sudo -u casper.
Updated pull_casper_node_version.sh to require both arguments.

bors r+


Very Happy, not an issue

Hi Jeff,
I had a chance this morning to try NuGet. Installed all recommended updates and ran my application. It runs perfect.
Thank you,
Paul Noto

Great, glad to hear it

From: Paul Noto<EMAIL_ADDRESS>Sent: Tuesday, September 11, 2018 2:42 PM
To: jefffhaynes/XBee
Cc: Subscribed
Subject: [jefffhaynes/XBee] Very Happy, not an issue (#53)
Hi Jeff,
I had a chance this morning to try NuGet. Installed all recommended updates and ran my application. It runs perfect.
Thank you,
Paul Noto
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/jefffhaynes/XBee/issues/53, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSKRzJ2aSPCbaJPHB5jihOPzi3SOURGks5uaAQlgaJpZM4Wj6iT.


[ENH] add and refine Transform+Riemannian distance+weights+knn

add Burg-type Nuttall Strand algorithm in _nuttall_strand.py, this is a power spectral density matrices transform
add a simple test for _nuttall_strand.py above
add function to calculate optimal weights for riemannian density matrices in _get_optimal_weights.py
add normal pairewise riemannian distance function in _riemannian_matrix.py
get _check_inputs and _is_hpd function back to test_riemannian_matrix.py
change a link import for _is_hpd function in test_power_spectrum.py
add a special knn in _nuttall_knn.py for the 3D input which get from NuttallStrand transform

This PR also fixes some small errors in my last commit.


Fedora 39 doesn't find dotnet-sdk-8.0 with dnf search

Type of issue
Code doesn't work
Description
Neither dnf search dotnet-sdk-8.0  nor  sudo dnf dotnet-sdk-8.0 --refresh will find the package.  sudo dnf makecache doesn't resolve the problem as well as deleting the yum cache.
Fedora version
Fedora release 39 (Thirty Nine)
dnf version
4.18.1
Installed: dnf-0:4.18.1-2.fc39.noarch at Do 23 Nov 2023 19:02:50 GMT
Built    : Fedora Project at Mi 15 Nov 2023 15:14:30 GMT
Installed: rpm-0:4.19.0-1.fc39.x86_64 at Mi 01 Nov 2023 01:06:57 GMT
Built    : Fedora Project at Di 19 Sep 2023 13:02:12 GMT
Page URL
https://learn.microsoft.com/en-us/dotnet/core/install/linux-fedora
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/install/linux-fedora.md
Document Version Independent Id
2e9467f4-8572-c8e4-6a10-69faf14ce46c
Article author
adegeo
Metadata

ID: 38a30294-c9ae-4189-26d7-ee7db615c487
Product: dotnet-fundamentals
Technology: dotnet-install

@omajid is 39 supposed to have .NET 8? If so, is there an ETA?

I'll add a note that says that the package will take time to appear.


Set pkgdown action to be active - currently set to disabled until repo set to public

Done as package is now public


Update ftc-at-ethcc.md

Update to FTC @ EthCC

The changes have been merged using the Pull request: https://github.com/memser-spaceport/pln-events/pull/351.
Closing this Pull request.


enable import from requirements notes

(This is the opposite of the export issue #14)
Problem/Need:
The HTML export is fine for communicating with devs, but what about for non-devs to communicate with each other or just to remind themselves? Otherwise they'd just use something they're more familiar with, like excel files.
Suggestions:

[x] simply import the exported HTML file and recreate the HTML? <-- try this first
[x] or only slightly better than importing the exported HTML: can https://github.com/jspreadsheet/ce be used to copy-paste directly from excel into cells in the browser? <-- try this second

[ ] connect the table to the HTML / HTML string?

[ ] or even better/ideal: import excel file? (is https://github.com/jspreadsheet/ce able to parse the excel file?)

for step 1: recreate the .remove-from-final-output parts too

https://bossanova.uk/jspreadsheet/v4/examples/import-data

I think copy-pasting into the in-browser table from an excel is good enough, so no need to export back to a new excel file.

TODO:

[x] notes
[ ] ID?
[ ] required class?
[ ] label?

There's now an optional extraData parameter of copyTemplate passed to useExtraData. I plan to fill in the TODO comment that's currently there.

it seems to not work on the live site, probably due to a timing issue

turns out the surge command output was removing empty id=""s in the html templates


Allow !ip to list all Servers instead of listing the play link.

Aim of this is to loop through all game servers and to list ips instead of a link to the play page.


ImportError: No modle named

Thanks for this great plugin.
I went into an issue after I installed zotero-cli on my Windows 10 machine with python 3.5.2.
When I opened the cmd and run command zotcli configure, it returned error messages below:
C:\Users\jiaho\Documents>zotcli configure
Traceback (most recent call last):
  File "C:\Python35\Scripts\zotcli-script.py", line 9, in <module>
    load_entry_point('zotero-cli==0.2.1', 'console_scripts', 'zotcli')()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2229, in load
    return self.resolve()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\python35\lib\site-packages\zotero_cli\main.py", line 8, in <module>
    import ConfigParser
ImportError: No module named 'ConfigParser'

Any insights to solve this problem? Thanks!

Hi
You need to install a python module called ConfigParser, try the command
pip install ConfigParser

In the future if you see more of No module named 'module' error, try to install that module with pip.

@DancingQuanta Thank you for telling me that. I have no knowledge about python...
I have both python 2.7.12 and python 3.5.2 installed to avoid some compatibility issues. In my path, the path of python 3.5.2 is on the above of python 2.7.12, so when zotero-cli was installed in python 3.5.2 before. And after read this, I successfully installed ConfigParser, but still get the same error messages when running zotcli configure command.
But after I installed zotero-cli in python 2.7.12, ConfigParser error went away and it seems like zotero-cli was successfully installed. But the command zotcli configure did not work neither, giving other error messages below:
C:\Users\jiaho>zotcli configure
Usage: zotcli-script.py [OPTIONS] COMMAND [ARGS]...

Error: No such command "configure".

Apparently I do get the No such command "configure" error too. What operating system are you using?

Actually I think the information about zotcli configure is out of date since i read the source code and I couldn't find any code responding to that command.
Perhaps the documentation is out of the date or configure is a feature not yet implemented

@DancingQuanta I think you are absolutely right! There may be just no such command. I am using Windows 10 Build 1511.
I think the documentation is out of date. The right way is to open the config.ini file located at  C:\Users\#YOURNAME#\AppData\Roaming\zotcli\ and uncomment lines of api_key, library_id, and library_type and fill them with the right information. After that, command zotcli query works!
It may be helpful for others who have the same issue on setting zotero-cli up if @jbaiter could updates and adds the above notice to the documentation.

There is definitely such a command, the code for it is here: https://github.com/jbaiter/zotero-cli/blob/master/zotero_cli/cli.py#L70
The root cause of your issue is that you are trying to run the application with Python 3.5, while the code is currently targeting Python 2.7. I will try to make it forward-compatible, but for now please use Python 2.7 to configure it :-)


example for a better stats page

Example for a better stats page:
https://raw.githubusercontent.com/drandreaskrueger/LineageOS_www/master/better-stats-page_suggestion.html
download and open in HTML browser.
Thanks.

Code changes to LineageOS are submitted through Gerrit - https://wiki.lineageos.org/how-to/submitting-patches


bump version in setup.py

@edx/ecommerce FYI.   Neglected to do this before tagging release 1.2.1.  Will move the tag next, in order to update PyPI.

:+1:

:+1:


minor CSS update to optimize rendering of users for Admin view on mobile

updated css on Admin view of users for a mobile device


ImportError: cannot import name 'StableDiffusionInpaintPipelineLegacy' from 'diffusers'

Why always some problem with this repo? lol...
Was a pain to get it working, now after a GIT PULL it broke again!

You need to update diffusers to 0.6.0.

diffusers

Tell me the command to do it, please.

Ok, updated it.
Now i get:

Hello there!
i have the same error after i recently discovered and installed this repo.
Sadly the assert threw me an error even though i had version 0.6.0 installed.
To force it to version 0.6.0 nonetheless i ran "conda install diffusers=0.6.0" inside of sd-inf environment.
Giving me the following version:

But it still gives me the following error message:
Traceback (most recent call last):   File "D:\Software\stable-diffusion-infinity\stablediffusion-infinity-master\app.py", line 11, in <module>     assert diffusers.__version__ >= "0.6.0", "Please upgrade diffusers to 0.6.0" AssertionError: Please upgrade diffusers to 0.6.0

@ZeroCool22 what ip are you using to connect to the gradio UI?

@ZeroCool22 what ip are you using to connect to the gradio UI?

Thx you for reply, this was fixed the same day, i forgot to close it.


Leaked github token

Good afternoon,
I've found that your repository has a leaked token at RES-Analytics-Frontend/githubToken.txt, please do disable it with the utmost urgency.
I've not tried it myself, as I have not been given permission.
Best regards,
Carlos Pinto Machado

@madriano @nmcaodias @AndreGRGarcia @britoeabreu

@adrmlopes  although you deleted it in https://github.com/resetting-eu/Resetlytics/commit/b3a4b5704eb53e657805ad6daeba7672bc799863#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
I can still go back in the git history. Please do rebase or edit git history.


Update scala-library, scala-reflect to 2.12.15

Updates

org.scala-lang:scala-library
org.scala-lang:scala-reflect

from 2.12.14 to 2.12.15.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.12.14).
You might want to review and update them manually.
.github/workflows/ci.yml
project/ScalaVersions.scala

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

labels: library-update, semver-patch, old-version-remains

will do manually


Crash on demand_snapshot access

When using the demuxer with membrane 0.12.5, this condition is met
** (KeyError) key :demand_snapshot not found in: %Membrane.Element.PadData{availability: :on_request, stream_format: %Membrane.RemoteStream{content_format: Membrane.Opus, type: :packetized}, direction: :output, flow_control: :manual, name: :output, ref: {Membrane.Pad, :output, 580230332}, options: %{}, pid: #PID<0.596.0>, other_ref: :input, input_queue: nil, demand: 400, incoming_demand: 400, demand_unit: :buffers, start_of_stream?: false, end_of_stream?: false, auto_demand_size: nil, sticky_messages: [], atomic_demand: %Membrane.Core.Element.AtomicDemand{counter: %Membrane.Core.Element.AtomicDemand.DistributedAtomic{worker: #PID<0.610.0>, atomic_ref: #Reference<0.3746864672.1714814981.2006>}, receiver_status: %Membrane.Core.Element.AtomicDemand.DistributedAtomic{worker: #PID<0.611.0>, atomic_ref: #Reference<0.3746864672.1714814980.2223>}, receiver_process: #PID<0.596.0>, sender_status: %Membrane.Core.Element.AtomicDemand.DistributedAtomic{worker: #PID<0.612.0>, atomic_ref: #Reference<0.3746864672.1714814980.2225>}, sender_process: #PID<0.537.0>, sender_pad_ref: {Membrane.Pad, :output, 580230332}, throttling_factor: 1, toilet_capacity: 200, receiver_demand_unit: :buffers, buffered_decrementation: 0, toilet_overflowed?: false}, manual_demand_size: 0, associated_pads: [], sticky_events: [], stream_format_validation_params: [], other_demand_unit: :buffers, other_effective_flow_control: :push, stalker_metrics: %{total_buffers: #Reference<0.3746864672.1714814981.2008>}}

The value you want to get is present under :demand key in Membrane.Element.PadData.
Is this a demuxer from membraneframework GitHub organization?


Add version suffixing for circuit imports

Issue #, if available: https://github.com/twitchtv/circuitgen/issues/2
Description of changes:
This allows setting an optional CLI flag to import a Go module compatible version of cep21/circuit. Then, the wrappers can import the same version as the rest of one's code.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closes #2


4.8.7 Update Bukkit extension module's libraries.

@rultor release tag is 4.8.7

@rultor release tag is 4.8.7

@portlek OK, I will release it now. Please check the progress here

@rultor release tag is 4.8.7

@portlek Done! FYI, the full log is here (took me 8min)


Repositories are incrementing entity version when classification changes

Both the in-memory and the grpah repository are incrementing the version of the entity when classify/updateClassification/declassify are called.   Given that classifications can be added independently of the entity (effectively added in a server that is not the master of the entity), it would seem that the version would be inconsistent depending on which server was used to make the changes to the classification.
The CTS does not seem to inspect the entity version when the claasifications are added/updated/deleted.

Good spot. Looks like we just need to drop the calls to the repository helpers incrementVersion method.
As you say, the CTS should probably be augmented too. (If someone new to the CTS adds this, there are examples of version verification in the lifecycle tests that update entities, for example.)


Minicolors renders nicely, but isn't interactive - what's wrong?

I'm trying to integrate angular-minicolors into another directive in a larger AngularJS 1.3 app.
My template code looks like:
template: '
'
			+ '
'
				+ ''
				+ '
'
					+ 'Inline: {{color.inline}}
'
					+ '<input minicolors="miniColorConfig" type="hidden" ng-model="tempColor">'
				+ '
'
			+ '
'
		+ '
',

My config looks like:
$scope.miniColorConfig = {
	theme: 'weld',
	position: 'top left',
	defaultValue: '',
	animationSpeed: 50,
	animationEasing: 'swing',
	change: null,
	changeDelay: 0,
	control: 'wheel',
	hide: null,
	hideSpeed: 100,
	inline: true,
	letterCase: 'lowercase',
	opacity: false,
	show: null,
	showSpeed: 100
};

It renders a nice wheel with the correct color indicated, but I can't change the color. The JavaScript console is blank, no errors. Any ideas?

@tomsoderlund is this issue resolved for you?

Yes! Can't remember how though - it was a while ago :-)
On Tuesday, May 12, 2015, Kai Henzler<EMAIL_ADDRESS>wrote:

@tomsoderlund https://github.com/tomsoderlund is this issue resolved
for you?
—
Reply to this email directly or view it on GitHub
https://github.com/kaihenzler/angular-minicolors/issues/12#issuecomment-101339127
.


[BUG] ring-opacity-* triggers "not a tailwind css class!"

Describe the bug
ring-opacity-60(0-100) triggers eslint no-custom-classname rules.
To Reproduce
Steps to reproduce the behavior:

Go to any <div />
Create className with ring-opacity-*
See warning

Expected behavior
Should not show warning
Screenshots

Environment (please complete the following information):

OS: macOS
Softwares + version used:

VSCode 1.63.2
tailwinds ^3.0.1
eslint-plugin-tailwindcss 3.3.3

Hi there @boompikachu, this is not a bug, this is on purpose.
The ring-opacity-* classnames, while still generated, were removed from the docs in v3:
https://tailwindcss.com/docs/ring-width
As they said in the Upgrade guide:

Wherever possible we have preserved the old name as well so many of these changes are non-breaking, but you’re encouraged to update to the new class names.

The new recommended way is to use a combinaison of color + opacity like in the example below:
ring-blue-500 + ring-opacity-50 => ring-blue-500/50
https://play.tailwindcss.com/LGtSgeuQnJ

If you really want to you can "allow" these classnames by providing regex expressions in the whitelist array option with ['ring-opacity-50'] or more generic ['ring-opacity-\\d*']

@francoismassart Thanks you, I totally forgot about that. Also, I'm not sure whether this bug or not but the ring color + ring opacity doesn't have a warning from tailwindcss/migration-from-tailwind-2

Good call @boompikachu, fixed in<EMAIL_ADDRESS>


bug: key-auth使用报错

key-auth使用报错
Environment

apisix version (0.9-rc1):
OS: CentOS Linux release 7.5.1804 (Core)

Minimal test code / Steps to reproduce the issue
1.后端写一个web程序 app.py部署至两台内网主机　<IP_ADDRESS>:1080 <IP_ADDRESS>:1081
程序代码
from flask import Flask
app = Flask(__name__)

@app.route('/hello')
def hello_world():
    return 'Hello, World!--from <ip>'

if __name__ == '__main__':
    app.run(host='<IP_ADDRESS>', port=1080)

2.apisix配置如下
路由:
{
    "node": {
        "value": {
            "methods": [
                "GET"
            ],
            "uris": [
                "/hello"
            ],
            "upstream_id": "00000000000000000020",
            "desc": "flask hello",
            "plugins": {
                "key-auth": {
                    "key": "62051bb0-1800-11ea-8626-bbd6ed6cc7a4"
                }
            }
        },
        "createdIndex": 35,
        "key": "/apisix/routes/00000000000000000019",
        "modifiedIndex": 35
    },
    "action": "get"
}
-----------------------------
consumers
{
    "node": {
        "nodes": [
            {
                "value": {
                    "plugins": {
                        "key-auth": {
                            "key": "123456"
                        }
                    },
                    "desc": "jack",
                    "username": "jack"
                },
                "createdIndex": 40,
                "key": "/apisix/consumers/jack",
                "modifiedIndex": 40
            }
        ],
        "modifiedIndex": 8,
        "createdIndex": 8,
        "key": "/apisix/consumers",
        "dir": true
    },
    "action": "get"
}
-------------------------------------------------------
upstreams
{
    "node": {
        "nodes": [
            {
                "value": {
                    "nodes": {
                        "<IP_ADDRESS>:1081": 1,
                        "<IP_ADDRESS>:1080": 2
                    },
                    "desc": "flask",
                    "type": "roundrobin"
                },
                "createdIndex": 23,
                "key": "/apisix/upstreams/00000000000000000020",
                "modifiedIndex": 23
            }
        ],
        "modifiedIndex": 5,
        "createdIndex": 5,
        "key": "/apisix/upstreams",
        "dir": true
    },
    "action": "get"
}

调用方法

curl http://<IP_ADDRESS>:9080/hello -H 'apikey: 123456' -i

报错内容

HTTP/1.1 500 Internal Server Error
Date: Fri, 06 Dec 2019 08:46:04 GMT
Content-Type: text/html
Content-Length: 174
Connection: close
Server: APISIX web server

<title>500 Internal Server Error</title>

500 Internal Server Error

openresty

场景是key-auth绑定至路由中

6.key-auth绑定至service中然后把service和route关联也一样报上述的错

If the api-key is 123456, the consumer should be:
-- create new consumer
{
    "username": "jack",
    "plugins": {
        "key-auth": {
            "key": "123456"
        }
    }
}

-- enable consumer in route
{
    "uris": [
        "/hello"
    ],
    "upstream_id": "00000000000000000020",
    "desc": "flask hello",
    "plugins": {
        "key-auth": {}
    }
}

make a test:
curl http://<IP_ADDRESS>:9080/hello -H 'apikey: 123456' -i

the apikey is wrong in doc:https://github.com/apache/incubator-apisix/blob/master/doc/plugins/key-auth-cn.md, which may mislead you.
Welcome PR to fix doc.

If the api-key is 123456, the consumer should be:
-- create new consumer
{
    "username": "jack",
    "plugins": {
        "key-auth": {
            "key": "123456"
        }
    }
}

-- enable consumer in route
{
    "uris": [
        "/hello"
    ],
    "upstream_id": "00000000000000000020",
    "desc": "flask hello",
    "plugins": {
        "key-auth": {}
    }
}

make a test:
curl http://<IP_ADDRESS>:9080/hello -H 'apikey: 123456' -i

是我上面贴的问题，现实中我配置的就是123456。刚刚我修复了主题上面的配置

the apikey is wrong in doc:https://github.com/apache/incubator-apisix/blob/master/doc/plugins/key-auth-cn.md, which may mislead you.
Welcome PR to fix doc.

I just went through this issue, but still cannot get your point :( Which position should be fixed?

the key is auth-one in step 1, but changed to apikey: keykey in the
test plugin step.
Thanks,
Ming Wen
Twitter: _WenMing
琚致远<EMAIL_ADDRESS>于2019年12月7日周六 上午10:45写道：

the apikey is wrong in doc:
https://github.com/apache/incubator-apisix/blob/master/doc/plugins/key-auth-cn.md,
which may mislead you.
Welcome PR to fix doc.
I just went through this issue, but still cannot get your point :( Which
position should be fixed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-apisix/issues/941?email_source=notifications&email_token=AGJZBKZTGNYAKPUICY56QVTQXME3JA5CNFSM4JWQID52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGF35AY#issuecomment-562806403,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGJZBK7L3P2H6OVYLMFHGOTQXME3JANCNFSM4JWQID5Q
.

any update?


waitForReceipt returns before state is committed

Testing complex programs with views against expected state can be a pain since the unconstrained views are executed against a db that is possibly in progress of committing data. To work around it I added a wait of 5s in my test after every transaction, but that feels horrible. As a user I would expect that when the tx is "mined" and I have the receipt I should be able to execute something on top of that state.
In the snippet, the 4 values read is a slot, and the two first elements are updated in the same txs. The first value is literally dependent on the second changing, but when i read, you will see that the first value gets read before the update but the second after.
https://github.com/AztecProtocol/aztec-packages/pull/1554

The waitForReceipt is checking that blocks have been received, but seem to not check that the state was updated before it is giving back the receipt. This is unexpected for the user, who as mentioned above, want to execute stuff on top of it.
https://github.com/AztecProtocol/aztec-packages/blob/a78d939a5023fa863b87385eb1d76f1b893a0640/yarn-project/aztec.js/src/contract/sent_tx.ts#L83
The function is depending on, which should probably make sure that the state is updated as the name alludes.
https://github.com/AztecProtocol/aztec-packages/blob/a78d939a5023fa863b87385eb1d76f1b893a0640/yarn-project/aztec-rpc/src/synchroniser/synchroniser.ts#L271

Duplicate of #1687.


Any way to hash POSTGRES_PASSWORD or remove env vars no longer needed after setup?

I am suspecting that POSTGRES_PASSWORD is required when creating the cluster the first time.
But then it stays there for everyone to see via docker inspect mycontainername
Even if I change the postgres user password, the original POSTGRES_PASSWORD is still there...(and now it shows wrong password)
If the environment variables are only needed for 1st time container setup, is there a way to remove them afterwards? If so should that be part of the script?
If that is not possible, is there a way to at least specify hash of the password ?

You can pass it as a file using docker secrets (https://github.com/docker-library/postgres/pull/225). You can also just supply a hashed password:

If the presented password string is already in MD5-encrypted format, then it is stored encrypted as-is
- https://stackoverflow.com/a/17431573

@yosifkit  Thanks for the info. This helps a lot.
Is there a way to remove vars required only for initial container setup?

Unfortunately, only by saving the content in a volume and recreating the
container after the initial setup without the variables (which is how we
usually recommend folks handle this particular case).

Thanks @tianon . Closing the issue.

@tianon

Unfortunately, only by saving the content in a volume and recreating the
container after the initial setup without the variables (which is how we
usually recommend folks handle this particular case).

I just had the opportunity to try this (using pg10 beta 3) and while the cluster starts fine, I can no longer connect to it with the same password :(

It sounds like you would actually need to edit the metadata of a docker image. In that case you could take an advantage of useing docker-copyedit.


feat: add support for artifact streaming through NBC and CSE change

What type of PR is this?
/kind feature

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 79.178%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
2236

Relevant Lines:
2824

💛  - Coveralls


sentinel support broken?

When doing this:
class { 'redis::sentinel':
master_name      => $master_name,
redis_host       => $redis_master,
failover_timeout => $failover_timeout,
}
class { 'redis':
bind        => $listen_ip,
slaveof     => $redis_master ? {
"$fqdn" => undef,
default => "$redis_master 6379"
}
}
to setup my hosts - with one being set to master-  and redis-sentinel setup on same host.. puppet dies with:
Duplicate declaration: Package[redis-server] - as its both defined in install.pp and in redis::sentinel
I assume someone have used redis with sentinel with this module before, and I'm just understanding the documentation wrong?

This is puppet 4 master and my servers are ubuntu 16.04

@KlavsKlavsen I haven't looked at the sentinal work for a while, could you try the following change:
diff --git a/manifests/sentinel.pp b/manifests/sentinel.pp
index 617dfc4..298c647 100644
--- a/manifests/sentinel.pp
+++ b/manifests/sentinel.pp
@@ -190,11 +190,7 @@ class redis::sentinel (
   $client_reconfig_script = $::redis::params::sentinel_client_reconfig_script,
 ) inherits redis::params {

-  unless defined(Package[$package_name]) {
-    ensure_resource('package', $package_name, {
-      'ensure' => $package_ensure
-    })
-  }
+  require redis

I'm also adding in an acceptance test for a basic sentinel setup 👍

that gives  Class[Redis] is already declared; Duplicate declaration: Class[Redis] is already declared; cannot redeclare.. if I remove it - and don't insert "require redis" - then it runs.
Next is that redis::sentinel is adding an init script (kinda odd when in systemd land :) - and when systemd starts it - it says all is good.. except /usr/sbin/redis-sentinel binary does not exist.. I'm assuming the sentinel support actually works that way as sentinel was seperate from redis before 3.0? I assume module was suppose to create symlink /usr/bin/redis-sentinel - pointing to redis binary? (or just run redis with --sentinel option) ?

Are you running sentinel cluster mode instead?

Basically, this is because of different packaging standards:
[root@master redskull-controller]# yum provides /bin/redis-sentinel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.cov.ukservers.com
 * epel: mirror.logol.ru
 * extras: mirror.sax.uk.as61049.net
 * updates: mirrors.vooservers.com
redis-3.2.3-1.el7.x86_64 : A persistent key-value database
Repo        : @epel
Matched from:
Filename    : /bin/redis-sentinel

So you could use Puppet to create this symlink.
I would say I don't know enough about sentinel to accurately test this. I will open a PR to change the package requirement to be an include of redis.

I believe this was fixed by #171 and an additional acceptance test was added, if not I'll re-open


Missing parameters for snapshot action in fastlane

Hi!
I can't seem to find a way to tell snapshot which Snapfile to use inside a lane, like $ snapshot --snapfile Snapfile1…
After looking at the action code, I think there is no way to do it. I'm tempted to try the sh action to do it.
Using a environment var would work too.
EDIT: sh works :grinning:

Yah, I'm not yet 100% happy with the differences between the CLI of the individual tools and the fastlane integration.
Might need something like:
snapshot({
  snapfile: "SpecialSnapfile",
  option: 123
})

@carlosefonseca Just checking in to see if this issue is resolved for you. Felt like doing some issue house cleaning tonight :innocent:

I don't think this is resolved, since the snapshot actions in fastlane still doesn't allow passing of parameters, right?
But yah, this really is related to https://github.com/KrauseFx/fastlane/issues/45

If you want you can close this and keep everything on #45.

Probably makes sense, thanks :+1:


Bundles loader - feature request

Hi
I'm working on a Vue loader inspired by requirejs. Maybe some of you could use the idea.
Link to the github repo where I try to create a vue-bundle loader
https://github.com/your-budget-today/personal/tree/gh-pages
Bundles are partial html files where the goal is that each bundle file should contain css, template, routes and view-model.
It is a work in progress, not production ready at the moment.
Br.
Rune

Looks good - interesting stuff

Very cool! This is something I've had in mind for a while - it's great for prototyping and small applications. Ideally, I'd love to see it support standard *.vue files outlined here, excluding pre-processors. That way you can reuse the same *.vue files if you later want to transition to a webpack/browserify based setup.
I'm going to close this since this doesn't seem like an issue - feel free to share this on the forum's show & tell section.

The general idea was to use it for prototyping. I don't know how good the performance will be in large apps. I have tried to change it so it would be able to mix single component files (without wrapping) and multi component files (with  wrapping). Have never worked with Babel so will take a look at it and see if I can make it work in my script. Right now the script section must be a standard object.

@MrElectronic Rune, I've made very small mods and am using this right now. My app became too large so now I have 8 components in .html files. The sections are standard .vue files (which I see you've taken Evan's advice too). Also, without webpack, as you know the html extension makes them good to work with in editors + intellisense. Its performance seems really fine!
FYI I spent a couple of days getting into webpack but it just slowed me down totally. I'm not using ED2015 yet. Then I came across this:
http://javascriptplayground.com/blog/2016/02/the-react-webpack-tooling-problem
and just used these 2 package.json lines to good effect
"babel": "babel src --out-file public/js/bundle.js --watch",
"live-server": "live-server --port=3004"
Then found your file and am really productive again.
Will switch over to ES2015 & webpack in time, just not right now.
Also don't think it is ideal for Evan to have one type of code in main vuejs.org and ES2015 on the sub-projects - doesn't help people learning imo. Fantastic work from him though!


RTV方法生成structure-im时间过长问题

请问老师，训练的时候LCG的模块需要输入structure-im图像。
structure-im图像由RTV方法生成，非常耗时和耗内存。
模型推理的时候也需要structure-im，会造成推理时间过长，请问老师有没有好的解决方式？

I can give you some advice.
Actually you can just don't use structure-im image. It won't make much difference to your results.

I can give you some advice. Actually you can just don't use structure-im image. It won't make much difference to your results.

hi，what is your advice？ can you explain in detail

Structure-im has little effect on the result, so you don't have to use structure-im. Just input the mask and the origin image.


A11y keyboard control AutoComplete cannot close list box

Bug, feature request, or proposal:
Bug: Keyboard user cannot close the list box with Escape or alt+up_arrow keys.
What is the expected behavior?
For an auto-complete that has text in the text box that was both typed by the user and auto-completed by highlighting a choice using the keyboard, pressing escape or alt+up_arrow closes the drop-down list and should clear the text box. Pressing alt+down_arrow should open the list box and allow the user to press up/down arrow keys in the list box and type in the Edit box.
What is the current behavior?
Currently the keyboard user cannot close the list box without selecting an item.
What is the use-case or motivation for changing an existing behavior?
To allow keyboard users a good interactive experience.
Is there anything else we should know?
Pressing the Escape key appears to do nothing. Pressing the Alt+up_arrow JAWS says "close list box", but nothing actually happens as the user can still press up/down arrow keys through the list box. The Edit box is not cleared. Pressing alt+down_arrow has the same effect as pressing down arrow. The alt+up_arrow should collapse the list box and alt+down_arrow should expand the list box.

Related: https://github.com/angular/material2/issues/3416


⚠ Bofrost.de has degraded performance

In 8b636f0, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1235 ms

Resolved: Bofrost.de performance has improved in 1134a76.


Fix license for tklauser/go-sysconf

What does this PR do?
Fix license for tklauser/go-sysconf

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Closing, since duplicate of https://github.com/DataDog/datadog-agent/pull/14388


Merge integration test flow into main build.

Description of changes:
There seems to be an ordering issue with building integration test images - the otelagent base image may not be pushed before the apps are built causing them to use the old version. This merges everything into one, with Gradle dependencies, for better visbility of ordering (and some improved performance I guess).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bhautikpip I'll stick with this name - I think the build for the main branch is the build for the main branch, and that happens to have many different steps, including integration testing.


Update Couchsurfing URLs

Hello @simison ,
This repo is not being maintained anymore, but we are trying to keep it alive on a detached fork here, would you kindly submit your PR there and close this one here? :)


Implement Conditional Resource Grouping

Complete the missing parts of this PR and fix the UI width.
I’m not sure why, but it seems to work well with a 141px header, possibly due to how the browser calculates the flexbox layout

@anhdd-kuro This all looks really good. Only thing I suggest is including more events at the beginning of the week in the prop story so that it's more obvious.

@cutterbl
I've added more events and even add dnd to make sure it worked
please take a look


Revisited lock files

Added --removeLocks
Fixed runSeverRecover lock files location

@Wayonb , could we revisit the runServerRecover.sh file and how it's called? Currently, it doesn't do anything in dev/main as it's looking for the lock files in the wrong location. I've fixed this but now the server doesn't start correctly. Why is the recovery process executed in both server and broker docker containers? Should only one container do the recovery? Should one container (broker?) wait for the other container (server?) to finish booting/recovering?
Related to https://github.com/nemtech/symbol-bootstrap/issues/64

Superseded by https://github.com/nemtech/symbol-bootstrap/pull/166


Change name of "OpenStreetMap (Mapnik)" layer to "OpenStreetMap (Standard)"

(logging this here after reading the somewhat cryptic reply at https://github.com/osmlab/editor-imagery-index/issues/133#issuecomment-172623479 )
The "Mapnik" name made sense when the alternative was "Osmarender"; but now that there are multiple Mapnik-based renderings just on osm.org it doesn't make a whole lot of sense. Users get understandably confused; there's been at least one example of a mapper logging a bug against Mapnik (the piece of software) for a perceived shortcoming in OSM Carto because iD's imagery layer talks about that layer as "OpenStreetMap (Mapnik)".

Yes, I haven't yet changed anything related to editor-imagery-index.  I do plan to keep the "OpenStreetMap (Standard)" layer around, even though it was removed upstream.

Apologies for any confusion - I'm not suggesting the removal of the layer currently described as "OpenStreetMap (Mapnik)" - I think what I'm suggesting is a change to the name in https://github.com/openstreetmap/iD/blob/14c618c3a8259eb3f9433c8fe24173d66a95c08a/data/update_imagery.js#L43 to "OpenStreetMap (Standard)".

No problem, I understood what you meant.  I updated the name along with the other editor-imagery-index changes in aaaf830


fix(ingestion/redshift): incorrect SchemaFieldDataType (boolean + float)

can you also do an audit to check if there's any other redshift data types that we might be missing here?

Added more types and for GEOMETRY, HLLSKETCH set the type as NullType because GEOGRAPHY is set to NullType


Scary behavior from running example in README

Hello, I copypasted the example in README and executed it, and literally my PC started beeping nonstop. I ended up rebooting it to be safe.
My goal was too just see some random stuff printed to console and then hit Ctrl+C and stop it, but instead it hanged (nothing printed on stdout) and Ctrl+C did not stop the beeping. I tried killing every node process I could find but the beeping didn't stop. I might have missed something obvious though, I got scared and decided to turn it off asap.
Is this any normal?
I am using windows by the way.

By the way, on a side note: a huge thanks for all the great work you've done for JavaScript so far! It's awesome! :grimacing:

Hehe. I should probably have limited the size. Fixed now.
I'm not sure why it beeps for you. It might be because some of the random characters create an ansi escape code for the beep sound, or some other cmd.exe-specific reason.

Awesome, thanks :grin:


Output tensor eigenvectors

I am trying to perform fiber tracking on a data set and to do that I need to obtain the eigenvectors calculated in DTI computation. Hoping to see if they are saved somewhere, I tried changing the verbosity for the sct_dmri_compute_dti and this is what I got:
sct_dmri_compute_dti -i dmri_crop_moco.nii.gz -bvec dmri.bvec -bval dmri.bval -method restore -v 2

Spinal Cord Toolbox (version: 3.2.2)
Running /Users/spineimaging/sct_3.2.2/scripts/sct_dmri_compute_dti.py -i dmri_crop_moco.nii.gz -bvec dmri.bvec -bval dmri.bval -method restore -v 2
data.shape (48, 56, 28, 63)
Computing tensor using "restore" method...
Computing metrics...
WARNING: File dti_FA.nii.gz already exists. Deleting it.
WARNING: File dti_MD.nii.gz already exists. Deleting it.
WARNING: File dti_RD.nii.gz already exists. Deleting it.
WARNING: File dti_AD.nii.gz already exists. Deleting it.
Total processing time: 3 min 48 s

sct_dmri_compute_dti -i dmri_crop_moco.nii.gz -bvec dmri.bvec -bval dmri.bval -method restore -v 1

Spinal Cord Toolbox (version: 3.2.2)
Running /Users/spineimaging/sct_3.2.2/scripts/sct_dmri_compute_dti.py -i dmri_crop_moco.nii.gz -bvec dmri.bvec -bval dmri.bval -method restore -v 1
data.shape (48, 56, 28, 63)
Computing tensor using "restore" method...
Computing metrics...
WARNING: File dti_FA.nii.gz already exists. Deleting it.
WARNING: File dti_MD.nii.gz already exists. Deleting it.
WARNING: File dti_RD.nii.gz already exists. Deleting it.
WARNING: File dti_AD.nii.gz already exists. Deleting it.
Total processing time: 3 min 33 s

Is this supposed to happen? How else could I obtain the eigenvectors?

hi @Aaronearlerichardson, indeed, SCT does not output eigenvectors (because nobody was using it so far). It is super easy to add them though. I'll do it tmr.

the plan is to add a boolean flag -eigenvector with default=0

@Aaronearlerichardson what format would you like the eigenvectors on? as a single 5-d data, or as 3x 4-d data (V1, V2, V3 like in FSL's dtifit)?

I am specifically looking for the first eigenvector in a 4d single matrix (row, column, slice, 3)

ok, i'll implement the FSL way then

@Aaronearlerichardson can you please test branch jca/1974-dmri-tensor-eigenvector and let me know if it does the job for you?

Works perfectly for me. Thank you!


Callables should handle null args and kwargs

When functions are called, two data structures are created to hold their arguments: a java array for the args and a java hashmap for the kwargs. These are created even when the callable takes no arguments. We can prevent creating these empty data structures by making sure there are sufficient null checks when the callable is invoked.
(This is a copy of this PR)

Current status:
I'm unable to show that this change results in a performance boost, and I think this is because while not creating some arrays and hashmaps that will just be empty is an improvement, the extensive null checking on invocation cancels out the savings. If that is the case, I'm not sure this PR is a good idea because it could mean that performance worsens a bit for callables that do take arguments but we have to do the null checking anyway. Thoughts @freakboy3742? :-)

It appears that the reason why I can't write a benchmarking test to show the performance improvement is because the preparation for making a function invocation (the site of this optimization) is miniscule compared to the cost of making a function call. I reached this conclusion because a) the bytecode of the benchmark test I wrote is smaller (see gist here) and b) there is no noticeable performance difference between invoking functions that don't take arguments and functions that do (see gist here).


"bump router version" commit leads to 0.2.23 "Could not resolve dependency" error.

Since bump router version commit.
$ npm init solid@latest

will pull in the updated package.json leading to this error (with solid-start@0.2.23):
$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: demo-login@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@solidjs/router
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/solid-start
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/wheatley/.npm/_logs/2023-03-22T15_38_57_153Z-debug-0.log
$

Workaround: change package.json @solidjs/router" dependency entry from "^0.8.1" to "^0.7.0" before installing npm packages.

Should be fixed in 0.2.24


Get response from commands

Hi @enniel, I don't know if I'm doing something wrong or is just an issue.
I'm running the next code:
$algo = Artisan::call('ami:action', [
    'action' => 'ConfbridgeList',
    '--arguments' => [
        'ActionID' => '1',
        'Conference' => $extension
    ]
]);

dd($algo);

If the conference exist $algo equals 0 and if the conference don't exist the program never reach the dd($algo) statement.
Running the command version in the CLI I get the response succes if the conference exists, but when the conference don't exist I get nothing returned :(.
P.D: Sorry for my english, trying to improve 👍

Pls, some help?, what I'm doing bad.

I'm having the same issue.
I have in a controller:
public function test()
    {
        $result = Artisan::call('ami:cli', [
    		'command'      => 'queue show',
    		'--autoclose' => true,
]);
dd($result);
    }

The output is always 0. When I do it at the command line it works:
php artisan ami: cli 'queue show' --autoclose
The above command generates the expected output.

It looks like the output of 0 is correct in that Artisan::call is only going to return true or false depending on the success of the command.

Yes, it looks like output 0 is correct, but when an error occurs, it never reaches the dd ($ result) statement.
So what to do?, I need to know if the action was ok or not.
Thx.

I have the same that problem
always output show 0
public function Outcall (){
     $result = Artisan::call('ami:action', [
         'action' => 'Command',
         '--arguments' => [
             'Command' => "queue show"
         ]
     ]

);
     print_r($result);

How to fix this ?

Nobody help ?

The same issue still in Laravel 5.7, query taking too long and failed again of timeout.
Using below script for check:
 $result = Artisan::call('ami:cli', [
    		'command'      => 'queue show',
    		'--autoclose' => true,
]);
return response()->json($result);


Module list loading speedup

Reasoning:
Waiting for the list to load is annoying.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/TerasologyPRs/292/
Hooray Jenkins reported success with all tests good!

Oh I didn't even realize we had a pause in there and that was causing the longer loading. Nice and easy little tweak. If it was meant to do an animation of sorts while downloading we can probably reassess that when we actually have enough modules to take a while to get info on :-)
Thanks! This fixes #1940 IMHO so will close that too


Bumped production RELEASE for 1.22-6

Bumped production RELEASE for 1.22-6
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve
/unhold


"Operation could destabilize the runtime" exception on Save and Update methods call.

This is my code snippet:
using (var tran = _database.GetTransaction())
{
var record = _database.SingleById(id);
if (record != null)
{
record.MarkAsDead();
_database.Update(record);
AttachmentQueries.CalculateHasProductRecognitionErrors(_database, record.AttachmentId);
tran.Complete();
return RedirectToAction("Index", new { attachmentId = record.AttachmentId });
}
}
Code execution ends up with "Operation could destabilize the runtime" exception in version 3.1 and 3.2 but it works in version 2.6.88 very well. I can live with that version but it would be nice to have possibility use the last stable version ;).
Could you help me to solve my problem, please?
If you will have any question I'm ready to answer to.

Hmmm....
Would need to see the class you are updating. One of the properties must be
tripping it. Can u provide a full example of it failing?

Hi Adam,
public abstract class RecordBase

{

    public int Id;

    public int? RecordErrorTypeId { get; set; }

    public int? MaterialId { get; set; }

    public int? BundleId { get; set; }

    public int? ProductRecognitionTypeId { get; set; }

    public int AttachmentId { get; set; }

    public bool IsDead { get; set; }

    public int PartnerId { get; set; }

    public string EAN { get; set; }

public string SEC { get; set; }
    public void MarkAsDead()

    {

        IsDead = true;

    }

}

[TableName("SellOutRecords")]

[PrimaryKey("Id")]

public class SellOutRecord : RecordBase

{

public string ClientCode { get; set; }
   public DateTime SellingDate{ get; set; }

public string NIP{ get; set; }
public string ClientHQCity{ get; set; }
public string ClientHQZipCode{ get; set; }
public string FullClientName{ get; set; }
public string UnitSerialNumber{ get; set; }
public decimal UnitPrice{ get; set; }
public string InvoiceNumber{ get; set; }
public int Quantity{ get; set; }
public string BusinessOportunityNumber{ get; set; }
public SellOutRecord() { }
}

SellOutRecords table contains fields from RecordBase
The scenario is very simple:

Get object

Update IsDead property

Save object.

Thank you for very fast reaction.
Bart
From: Adam Schroder<EMAIL_ADDRESS>Sent: Thursday, April 28, 2016 3:18 PM
To: schotime/NPoco<EMAIL_ADDRESS>Cc: vbartolini<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [schotime/NPoco] "Operation could destabilize the runtime" exception on Save and Update methods call. (#267)
Hmmm....
Would need to see the class you are updating. One of the properties must be
tripping it. Can u provide a full example of it failing?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/schotime/NPoco/issues/267#issuecomment-215419982 https://github.com/notifications/beacon/AHzbF66_r25WgHSygEbR6xe1uhdA3V3Eks5p8LOZgaJpZM4IR5-L.gif
Nie znaleziono wirusów w tej wiadomości.
Sprawdzone przez AVG - www.avg.com http://www.avg.com
Wersja: 2016.0.7539 / Baza danych wirusów: 4563/12120 - Data wydania: 28.04.2016

What if you make the ID field a property?

Oh, very good point :). I did not notice it :(.
It works like charm, thank you …
… but could you explain to me why it was working at earlier vesion?
Bart
From: Adam Schroder<EMAIL_ADDRESS>Sent: Thursday, April 28, 2016 3:38 PM
To: schotime/NPoco<EMAIL_ADDRESS>Cc: vbartolini<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [schotime/NPoco] "Operation could destabilize the runtime" exception on Save and Update methods call. (#267)
What if you make the ID field a property?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/schotime/NPoco/issues/267#issuecomment-215425111 https://github.com/notifications/beacon/AHzbF8oxJHfKcUx5fHK_a1lXMJ2mjN6rks5p8LgygaJpZM4IR5-L.gif
Nie znaleziono wirusów w tej wiadomości.
Sprawdzone przez AVG - www.avg.com http://www.avg.com
Wersja: 2016.0.7539 / Baza danych wirusów: 4563/12120 - Data wydania: 28.04.2016

The mapping mechanism changed fundamentally and I probably don't have
enough test cases around fields. I'll leave this issue open as a todo task.
Cheers

Fixed in https://github.com/schotime/NPoco/commit/ed8f1a8eae96e2ac24ecbfa7dadb7f5444166ada


What is the purpose of _renderGroupedChildren?

What's the purpose of _renderGroupedChildren?
I'm trying to include an icon in a button, so it looks like:
    <Button style={{color: 'green'}} onPress={this._handlePress}>
      <View>
        <Text>Click Me</Text>
        <Icon name="rocket" />
      </View>
    </Button>

However, Button seems to only work if you include plain text without any children, like Icon or Text.

It was so that you could pass in separate strings that get coalesced into a single  component. For example:
<Button>
  Increment count to {currentCount + 1}
</Button>

would create <Text>Increment count to {currentCount + 1}</Text> somewhere in the view hierarchy instead of having two Text components.


set thumb mode after building xdata

This made xdata incorrect, causing issues when stackwalking

:shipit:

:shipit:

This fixes the in-proc case, but turns out that oop case still needs a bit more.

I added some code here for doing fixup when there is expanded unwind data. @leirocks, can you take another look at that code?


Structure of Training Images

Hi Lee,
What is the expected file-structure for the training images, the labels and the "reference" between the two, to put into Active folder?
I have coco annotations for many consecutive frames in a .json and the images separately with only reference between those two being the filepath/name. I have attached a json file for a single frame for clarity.
Help would be greatly appreciated!
Thanks and best regards.
Julian
kkp_single_frame.txt

I use the same format as the COCO.


Firmware 1.3.9: Incorrect Cloud credentials

Description
I get the "Invalid cloud password" message whet trying to configures a new Tapo Camera.
I had 3 Tapo cameras correctly configured until yesterday, when I installed the new release of the HA integration (5.4.2) and the new camera firmware (1.3.9). Since then, I follow all the steps (camera IP, camera account user/password), and all is correct until I put the cloud password.
I have changed 3 times the TPLink password, it works in the Tapo app, but to does not work in the HA extension. It still does not work in the latest version (5.4.3)
Reproduction Steps

Install  Tapo : Cameras Control extension
Reboot HA
Add new extension
Insert camera IP address
Insert camera account credentials (user/password)
Insert Cloud password ---> error "Invalid cloud password"

Expected behavior
The cloud password should work, as it is working in the Tapo app
If applicable, add error logs.
No response
Device Firmware
1.3.9 Build 231019 Rel.29120n(4555)
Integration Version
5.4.3
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
HAssio Os in
Search for similar issues
Yes
Additional information
No response

Same issue here. Since updating firmware to 1.3.9, it's no longer possible to connect TAPO Cloud.

Same issue here

Same issue here

From what we know so far, camera incorrectly generates the new password for local verification and it takes time to get it work again. Factory reset camera, remove from Tapo app, add to Tapo app and it will work.
I cannot investigate more until I receive the update.

If you are still experiencing issue and you are willing to port forward camera and share credentials so that I can debug further, reach out to me via<EMAIL_ADDRESS>Maybe I can find something we can do so that we do not need to factory reset.

Removing the camera from the app and adding it back does not solve the issue.
I am still experiencing the same issue with entering the Cloud.

Hi @JurajNyiri , thanks!
The factory reset solves! 🚀

Hi @JurajNyiri, it works now, thanx a lot !

Now my motion sensor is down... Marked as "no longer provided by the tapo_control integration".
Do you guys get same issue ?
I guess I will try factory reset.

@JeromeS68 that is expected, no need to factory reset.
Read and follow https://github.com/JurajNyiri/HomeAssistant-Tapo-Control#troubleshooting--faq

Ok, I will test it when I get back home. Thanks !

hello now we are in the same problem what you need to solve i can give Access to my cam

@JurajNyiri Hello!
I don't use Tapo Cloud Account,
Camera C200, hardware version: 2.0, firmware: 1.3.9 Build 231019 Rel.38052n(4555).
Camera Control integration is reinstalled (latest , I reset camera to factory settings, created the 3rd party account - but it doesn't help.
What I should do to fix Incorrect Cloud credentials?


Add translation for Brazilian Portuguese for new strings

This plugin is now archived. Unfortunately, I do not have the time to maintain or review pull-requests for this plugin. Feel free to fork this project if you are interested.


Documentation of scripts

the documentation about the script description, usage, inputs and outputs were totally missing in all scripts.

added documentation and descriptions of all scripts.


chore: port main header to ts

Closing in favor of a partial restructuring of the navigation componnents.


Native Julia FFTW

Hi,
First, love the project. It’s speed and quality has been a huge help in gradually weaning myself off of Matlab.
I was watching a JuliaCon talk from Stephen Johnson on meta-programming. He touched on on some of the meta-programming used in FFTW to optimize set of routines used for a given FFT on a per system basis.
Has there been any thought of porting those methods into Julia to create a native FFTW.jl as opposed to bindings for the existing C codes? It seems to me that Julia’s native representation of the AST would be ideal for that type of work.
Thanks for all the hard work!
Stew

For reference: There is https://github.com/JuliaComputing/FourierTransforms.jl, which is pretty much abandoned, however.

If nothing changed lately, there should be an undocumented generic FFT in FastTransforms.jl, but nowhere near to FFTW in terms of performance.

The FastTransforms.jl package seems to be calling out to FFTW.jl for all uniform FFT transforms.
I took a look at the IEEE paper from 2005  describing the methods used by FFTW to model and optimize the problem space. The paper is really worth reading, it gave me a much greater appreciation of the technical feat that is FFTW.
I'm not even sure if one could replicate the low-level optimizations of FFTW in Julia. Leveraging packages like SIMD.jl might help, but you would still lose a lot of careful memory management provided by C. I'd be really interested to hear opinions from Stephen or other more familiar with the code base; I'm still very new to julia.

The FastTransforms.jl package seems to be calling out to FFTW.jl for all uniform FFT transforms.

Last time I tried FastTransforms.jl, I could apply fft on a vector of Measurement from Measurements.jl which is definitely not compatible with FFTW.  I believe the code comes from src/fftBigFloat.jl

Thanks for the correction, it seems that  fftBigFloat.jl does have some custom FFT. It seems to contain both a radix-2 and naive DFT method.

I'm not even sure if one could replicate the low-level optimizations of FFTW in Julia. Leveraging packages like SIMD.jl might help, but you would still lose a lot of careful memory management provided by C.

I think it would be possible — there's no C feature that FFTW uses that isn't possible in Julia AFAIK.   That being said, there is a tradeoff between performance and generality here – e.g. if you wanted to handle every possible AbstractArray subtype with the same generic code you might lose some performance (but maybe not).
The main obstacle is that a package the size of FFTW is a lot of work to write.
It's much more feasible to implement something that gets decent (e.g. FFTPACK-level) performance (and in fact I've written some early prototypes in Julia in the past).

The main obstacle is that a package the size of FFTW is a lot of work to write, and I'm not super-inspired to go to the effort myself.

In addition, FFTW seems incredibly battle tested. I can only imagine the number of nasty bugs might get introduced in an full rewrite.
It's nice to hear that Julia has all the features necessary to implement FFTW in theory. Is the 2005 paper I linked still reasonably representative of the architecture of FFTW or is there something else I should take a look at?
I'll probably take a crack at some meta-programming on a 1D 2^N implementations as a way to learn Julia. Definitely nothing close to FFTW, but it should be fun!

Is the 2005 paper I linked still reasonably representative of the architecture of FFTW [...]?

Yes.


Destroying the router, in order to stop listening to its registered routes

Hi,
I have a modular website which instantiates several Grapnel routers, one per module.
I noticed that when one of those modules is re-created, although I re-instantiate the router via this.router = new Grapnel(), the callback for a given route is executed as many times as that module has been created.
So, basically, I wonder if there is a way to destroy a Grapnel router, so that it stops listening to its registered routes.
Regards,
Christophe

Grapnel uses window.onhashchange or window.onpopstate to trigger its route event handlers. So any subsequent routes are effectively destroyed by overwriting the events property.
this.router = new Grapnel();

this.router.destroy = function(){
    this.events = {};
}

Thanks for the answer. And doing this.events = {}; wouldn't have any side effects on code outside Grapnel?

Yes, it would. Just creating an instance of Grapnel overwrites any listener on window.onhashchange or window.onpopstate already, but before it does it inherits any other listener already there, including any other Grapnel routers. Therefore it is the responsibility of the last-created router to delegate those window.onhashchange and window.onpopstate events. So if the last-created router is effectively destroyed, any previous routers won't get their events fired (even though their route event handlers are not destroyed). This is only the case when there are more than 1 routers on a page and the last router that is instantiated is destroyed.
There is a work-around for this, and that is to reassign the events:
var router = new Grapnel(),
    routerToDestroy = new Grapnel();

routerToDestroy.destroy();

window.onhashchange = function(){
  router.trigger('onhashchange');
}

window.onpopstate = function(){
  router.trigger('onpopstate');
}

Thanks for the explanation. I'm still confused about something else from your first comment.
In my initial example, this refers to the instance of a JavaScript controller, so it's my own JS object. I guess that in that case, this.events from your code doesn't contain anything, and so this.events = {} will reset nothing. Or am I missing something?

If you have create an instance of this.router = new Grapnel() then this.router.events is called with a context of this.router.

Heads up though, I think I am going to add support for a router.destroy() method within Grapnel itself, which should solve both of your issues (destroying, and maintaining multiple active routers).

Sounds awesome :) Thank you!

@PanzerKunst Please note that in v0.5.3 you can now just use the following code to destroy a router, even if there are more than 1 routers in an app:
this.router = new Grapnel();

this.router.destroy = function(){
    this.events = {};
}

It works great, I tested it here: http://jsfiddle.net/mp51d3pw


Add support to add reference to test run.

Hello, I was wondering if we could add support for reading test run from config and passing when we create a test run. I would be more than happy to create the pr for it. Also, I ran my tests with run-workers --suite command and test runs are being created per suite.

Sure, any PR is more than welcome. 😊

@PeterNgTr are you also away that providing the --suites param does not combine the results to one run in testrail ?

@TripleC1986 maybe the lib will be reworked once CodeceptJS run-workers is refactored.


[Bug]: ImportError: DLL load failed while importing _C: The specified module could not be found.

What happened?
$ python stable_diffusion.py
Traceback (most recent call last):
File "D:\Python\olive\olive\examples\directml\stable_diffusion\stable_diffusion.py", line 17, in
from diffusers import DiffusionPipeline, OnnxRuntimeModel, OnnxStableDiffusionPipeline
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\diffusers_init_.py", line 3, in
from .configuration_utils import ConfigMixin
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\diffusers\configuration_utils.py", line 34, in
from .utils import (
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\diffusers\utils_init_.py", line 21, in
from .accelerate_utils import apply_forward_hook
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\diffusers\utils\accelerate_utils.py", line 24, in
import accelerate
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\accelerate_init_.py", line 3, in
from .accelerator import Accelerator
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\accelerate\accelerator.py", line 33, in
import torch.utils.hooks as hooks
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\utils_init_.py", line 4, in
from .throughput_benchmark import ThroughputBenchmark
File "C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\torch\utils\throughput_benchmark.py", line 2, in
import torch._C
ImportError: DLL load failed while importing _C: The specified module could not be found.
Version?
Latest

Hi, this issue comes from the installation of python in your environment and is not directly from Olive.
Can you please try the steps in this FAQ? https://pytorch.org/docs/1.4.0/notes/windows.html#import-error
Since, it appears you are not using a conda environment. The relevant section should be the one after As for the wheels package, ...

This is related to torch. It is not Olive issue.


QueenParseTreeVisitor.java: Decide what to do here, retur...

The puzzle -711042231 originating from #49 has to be resolved:
https://github.com/jvmqueen/queen-of-java/blob/4a5a3aec658adcd0641f4487e84e2f63f34a6f29/src/main/java/org/queenlang/transpiler/QueenParseTreeVisitor.java#L657-L657
"Decide what to do here, return null or throw exception.".
The puzzle was created by amihaiemil at 2023-01-18 23:04:25 +0200.
Estimation is 60 minutes.
If you have any technical questions, don't ask me, I won't be able to help. Open new issues instead.

@amihaiemil this is your task now, please go ahead. Deadline (when this ticket should be closed) is 2023-01-28T21:10:37.220167.
Estimation here is 60 minutes, that's how much you will be paid.
Remember, you don't have to solve everything in this ticket - you can solve it partially and leave todo markers in the code, which will become future tasks.
If you have any questions don't ask me, I'm not a technical person. Open new tickets instead.
If you don't have time or simply don't want to work on this, you can always resign.

@amihaiemil Don't forget to close this ticket before the deadline (2023-01-28T21:10:37). You are past the first half of the allowed period.

@amihaiemil Looks like you've missed the task deadline (2023-01-28T21:10:37). You are now resigned from this task.
Please stop working on it, you will not be paid. I will assign it to someone else soon.

@amihaiemil I couldn't find any assignee for this task. This is either because there are no contributors with role DEV available or because the project does not have enough funds.
Please, make sure there is at least one available contributor with the required role and the project can afford to pay them.

Puzzle disappeared from the code, that's why I closed this ticket.


Reuse domains rather than spawning them for each parallel test

Given that domains are costly to spawn and join, and parallel tests in multicoretests do it many thousands of times, I wanted to look at it more closely. A quick perf profile on src/array/lin_tests.ml shows that more than 50 % of the time is spent in Domain.spawn. I wanted to try spawning domains only at the start of the test sequence and reusing them. Then I realised that this is exactly what Domainslib provides with domain pools!
This proof of concept PR simply replaces Domain.spawn  with Domainslib.Task.async and Domain.join with Domainslib.Task.await. The approach implies to setup a domain pool and pass it to the tests. I have edited src/array/{lin,stm}_tests.ml to reflect this.
The results are rather encouraging: src/array/lin_tests.ml is cut down from about 4.5 s to 0.3 s! (With extremely far off statistical outliers due to bad luck in interleaving search.) However, this is a favourable case as the test’s commands are very cheap to run. The same comparison on my extensive Dynarray STM parallel test gives 24 s vs 12 s for the version with domain reuse, so merely a 2x speedup.
If depending on Domainslib is an issue, the mechanism can be reimplemented using atomics, mutexes and condition variables easily enough. (A reimplementation would likely squeeze some more performance out by not requiring a work-stealing queue.)
It looks like about 20 % of the time is now taken by Sys.cpu_relax, so further improvement may be possible still.

I removed the dependency to Domainslib to use Stdlib mutexes. Since @jmid mentioned in a discussion that he wasn’t fond of the user having to wrap the test runner in a call to Util.Domain_pair.run (fun pair -> ...), I also tried to reuse domains only for intra-test repetitions, as he suggested. I measured the following run times (s):

src/array/lin_tests.ml
src/array/stm_tests.ml

main (c65989d)
4.796 s ±  2.306
2.640 s ±  5.203

Intra-test reuse of domains
2.543 s ±  0.751 (speedup 1.89)
2.272 s ±  1.925 (speedup 1.16)

Maximal reuse of domains
716.9 ms ± 725.0 (speedup 6.67)
1.270 s ±  1.004 (speedup 2.08)

@jmid also argued that spawning a pair of Domains for each pair of parallel command sequences allows to test them for a clean state. Although it’s true that it means an initially empty minor heap, I can’t think of tests where an initial empty minor heap is a better test context.

(With some advice and help from @fabbing to switch to mutexes!)

Thanks Olivier!
Quick observation: why does this cause so many Failure("failed to allocate domain") errors?
Overall, this should allocate less Domains - not more. Are there conditions under which the spawned Domains are not joined? (that could explain why several tests are running out of them)

Strange, it should indeed spawn strictly less domains.

Overall, this should allocate less Domains - not more. Are there conditions under which the spawned Domains are not joined?

Normally, no, the Util.Domain_pair.run function joins the domains before returning. I’ll try to take a look the next time I have some time on my hands.

Thanks again for this! :pray:

From your numbers it seems we should be able to get a decent speed-up, even if we just retain the pool to the property.
I think I found the issue with running out of Domains: the property raises a QCheck exception on failure to report the observations. When doing so, I believe the exception meant that the underlying Domain's wheren't joined in the end.

Well spotted, thanks!
There seems to be a lot of failures still, I’ll have a look at it on my spare time at some point…

I think I figured this one out too: the hint was STM tests with non-trivial precond triggering failed to allocate domain.
Preconditions are checked before Domains running, and if the precondition fails, it is signaled to QCheck ... with an exception, thereby causing takedown not to run :shrug:
With that in mind, it makes sense to run the precondition check first, before attempting pool init.
The opam install workflows will still fail, due to util.ml now requiring OCaml 5.

@jmid also argued that spawning a pair of Domains for each pair of parallel command sequences allows to test them for a clean state. Although it’s true that it means an initially empty minor heap, I can’t think of tests where an initial empty minor heap is a better test context.

There are a few, e.g., tests of Weak and Ephemeron where the state of the heap may affect the behaviour of a test run. Another example where Domain-reuse may bite is in tests of Domain.DLS, where the state is attached to the Domain itself.
I think we misunderstood eachother however:
Generally, I'm fond of self-contained properties, as they are central to reproduce errors and have shrinking work well.
Starting to depend on the state of reused Domains, challenges this, if the state of the underlying pool may start to influence things. From this POV it is preferable to decouple the testing of one triple from the next.
For end-users, and assuming the runtime is bug-free, Domain reuse may be less of a worry.
However, as we are foremost concerned with testing and helping ensure the correctness of the OCaml 5 runtime, I'm thinking of whether Domain-reuse should be optional... :thinking:

I see, it makes sense to me too, then, to make domain re-use an option.


⚠ Bofrost.be has degraded performance

In 05193fa, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1736 ms

Resolved: Bofrost.be performance has improved in c4472e2 after 6 minutes.


Fix warning and refactor losses

Fix a gpu num warning. Raise the warning under the correct condition.
Add a new constant HF_MODELS to gather all the huggingface models.
Move all the customized loss definitions into one file. We will only need to add new losses into this file rather than keeping adding new loss files in future.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We will have losses for different tasks, and putting them altogether might be confusing, e.g. iou_loss (only for bbox prediction) and rkd_loss (only for distillation) in one file.

Given that AutoMM is for multimodal and multitask, having different types of losses is natural.

Putting losses together is easier to use. We/users only need import from a fixed path multimodal.optimization.losses. No need to remember specific names of loss files.
Organizing losses together gives a cleaner design. A single loss seems not important enough to stand side-by-side with training loop files. Adding many loss files in the optimization module sacrifices the code readability, which is not good way to scale up.
Some repos, like sentencetransformer, have a specific losses folder containing all the loss files. If necessary, we may consider adding a losses folder in optimization and put the separate loss files there. I am not sure whether we need to do so for now.


Remove deprecated API and settings

Remove deprecated:

use_no_proxy and appropriate API
deprecated  versions of dump , load https://github.com/ClickHouse/clickhouse-java/blob/0f95633af4bd971d7156079351875704fd5396fa/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java

@zhicwu By removing use_no_proxy from config, we also remove it from GRPC https://github.com/ClickHouse/clickhouse-java/blob/32a8bf00d19eadf1e14e3f66041752c4f4dbd5fc/clickhouse-grpc-client/src/main/java/com/clickhouse/client/grpc/ClickHouseGrpcChannelFactory.java#L196

@mshustov there is another API connect that also can be removed https://github.com/ClickHouse/clickhouse-java/blob/0f95633af4bd971d7156079351875704fd5396fa/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java#L918C1-L918C1

PR https://github.com/ClickHouse/clickhouse-java/pull/1433


Login styles

This request includes all changes from other login style branch, but matched up against latest predix_extensions_3.6.0 branch

@jonniespratley   @ilipkind
test failures - http://sjc1jenkins08.crd.ge.com:8080/job/Predix-Security/job/uaa-build-n-test-pullrequest/18/testReport/

Please add @Ignore to following tests:

org.cloudfoundry.identity.uaa.login.AccountsControllerMockMvcTests.testCreatingAnAccountInAnotherZoneWithNoClientRedirect	2 sec	3
org.cloudfoundry.identity.uaa.login.AccountsControllerMockMvcTests.testCreatingAnAccountInAnotherZoneWithClientRedirect

I have also started http://sjc1jenkins08.crd.ge.com:8080/job/Predix-Security/job/uaa/job/uaa-build-develop/79/console  for predix_extensions_3.6.0 branch to confirm that other failures are from the base branch.

all unit tests passed on jenkins. IT failures are same as parent branch


Enable RBAC

HI Team,
I tried to enable rbac on milvus cluster by including below snippet in milvus.yaml file. But still getting error while creating a "Role".
spec:
mode: cluster
Omit other fields ...
components:
# use the above ServiceAccount
serviceAccountName: milvus
#image: milvusdb/milvus-dev:master-latest
proxy:
serviceType: LoadBalancer
replicas: 2
config:
log:
level: debug
minio:
cloudProvider: aws
# your bucket name
bucketName: milvus-s3
rootPath: milvus/s3-access
# Optional, config the prefix of the bucket milvus will use
useSSL: true
useIAM: true
auth:
rbac:
enabled: true
dependencies:
etcd:
inCluster:
Error:

from pymilvus import utility
role_name = "readOnly"
role = Role(role_name, using=_CONNECTION)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Role' is not defined

Please guide and share some sample yaml file or suggest the section(config, dependencies etc)where to add rbac code snippet in yam.
Thanks in advance.

Hi, the Role class is defined  in pymilvus package. So you could either:
import pymilvus
# ...
role = pymilvus.Role(role_name, using=_CONNECTION)

or:
from pymilvus import Role
# ...
role = Role(role_name, using=_CONNECTION)

And about the guide, check the Document section of the README file. and rbac operation examples can be found in milvus.io.
It seems that you were following the latter, and indeed it doesn't mention you should import Role in pymilvus package. We'll fix that soon. Thank you very much for the feedback

thank you @haorenfsa...its working now


Mitigate Image-Scaling Attacks: Implement Secure Scaling Algorithms

Referencing #42388
This pull request addresses the issue of image-scaling attacks by implementing secure scaling algorithms in the TensorFlow codebase. Image-scaling attacks pose a security threat to machine learning applications, similar to adversarial examples, as they allow adversaries to manipulate the output of the downscaling operation, impacting the security of machine learning models.
Changes Made:
Secure Scaling Algorithms: We have introduced secure scaling algorithms in the code to prevent image-scaling attacks. Specifically, we have modified the code to use secure scaling algorithms, which consider all pixels equally during downscaling, making it difficult for adversaries to manipulate specific pixels.
Parameter Validation: We have added parameter validation to ensure that critical parameters such as align_corners and half_pixel_centers are used securely. This prevents potential vulnerabilities in the scaling process.
Input Validation: We have added input validation to ensure that the up/down sampling size is always positive, addressing a fundamental security concern in the image-scaling process.
Why These Changes:
Machine learning models often rely on image downscaling, and ensuring the security of this process is crucial. The changes made in this PR are essential for the following reasons:
Security: The modifications aim to enhance the security of machine learning applications by mitigating the risk of image-scaling attacks.
Adversarial Examples: Image-scaling attacks are analogous to adversarial examples, where slight manipulations can deceive machine learning models. By using secure scaling algorithms, we make it harder for attackers to exploit the downscaling process.
Parameter Validation: Parameter validation ensures that critical parameters are used securely, eliminating potential vulnerabilities.
Input Validation: Input validation guarantees that up/down sampling sizes are always positive, reducing the risk of manipulation.

This code will not run. You would need to implement functions for optimized_ops::SecureResizeBilinear, optimized_ops::SecureResizeBilinearInteger, and reference_ops::SecureReiszeBilinear. Right now you are calling functions that do not yet exist. Follow what previous ops have done. You also will need to add some tests if you want to introduce a new op.


feat(product): change the DaffProduct.price model

BREAKING CHANGE: the DaffProduct.price model has changed
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?
The price and discount are split up into different product fields. Now that discountedPrice will also be added as an innate DaffProduct field, the price-related fields will be too spread out.
What is the new behavior?
The originalPrice, discount, and discountedPrice fields are all housed under the same DaffProduct.price field.
Does this PR introduce a breaking change?
[x] Yes
[ ] No

Closing as stale.


How accurate calculation can be? (uniswap v3 pool)

How accurate can be the calculation of the commission earned by the uniswap v3 pool? (back test on historical data)
When I run the backtest and compare the result with the results of my real pool, the difference in eth is less than 0.06 percent, but in usdt the difference is 0.428%.
Is it possible to get 1 in 1 exact data?,
and if not, how to get closer to these values?
What is acceptable difference ?

Backtesting runs at minute intervals, which introduces some errors, but also brings some benefits.

This approach allows for standardizing the time intervals across different pools.
The efficiency of backtesting is much higher compared to replaying each log.

Another potential source of error is when the pool is very small, leading to the virtual liquidity of users dominating a significant portion of the total liquidity in the backtesting.
The third scenario is when the current price is at the edge of a position. There might be slight errors when it moves out or in  the range.
Finally, could you share your code so that we can help you review it for any other potential sources of error?


Update Set-SPEnterpriseSearchQuerySpellingCorrection.md

Formatted example

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-server/Set-SPEnterpriseSearchQuerySpellingCorrection.md
:white_check_mark:Succeeded
View (sharepoint-ps)

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


The results are inconsistent with the paper.

I ran the algorithm on Epileptic with k=50, and the centers are read from Eplic3.csv. However, the number of calculating distances of the version of ring and no ring are 3.5E6 and 16.1E6 respectively, which is not consistent with the result shown in Table 3 in the paper.

Hello dear reader, I just checked your question. Your experimental results are correct, except that the scientific notation used in our paper only retains one digit.
------------------ 原始邮件 ------------------
发件人:                                                                                "syxiaa/ball-k-means"                                                                                @.>;
发送时间: 2022年4月16日(星期六) 上午10:01
@.>;
@.***>;
主题: [syxiaa/ball-k-means] The results are inconsistent with the paper. (Issue #4)
I ran the algorithm on Epileptic with k=50, and the centers are read from Eplic3.csv. However, the number of calculating distances of the version of ring and no ring are 3.5E6 and 16.1E6 respectively, which is not consistent with the result shown in Table 3 in the paper.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

I get it, thx for your reply.

I get it, thx for your reply.


Music recommendations

Fixes #15
https://user-images.githubusercontent.com/48474421/164044021-a3eecc07-d1a8-4393-b8c1-0f374b400fe9.mp4
Description

Integrates the Spotify API

2 endpoints

POST credentials to receive access token
GET playlist

Custom Audio player for previewed songs

Creates an embed for a Spotify playlist

Cards to place different songs using bootstrap

Workflow for choosing genres to help choose playlist - user preference variable(stored in localStorage)

Specifying the different playlists

Other: Added .eslintcache to .gitignore

Dependencies
Bootstrap - Added CDN in index.html

@yashika51 This should be ready for review/merge.
There are 2 new env variables(Spotify id & secret) that need to be added to netlify deployment configs so as to not break the deployment
cc: @OmkarAcharekar


roles: dotfiles: mutt: previous.mutt fix comment

The file references itself, when it means to
reference a companion. This patch resolves
the issue by changing the reference to
next.mutt.

Thanks! Copy-pasta strikes again.


[Dropdown][Search Selection] Match any part of the string

This is a feature request.
Currently, when you search in a dropdown it matches the string from the beginning only. You can't search for something in the middle of the string (LIKE% matches, %LIKE% doesn't). For example, if you want to search a dropdown of users and you type their last name but no results are found unless you type the first name first.
Example
http://semantic-ui.com/modules/dropdown.html
What happens

Go to the country dropdown search select.
Type states
No results found.

What's expected

Go to the country dropdown search select.
Type states
United States shown in the list as a match.

Example of expected
jQuery's autocomplete does this and there is an example here: https://jqueryui.com/autocomplete/#combobox

Under Settings (tab), Additional Settings:
http://semantic-ui.com/modules/dropdown.html#additional-settings
fullTextSearch :  Whether search selections should look for string match anywhere in string.
$('.ui.dropdown').dropdown({ fullTextSearch: true });

Hope that helps.

That works. Didn't see that in the docs. Thank you. :)

fullTextSearch=true doesn't appear to do a substring match for the query-string in the items. instead, it appears to match in order occurrence of all characters of the query-string in the item with any other characters interspersed (example : query-string 'temp' will match 'mytestmatchpick' and 'mytemperature' ).
Any idea how to restrict to a strict substing match behavior ?

I can confirm @duapraveen  problem, we really need a fix for this

fullTextSearch=exact seems to do what i needed - looks for the query-string anywhere in the strings.
http://semantic-ui.com/modules/dropdown.html#additional-settings

Thanks @duapraveen for your response but that didn't work for me in search
http://semantic-ui.com/modules/search.html
Could you help in this ? I know it's out of this issue context but it's the same behavior in search, that's what got me here.

Gracias kapo

I am facing the same issue with react semantic ui. @duapraveen @kmd1970 Can you please help me with that.

@Jayashree-panda if you are using semantic-ui react maybe this can help you https://github.com/Semantic-Org/Semantic-UI/issues/3424


Build fails with GCC 5

Building with GCC 5.1.0 (x86-64) fails with two errors:
MockExpectedCallTest.cpp:531:46: Format %p expects argument of type void, but argument 2 has type »MockExpectedCallComposite*« [-Werror=format=]

     info += StringFromFormat("%p", &composite);
                                              ^

and
Unknown commandlineoption »-Wno-c++98-compat« [-Werror]

(Both translated from my system language)
Tested with current git version and v3.7.2 (using cmake -DC++11=ON ..)
With GCC 4.9.x everything was ok.

Seems the root cause is the first error, I'll open a PR with a fix.

Autotools will need some more years, here it is ...

Should the second one be fixed too still? We should be able to do that within the configure.ac

Should the second one be fixed too still?

I don't think so, it looks like the error was caused by the type mismatch only. With the cast added the second error is gone.

Ok, strange. Anyways, your other PR is merged.

Thanks, issue is solved then.


PHPCS expecting the wrong number of tabs

Given the following code:

	<?php if ( $key->lifetime ) {
		echo 'Not applicable to lifetime subscriptions.';
	} ?>

If I run phpcs --standard=WordPress-Core  example.php I get the following error:
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 4 | ERROR | [x] Line indented incorrectly; expected 0 tabs, found 1
----------------------------------------------------------------------

Maybe I'm missing something but it seems to me that the indentation of the code above is correct and PHPCS is mistakenly reporting an error.

I think this would need to reported upstream https://github.com/squizlabs/PHP_CodeSniffer/
Indention is difficult to process when switching between PHP and HTML.
Related https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/679

Try putting the if on the next line like:

    <?php
    if ( $key->lifetime ) {
        echo 'Not applicable to lifetime subscriptions.';
    }
    ?>

Or better yet, use the alternate syntax for control structures since they are more template-taggy:

    <?php if ( $key->lifetime ) : ?>
        Not applicable to lifetime subscriptions.
    <?php endif; ?>

Thanks for the information. Apparently this is happening by design:
https://github.com/squizlabs/PHP_CodeSniffer/issues/1143
So I'm closing this issue.