stdin works now

Stdin works now
import the new pty client
removed the io.copy error message

Fixes #1

Fixes #1

Thanks for your pull request. I tested it on my server and it works fine, but I guess we can't emulate the whole (nativ) experience of just using srcds_linux, like auto-completion or the command history via arrow keys.
So my question is, how are you using the source_logger. Are you redirecting the output to a file, are you using it with systemd or are you using your own software?

( I'm from Germany. I hope you my english is not so bad :) )
I have wrote a Java Client/Server Programm in which I can run a lot of "small servers" and control them. I can also see in my Java Programm the Output of the Server and send them via the Input commands to them.

So I start with the Java "BuilderProcess" with the arguements "./source_logger …"
And with the Little Change from me (I compiled it before, I send you the request). It works very well.

If you have more Questions, write me back.
-----Ursprüngliche Nachricht-----Von: Lukas<EMAIL_ADDRESS>Samstag, 21. März 2020 18:40An: LukWebsForge/SourceLogger<EMAIL_ADDRESS>JJBlue<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Re: [LukWebsForge/SourceLogger] stdin works now (#2)/author@noreply.github.com/lieb.julian<EMAIL_ADDRESS>Thanks for your pull request. I tested it on my server and it works fine, but I guess we can't emulate the whole (nativ) experience of just using srcds_linux, like auto-completion or the command history via arrow keys.So my question is, how are you using the source_logger. Are you redirecting the output to a file, are you using it with systemd or are you using your own software?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Yeah that seems to be a very useful use case. Thanks for your clarification. I'll merge your pull request, and also thanks for your work and good luck with your project. 👍


build tags in Azure Pipelines

continuing #369

Still not building tags. I'll try merging this to master.


Use SQLite instead of EF In-Memory provider for testing

Fixes #91

@Rick-Anderson I was a bit in doubt whether I should update the actual application (https://github.com/dotnet/AspNetCore.Docs.Samples/blob/main/test/integration-tests/IntegrationTestsSample/src/RazorPagesProject/Program.cs#L10) to use SQLite as well as that would probably ruin what we want to show in the snippet.

Alright, I've push a commit with that update and we can always revert it.

@jvandertil  nice work, looks good. Ready to merge?

@Rick-Anderson Yes, should be good to go!


Works beautifully with the latest Android phones .. but Apple?

This is obviously not a priority, but I was wondering if anyone's tried streaming a video on http://instant.io using a smartphone.
I've tested it on both a Samsung Galaxy S5 (or S4? can't remember exactly..) as well as an iPhone 6 Plus.
I used Google chrome on both devices. Samsung Galaxy was streaming and seeding it beautifully. iPhone 6 managed to download and seed the torrent, but video play back would simply not initiate. It showed a black screen with a play (>) symbol, but that's about it. Nothing happens when you click on it.
I was wondering whether this is a problem with HTML5 video in general on the iPhones. I tried all browsers I could, firefox, chrome, safari .. but none of them worked on iPhone.

WebTorrent version:
Instant.io

Browser name/version (if using WebTorrent in the browser):
Google Chrome

Safari on iOS doesn't support WebRTC.
It is possible to build a Cordova app that will run on iOS with WebRTC support, so you can still support iOS users, they'll just have to install an app first.

@jerwarren It sounds like he was using a torrent with an http web seed, which is why he saw download speed on Safari.
@kopy-kate The video playback not working in Safari is an issue with the videostream library we depend on. There's an issue about it here: https://github.com/jhiesey/videostream/issues/24


Allow auto-generated node names in PopupMenu::add_submenu_item

Follow-up to https://github.com/godotengine/godot/pull/84617. After a bit of consideration, @akien-mga and I decided that it's best to allow the forbidden character. This is an ad-hoc way to address it, though exposing it on String would've been useful as well. But it's an exposed method there and I don't want to mess up things.

Does this mean we should revert the naming of CSharpTools or is naming PopupMenu nodes still preferred?

Does this mean we should revert the naming of CSharpTools or is naming PopupMenu nodes still preferred?

Explicit names are still preferred for this API. Ideally it shouldn't rely on names and just take node references, but for now we have to make do with this design.

Thanks!


[Bug]: Circular dependency on job-scheduler-spi SNAPSHOT

Describe the bug
There's a circular dependency on -SNAPSHOT builds being published to maven that require the distribution build to be successful.
To reproduce

In order to build anomaly-detection job-scheduler-spi SNAPSHOT is required, e.g. https://github.com/opensearch-project/anomaly-detection/pull/360 that is failing because job-scheduler-spi in maven is not up-to-date
In order to publish job-scheduler-spi SNAPSHOT to Maven a successful distribution build is required
The distribution build is failing because anomaly-detection cannot be built, because of (1)

Expected behavior
We shouldn't be able to get into this situation. Most likely this means we need to change our distribution build to publish snapshots after each component is built, and not at the end.
Additional context
To work around this problem we have to break the circular dependency temporarily:

Remove the problematic component from the build, e.g. https://github.com/opensearch-project/opensearch-build/pull/1462
Produce a successful distribution build without anomaly-detection
Fix the issue in anomaly-detection, e.g. make sure https://github.com/opensearch-project/anomaly-detection/pull/360 passes.
Re-add anomaly-detection to the distribution, e.g. https://github.com/opensearch-project/opensearch-build/pull/1464

This is closely related to this issue https://github.com/opensearch-project/opensearch-build/issues/1366
Right now in the manifest we first build the Core, job-scheduler and common-utils and then update with other components. This is a known dependency model, in terms of automation what we can do is, since we have a --component feature in now for build workflow, we can onboard all the components in the manifest and build in an order.
1st run would be --component OpenSearch job-scheduler common-utils.
@dblock @bbarani @peterzhuamazon

Hi, team, just to quick check if this is still a valid issue/blocker, and if we can close it now ... thanks!!

I am closing this issue for now .. pls re-open/create a new one if needed,,, thanks !!


Platform feedback

Didn't find an email, so sending my feedback here.
When you plan the platform architecture, try to structure it in a way where you don't need source-code access to our code.
Ideally, a Github Actions job (or similar) would (a) push the photos to your platform, or it would (b) send a full HTML/CSS/JS package along with an URL path to you.
That way, you don't have access to our source code, you don't have to worry that much about being hacked and it would be much easier to convince our security team to adopt your product.
Also, the CLI tool that would be used in our Github actions runner should preferably be open-source (for inspection) and pinnable (via e.g. NPM), so that if you get hacked it will be harder for a malicious actor to roll out an evil update of that tool.

hey @sandstrom! awesome that you found time to provide the feedback, thanks a lot! In the current architecture, we are working with repository-held baseline images which means that updating them through the platform needs write access to the repo we are working with. We are already wrapping up the next version of the platform that would allow you to just send images and not be concerned about giving us source-code access.
Currently, lost-pixel IS the action that generates the images & compares them. It is available via npm and actions marketplace and is pinnable! You can use the lost-pixel visual regression testing flow without a platform at the moment and be fully secure in terms of the source code as you would be responsible for running everything on your CI premises.

@sandstrom precisely! I will get back to you here when we ship the open beta of the platform that will cover all the problematic spots that we explored in this conversation! Closing the issue for now, feel free to ping me directly for any questions<EMAIL_ADDRESS>

Thanks @d-ivashchuk !


coprocessor: configure consistency check method

Signed-off-by: qupeng<EMAIL_ADDRESS>What problem does this PR solve?
Add configuration for consistency check method.
Related changes
Check List
Tests

Unit test

Side effects
Release note

coprocessor: support to configure mvcc consistency check method

/rebuild

/merge


HOSTEDCP-2022: Reconcile SecretProviderClass for Image Registry on ARO HCP

What this PR does / why we need it:
Reconcile the SecretProviderClass for the image registry operator for ARO HCP deployments. The SecretProviderClass is used by the Secrets Store CSI driver to mount a certificate to a volume in the image registry pod deployment.
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

Needs:

https://github.com/openshift/cluster-image-registry-operator/pull/1131
https://github.com/openshift/hypershift/pull/4877

/hold

/unhold

/test all

/hold
Need to hold for https://github.com/openshift/release/pull/58328 so e2e-aks can pass on this PR

/hold cancel

/retest

/test unit

/test unit

/test e2e-aks

/lgtm

/test e2e-aws-4-17

/jira backport release-4.17

/jira backport release-4.18,release-4.17


Unable to cast object of type 'System.Text.Json.JsonElement' to type

There appears to be a bug when a POCO is used as an input it doesn't appear to deserialize the object to the POCO and JsonElement is not castable to other types. I observed this same issue with both the traditional function methods and the class-based tasks.
Error: One or more errors occurred. (Unable to cast object of type 'System.Text.Json.JsonElement' to type 'Microsoft.DurableTask.Person'.)
Example:
using Microsoft.Azure.Functions.Worker;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.DurableTask;
using System;
using System.Threading;
using System.Threading.Tasks;

// POCO placed here because of https://github.com/microsoft/durabletask-dotnet/issues/35
namespace Microsoft.DurableTask
{
    public class Person
    {
        public string Name { get; set; }
    }

    public class Message
    {
        public string Value { get; set; }
    }
}

namespace FunctionApp1_DotnetIsolated
{
    public class Function1
    {
        [Function(nameof(Function1))]
        public async Task<HttpResponseData> RunAsync([HttpTrigger] HttpRequestData req, [DurableClient] DurableClientContext durableContext)
        {
            var person = BinaryData.FromStream(req.Body).ToObjectFromJson<Person>();
            var instanceId = await durableContext.Client.ScheduleNewOrchestrationInstanceAsync(nameof(SayHelloOrchestrator), input: person);
            var result = await durableContext.Client.WaitForInstanceCompletionAsync(instanceId, CancellationToken.None, getInputsAndOutputs: true).ConfigureAwait(false);

            var response = req.CreateResponse();
            await response.WriteAsJsonAsync(result.ReadOutputAs<Message>()).ConfigureAwait(false);

            return response;
        }
    }

    public class SayHelloOrchestrator
    {
        [Function(nameof(SayHelloOrchestrator))]
        public async Task<Message> RunAsync([OrchestrationTrigger] TaskOrchestrationContext context)
        {
            var person = context.GetInput<Person>();
            var message = await context.CallActivityAsync<Message>(nameof(GetMessageActivity), person);
            return message;
        }
    }

    public class GetMessageActivity
    {
        [Function(nameof(GetMessageActivity))]
        public Task<Message> RunAsync([ActivityTrigger] Person person)
        {
            var message = new Message { Value = $"Hello {person.Name}!" };
            return Task.FromResult(message);
        }
    }
}

Package references:
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="0.4.1-beta" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.4.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.7.0-preview2" OutputItemType="Analyzer" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.8.0" />

Thank you for the report. I believe this is already tracked via #34. You can find the cause there.

@jviau with your recent fix, are we able to close this issue?

I want to verify this exact scenario first before I resolve this issue.

Just ran into this myself trying to switch from in-process to isolated - are the orchestrators unable to deserialize json objects?

public class FileUploadOrchestratorInput
{
    public int? DataFileId { get; set; }
    public string FileName { get; set; }
    public List<BlobMetadata> Blobs { get; set; }
}

Just ran into this exact same problem while converting my orchestrator to isolated in .NET7 as well.
Tried to pass both a tuple with a Guid and a DateTimeOffset, as well as a custom small model: same results.
Why is it taking so long for this problem to be resolved? It was reported so long ago, and it is such a core scenario for the class-based syntax.

Fixed via https://github.com/Azure/azure-functions-durable-extension/pull/2330
Will be available in the next preview (which is coming soon).


python requirement pivy-deps

The requirement for pivy-deps (req'd for Flask, so maybe this is an upstream issue?) is only available (from pypi) for Windows. How much effort would it be to change things so that we linux people can make use of AutoExpress?

Hi, my requirements file does not explicitly require that, maybe try installing Flask using pip, and then post the error log here?
I don't specifically remember where it is used.
PS: I'm working on a new release that will not be using Flask, so it probably might solve this issue.


[Bug]: Autofix removes generic type parameter from components when using react/jsx-first-prop-new-line

Is there an existing issue for this?

[X] I have searched the existing issues and my issue is unique
[X] My issue appears in the command-line and not only in the text editor

Description Overview

Generic components have their generic parameter removed when auto fixing.

https://user-images.githubusercontent.com/22430302/223438876-11966b60-cdf5-4ce8-9cbf-8b096c2f1108.mov

It should not remove the generic argument.

I setup vscode to format on save. Alternatively eslint . --ext .tsx,.ts produces the same result.
My eslint config.
module.exports = {
  parser: "@typescript-eslint/parser",
  extends: [
    "plugin:compat/recommended",
    "plugin:react/recommended",
  ],
  env: {
    browser: true,
  },
  plugins: [
    "@typescript-eslint",
  ],
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: "module",
    tsconfigRootDir: __dirname,
    project: "./tsconfig.json",
    ecmaFeatures: {
      jsx: true,
    },
  },
  rules: {
    "react/jsx-first-prop-new-line": ["error", "multiline"],
  },
  settings: {
    react: {
      version: "detect", // Tells eslint-plugin-react to automatically detect the version of React to use
    },
    "import/internal-regex": "^components/|^lib/",
    polyfills: ["fetch", "Promise"],
  },
};

Expected Behavior

It should keep the generic argument. E.g.
<DataTable<Items> fullscreen keyField="id" items={items}  />

Should become
<DataTable<Items>
  fullscreen
  keyField="id"
  items={items}
/>

eslint-plugin-react version
v7.32.2
eslint version
v8.35.0
node version
v16.15.1

I'm not seeing it autofix at all - the code you provided passes. The code in the image is different, though, I'll try that.

ok yeah thanks, i was able to repro it.


using name attributes properly, improving structure of the library

I've pushed more changes to my original PR, making this one enter into conflict.
I added these changes directly on my branch, Thanks for the feedback :ok_man:


[C#] Exception Thrown For Duration Field Type

Describe the bug, including details regarding any error messages, version, and platform.
When attempting to read a schema that contains a field with the Duration type, MessageSerializer.GetFieldArrowType() throws the exception System.IO.InvalidDataException: Arrow primitive 'Duration' is unsupported..
Component(s)
C#

Closed, as this is covered by #34736


Events with only one transaction

Implement some default methods for events, that usually only have one transaction.
In ClickInventoryEvent we need to write this:
event.getTransactions().get(0).getSlot().getProperty(SlotIndex.class, "slotindex").get().getValue();
to get clicked slot. It will be really good, to write something like this:
@Listener
public void onClick(ClickInventoryEvent event, @Getter SlotIndex index) {
}

If i understood right.

I disapprove, event.getTransactions().get(0) is a bad practice. To ensure that all transactions are treated you should make a big loop at the root of the method, it's like handling many events of one transaction. I don't see the difference and I don't see why we should add such shortcut methods. These methods would encourage this bad practice.

I agree that getting the first transaction without checking is bad practice.
But an event Filter could do all the checking for you!
So if you only care for events that affect a single slot you don't have to:
if (event.getTransactions.size() == 1) {
    SlotTransaction transaction = event.getTransactions().iterator().next():
    // do stuff...
}

Instead just add a @SingleTransaction SlotTransaction to the method signature. (name is not final^^)

Some news?

@Deamon5550 I think I have an idea on how to implement this with a @SingleTransaction annotation as the method argument. Something that can be fast byte code wise. I'll give this a shot at some point.

I disagree on this change.
The point of events HAVING transactions is understanding that the changes happening might be multitudes at a time. Whereas it seems easy to just have the concept of getting a single transaction, how does this benefit you? How are you better off having the transaction at element 0 than element 3? It doesn't and can lead to plugins not functioning 100% correctly because they are not using the API as intended.

@Zidane
This is not for getting one transaction when there are multiple but instead filtering events that have only one transaction so you do not have to check it yourself.
Most Events only have a single transaction and its a pain to check and unpack it every time even if you do not care about events with multiple transactions.

I don't understand under what circumstances you only care about 1 transaction?
The only situation I see, is for click gui?
either you want to cancel it, because it was an action with multiple slot changes by default, or you want to get the slot someone clicked.

click gui

exactly

@Faithcaio
This is purely a plugin issue then. The API contract says there will be transactions and gives you no impression that there could simply just be one.  Remember that this isn't just for SpongeCommon, an implementation may very well fire an event with multiple transactions for a click and your plugin, on that implementation, will likely appear dysfunctional not due to that implementation's fault but due to your plugin ignoring the specification of the API.

Well then we should provide a way for plugins to register new event filters.

@Faithcaio
Now that is something I can get behind as should you do so in your own projects, you take responsibility for that change. Create a new issue for that aspect alone :).


[Subtask] Add Fileset APIs in Gravitino Python client

Describe the subtask
Add these Python function interfaces into Gravitino Python client, refer to the document for the API descriptions. As the Fileset function is under going, please check Fileset API to implement the Python client.
Parent issue
#2113

@coolderli Peidian, you will work on this, right?

yes.


[REFACTOR][TIR] Migrate Low-level Passes to Pass Manager

LowerIntrin
LowerDeviceStorageAccessInfo
LowerWarpMemory

cc @yzhliu @ZihengJiang @vinx13


An ignore comment button/option beside comments to ignore them while deleting comments using the 'Delete All Comments' option.

Is your feature request related to a problem? Please describe.
Not really, but it'd be useful to have an option to ignore certain comments while using the 'Delete all comments' option to prevent valid comments from getting deleted amid a bunch of invalid comments.
Describe the solution/idea you'd like
An ignore button to ignore comments from being moderated while using the 'Delete All comments' option, like the ignore button in the reported contents page which allows ignoring reports while mass moderating.

Describe expected outcome from your solution
Ability to ignore certain comments while moderating comments using the 'Delete All Comments' option.

https://brainly.in/app/profile/2709968

Hi @Tomboyish44 thanks for the suggestion.
I have thought about adding an ignore button just like your example, but it may conflict with the visibility of action buttons and later than I decide placing it before the profile picture to be visible all the time without changing the structure of how quick action buttons are visible.
Here it is

Hi @Tomboyish44 thanks for the suggestion.
I have thought about adding an ignore button just like your example, but it may conflict with the visibility of action buttons and later than I decide placing it before the profile picture to be visible all the time without changing the structure of how quick action buttons are visible.
Here it is

Comments had been closed again in Brainly.in


Row-Major Slicing

This might require a lot or rewriting.

This is being worked on in the develop branch

This is being worked on in the develop branch


Yatin: Watch l-inksyssmartwifi.com

Yatin requests the watch of the watch_keyword l-inksyssmartwifi\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

l-inksyssmartwifi\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by cigien in Charcoal HQ


Payments - Error message is missing after setting the only bank account as default

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

Issue found when executing PR https://github.com/Expensify/App/pull/20246
Action Performed:

Log in to the account without the beta wallet
Go to Settings > Preferences > enable Use Staging Server
Add a new bank account:

Wells Fargo
Username: user_good
password: pass_good
Mobile verification code: credential_good
Plaid saving

Go to Settings > Payments
Click your bank account and then click Make default payment method

Expected Result:
Error message should be shown
Actual Result:
Error message is not shown
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/815fb904-92c6-4aad-81ea-1dbc2da9eee4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

QA team is unable to verify this issue in production.

Working on it, I tested locally with a gmail account (without the beta wallet), and the server responded with 200 (no error).

Removing the label since if you only have one payment method, it should be set to default automatically. So we shouldn't show the "Make default payment method" in this case. More details here.

Closing this one in favor of this one.


copy settings from Biztalk

Docs Build status updates of commit f428941:
:warning: Validation status: warnings

File
Status
Preview URL
Details

bread/toc.json
:warning:Warning

Details

toc.json
:warning:Warning

Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

bread/toc.json

[Warning] Error happen when converting bread/toc.json to Pdf. Details: Could not find a part of the path 'T:\0dvf\bread\toc.json'.

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\0dvf\toc.json'.

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.

Docs Build status updates of commit 6e08ef7:
:warning: Validation status: warnings

File
Status
Preview URL
Details

toc.json
:warning:Warning

Details

bread/toc.json
:warning:Warning

Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\zegd\toc.json'.

bread/toc.json

[Warning] Error happen when converting bread/toc.json to Pdf. Details: Could not find a part of the path 'T:\zegd\bread\toc.json'.

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.


[ci:component:github.com/gardener/logging:v0.28.0->v0.29.0]

*Release Notes:
Implement log sortation to fix Out Of Order issue

The output plugin exposes custom metrics

/close
Will open another PR with additional changes


test: add integration test for "check the dataset after commit"

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
7529

Relevant Lines:
8676

💛  - Coveralls


CIV-6683 Add Api Test

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/CIV-6683
Change description
Add API test for written rep without notice application to assert error
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No


Bug: Serialization of integers exceeding int64 is not supported

Summary
when I try in v2.0.0alpha4
@get("/")
async def hello_world() -> dict:
    bad_dict = {"value":<PHONE_NUMBER>000000000000000000000000000000000000000}
    return bad_dict

OverflowError: can't serialize ints < -2**63 or > 2**64 - 1
I managed to find a temporary workaround
from fastapi.encoders import jsonable_encoder
...
return jsonable_encoder(bad_dict, custom_encoder={int: lambda x: str(x)})

I think it should be really prominent in the docs (parts like "Migrating to Litestar") that you can't trust arbitrary python dicts and you can't just
return httpx.get(..).json()
in your endpoints because Litestar uses untraditional serializer for json

I have raised an issue (https://github.com/jcrist/msgspec/issues/377) in the msgspec repo requesting a general way to work around this limitation. If this cannot be resolved, we should come up with something ourselves or at least mention this in the documentation.
Re-labeling this as a bug for now.

@harochau This issue has been somewhat mitigated on msgspec's side. I'd advise you though to read https://github.com/jcrist/msgspec/issues/377#issuecomment-1513253768, where @jcrist provides some good insights.

I think it should be really prominent in the docs (parts like "Migrating to Litestar") that you can't trust arbitrary python dicts and you can't just
return httpx.get(..).json()
in your endpoints because Litestar uses untraditional serializer for json

I would not go so far as to say you can't trust Litestar with arbitrary dicts or that it uses an untraditional serialiser. The fact is that most implementations simply don't properly support serialization of such values and Litestar happened to chose a library that's explicit about this.
For Python's json.dumps encodes 2 ** 64 as<PHONE_NUMBER>3709551616, while JavaScript's JSON.stringify will encode it as<PHONE_NUMBER>3709552000. If you need accuracy in these ranges, you should generally just chose a different representation that's guaranteed to be consistent across different platforms.

Thanks for everybody involved in this chain, the speed was impressive!
With manually installing
poetry add git+https://github.com/jcrist/msgspec@792226c6c38ced5c3e2b129458bc033316bbab2d
everything works as expected now

msgspec 0.14.2 has now been released, containing support for encoding integers outside the 64 bit range. I believe this issue can be closed.

Thanks @jcrist!


TypeError: instance_norm(): incompatible function arguments.

When I try to train OULU database, I have the following problem.

W0611 09:39:30.550093  3574 device_context.cc:252] Please NOTE: device: 0, CUDA Capability: 61, Driver API Version: 10.1, Runtime API Version: 10.0
W0611 09:39:30.555764  3574 device_context.cc:260] device: 0, cuDNN Version: 7.6.
2020-06-11 09:39:33,874-INFO: Loading pretrained model from ./pretrained/resnet18-torch
2020-06-11 09:39:34,297-WARNING: No pretrained model for Resnet
Total: 27.51932M  Trainable: 27.50012M
2020-06-11 09:39:34,363-INFO: Total epoch: 15, Total iter: 119655, Iter/epoch: 7977
Traceback (most recent call last):
File "train_oulu.py", line 98, in
runner.train(max_epochs=15)
File "/home2/xiaoyao/project/face_antispoof_rgb/LGSC-for-FAS/utils/runner.py", line 218, in train
losses = self.model(imgs, label, mask=mask)
File "/home2/xiaoyao/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/home2/xiaoyao/project/face_antispoof_rgb/LGSC-for-FAS/models/scan.py", line 127, in forward
outs = self.neck(outs)
File "/home2/xiaoyao/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/home2/xiaoyao/project/face_antispoof_rgb/LGSC-for-FAS/models/scan.py", line 75, in forward
out = self.conv2x2i
File "/home2/xiaoyao/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/home2/xiaoyao/project/face_antispoof_rgb/LGSC-for-FAS/utils/conv_module.py", line 117, in forward
x = self.norm(x)
File "/home2/xiaoyao/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 461, in call
outputs = self.forward(*inputs, **kwargs)
File "/home2/xiaoyao/project/face_antispoof_rgb/LGSC-for-FAS/utils/norm_module.py", line 106, in forward
outs = core.ops.instance_norm(inputs, attrs, outputs)
TypeError: instance_norm(): incompatible function arguments. The following argument types are supported:
1. (arg0: paddle::imperative::VarBase, arg1: paddle::imperative::VarBase, arg2: paddle::imperative::VarBase, *args) -> Tuple[paddle::imperative::VarBase, paddle::imperative::VarBase, paddle::imperative::VarBase]
Invoked with: {'X': [<paddle.fluid.core_avx.VarBase object at 0x7fd48a1be170>], 'Scale': [name instance_norm_5.w_0, dtype: VarType.FP32 shape: [256]    lod: {}
dim: 256
layout: NCHW
dtype: float
data: [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
], 'Bias': [name instance_norm_5.b_0, dtype: VarType.FP32 shape: [256]  lod: {}
dim: 256
layout: NCHW
dtype: float
data: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
]}, {'momentum': 0.9, 'epsilon': 1e-05, 'is_test': False, 'data_layout': 'NCHW', 'use_mkldnn': False, 'fuse_with_relu': False, 'use_global_stats': False, 'trainable_statistics': False}, {'Y': [<paddle.fluid.core_avx.VarBase object at 0x7fd489f3f5b0>], 'SavedMean': [<paddle.fluid.core_avx.VarBase object at 0x7fd489f3f9b0>], 'SavedVariance': [<paddle.fluid.core_avx.VarBase object at 0x7fd489f3f7f0>]}

However, when I replace Instance norm with Batch norm, code can run. Please help me, what should I do?

Hi， what is the version of paddle you are using？you can try paddle version 1.7.1

My version is 1.8.1. Thanks, I will try.

You're right, this problem solved.

我的版本是1.8.1。谢谢，我会尽力的。

是的，这个问题解决了。

请问你是怎么解决的

@1282522443 you can use version 1.7.1

@1282522443 you can use version 1.7.1

Hi , I checked my paddle version and it is 1.7.1.
When I run the train.py file , it gives me this error

could you plz give a solution?


[0][Medium][App] Preserve "disabled" extensions when copying over extension

We copy settings from vscode here upon first time run of PearAI:
https://github.com/trypear/pearai-submodule/blob/77ed8be46948420b9d83ef00fe25085ed3f97738/extensions/vscode/src/copySettings.ts#L28
It works but the problem is that extensions copied from vscode are "Disabled" but when copied to pearai are "Enabled"
They should be "disabled"
you should figure out where this is being saved and copy it to pearai settings.
how to test/reproduce
delete ~/.pearai , and start PearAI. it will copy files from ~/.vscode over to  ~/.pearai

Found the directory where vscode stores disabled extensions
I can give this a try


Contributing guidelines

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (28e7473) to head (9b39a72).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          577       577
  Branches        37        37
=========================================
  Hits           577       577

Flag
Coverage Δ

unittests
100.00% <ø> (ø)

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


fixed jquery strict function call using $

Hi. Thanks, but it's not actual, because in 3.0.8 all modules going through Grunt In one file, and automatically adds a special header, including support for AMD

Causes an error in my browser.
Thanks for replying
Any chance you can help me work out why I am getting  tags being created
which are destroying the layout of my tiles? Im trying to work out how to
put an  tag inside a tile. I dont think Im doing it right.
http://pastebin.com/Zp2GcmfV
I cant find an example of how to do this on the website
Thanks!
On 22 July 2015 at 16:03, Sergey Pimenov<EMAIL_ADDRESS>wrote:

Hi. Thanks, but it's not actual, because in 3.0.8 all modules going
through Grunt In one file, and automatically adds a special header,
including support for AMD
—
Reply to this email directly or view it on GitHub
https://github.com/olton/Metro-UI-CSS/pull/779#issuecomment-123751510.

--
Be prepared to have your predictions come true

Im trying the develop branch

All tiles has float left.
From: Christopher<EMAIL_ADDRESS>Sent: Wednesday, July 22, 2015 6:08 PM
To: olton/Metro-UI-CSS<EMAIL_ADDRESS>Cc: Sergey Pimenov<EMAIL_ADDRESS>Subject: Re: [Metro-UI-CSS] fixed jquery strict function call using $ (#779)
Causes an error in my browser.
Thanks for replying
Any chance you can help me work out why I am getting  tags being created
which are destroying the layout of my tiles? Im trying to work out how to
put an  tag inside a tile. I dont think Im doing it right.
http://pastebin.com/Zp2GcmfV
I cant find an example of how to do this on the website
Thanks!
On 22 July 2015 at 16:03, Sergey Pimenov<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

Hi. Thanks, but it's not actual, because in 3.0.8 all modules going
through Grunt In one file, and automatically adds a special header,
including support for AMD
—
Reply to this email directly or view it on GitHub
https://github.com/olton/Metro-UI-CSS/pull/779#issuecomment-123751510.

--
Be prepared to have your predictions come true
—
Reply to this email directly or view it on GitHub https://github.com/olton/Metro-UI-CSS/pull/779#issuecomment-123753087 .  https://github.com/notifications/beacon/AAWSNPOOAjFAM5apZkA52AEf9lvajOqSks5of6lNgaJpZM4FdosQ.gif


Category generator gem

Is there plans/work going on to make a gem out of the category_generator plugin found in octopress 2.0 ?
https://github.com/imathis/octopress/blob/master/plugins/category_generator.rb
Let me know if I can help out with it otherwise

I'm working on that right now...
There are a few issues regarding Octopress::Page vs. Jekyll:Page though (not sure which one I should use...)

I have plans to work on a category generator gem. Originally I thought it would have to be shipped with a theme, but I think I can release it separately.

@imathis I'm in the process of migrating the existing plugin and making it compatible with ink and multilingual.
Thought that was a fun thing to do :wink:
If you like, I can send you the finished plugin once I'm done
(Right now I'm pondering whether it would be nice for the generated pages to show up if you do an `octopress ink list categories, but other than that it's almost done)

Just for information, There is a similar gem called https://github.com/jekyll/jekyll-archives . It doesnt work quite the same as the category_generator plugin but I have achieved similar results with both after some tweaking.
Maybe an octopress category generator could be based on jekyll-archives?

A little status update:
I'm almost done. I went with the solution where pages also show up in the ink list.
Here's an example output:
Plugin: Octopress Categories - v0.0.1
Slug: categories
Category pages for Octopress and Jekyll pages.
================================================================================
 layouts:
  - category_feed.xml
  - category_index.html

 config:
   category_dir: "categories"
   prefixes:
     title: "Category: "
     meta_description: "Category: "
   feed:
     enabled: false
     count: 5
   permalinks:

 category-pages:
  - announcements-de                   /de/categories/announcements/
  - blogging-de                        /de/categories/blogging/
  - howto-de                           /de/categories/howto/
  - opinion-de                         /de/categories/opinion/
  - apple-de                           /de/categories/apple/
  - developer-de                       /de/categories/developer/
  - apps-de                            /de/categories/apps/
  - review-de                          /de/categories/review/
  - announcements-en                   /en/categories/announcements/
  - blogging-en                        /en/categories/blogging/
  - howto-en                           /en/categories/howto/
  - opinion-en                         /en/categories/opinion/
  - apple-en                           /en/categories/apple/
  - developer-en                       /en/categories/developer/
  - apps-en                            /en/categories/apps/
  - review-en                          /en/categories/review/

Those pages are NOT copied when you copy the assets to _plugins/categories/
Feeds are still missing. Trying to work out, how to do it properly...
@imathis: If you like, I can turn over the code to you now (it's basically your code anyway).

The current state of the plugin can be found here:
https://github.com/drallgood/octopress-categories

Sweet, I'll take a look at it!

@imathis has moved the plugin here:
https://github.com/octopress/category-index


⚠ Bofrost.com has degraded performance

In 6426cbd, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 1786 ms

Resolved: Bofrost.com performance has improved in 7f28ca1.


GetFolderPath

Hey, any specific reasons to use hardcoded path ($Home\Documents) instead of [Environment]::GetFolderPath('MyDocuments')
That folder may not always be there if the user decides to move their Documents folder to another drive
(talking about https://github.com/fleschutz/PowerShell/blob/master/Scripts/cd-docs.ps1)

Hi Couleur, good question. Problem is: Windows has the concept of special
folders, Unix/Linux/MacOS has the concept of home folders containing
personal subfolders. When using GetFolderPath('MyDocuments') in PowerShell
on Linux it returns the home folder /home/JoeDoe instead of
/home/JoeDoe/Documents.
As solution to this I will add the following exception: if ($IsLinux) { use
$Home/Documents } else { use GetFolderPath('MyDocuments') }
Am Do., 24. Feb. 2022 um 22:08 Uhr schrieb Couleur @.***

:

Hey, any specific reasons to use hardcoded path ($Home\Documents) instead
of [Environment]::GetFolderPath('MyDocuments')
That folder may not always be there if the user decides to move their
Documents folder to another drive
(talking about
https://github.com/fleschutz/PowerShell/blob/master/Scripts/cd-docs.ps1)
—
Reply to this email directly, view it on GitHub
https://github.com/fleschutz/PowerShell/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD6KNWY3IQXSU6HCHZJOPK3U42M3PANCNFSM5PIPWSXQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

The scripts have been updated.


ctrlc/ctrlz in interactive mode

I naturally was trying to exit the interactive mode by ctrlc/ctrlz but it's forbidden as I see, at least it doesn't work for me.
Might it's a good idea to add the ability to exit the interactive session or it's already done?

I've just run into q option but it's sort of unclear for the first time, that option even exists :)


Adding a new conversion unit for Volume - Fluid Ounce

User needs a new unit which for volume which was already not present in the current implementation. Creating the ticket for the enhancement.

Code merged to master. - Ankit

Completed and added in the release.

Done.


[RFC] Swift Macro support for Node boilerplate

[RFC] Swift Macro support for Node boilerplate

I'd like to get people's feedback on this! Obviously we can't land it until Xcode 15 is out of beta, but this can be a taste of things to come.
What I've done here is generated all the boilerplate for node initialisation, cloning, encoding, property access etc using a Swift macro. You might use it like this:
public enum ListType: String, Codable {
  case bullet
  case number
  case check
}

extension NodeType {
  public static let list = NodeType(rawValue: "list")
}

@LexicalNode(.list)
public class ListNode: ElementNode {
  private var _listType: ListType = .bullet
  private var _start: Int = 1
}

and the macro would fill in all the extra boilerplate that you would usually have to write yourself, like so:
open override class var type: NodeType {
  .list
}

enum CodingKeys: String, CodingKey {
    case listType
    case start

}

public convenience init(listType: ListType , start: Int ) {
  self.init(listType: listType, start: start, key: nil)
}

public required init(listType: ListType , start: Int , key: NodeKey?) {
  self._listType = listType
  self._start = start

  super.init(key)
}

override public func clone() -> Self {
  Self (listType: _listType, start: _start, key: key)
}

override public func encode(to encoder: Encoder) throws {
  try super.encode(to: encoder)
  var container = encoder.container(keyedBy: CodingKeys.self)
  try container.encode(_listType, forKey: .listType)
  try container.encode(_start, forKey: .start)

}

public required init(from decoder: Decoder) throws {
  let container = try decoder.container(keyedBy: CodingKeys.self)
  self._listType = try container.decode(ListType .self, forKey: .listType)
  self._start = try container.decode(Int .self, forKey: .start)

  try super.init(from: decoder)
}

public var listType: ListType  {
  return getLatest()._listType
}

public func getListType() -> ListType  {
  return getLatest()._listType
}

public func setListType(_ val: ListType ) throws {
  try getWritable()._listType = val
}

public var start: Int  {
  return getLatest()._start
}

public func getStart() -> Int  {
  return getLatest()._start
}

public func setStart(_ val: Int ) throws {
  try getWritable()._start = val
}

I think you'll agree this is a lot easier!
It won't be compulsory to write Lexical nodes in this way. If you need more control, you can still write nodes by implementing these methods manually.
At the moment, the macro doesn't allow much customisation of the behaviour. It's all or nothing -- for example, you can't implement your own encode method but have the macro do everything else. I'd like to improve this in the future, making the macro ignore methods that have already been written manually.

@amyworrall Xcode 15 is released can this pr be merged?


_add_training_data and _fit_on_new does not work with custom data types

I have a sklearn pipeline that accepts custom data type as input but it when I use that pipeline and teach the learner, I get the following error
TypeError: float() argument must be a string or a number, not 'MyClass'
I traced the problem back to check_X_y function used in BaseLearner. I added dtype=None so that it preserves the input type instead of trying to convert it to a numeric and it didn't throw any errors and works as expected.
I think that behaviour should be expected instead of it trying to convert our data types for us.

Thanks, you are completely right! I have added dtype=None arguments for all check_X_y calls, will add a test soon to ensure that working with custom data types won't break in the future.


Debugger not working for azure functions

Issue Type: Bug
The debugger is not stopping at the breakpoints when i try to run azure functions locally in C#
Extension version: 1.21.9
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz (4 x 2208)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.93GB (1.32GB free)

Process Argv

Screen Reader
no

VM
0%

How are you attempting to run the Azure Function -- How is your launch.json configured? Is there an additional VS Code extension to enable Azure Function development?

I have the Azure Storage extension, and Azure functions as well as the as well as the C# OmniSharp extension.  My launch json is as follows
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to .NET Functions",
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
}
]
}
I have just used the template azure function that is created by the extension.  I run it by clicking f5 and then clicking the link that appears in the terminal.

We may need to work with the Azure Storage team then, but before we do that, a few bits of troubleshooting:

Can you grab debugger logs?
Can you follow the steps in the breakpoint troublshooting doc and report what you tried?

This is the result of the debugger logs after I ran it
-> (C) {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"},"type":"request","seq":1}
-> (C) {"command":"attach","arguments":{"name":"Attach to .NET Functions","type":"coreclr","request":"attach","logging":{"engineLogging":false},"processId":"1296","__sessionId":"056b21cc-c467-4709-bc42-5174d4d403e5"},"type":"request","seq":2}
<- (E) {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"-------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (vsdbg) with\nVisual Studio Code, Visual Studio or Visual Studio for Mac software\nto help you develop and test your applications.\n-------------------------------------------------------------------\n"}}
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
<- (R) {"seq":4,"type":"response","request_seq":2,"success":true,"command":"attach"}
<- (E) {"seq":5,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"HttpTriggerCSharp.cs","path":"c:\Users\mshinnie\Desktop\Programming\test3\HttpTriggerCSharp.cs","checksums":[{"algorithm":"SHA1","checksum":"3d77df0fd39821ce0b61f195ba4d02a3240130bc"},{"algorithm":"SHA256","checksum":"2df2c82836cd3e0908743f0855e97b803409a5a66c96658db72bdaed9cb47deb"},{"algorithm":"SHA1","checksum":"d91c4b9bdb05a9b80febc1ae082d441f312faa46"},{"algorithm":"SHA256","checksum":"dd2854a3df3024b6bd5e269506287b22d17b8a3f101187db6b9384d340ae990e"}]},"lines":[16,17,18,19,21,22,23],"breakpoints":[{"line":16},{"line":17},{"line":18},{"line":19},{"line":21},{"line":22},{"line":23}],"sourceModified":false},"type":"request","seq":3}
<- (R) {"seq":6,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","message":"","body":{"breakpoints":[{"id":1,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":16},{"id":2,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":17},{"id":3,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":18},{"id":4,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":19},{"id":5,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":21},{"id":6,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":22},{"id":7,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":23}]}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":["user-unhandled"]},"type":"request","seq":4}
<- (R) {"seq":7,"type":"response","request_seq":4,"success":true,"command":"setExceptionBreakpoints"}
-> (C) {"command":"configurationDone","type":"request","seq":5}
<- (E) {"seq":8,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/AttachFailed","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.2.10703.1 commit:d18411016e7da314dd58c44a4828778b19665cc3","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"6.2.9200","VS.Diagnostics.Debugger.vsdbg.ErrorCode":-2147220965}}}
<- (R) {"seq":9,"type":"response","request_seq":5,"success":false,"command":"configurationDone","message":"Failed to attach to process: Only 64-bit processes can be debugged."}
-> (C) {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":6}
<- (E) {"seq":10,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/DebugCompleted","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.2.10703.1 commit:d18411016e7da314dd58c44a4828778b19665cc3","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"6.2.9200","VS.Diagnostics.Debugger.vsdbg.DebugCompleted.BreakCounter":0,"VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr"}}}
<- (R) {"seq":11,"type":"response","request_seq":6,"success":true,"command":"disconnect"}
The solutions on the other breakpoint troubleshooting doc were not successful

Thanks! This is your problem:
"message":"Failed to attach to process: Only 64-bit processes can be debugged."
I don't know if there are options to control what type of process to use for Azure Functions, but this extension currently only supports debugging 64-bit processes.
BTW: There is a bug in the current version of VS Code (fixed in insiders) that this message isn't getting shown. Normally VS Code should be showing you this so we don't need logs to understand what is going on.

Ok great I will see if I can get that fixed.


tf.keras.BatchNormalization  Cannot be quantified

Batch normalization resolution requires that mean, multiplier and offset arrays be constant.

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

i have solved this bug

how?

@dlml I got the same problem. How did you solve it?


Cutting/pasting a subnet with a DB system creates multiple DB system copies not attached to a subnet so not shown

I use cutting and pasting to change the vertical order of subnets to my liking. For a DB System it had the undesired side-effect of creating multiple copies not attached to a subnet, so they not drawn in the designer. Only validation tells you multiple names and only in tabular view you can see/edit them. You can't re-attach them to a subnet, so there seems no way to fix or delete them.

Here's what I see, only one is actually shown in the Designer

Feature request: It would be great if we could at least delete from the Tabular view as well! Will submit this as a request separately

Another way to fix this were if one would be able to edit DB System properties and assign the subnet yourself.


No option to create App Gateway from VMSS Creation UI in Portal

Portal does not give the option to create Application Gateway within VMSS networking blade while it give option to create Load Balancer see the screenshot below:
Azure Load Balancer:

Application Gateway:

Document mention steps to create Load balancer though its available in VMSS creation networking UI while the document doesn't mention the steps to create App Gateway.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e0ac55b8-8be8-1f86-e3b1-3fe3f6c340c1
Version Independent ID: c26d3fc8-b62c-4895-3687-2fc7364c6383
Content: Quickstart - Create a virtual machine scale set in the Azure portal - Azure Virtual Machine Scale Sets
Content Source: articles/virtual-machine-scale-sets/quick-create-portal.md
Service: virtual-machine-scale-sets
GitHub Login: @ju-shim
Microsoft Alias: jushiman

@ketan-chawda-msft Thanks for the Feedback.
Creation of LB is allowed while creating the VMSS as it takes less time.
For creating a App Gateway, it will take time may be the reason it is not included in the creating in VMSS by design.
However, I acknowledge the feedback on having a note on creating a App Gateway before you create a VMSS to use that while creating a VMSS.
Or this document can also include creation of App Gateway similar to LB creation or redirection to the App Gateway creation page.
I have assigned the issue to content author to check and update the document as appropriate.

@ju-shim
Can you please check and add your comments on this doc update request as applicable.


docs for APICall

Signed-off-by: Jim Bugwadia<EMAIL_ADDRESS>Fixes: #81
I separated variables from external data lookups, as both sections are fairly long.

@realshuting - can you please review this section to see if I missed or incorrectly described anything:
https://deploy-preview-86--kyverno.netlify.app/docs/writing-policies/variables/#evaluation-order

@realshuting - can you please review this section to see if I missed or incorrectly described anything:
https://deploy-preview-86--kyverno.netlify.app/docs/writing-policies/variables/#evaluation-order

It looks good!


[$250] Search - App returns to expense report on Inbox after editing report field in Search

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

Version Number: 9.0.21-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:
Precondition:

Workspace has report fields.

Submit two expenses.
Go to Search.
Go to Drafts.
Click on the View button next to the report title.
Click on any report field.
Edit the report field and save it.

Expected Result:
App will remain on the expense report RHP on Search after editing report field.
Actual Result:
App returns to the expense report on Inbox after editing report field in Search.
Workaround:
Unknown
Platforms:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/2025c2e7-2938-4349-89dc-90f9269cba60

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018b90139d632f76bb
Upwork Job ID:<PHONE_NUMBER>418491339
Last Price Increase: 2024-08-21

Issue OwnerCurrent Issue Owner: @s77rt

We think that this bug might be related to #wave-collect - Release 1

Proposal
Please re-state the problem that we are trying to solve in this issue.
App return to the expense report after updating money report fields.
What is the root cause of that problem?
When we submit the report fields edit, dismiss the modal with the expense report ID if it's not a report title.
https://github.com/Expensify/App/blob/5d098460c6800ae49d52c24b05662f5179c6aaf2/src/pages/EditReportFieldPage.tsx#L78-L84
What changes do you think we should make in order to solve the problem?

Use goBack instead.

Proposal
Please re-state the problem that we are trying to solve in this issue.
App returns to the expense report on Inbox after editing report field in Search.
What is the root cause of that problem?
After we edit the report field, we dismiss the modal with reportID as the expense report then we will close the edit report field page and move to the report screen.
https://github.com/Expensify/App/blob/5d098460c6800ae49d52c24b05662f5179c6aaf2/src/pages/EditReportFieldPage.tsx#L83
The same problem with the delete case
https://github.com/Expensify/App/blob/5d098460c6800ae49d52c24b05662f5179c6aaf2/src/pages/EditReportFieldPage.tsx#L90
What changes do you think we should make in order to solve the problem?
We should just use go back as we do in the money request flow here
OPTIONAL: we can add the fallback route to the expense report
https://github.com/Expensify/App/blob/5d098460c6800ae49d52c24b05662f5179c6aaf2/src/pages/EditReportFieldPage.tsx#L83
https://github.com/Expensify/App/blob/5d098460c6800ae49d52c24b05662f5179c6aaf2/src/pages/EditReportFieldPage.tsx#L90
What alternative solutions did you explore? (Optional)

Looks like a dupe https://github.com/Expensify/App/issues/47179

✅  Issue was addressed in already opened PR https://github.com/Expensify/App/pull/47721#issuecomment-2305463989 that is soon to be merged.

@greg-schroeder Let's close this

done

@greg-schroeder after updating the report fields, it doesn't navigate to the large expense report screen, but it still closes the report RHP.
https://github.com/user-attachments/assets/ef125312-d56b-4bfd-a570-463e9bf6b556


CMake old version

Hi. CMake version 3, and there are problems with cloning extensions from Git

Hi, can you please explain your problem in more detail?
Can you please also include the full cmake version you are using?  You can find this by typing cmake --version, which should produce output like:
$ cmake --version
cmake version 3.26.3


Use PolymorphicInlineCache for PropertyString

PropertyStrings were earlier using their own special kind of inline caches. I have changed for them to now use our PolymorphicInlineCache, which can improve cases where we have polymorphic types., and also take advantage of existing InlineCache optimizations that weren't present in the specialized PropertyString cache.
This gives about 8% improvement in react and 4% in angular.

@dotnet-bot test OSX static_osx_osx_debug

@dotnet-bot test OSX static_osx_osx_debug

Can you guys take another look? I have more changes that I want to check in on top of this and don't have much time.

Looks good to me.


feat: Pending offsets handler

Description
Adds a handler to be executed when the consumer has pending offsets to be committed
How Has This Been Tested?
Unit tests were created
Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have added tests to cover my changes
[ ] I have made corresponding changes to the documentation

Disclaimer
By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

change the commit message to "feat: adds Pending offsets statistics handler"


CI for specification repository

CI for Documentation repository that executes the following tasks on each PR and merge:

Execute static checks for:
** Empty files
** Misspelled words
** Common formatting issues in MD files
Generate sequence diagrams (issue 10) and push them in the repository.

 The downside is that they are not portable and are harder to extend and maintain.
Another option is to use some more general tool like remark (JS).


[Bug] Highlight on Dashboard feature does not work

Issue description
Highlight on Dashboard feature does not work; when clicking the 'Save Highlight' button, a red banner in the bottom right of the window will say 'an internal error occurred' and the attached log will be generated from Streama.
streama_error_highlight.log
Steps to Reproduce

Start Streama
Create new movie or edit existing movie
Select the Highlight on Dashboard feature on the movie configuration page
Select the Save Highlight button

Expected Behaviour
The Highlight entry should be generated, and displayed accordingly in the Dashboard
Actual Behaviour
A red banner in the bottom right of the window will say 'an internal error occurred' and the attached log will be generated from Streama.
Environment Information

Operating System: Ubuntu 18.04.1
Streama version: 1.7.2

We have to see your log, to try and fix the issue, atleast i would have to since i cant recreate your error

Hi @TheNocturnalDev
I submitted the issue with the log already attached. Please find it above.

do me a favor and try adding a tv show to your streama if you havent already, see if it still gives you the error

@TheNocturnalDev indeed it appears to 'work' for TV shows, however there's a separate issue:
It only works if 'new-releases' is not disabled (which I'm assuming is intended), however it will appear like this:

To summarize:

For Movies it does not work, spits out the error as initially submitted
For TV Shows there is no error, but the display is incorrect/incomplete


Cannot resolve symbol 'drawer'

I was following the steps of the README.md and this is mi code:
public class MainActivity extends DrawerActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        texto = (TextView) findViewById(R.id.Texto);
        texto.setText("Bienvenido");

        drawer.setProfile(
                new DrawerProfile()
                        .setRoundedAvatar((BitmapDrawable) .getResources().getDrawable(R.drawable.ic_launcher))
                        .setName(getString(R.string.app_name))
        );
    }

in drawer.setProfile( i have an error: cannot resolve simbol 'drawer'

Just remove drawer. from you code at the line you mentioned. It's a small typo in the readme.

Its done and everithing is fine, meaby you can change that in the readme
addProfile(
     new DrawerProfile()
          .setRoundedAvatar((BitmapDrawable) getResources().getDrawable(R.drawable.ic_launcher))
          .setName(getString(R.string.app_name)
     )
);

addItem(
     new DrawerItem()
          .setImage(getResources().getDrawable(R.drawable.ic_about_history))
          .setTextPrimary(getString(R.string.action_intro))
          .setTextSecondary("Hola Mundo")
);

addDivider();

Question: I'm using the Material Tap Target library and it want the I'd of the navigation (r.id.xxxxxxx) my question is that if I can already that with your library?

I don't quite understand your question. Do you want to highlight the hamburger icon or some specific items in the drawer itself?

The hamburger icon

Yeah, you should open an issue in the tap target view for that. I'm using the standard ActionBarDrawerToggle as all drawer implementations.


⚠ API - Lens has degraded performance

In 11cb315, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 390 ms

Resolved: API - Lens performance has improved in 895fc3c after 6 minutes.


Suggested Updates ♻

Hi! Team, 👋
You have done an amazing job so far. Well done! 👍.
However, we have a few suggested changes.

You should add a snapshot of the project.
You should add a live link.
You should update the name of the Authors on the Readme file.

Good luck and happy hacking 😃 😄 👩💻

Thank you for the suggestions, i will work on it


Hide the thumbnail proxy from end-users

To generate our own thumbnails, we route images through a thumbnail proxy. For example:
Request:
GET https://api.creativecommons.engineering/v1/images?q=friday

Response:
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "result_count": 10000,
    "page_count": 250,
    "page_size": 20,
    "results": [
        {
. . .
            "thumbnail": "https://api.creativecommons.engineering/t/600/https://farm8.staticflickr.com/7623/17091223342_6cf62e6789_m.jpg",
. . .

Instead of returning a direct link to the thumbnail proxy, we should return a direct link to an image in our infrastructure, similar to this: https://api.creativecommons.engineering/v1/thumbs/6eca723c-0ac4-4de6-b83f-96812de61441.jpg. Internally, when the image is requested from the /v1/thumbs endpoint, the API server will parse the UUID from the URL, look up the URL of the underlying image in our database using the UUID, pull the image from the thumbnail proxy, and return it at the requested URL.
Here's how it works now:

Here's what we want:

This is important because it allows us to not have to worry about securing our thumbnail proxy. It will have a positive impact on the CC Search Browser Extension (or anyone else that needs to embed our thumbnails), which currently cannot access the thumbnailing proxy due to referer header security restrictions. It is not tenable for us to disable referer restrictions because that would allow malicious users to route images from outside of CC Search through our proxy.
This is open for community contributions, but not recommended for developers that are not familiar with Django and general backend development. The thumbnail proxy is included in the docker-compose file, so it should be easy to test your solution locally. Please do not ask for permission to work on the issue; if you are interested, announce your intent here, check out a new branch and get started.

Interested, I'll start as soon as I get free from my last mid-sem exam today.

Hi. Can I work on this issue?

Hi @avivith, as README says:

You are welcome to take any open issue in the tracker labeled 'help wanted' or 'good first issue'; there's no need to ask for permission in advance.

But it's good that you announce that will be working on it!

Hello, the previous PR on the issue seems to have become stale. Can I continue the work on this issue?

Hi @hedonhermdev, it's not stale so much as pending additional testing and review. I think it provides a strong enough base that redoing this is not necessary.

Okay, let me know if there is any work that needs to be done
On Tue, 5 May 2020 at 8:01 PM, Alden S Page<EMAIL_ADDRESS>wrote:

Hi @hedonhermdev https://github.com/hedonhermdev, it's not stale so
much as pending additional testing and review. I think it provides a strong
enough base that redoing this is not necessary.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/creativecommons/cccatalog-api/issues/444#issuecomment-624090744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFRPNJ5ZZMAF4FCUWXRBVVTRQAPL7ANCNFSM4LCSHD7A
.

Yes finish it
Mvg, Yusuf Soysal
Directeur Soysaltech
Op 5 mei 2020 om 12:36 heeft Tirth Jain<EMAIL_ADDRESS>het volgende geschreven:

Hello, the previous PR on the issue seems to have become stale. Can I continue the work on this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/creativecommons/cccatalog-api/issues/444#issuecomment-623978680, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APJTUT3FJYMD4DICCXEEMQLRP7TZBANCNFSM4LCSHD7A.


[docs] Clearer optimizer_step override instructions

What does this PR do?
Need to add a failing test first in the master.
bug: when the user overrides optimizer_step() function and calls optimizer.step() without using optimizer_closure parameter, the code crashes for 2 reasons:

accelerator.py's call to optimizer_step is missing the on_tpu=False parameter.
training_loop.py passes train_step_and_backward_closure as optimizer_closure, which is results in not calling training_step if the user overrides optimizer_step() in LightningModule and does not use optimizer.step(closure=optimizer_closure)

Updates the docs to indicate that the user must pass optimizer_closure param to optimizer.step() when overriding optimizer_step function. This is required since training_loop.py defines train_step_and_backward_closure() within run_training_batch()
Fixes #4452, #4447.
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[x] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

[ ] Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

@SeanNaren is adding the test for this.

hey @ananyahjha93, I think your bug model script doesn't set TPU cores greater than 1, so TPUAccelerator is never enabled. This is what led to adding on_tpu=false in the accelerator, which isn't correct. Here is the fixed script:
import os

from torch.utils.data import DataLoader, Dataset

import pytorch_lightning as pl
from pytorch_lightning.utilities import AMPType

import torch
from pytorch_lightning import LightningModule
import torch_xla.core.xla_model as xm

class RandomDataset(Dataset):
    def __init__(self, size, num_samples):
        self.len = num_samples
        self.data = torch.randn(num_samples, size)

    def __getitem__(self, index):
        return self.data[index]

    def __len__(self):
        return self.len

class BoringModel(LightningModule):

    def __init__(self):
        super().__init__()
        self.layer = torch.nn.Linear(32, 2)

    def forward(self, x):
        return self.layer(x)

    def loss(self, batch, prediction):
        # An arbitrary loss to have a loss that updates the model weights during `Trainer.fit` calls
        return torch.nn.functional.mse_loss(prediction, torch.ones_like(prediction))

    def training_step(self, batch, batch_idx):
        output = self.layer(batch)
        loss = self.loss(batch, output)
        return {"loss": loss}

    def training_step_end(self, training_step_outputs):
        return training_step_outputs

    def training_epoch_end(self, outputs) -> None:
        torch.stack([x["loss"] for x in outputs]).mean()

    def validation_step(self, batch, batch_idx):
        output = self.layer(batch)
        loss = self.loss(batch, output)
        return {"x": loss}

    def validation_epoch_end(self, outputs) -> None:
        torch.stack([x['x'] for x in outputs]).mean()

    def test_step(self, batch, batch_idx):
        output = self.layer(batch)
        loss = self.loss(batch, output)
        self.log('fake_test_acc', loss)
        return {"y": loss}

    def test_epoch_end(self, outputs) -> None:
        torch.stack([x["y"] for x in outputs]).mean()

    def configure_optimizers(self):
        optimizer = torch.optim.SGD(self.layer.parameters(), lr=0.1)
        lr_scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=1)
        return [optimizer], [lr_scheduler]

    def optimizer_step(
            self,
            epoch,
            batch_idx,
            optimizer,
            optimizer_idx,
            optimizer_closure,
            on_tpu,
            using_native_amp,
            using_lbfgs,
    ) -> None:
        if on_tpu:
            xm.optimizer_step(optimizer, optimizer_args={'closure': optimizer_closure})
        elif self.trainer.amp_backend == AMPType.NATIVE:
            # native amp does not yet support closures.
            # TODO: pass the closure to the step ASAP
            optimizer_closure()
            self.trainer.scaler.step(optimizer)
        elif self.trainer.amp_backend == AMPType.APEX:
            # apex amp does not yet support closures.
            # TODO: pass the closure to the step ASAP
            optimizer_closure()
            optimizer.step()
        else:
            optimizer.step(optimizer_closure)

def test_x(tmpdir):
    num_samples = 10000

    train = RandomDataset(32, num_samples)
    train = DataLoader(train, batch_size=32)

    val = RandomDataset(32, num_samples)
    val = DataLoader(val, batch_size=32)

    test = RandomDataset(32, num_samples)
    test = DataLoader(test, batch_size=32)

    # init model
    model = BoringModel()

    # Initialize a trainer
    trainer = pl.Trainer(
        max_epochs=1,
        progress_bar_refresh_rate=1,
        tpu_cores=1
    )

    # Train the model ⚡
    trainer.fit(model, train, val)

    trainer.test(test_dataloaders=test)

tmpdir = os.getcwd()
test_x(tmpdir)

Also when overriding optimizer_step, we should expect the user override the exact same function method with defaults (as I've done above).
I suggest removing the code changes and keeping documentation fixes in!

@ananyahjha93 What do you think if we check if optimizer_step takes a closure and if not manually call it beforehand?

@ananyahjha93 What do you think if we check if optimizer_step takes a closure and if not manually call it beforehand (like we already do for AMP)?

I think it is a good idea !

@SeanNaren "I think your bug model script doesn't set TPU cores greater than 1, so TPUAccelerator is never enabled. This is what led to adding on_tpu=false in the accelerator, which isn't correct. Here is the fixed script:" - don't understand this,
when you set tpu_cores=1 in the bug script, the TPU accelerator is enabled which calls on_tpu=True. But without the default on_tpu: bool = False in the definition of optimizer_step, it will fail since accelerator.py doesn't call on_tpu=False for optimizer_step. I wouldn't rely on the user getting the exact definition of optimizer_step right (with defaults), when overriding the method.

@tchaton @justusschock I think that might be a good idea, we can have a failing test where optimizer.step() without closure fails to call training_step and then add a fix which makes the test pass.

 I wouldn't rely on the user getting the exact definition of optimizer_step right (with defaults), when overriding the method. ah understood, I thought we would expect the user to define override the optimizer_step with defaults, in that case this fix is fine!

PR should be ready to review. There are now no defaults set within the module object, and accelerators are responsible for setting arguments correctly.
Function definition when overridden do not need to contain defaults anymore.


Does it work on Windows ?

Win8.1, Python 2.7.8
When running it , i get the following error
Traceback (most recent call last):
File "C:\python2\Scripts\rainbowstream-script.py", line 5, in
from pkg_resources import load_entry_point
File "C:\python2\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 2603, in
File "C:\python2\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 666, in require
File "C:\python2\lib\site-packages\setuptools-0.6c11-py2.7.egg\pkg_resources.py", line 565, in resolve
DistributionNotFound: Pillow
If i try to manually install pillow i get
pip install pillow
Requirement already satisfied (use --upgrade to upgrade): pillow in c:\python2\lib\site-packages
Cleaning up...

Yo can install it using the conda python distribution, using:

conda install pillow
Or downloading the library from for your version of python:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

But the problem I think is with a file called image.c that can get compiled on windows

OS: Windows 8.1
python --version 2.7.10 [virtual environment twt2]
python --version 3.4.3 [virtual environment twt3]

@nkvenom Indeed pillow does install no problem with conda.
@DTVD cool project. Nice work. Running on my manjaro tinkering machine with no trouble at all.
For us folks who use Windows as our primary machines, I'm keen to try to get this working. Alas, it's beyond my skill. Any advice/guidance would be welcome.

python 2.7.10
Traceback (most recent call last):
File "C:\python\envs\twt2\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\python\envs\twt2\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\python\envs\twt2\Scripts\rainbowstream.exe_main.py", line 5, in
File "C:\python\envs\twt2\lib\site-packages\rainbowstream\rainbow.py", line 22, in
from .draw import *
File "C:\python\envs\twt2\lib\site-packages\rainbowstream\draw.py", line 15, in
from .c_image import *
File "C:\python\envs\twt2\lib\site-packages\rainbowstream\c_image.py", line 25, in
rgb2short = call_c()
File "C:\python\envs\twt2\lib\site-packages\rainbowstream\c_image.py", line 21, in call_c
image_c = ctypes.cdll.LoadLibrary(library)
File "C:\python\envs\twt2\lib\ctypes_init.py", line 444, in LoadLibrary
return self.dlltype(name)
File "C:\python\envs\twt2\lib\ctypes_init.py", line 366, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

python 3.4.3

NB: to install rainbowstream with python3, I had to follow the instructions  https://github.com/DTVD/rainbowstream/blob/master/README.rst#development, and changed line 31 on rainbowstream\setup.py tolong_description=open("./README.rst", "r", encoding="utf-8").read(),in order to fix the UnicodeDecodeError.

Traceback (most recent call last):
File "C:\python\envs\twt3\Scripts\rainbowstream-script.py", line 9, in
load_entry_point('rainbowstream==1.3.1', 'console_scripts', 'rainbowstream')()
File "C:\python\envs\twt3\lib\site-packages\setuptools-18.1-py3.4.egg\pkg_resources_init_.py", line 558, in load_entry_point
File "C:\python\envs\twt3\lib\site-packages\setuptools-18.1-py3.4.egg\pkg_resources_init_.py", line 2682, in load_entry_point
File "C:\python\envs\twt3\lib\site-packages\setuptools-18.1-py3.4.egg\pkg_resources_init_.py", line 2355, in load
File "C:\python\envs\twt3\lib\site-packages\setuptools-18.1-py3.4.egg\pkg_resources_init_.py", line 2361, in resolve
File "c:\python\envs\rainbowstream\rainbowstream\rainbow.py", line 22, in
from .draw import *
File "c:\python\envs\rainbowstream\rainbowstream\draw.py", line 15, in
from .c_image import *
File "c:\python\envs\rainbowstream\rainbowstream\c_image.py", line 25, in
rgb2short = call_c()
File "c:\python\envs\rainbowstream\rainbowstream\c_image.py", line 21, in call_c
image_c = ctypes.cdll.LoadLibrary(library)
File "C:\python\envs\twt3\lib\ctypes_init_.py", line 429, in LoadLibrary
return self.dlltype(name)
File "C:\python\envs\twt3\lib\ctypes_init.py", line 351, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

@iainsgillis great new that Pillow got installed fine in Window :+1: . This image.so problem maybe easier to deal with, since I'm using a Unix-specific compiler in this line:
https://github.com/DTVD/rainbowstream/blob/master/rainbowstream/c_image.py#L19
Put an Windown specific in here will finally solve all the problem (perhaps). Sorry that I'm not have an environment to test, so a PR from a Window user may help a lots :)

@DTVD Sorry for the slow-coming reply -- busy week!
@mariusmg
I installed babun, which seems to have fixed the compilation problem. I've forked your project and made a couple of changes to get it running on Windows. The 'h' function isn't working (producing an OMG something is wrong with Twitter API right now. error), but everything else is just fine. :)
NB: I've only tested this on Python 2.7.10, 32-bit.

@orakaro Can you support Windows? python-pillow/Pillow supports Windows.


Could image be copied to clipboard as Blob then save to local folder with Clipboard.js?

I want to write user script of Greasemonkey to implement a click on a picture in a web page or add a button next to the picture.
To save the corresponding picture to the local specified path on my computer.
How is it done?

Some refer I get:
Copy Image to Clipboard via Javascript by Owais Afaq
https://github.com/owaisafaq/copier-js
demo：
http://owaisafaq.com/blog/demos/copier/
How to retrieve images from the clipboard with JavaScript in the Browser
https://ourcodeworld.com/articles/read/491/how-to-retrieve-images-from-the-clipboard-with-javascript-in-the-browser
demo：
https://jsfiddle.net/ourcodeworld/hzvfq82b/?utm_source=website&utm_medium=embed&utm_campaign=hzvfq82b
Not "Save as" function anyway. As save as will get the image downloading from http://www.xxx.com/sample.jpg wasting time. I prefer to directly copy the image already rendered in the web page.
How about Clipboard.js to achieve that goal? Thanks.

Hey @pendave, Clipboard.js was built only to copy strings.
Thanks for the suggestion!

Thanks for the suggestion!


Set an intuitive order for tables of evidence statements

It is not obvious how these are sorted now.  For example, if we select BRAF V600E, there are currently 31 evidence statements.  Not sure what order these are in now.  But it would be awesome if they were ordered by 'Level' (A, B, C, D) and then within statements of the same level by 'Rating' (highest rating first).  Thoughts?

Didn't see this. I added another issue to have them sort by trust rating. That was the first thing Zach and I clicked when loading the table. I think it is most intuitive to sort that way. But any sorting is better than none at the moment.


Uncaught TypeError: Cannot read property 'getCursor' of undefined

Tried to open Data File and got an error:
Atom Version: 1.0.3
System: Mac OS X 10.10.4
Thrown From: jekyll package, v1.0.0
Stack Trace
Uncaught TypeError: Cannot read property 'getCursor' of undefined
At /Users/adler/.atom/packages/jekyll/lib/jekyll.coffee:107

TypeError: Cannot read property 'getCursor' of undefined
  at Object.module.exports.openData (/Users/adler/.atom/packages/jekyll/lib/jekyll.coffee:107:24)
  at atom-workspace.<anonymous> (/Users/adler/.atom/packages/jekyll/lib/jekyll.coffee:56:65)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:156:19)
  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:70:30)
  at emitOne (events.js:77:13)
  at EventEmitter.emit (events.js:166:7)

Commands
     -6:36 core:copy (atom-text-editor.editor.is-focused)
     -6:35.6.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
  9x -6:35.1.0 core:select-right (atom-text-editor.editor.is-focused)
  2x -6:34.4.0 core:select-left (atom-text-editor.editor.is-focused)
     -6:33.4.0 core:backspace (atom-text-editor.editor.is-focused)
 21x -6:33 core:move-right (atom-text-editor.editor.is-focused)
     -6:31 core:move-left (atom-text-editor.editor.is-focused)
     -6:30.7.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
  2x -6:30.3.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -6:29.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -6:28.8.0 core:paste (atom-text-editor.editor.is-focused)
     -6:28.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -6:27.6.0 core:save (atom-text-editor.editor.is-focused)
  6x -0:42.5.0 core:close (atom-text-editor.editor.is-focused)
     -0:35.2.0 jekyll:toolbar (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-northem-dark-atom-ui)
     -0:01.6.0 jekyll:open-data (button#toggleButton.btn)

Config
{
  "core": {
    "themes": [
      "northem-dark-atom-ui",
      "atom-dark-syntax"
    ]
  },
  "jekyll": {}
}

Installed Packages
# User
Sublime-Style-Column-Selection, v1.3.0
atom-beautify, v0.28.8
autocomplete-ctags, v0.3.1
autocomplete-php, v0.3.6
ctags-status, v1.3.3
git-diff-details, v0.19.0
git-plus, v5.2.2
jekyll, v1.0.0
linter, v1.2.4
linter-php, v1.0.2
northem-dark-atom-ui, v0.2.1

# Dev
No dev packages

Has this been fixed by the same fix as #35

Great.
I'll close this issue.
Thanks.


jaeger-opentelemetry-agent and opentelemetry-collector failed to start

Need migrate to new way based on https://github.com/jaegertracing/jaeger/discussions/2849
https://github.com/open-telemetry/opentelemetry-collector/blob/main/examples/demo/docker-compose.yaml
https://github.com/open-telemetry/opentelemetry-js/blob/main/examples/collector-exporter-node/docker/docker-compose.yaml

Canceled to be in favor of Kubernetes.


Fix node pools on master

This is a follow up for the PR #226 "Don't precalculate etcd static IP addresses"
To see why this follow up was needed, read the maintainer's comment at #226 (comment)
P.S. As the result of some refactorings done in order to implement this, worker nodes powered by a spot fleet now supports the awsEnvironment experimental feature
fixes #261
cc @redbaron

@redbaron Thanks for taking your time reviewing this!

Output json list of IP addresses which pool stack then import and use

Wouldn't it break TLS between etcd and node pools then?

~private ip addresses~ , etcd DNS names

Thanks! So your intention is to revive etcdEndpoints key in the nodepool's cluster.yaml or what I've done in this work to allow a node pool to import etcd dns names from a main cluster?

ah, nevermoind, I didn't read it close enough,you already doing export + import :) I saw changes in go code and  thought you were doing something to enable it work in nodepools, but you are  not, so it is all good.


Update README.md

thanks for the pod. I've updated with a screenshot and few details.

Any time. And thanks for the patch. Sorry for long delay time.


Add isFinal flag for encryption V2 packets

Changes Unknown when pulling ca338022c7021b14ee0113898645095dc74b0697 on akalin/final-flag into ** on akalin/fix-basex-bug**.

Not entirely happy with this PR yet, but I have a couple of questions.

Coverage decreased (-0.1%) to 86.122% when pulling 48f9ae3f572a40ad4b6dcaa6fbae85849cb76fe9 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-1.0%) to 85.259% when pulling d040355a1d5c783cdfa7591f5ee2432203487ee3 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-1.0%) to 85.259% when pulling d040355a1d5c783cdfa7591f5ee2432203487ee3 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-1.0%) to 85.277% when pulling 2c7b8df295608c87f1f07b02a024577db7da69fd on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Okay, this is ready for a real review.
I added a bunch of asserts, which I think is what made the coverage go down.

Coverage decreased (-0.8%) to 85.39% when pulling 4dc273ef9e446235b2a1f8b9b17f8ee6422068f7 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.39% when pulling 4807fbe29a22edd7df0c8f6f5fd2285bdca74e21 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.39% when pulling 2bb73e59a8a5b6002557578f179f9da691529809 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.39% when pulling c86488684016b897c683a7a5f771928e6197a501 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.39% when pulling 6ac928c8deb78184b300c66481fd5625c5525565 on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.7%) to 85.546% when pulling 16dba55d828ff7bd55fcf4ac928f19342bc3648d on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.435% when pulling a93fb23c7809f7e47296b59a98412faac59ceffa on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.435% when pulling cee8d6f398c1b6ea2951c8c201f79bee226e582a on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.435% when pulling ca9d4fd907af878c29c0e6ddd35a00a08bfad27c on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.8%) to 85.379% when pulling 79cd10c1d8ef20cd95540365d68f9edde6a56e5f on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Coverage decreased (-0.9%) to 85.285% when pulling facd358f7635672f61a264efdbc482bd03700d8f on akalin/final-flag into a1ffd450aa36f3351777ac1718c963fb226968fe on master.

Addressed comments, added a few more tests, and verified coverage decrease was due to added panic/error lines.


configure subscriptions using a file

Hi!
First of all, thanks for the work done on this. I really appreciate it.
Regarding the issue I'm encountering, I'm trying to configure subscriptions over a file and I'm using your example as a base (https://github.com/karimra/gnmic/blob/master/config.json).
Unfortunately, I'm not being able to use the file because, whenever I try to use it, the help menu shows up, as you can see below.
Linux:~$ gnmic --config ./test.json
run gnmi rpcs from the terminal (https://gnmic.kmrd.dev)
Usage:
gnmic [command]
Available Commands:
capabilities query targets gnmi capabilities
get          run gnmi get on targets
help         Help about any command
listen       listens for telemetry dialout updates from the node
path         generate gnmi or xpath style from yang file
prompt       enter the interactive gnmic prompt mode
set          run gnmi set on targets
subscribe    subscribe to gnmi updates on targets
version      show gnmic version
Flags:
-a, --address strings             comma separated gnmi targets addresses
--config string               config file (default is $HOME/gnmic.yaml)
-d, --debug                       debug mode
-e, --encoding string             one of ["json" "bytes" "proto" "ascii" "json_ietf"]. Case insensitive (default "json")
--format string               output format, one of: ["json" "protojson" "prototext" "event" "proto"]
-h, --help                        help for gnmic
--insecure                    insecure connection
--log                         show log messages in stderr
--log-file string             log file path
--max-msg-size int            max grpc msg size (default 536870912)
--no-prefix                   do not add [ip:port] prefix to print output in case of multiple targets
-p, --password string             password
--port string                 gRPC port (default "57400")
--print-request               print request as well as the response(s)
--prometheus-address string   prometheus server address
--proxy-from-env              use proxy from environment
--retry duration              retry timer for RPCs (default 10s)
--skip-verify                 skip verify tls connection
--timeout duration            grpc timeout, valid formats: 10s, 1m30s, 1h (default 10s)
--tls-ca string               tls certificate authority
--tls-cert string             tls certificate
--tls-key string              tls key
-u, --username string             username
Use "gnmic [command] --help" for more information about a command.
Basically it's not detecting any command but I have subscriptions created on the file, as you can see below.
{
"username": "admin",
"password": "admin",
"port": 57400,
"timeout": "5s",
"skip-verify": true,
"insecure": true
"targets": {
"x.x.x.x": {
"username": "admin",
"password": "admin",
"insecure": true,
"subscriptions": [
"sub1"
],
"outputs": [
"output1"
]
}
},
"subscriptions": {
"sub1": {
"paths": [
"/state/port[port-id=*]/statistics/in-packets"
],
"stream-mode": "sample",
"sample-interval": "5s"
}
},
"outputs": {
"output1": {
"type": "file",
"file-type": "test.log"
},
}
}
This is probably my mistake but so far I wasn't able to surpass it and I was wondering if you have any ideas.

Hi @112shaggy!
The configuration file will not start the defined subscriptions for you, you need to command that. Meaning that in you case the command to subscribe to the defined subscription will be as simple as:
gnmic --config ./test.json subscribe

Hi hellt,
Thanks very much!
I didn't realised that we needed to add the subscribe command but it makes total sense.
Unfortunately, I got another error.
Linux:~$ gnmic --config ./test.json subscribe
Error: failed getting targets config: unexpected targets format, got:
What am I missing in the targets?

If I read your pasted config correctly, you didn't specify addresses of the
network elements to which you want to initiate the gnmi connection
https://gnmic.kmrd.dev/advanced/multi_target/
On Fri, 4 Dec 2020, 22:01 112shaggy<EMAIL_ADDRESS>wrote:

Hi hellt,
Thanks very much!
I didn't realised that we needed to add the subscribe command but it makes
total sense.
Unfortunately, I got another error.
Linux:~$ gnmic --config ./test.json subscribe
*Error: failed getting targets config: unexpected targets format, got: *
What am I missing in the targets?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/karimra/gnmic/issues/240#issuecomment-739018252, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLKV5L36OVTFEPVP6T7UBTSTFE35ANCNFSM4UN5RBAA
.

hi @112shaggy , the file is missing a comma after "insecure: true" and before "targets": {...
there is also an extra comma after test.log} here "file-type": "test.log" },

Thanks for the help!
Like you said, I had some config typos and was missing the address of the node.
Additionally, I had "file-type" followed by the filename, not the type. I changed it and it started to work!
I'm pretty new to this so I appreciate the help.

Great to here that it helped
I'm closing this issue then, and if anything comes along your way which you don't fully understand, you can open a discussion on this repo