[CMake] Don't add an extraneous rpath to the swift-frontend

When checking rpaths for #63782, I just noticed these incorrect runpaths on linux:
> readelf -d swift*-DEVELOPMENT-SNAPSHOT-2023-0*-a-ubuntu20.04/usr/bin/swift-frontend | ag "File:|runpath"
File: swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-23-a-ubuntu20.04/usr/bin/swift-frontend
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/../lib/swift/linux:$ORIGIN/../../lib/swift/linux]
File: swift-DEVELOPMENT-SNAPSHOT-2023-03-01-a-ubuntu20.04/usr/bin/swift-frontend
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/../lib/swift/linux:$ORIGIN/../../lib/swift/linux]

It looks like this line was incorrectly added in #60943, then incorporated into #61426 and merged.
This line is unused on Darwin because the CI builds with BOOTSTRAPPING-WITH-HOSTLIBS, but the incorrect runpath should show up on macOS too if a full bootstrap were done.
@zoecarver and @DougGregor, let me know what you think.

@rintaro, you spun out _add_swift_runtime_link_flags() last year in 9f4ce612a298, maybe you can chime in on whether it's properly used here.

Pinging @ktoso, haven't gotten a response on this so far and it's about to ship with the 5.8 release.

Ping @eeckstein, you have some experience with these rpath issues with your bootstrapping work.

Sorry, I can't remember the details. What you should do is to test all affected bootstrapping modes and see if the RPATH in the binary is set correct and if the final swift-frontend is loading the correct libraries (with otool -L on macos)

@eeckstein, nothing wrong with your bootstrapping work, the issue is this line that I'm removing in this pull, that was added by Doug and Zoe last year. It adds the incorrect second rpath shown in my OP for linux, and should add it incorrectly for macOS too for full bootstraps.
I'd simply like your opinion on if this line should be  removed.

I can't tell for sure without testing it.

@edymtt, perhaps you can review?

@etcwilde, any input on this issue?

@buttaface apologies for acknowledging this late -- at the moment I am busy with other efforts, so cannot devote the time to reason on any impact of this change.
In the meantime, could you comment on the impact this has on the Linux build?

@edymtt, I believe this is just a cleanup of an extra unneeded runpath added on linux and certain macOS configs. This could be a mild security issue in certain system install layouts and cause libraries to be loaded that shouldn't be, so it is better to clean it up.
If you would run the CI on this pull, that should give us an idea if this line was unneeded in the first place.

@artemcm, would you run the CI on this?

@swift-ci please test

@edymtt, passed CI, which heavily implies this line was extraneous all along, though the CI obviously doesn't test all configurations.
I'm fairly certain it is never needed for linux, I just can't speak for some obscure macOS config.

@DougGregor, you committed this line, can you review?

Found some time to review this, and in fact I see that _add_swift_runtime_link_flags is called for the swift-frontend target twice -- once as part of add_swift_host_tool and once explicitly -- and that the former invocation causes the addition of a second rpath when building for Linux (that does not seem to happen for Darwin).
@finagolfin -- could you check if my understanding of your concern is correct?
(in the meantime I will check on the "obscure macOS configs")

@swift-ci please test

@swift-ci please build toolchain

@edymtt, yep, that is the problem, you got it.

Mac toolchain build failure is unrelated, some libcxx issue:
CMake Error at test/CMakeLists.txt:153 (message):
  Couldn't find libcxx build in
  '/Users/ec2-user/jenkins/workspace/swift-PR-toolchain-macos/branch-main/buildbot_osx/libcxx-macosx-x86_64'.
  To run the test-suite for a standalone LLDB build please build libcxx and
  point LLDB_TEST_LIBCXX_ROOT_DIR to it.

Agree, that seems related to this LLVM PR

Double checked that in the generated linux toolchain we have only one rpath
$ readelf -d usr/bin/swift-frontend | grep -E "File:|runpath"
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/../lib/swift/linux]

Thanks @edymtt, I will submit this for the release branches next.


How could I hook dispinterface  by using easyhook?

For example when I try to load (_IShockwaveFlashEvents )
EasyHook.COMClassInfo address = new EasyHook.COMClassInfo(new Guid("D27CDB6E-AE6D-11CF-96B8-444553540000"), new Guid("D27CDB6D-AE6D-11CF-96B8-444553540000"), 3);
flashEvent.Query();
flashEvent.IsModuleLoaded()  // after query It will be equal to "true"
But when I try to access address.MethodPointers[0] // but the value is zero.

Don’t forget that it will also have IUnknown methods, or possibly others too depending on what interfaces it inherits from. These methods will appear first.

@spazzarama Thank you for your reply.
EasyHook.COMClassInfo address = new EasyHook.COMClassInfo(new Guid("D27CDB6E-AE6D-11CF-96B8-444553540000"), new Guid("D27CDB6D-AE6D-11CF-96B8-444553540000"), 0);
I have changed the number into '0'.
Loaded is equal to 'True'.
But address.MethodPointers[0] is still '0'

@Dongdong13579 I'm not a COM expert, but from what I can see I don't see any reason it wouldn't be supported. The issue I think will be finding the correct point in the life-cycle (and reference to instance) to hook them...

ok get your point. I will try to pay much more efforts on checking the life-cycle.
And thank you for your reply.


Renaming trim to enforce_schema in parse_m3u

@dineiar If enforce_schema is set to True then for non-exising fields it will have None and if we save it to JSON it's fine but when we save it to m3u then it has "None" text for the non-existing fields. It's okay to have "None" in m3u ??

@pawanpaudel93, this is a side-effect of using stream_info.get that I mentioned in you commit (4a414ad9cd143d4703d5e71c1d4d7d5a1885fdb7).
In this PR I fixed it by using "key" in stream_info instead of stream_info.get("key", {}) around line 450 or m3u_parser.py, so it ignores the non-existing fields and doesn't fill "None".

@dineiar Are you sure about what you are talking about if it doesn't fill None when saving to m3u file with enforce_schema=True with "key" in stream_info ??

@pawanpaudel93, oh, I'm sorry, I was talking about using enforce_schema=False. I did not pay enough attention to your last comment.
I just fixed that issue in 319a918bc79ef2d47a0d07ec913ffaa28d3c37c6.


Docker Image from Main branch

Have you considered to provide a Docker image that's nightly builded from the Main branch? You could name it opensearch:unstable or something like that.
We are using massively Docker in our company and to get a preview of what's going into the next version and to test the features would be great.

Thanks @seriouz for reaching out.
Will move this to our infra repo which builds our docker images.


Proxy blocked by Discord

Proxy has been blocked by Discord.

Made some changes on a fork and hosted it on https://hooks.callum.live/, seems to be working on my fork but not on Hyra? Might want to look over the changes I made:
https://github.com/callumisdumb/Discord-Webhook-Proxy

Proxy has not been banned by Discord.
No useful changes have been made on your fork.

Interesting @Sam512, apparently requests to the proxy arent going through to Discord from Roblox, not sure if you'll have any ideas?


Go To Definition Javascript file - is not working on last couple updates

I have a function like:
function InventoryController(inventoryService) {
    return {
        init: init,
    };
    function init(){ return 'test'; }
}

I used to be able to do a go to definition (F12) when my cursor was in the right hand side of the init: init in the return of the Controller function.  I am unable to do this now in the stable release or the Insiders version.

Works for me when I have Salsa enabled (which is the new infrastructure that will be the default in the next update). pls see https://code.visualstudio.com/Updates#_javascript-salsa-preview.

@egamma you are correct...Salsa was not enabled on my instance.  I sure hope that getting salsa enabled becomes something users do not have to worry about.

@jnystrom absolutely the user will not have to configure anything to get Salsa after the next update.


Empty model when using cython

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.7.3
            pydantic compiled: True
                 install path: C:\GitLab-Runner\builds\pQrpa1tV\0\ATP\fgui-web\fcli\lib\site-packages\pydantic
               python version: 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)]
                     platform: Windows-10-10.0.14393-SP0
     optional deps. installed: ['typing-extensions']

from pydantic import BaseModel

class I18n(BaseModel):
    en: str

obj = I18n(en="test")

print(obj)           # empty output
print(obj.dict())    # {}
print(type(obj))     # <class 'I18n'>

I have not found any issue related to this problem. I only managed to reproduce this behaviour when I compile my package with cython.
Is this the expected behaviour of pydantic with cython?
Is this a cython bug?
Thank you in advance for your help

Sadly cython strips annotations, hence the class being empty, see https://github.com/samuelcolvin/pydantic/issues/1162#issuecomment-621962027


feat: add the fromAddress in the cairo_message precompile

Feature Request
Describe the Feature Request
Currently, in the cairo_message precompile, every L2 contract can send data to L1 using under the hood the Starknet messaging syscall.
The initial syscall lets retrieve on L1 by default the L2 sender
bytes32 msgHash = keccak256(
    abi.encodePacked(fromAddress, uint256(uint160(msg.sender)), payload.length, payload)
);

require(l2ToL1Messages()[msgHash] > 0, "INVALID_MESSAGE_TO_CONSUME");

Currently in the Kakarot context, the fromAddress will always be Kakarot and consequently sender need to be manually given in the payload.
What
in the cairo_message

[ ] prepend the caller_address to the data
[ ] enforce the whitelisting mechanism also for cairo_message
[ ] create a solidity contract L2KakarotMessaging to be the L2 contract to call for L2 to L1 messages
[ ] update the L1KakarotMessaging to function consumeMessageFromL2(address fromAddress, bytes calldata payload)
[ ] update corresponding tests and deployment scripts

When sending a message to L1 through the CairoLib, it will preprend the toAddress (target contract on L1) to the payload
function sendMessageToL1(address toAddress, bytes memory payload) internal {
        bytes memory messageData = abi.encode(toAddress, payload);

        (bool success,) = CAIRO_MESSAGING_ADDRESS.call(messageData);
        require(success, "CairoLib: sendMessageToL1 failed");
    }

On L1, when consumming a message from L2, the starknet contract will prepend the kakarot address to the payload as it is the starknet contract sender.
abi.encodePacked(fromAddress, uint256(uint160(msg.sender)), payload.length, payload)

with msg.sender being the toAddress (target contract on L1)  set in sendMessageToL1.
Hence to retrieve the caller_address (caller to the precompile on L2), we need to prepend it to the payload of sendMessageToL1 after having prepend the  L1 target address.
A modification of the CairoLib needs to be done to take the  caller to the precompile on L2 (msg.sender) into account.


Change vuejs required version to 2.4+ (docs & readme)

$attrs & inhseritAttrs requires vue 2.4

But when you use the built js is it still required?

Yes it is, I was using vue 2.3.3 for my project and did an upgrade to Buefy 0.5. input props like placeholder doesn't work anymore because of this:
https://github.com/rafaelpimpa/buefy/blob/dev/src/components/input/Input.vue#L16
https://github.com/rafaelpimpa/buefy/blob/dev/src/components/input/Input.vue#L27
In vue 2.3 placeholder will be applied to the wrong element (root element: div.control)

Alright, thanks for this!


Search coverage

Search is setting up as false in Readme (coverage), but I found implementation in repo (search.go).

Is there any needed to change current implementation?

Nice catch, I think it should be set to true 👍

Updated the field in the readme...


Node overlapping

https://jsfiddle.net/40afknv8/2/
I have two nodes, 100px and 30px wide, and one edge. If I set small ranksep(i.e. 20), 30px node overlaps another one
If I add the third node of width 100px and add the second edge from 1st to 3rd node, graph becomes normal
Look fiddle for details

Source: https://github.com/dagrejs/dagre/wiki

The graph is updated with layout information. Nodes get the following properties:
x - the x-coordinate of the center of the node
y - the y-coordinate of the center of the node

Knowing that x, y stands for center of the node, your example seems fine:

First node: [0;100] with the center at x = 50
Nodesep: [100, 120]
Second node: [120;150] with the center at x = 135

[{"label":"Kevin Spacey","width":100,"height":45,"x":50,"y":22.5},{"label":"Saul Williams","width":30,"height":45,"x":135,"y":22.5}]


More vm-based cloud provider support

Currently OpenPitrix supports Kubernetes based container orchestration, QingCloud, AWS. Now we need to support more cloud provider.

Aliyun
VMware
OpenStack
Azure
...

I'm evaluating openpitrix. Is there any update on this ticket? Thanks.


thread 'main' panicked at 'called Option::unwrap()

hi
I got panic after run tun
[2022-10-19T05:19:00Z INFO  tun2proxy::tun2proxy] CLOSE <IP_ADDRESS>:41194 -> x.x.x.x:48022
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/tun2proxy.rs:442:72
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This should have been fixed by be3d7e314b06184368ff9ed5959638042b17baa6.


Provide functionality to delete specific row on FiloDB table

So there are lots to think about here.
API for deleting rows
Spark doesn't provide an API for deleting any data at all.  It cannot be represented through the standard DataFrame write API.
The CLI could have some command to delete a set of rows.  The data would have to be provided, perhaps by passing in a CSV file with only the partition, segment, and row keys (e.g. the primary keys) of data to be deleted.
A similar concept could in theory be applied in Spark.  Start with a DataFrame containing only the primary key columns, and maybe invoke a special API, like FiloContext.deleteRows().
How to Represent Deleted Rows

In the MemTable, we would need to add a list of primary keys to delete.  There are two cases: when that key is in the memtable already (in which case, don't write it out), or when it isn't.
On disk, there are two possibilities.

The deleted rows could be represented by a new special bitmap column, representing rows to be deleted.  Think of it as like a new hidden DELETED flag column, or one extra flag per record.    This would need to be read with every read and handled at read time.
The ChunkRowMapIndex could simply be updated such that deleted rows would be removed from the index.  This would result in no performance degradation at read time.

The problem with all of this is that the disk format will change.  If we went with the latter option this would then need to be reimplemented.
There are changes needed through the entire ingestion stack as well as some on the read path.

Deletes would need to come in through the NodeCoordinator / DatasetCoordinator / MemTable / Reprojector ingestion stack, because it could affect the data in the memtable which hasn't flushed yet, and because it affects the data being written.
One could delete rows at any point in time

How about proposing or commenting on the ideas above?


antsct struc module fails at @1.x subroutine

Hi,
Thank you for the v0.6.0 (ACCELERATOR) version of the xcpEngine.
On running the pre-given anat-ants.dsn, the struc module fails at the @1.x subroutine.
The cohort file includes: id0,id1,img (image is the anatomical scan).
Please find the error file attached.
Where should the files for the -e, -m and -p options of the antsCT command be defined?
Any help on how to solve this issue would be greatly appreciated.
Thank you.
Document.txt

It looks like ANTsCT isn't parsing many of the requisite inputs. Could you provide your design file? It would also be helpful if you could share any files at:
${XCPEDIR}/space/*/*space.json


faq: add new entries and links to headers

(ignore the codacy warning, still needs to be set properly)

Hey @proudmuslim-dev. If you have time could you review the wording in this PR? It would be very appreciated :)

Hey @proudmuslim-dev. If you have time could you review the wording in this PR? It would be very appreciated :)

Sure thing! I'll read through it either today or tomorrow morning :)

@erciccione I've opened a pull request on your fork as suggesting the changes here would result in a lot of clutter & extra commits

Thanks a lot @proudmuslim-dev! No worries about clutter in the future, github's review can be easily hidden and commits squashed :)


Device Pages

I want per connected device a page in order to turn it on/off and remove it from the server.

Hey team! Please add your planning poker estimate with Zenhub @euclid9099 @stephan418

this page should also include the graph for single consumption by one plug

definition of done

[ ] front-end has a single plug view with details
[ ] front-end allows me to delete a plug via this page
[ ] back-end provides the data over time for a single plug


Add Teritori

Signed-off-by: Dylan Schultz<EMAIL_ADDRESS>

Trying to set this as draft, but I'm not seeing the option.

Superceded by: https://github.com/cosmos/chain-registry/pull/809


Expose IMAGE_CUBE_ARRAY feature

This is needed for wgpu. On Metal, it requires iOS 11+, see https://developer.apple.com/documentation/metal/mtltexturetype/mtltexturetypecubearray?language=objc

I think this was adressed in https://github.com/gfx-rs/gfx/commit/4a95ec7f8015f1c8781712849080a9c14cd7d9a1#diff-869ac7455848098462f60a2653891c381c147fc4ce300a5b9b58f1fdca130251R851


[FLINK-12939][docs-zh] Translate "Apache Kafka Connector" page into C…

What is the purpose of the change
Translate "Apache Kafka Connector" page into Chinese
Brief change log

I modified the kafka.zh.md file .

Verifying this change
I have verified the changes by starting the build script in preview mode.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): ( no )
The public API, i.e., is any changed class annotated with @Public(Evolving): ( no )
The serializers: ( no )
The runtime per-record code paths (performance sensitive): ( no )
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: ( no )
The S3 file system connector: ( no )

Documentation

Does this pull request introduce a new feature? (  no )
If yes, how is the feature documented? ( not documented )

@wuchong  @TisonKun
Please Take A Look .

Open a new PR.


--ui test is not testing against headless build

All the tests that are not named as *headless* is not included in headless build.
e.g. --ui and k8s status tests

closing as unimportant for now


Update atomic_pointer.h

This eliminates atomic pointer errors for MacOS compiles and when running, the App uses approximately half as much memory.

Might make sense to just backport all of these https://github.com/bitcoin/bitcoin/commits/master/src/leveldb and be done with it.

Humm. I'll take a look at the backport suggestion tomorrow, and see.


Drive a TOTD backwards

Any totd of the month before. You need to go backwards the whole time.

Can check if car is backwards on each checkpoint


[JMS] Improve JMS Endpoint Initialization

 Issue by aashikam
Friday Nov 16, 2018 at 12:13 GMT
Originally opened as https://github.com/ballerina-platform/ballerina-lang/issues/11444

Description:
The username and password fields are redundant in the ConnectionConfiguration record as they can be specified in the providerUrl as well (    string providerUrl = "amqp://admin:admin@ballerina/default?brokerlist='tcp://localhost:5672'";). Need to construct the provider url internally by taking the username and password separately.
public type ConnectionConfiguration record {
    string initialContextFactory = "wso2mbInitialContextFactory";
    string providerUrl = "amqp://admin:admin@ballerina/default?brokerlist='tcp://localhost:5672'";
    string connectionFactoryName = "ConnectionFactory";
    string? username = ();
    string? password = ();
    map properties = {};
    !...
};

Suggested Labels (optional):
Component/jms, Type/Improvement
Suggested Assignees (optional):
Arshika

With the new design username and password fields are optional [1] and the developer has the flexibility to provide them in the providerURL itself.
[1] - https://central.ballerina.io/ballerinax/java.jms/1.0.1#ConnectionConfiguration

 Comment by orthoxerox Friday Dec 07, 2018 at 14:27 GMT
Not all message brokers have initial context factories that accept provider URLs that point to a broker instance. IBM MQ, for example, is often used with com.sun.jndi.fscontext.RefFSContextFactory or com.sun.jndi.ldap.LdapCtxFactory, which point to a .bindings file location or a LDAP resource respectively.
In my opinion, it's better to avoid initial context factories altogether if you're not running your program on a JavaEE app server. I've written my own trivial initial context factory to connect Ballerina to IBM MQ, but it's a dirty hack.

With the latest design, the developer can point to a .bindings file location as the provider URL with the mentioned initial-context-factory instances. For more information you can refer to this article [1]
[1] - https://ayesh9303.medium.com/jms-with-ballerina-lang-part-6-35ac842014a9

Since, all the cases have been addressed by the latest Ballerina java.jms design will close this issue. If you have any further questions and clarifications please feel free to re-open this issue. The latest Ballerina java.jms implementation can be found here [1]
[1] - https://central.ballerina.io/ballerinax/java.jms/latest


why facechain train with 512 image on XL ?

when train xl lora as you can see in the app.py train image resolution is 512 is it same with sd1.5
I cant understand why facechain 1024 resolution for train XL lora . can you answer this?
because almost  training XL LORA case use 1024 resolution image for train
any reason for use 512 ?

please try out the newest train-free, 10s inference version facechain-fact.


New Docs for refactored package structure need enhancing

The new documentation for the refactor project structure require some enhancing, and include (not limited to):

More details on bootstrap/repoclean
Writing own applications
Creating own benchmarks

Writing config file
Writing test files

@nklincoln I'd leave the first point to you. I've already volunteered for the tutorial-like docs tasks in a previous call :)

closing due to existing docs and tutorial(s)


互动教程 - 配置 java 微服务

运行完mvn package -pl system命令后界面卡死，无法进行后续操作

The URL is https://kubernetes.io/zh/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice-interactive/
I think it's right.
I ran the examples in the yesterday afternoon and it worked normally.  So I think it should be a problem with the virtual environment.


NIFI-1939 - Correct issue where ParseSyslog was unable to parse RFC31…

…64 messages containg an IPv6 address as source
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically master)?

[X] Is your initial contribution a single, squashed commit?

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[X] Have you written or updated unit tests to verify your changes?
[X] ~If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?~
[X] ~If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?~
[X] ~If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?~
[X] ~If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?~

For documentation related changes:

[X] ~Have you ensured that format looks appropriate for the output in which it is rendered?~

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

@bbende - would you be able to have a look on this one?
Cheers

@trixpan I'll take a look when I get some free time, have a few other things going on at the moment.


datumPlan.fromPOD()

The natural-lenses/datum-plan module should export (or host, if required) a fromPOD function that:

Accepts a POD (Plain Ol' Data) value -- like the result of parsing JSON -- where any non-Array, non-Object is treated as '$' in a normal plan, and
Accepts as an optional second parameter an Array of "tweaks" -- functions that take the plan in progress and produce a modified plan.

Like the regular datumPlan function, this function's first parameter can be a function that accepts the same kind of DSL object as datumPlan (documented as DatumPlan_DSL type).  The second parameter can also be given as a function, accepting its own DSL object with an access property having methods that return "tweaks" to incorporate in the result:

Method
Description

access.VALUE(...keys)
Returns a "tweak" function that builds a Lens from keys and uses that Lens to create a clone of the input plan with the indicated slot replaced with datumPlan.value.

access.ITEMS(...keys)
Returns a "tweak" function that builds a Lens from keys and uses that Lens to create a clone of the input plan with the indicated slot replaced with [].

access.ITEMS(...keys).plan(itemPlan)
Returns a "tweak" like the base method, but specifying an item plan.

access.NAMED_ENTRIES(...keys)
Returns a "tweak" function that builds a Lens from keys and uses that Lens to create a clone of the input plan with the indicated slot replaced with {[datumPlan.others]: datumPlan.value}.

access.NAMED_ENTRIES_ALSO(...keys)
Returns a "tweak" like access.NAMED_ENTRIES, but leaves existing items in the slot, only adding the [datumPlan.others, datumPlan.value] entry to the target object.

access.NAMED_ENTRIES(...keys).plan(itemPlan) and access.NAMED_ENTRIES_ALSO(...keys).plan(itemPlan)
Returns a "tweak" like the base method, but specifying an item plan for the named entries.

access.VALUE(...keys).plan(valuePlan) should also be supported, in congruence with the other access methods.


Decouple editing loop from Razor editor

Today the VisualStudio editor handles text buffer changes and then flows those changes to our code. We should be the ones responsible for understanding/directly consuming changes to the text buffer.

https://github.com/aspnet/Razor/commit/24154ec4c2c64cad32e2e3d3d0a9dcded8bb8555

Before this is 100% complete the following needs to be completed:

https://github.com/aspnet/Razor/issues/1538
https://github.com/aspnet/Razor/issues/1634


request.ip is None causes TypeError: 'NoneType' object is not subscriptable

I'm encountering a problem that request.ip is None (I'm using nginx and gunicorn for deloyment). I'm not sure if it's the nginx settings issue or not.
I have to modify the code like this:
if self.request is not None:
    extra['host'] = 'UNKNOWN'
    if self.request.ip:
        extra['host'] = '{0}:{1}'.format(self.request.ip[0],
                                         self.request.ip[1])

    extra['request'] = '{0} {1}'.format(self.request.method,
                                        self.request.url)

And the nginx settings:
server {
    set_real_ip_from <IP_ADDRESS>;
    set_real_ip_from <IP_ADDRESS>/8;
    real_ip_header X-Forwarded-For;
    real_ip_recursive on;
    listen 80 default_server;
    listen[::]: 80 default_server;
    server_name _;
    location / {
        # checks for static file, if not found proxy to app
        try_files $uri @myapp;
    }
    location @myapp {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        # enable this if and only if you use HTTPS
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header Host $http_host;
        # we don't want nginx trying to do something clever with
        # redirects, we set the Host: header above already.
        proxy_redirect off;
        proxy_buffering off;
        proxy_pass http://unix:/run/myapp/socket;
    }
    # ....
}

#1039 fix it and closed.


Syntax error in sample sendgrid node.js code, during run time.

Issue Summary
I am getting a Syntax error in mail.js when I copied the sample sendgrid code and tried to run it on my server
Steps to Reproduce

npm install  @sendgrid/mail
exported environment variable SENDGRID_API_KEY in my bash environment
Copied the sample code

const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
  to<EMAIL_ADDRESS>  from<EMAIL_ADDRESS>  subject: 'Sending with SendGrid is Fun',
  text: 'and easy to do anywhere, even with Node.js',
  html: 'and easy to do anywhere, even with Node.js',
};
sgMail.send(msg);

Last step:
Run the code
# node sendgrid.js
/root/scripts/node_modules/@sendgrid/mail/src/mail.js:6
const {
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/root/scripts/sendgrid.js:1:78)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

Technical details:
# npm list |grep sendgrid
├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├──<EMAIL_ADDRESS>deduped
│ └─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>npm ERR! extraneous<EMAIL_ADDRESS>/root/scripts/node_modules/jsprim/node_modules/assert-plus
npm ERR! extraneous<EMAIL_ADDRESS>/root/scripts/node_modules/verror/node_modules/assert-plus
npm ERR! extraneous<EMAIL_ADDRESS>/root/scripts/node_modules/dashdash/node_modules/assert-plus
npm ERR! extraneous<EMAIL_ADDRESS>/root/scripts/node_modules/getpass/node_modules/assert-plus
npm ERR! extraneous<EMAIL_ADDRESS>/root/scripts/node_modules/sshpk/node_modules/assert-plus

# npm -v
5.3.0
# node -v
v4.8.4
# echo $SENDGRID_API_KEY
SG.jyr8dVjFTBO4MayuTAS_zA.7a9Qg_XXXXXX

Hello @kiranshashiny,
I believe this is not working for you because v6 of this SDK does not support Node v4.
Do you have access to a machine that uses Node v6 or higher?
With Best Regards,
Elmer

This is correct, the error is happening on a destructuring statement which is not supported in Node 4.

I upgraded to node 8.x and it works.

Closing the issue as the fix was to upgrade.


error during running modelv1

i am trying to copy modelv1 code in editor and run it, following error is occurring:
/home/srinath/anaconda3/lib/python3.6/site-packages/h5py/init.py:34: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/home/srinath/phd_programme/relation_classification/model_1.py", line 71, in
cell = tf.contrib.rnn.BasicLSTMCell(word_state_size)
NameError: name 'word_state_size' is not defined
i would like to know how to resolve this.

you did not copy the code properly. I have defined word_state_size in the code. Please check the code again.

is it in the same file? in modlev1.jpynb, i checked it is only in two places that is:
with tf.variable_scope("word_lstm1"):
cell = tf.contrib.rnn.BasicLSTMCell(word_state_size)
state_series, current_state = tf.nn.dynamic_rnn(cell, embedded_word[0], sequence_length=path_length[0], initial_state=init_states[0])
state_series_word1 = tf.reduce_max(state_series, axis=1)
with tf.variable_scope("word_lstm2"):
cell = tf.contrib.rnn.BasicLSTMCell(word_state_size)
state_series, current_state = tf.nn.dynamic_rnn(cell, embedded_word[1], sequence_length=path_length[1], initial_state=init_states[0])
state_series_word2 = tf.reduce_max(state_series, axis=1)
but error is still continuing
Traceback (most recent call last):
File "/home/snd/phd_programme/relation_classification/model_1.py", line 71, in
cell = tf.contrib.rnn.BasicLSTMCell(word_state_size)
NameError: name 'word_state_size' is not defined
please tell me how to resolve this
i also tried to run in jupyter notebook but problem still continue.

check the modelv8

okay, thanks.
i got it.


⚠ ClamAV has degraded performance

In 360907b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in 7d382d6 after 9 minutes.


OAS3 not importing

Hi there, I'm attempting to pull an OAS3 doc into API Clarity and met with the following error:
json: cannot unmarshal bool i │
│ nto Go struct field SwaggerProps.paths of type string" func="github.com/apiclarity/apiclarity/backend/pkg/rest.(*S │
│ erver).PutAPIInventoryAPIIDSpecsProvidedSpec" file="/build/backend/pkg/rest/apiinventory_upload_spec.go:52"

Here's the actual OAS file, which compiles perfectly in editor.swagger.io
openapi: 3.0.1
info:
  version: '1.0-oas3'
  title: httpbin
  description: An unofficial OpenAPI definition for [httpbin.org](https://httpbin.org) v3

servers:
  - url: https://httpbin.org
  - url: http://httpbin.org
  - url: https://eu.httpbin.org
  - url: http://eu.httpbin.org

tags:
  - name: auth
    description: Operations for testing various authentication types
  - name: HTTP methods
    description: Operations for testing different HTTP methods
  - name: Status codes
    description: Return the specified HTTP status code, or a random status code if more than one are given

# All paths & parameters are described in
# https://github.com/kennethreitz/httpbin/blob/master/httpbin/core.py

externalDocs:
  url: http://httpbin.org/legacy

paths:
  # New operations for parsing time
  /:
    get:
      summary: The current time, in a variety of formats
      tags:
        - time
      servers:
        - url: https://now.httpbin.org
        - url: http://now.httpbin.org
      #externalDocs:
      #  url: /docs # ???
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  now:
                    $ref: '#/components/schemas/Timestamp'
                  urls:
                    type: array
                    items:
                      type: string
                    example:
                      - /
                      - /docs
                      - '/when/:human-timestamp'
                      - '/parse/:machine-timestamp'
                required:
                  - now
                  - urls

  /when/{human-timestamp}:
    get:
      tags:
        - time
      servers:
        - url: http://now.httpbin.org
        - url: https://now.httpbin.org
      parameters:
        - in: path
          name: human-timestamp
          required: true
          schema:
            anyOf:
              - type: string # ????
      responses:
        '200':
          $ref: '#/components/responses/TimestampResponse'
        '500':
          description: oops

  /parse/{machine-timestamp}:
    get:
      tags:
        - time
      servers:
        - url: http://now.httpbin.org
        - url: https://now.httpbin.org
      parameters:
        - in: path
          name: machine-timestamp
          required: true
          schema:
            anyOf:
              - type: string # ????
              - type: number
      responses:
        '200':
          $ref: '#/components/responses/TimestampResponse'
        '500':
          description: oops

  /get:
    get:
      tags:
        - HTTP methods
      summary: |
        Returns the GET request's data. Accepts any query parameters and any headers.
      parameters:
        - $ref: '#/components/parameters/freeFormQuery'
      responses:
        '200':  # Change to 'default' ???
          description: OK
          content:
            application/json:
              schema:
                type: object

  /delete:
    delete:
      tags:
        - HTTP methods
      summary: |
        Returns the DELETE request's data. Accepts any query parameters and any headers.
      parameters:
        - $ref: '#/components/parameters/freeFormQuery'
      responses:
        200:
          description: OK

  /post:
    post:
      tags:
        - HTTP methods
      # summary: POSTs a pizza order and returns the POSTed data.
      summary: Returns the POSTed data
      parameters:
        - $ref: '#/components/parameters/freeFormQuery'
      requestBody:
        description: Data provided in the request body will be returned in the response.
        content:
          application/json:
            schema: {}
            example:
              message: Hello, world!
          application/vnd+json:
            schema: {}
            examples:
              pizzaOrder:
                summary: Pizza order data
                description: Longer description ...
                value:
                  custname: Alice
                  custtel: '+1-202-555-0100'
                  custemail<EMAIL_ADDRESS>                  size: medium
                  topping: [cheese, mushroom]
                  delivery: '19:00'
                  comments: Ring the door bell three times
              simpleObject:
                summary: sample object
                value:
                  foo: bar
          application/xml:
            schema:
              type: object
            example:
              message: Hello, world!
          text/plain:
            schema:
              type: string
              example: Hi there
          application/x-www-form-urlencoded:
            schema:
              # anyOf:
              #   - type: object
              #     additionalProperties: true

              #   - description: Pizza order
              type: object
              properties:
                custname:
                  type: string
                  example: Alice
                  description: Customer name
                custtel:
                  type: string
                  example: '+1-202-555-0100'
                  description: Customer phone number
                custemail:
                  type: string
                  format: email
                  example<EMAIL_ADDRESS>                  description: Customer email address
                size:
                  type: string
                  enum:
                    - small
                    - medium
                    - large
                  description: Pizza size
                topping:
                  type: array
                  items:
                    type: string
                    enum:
                      - bacon
                      - cheese
                      - mushroom
                      - onion
                  description: Pizza toppings
                delivery:
                  type: string
                  example: '13:30'
                  description: Delivery time
                comments:
                  type: string
                  example: ASAP
                  description: Comments
            examples:
              pizzaOrder:
                summary: Pizza order data
                description: Longer description ...
                value:
                  custname: Alice
                  custtel: '+1-202-555-0100'
                  custemail<EMAIL_ADDRESS>                  size: medium
                  topping: [cheese, mushroom]
                  delivery: '19:00'
                  comments: Ring the door bell three times
              simpleObject:
                summary: sample object
                value:
                  foo: bar
          # multipart/form-data: {}  # TODO
          '*/*':   # is this valid?
            schema: {}
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
              #schema:
              #  type: object

  # /put: {}
  # /patch: {}
  # /delete: {}
  # /response-headers:
  #   parameters:
  #     - in: query
  #       name: headers
  #       # Arbitrary key=value pairs
  #       schema:
  #         type: object
  #         example:
  #           Server: unicorn
  #       style: simple
  #   get: {}
  #   post: {}

  /ip:
    get:
      summary: Returns Origin IP.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  origin:
                    type: string
                    description: >
                      The IP address, or a comma-separated list of IP addresses.
                      For example, "<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>"'
                    example: <IP_ADDRESS>
                required:
                  - origin
              examples:   # Content examples override schema-level examples
                oneIp:
                  description: Example of a single IP
                  value:
                    origin: <IP_ADDRESS>
                multipleIps:
                  description: Example of multiple IPs
                  value:
                    origin: <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>

  /user-agent:
    get:
      summary: Returns the user agent.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user-agent:
                    type: string
                    example: curl/7.37.0
                required:
                  - user-agent

  /headers:
    get:
      summary: Returns the request headers.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  headers:
                    type: object
                    additionalProperties:
                      type: string
                    # wrong syntax!
                    #example:
                    #  $ref: '#/components/examples/headers'
                required:
                  - headers

  # /anything:
  #   summary: Returns request data, including method used.
  #   get: {}
  #   post: {}
  #   put: {}
  #   patch: {}
  #   delete: {}
  #   trace: {}
  #   options: {}

  # /anything/{anything}:
  #   summary: Returns request data, including method used.

  #   parameters:
  #     - in: path
  #       name: anything
  #       required: true
  #       schema:
  #         type: string
  #       description: An arbitrary subpath

  #   get: {}
  #   post: {}
  #   put: {}
  #   patch: {}
  #   delete: {}
  #   trace: {}
  #   options: {}

  /delay/{n}:
    get:
      summary: Delays responding for min(n, 10) seconds.
      parameters:
        - name: n
          in: path
          required: true
          description: Response delay, in seconds.
          schema:
            type: integer
            minimum: 0
            maximum: 10
      responses:
        '200':
          description: OK
          content:
            application/json: {}
              # schema:
              #   type: object

  /basic-auth/{user}/{password}:
    get:
      summary: Challenges HTTPBasic Auth.
      tags:
        - auth
      security:
        - basicAuth: []
      parameters:
        - $ref: '#/components/parameters/user'
        - $ref: '#/components/parameters/password'
      responses:
        '200':
          $ref: '#/components/responses/200BasicAuth'
        '401':
          description: >-
            Unauthorized (The username and password used for Basic auth do not
            match those in the URL path.)
          headers:
            Www-Authenticate:
              schema:
                type: string
                example: 'Basic realm="Fake Realm"'

  /hidden-basic-auth/{user}/{password}:
    get:
      summary: Hidden Basic authentication
      tags:
        - auth
      description: Returns 404 Not Found unless the request is authenticated.
      security:
        - basicAuth: []
      parameters:
        - $ref: '#/components/parameters/user'
        - $ref: '#/components/parameters/password'
      responses:
        '200':
          $ref: '#/components/responses/200BasicAuth'
        '404':
          description: >-
            Unautorized (the username and password used for Basic auth do not
            match those in the URL path.)

  /bearer:
    get:
      summary: Tests Bearer authentication
      tags:
        - auth
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Authorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  authenticated:
                    type: boolean
                    example: true
                  token:
                    type: string
                    description: Bearer token specified in the request
        '404':
          description: Unauthorized

  /status/{statusCode}:
    summary: Returns the specified HTTP status code, or a random status code if more than one are given
    parameters:
      - name: statusCode
        in: path
        required: true
        description: The status code to return, or a weighted list of statuses to pick from, such as `200:4,500:0.3,418`.
        schema:
          type: array
          items:
            description: HTTP status code. May include optional weight, e.g. `200:0.9`
            oneOf:
              - type: string
              - type: integer
          minItems: 1
          example:
            - '200:5'
            - '500:0.3'
            - 418
        style: simple

    get:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.
    post:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.
    patch:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.
    put:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.
    delete:
      tags:
        - Status codes
      responses:
        default:
          description: A response with the requested status code.

  /xml:
    get:
      summary: Returns some XML.
      responses:
        '200':
          description: OK
          content:
            application/xml: {}

  /html:
    get:
      summary: Returns an HTML page
      responses:
        '200':
          description: OK
          content:
            text/html: {}

  /image/{format}:
    get:
      summary: Returns an image with the specified format.
      tags:
        - images
      parameters:
        - in: path
          name: format
          required: true
          schema:
            type: string
            enum:
              - png
              - jpeg
              - webp
              - svg
      responses:
        '200':
          $ref: '#/components/responses/Image'

  /image:
    get:
      summary: Returns an image based on the Accept header.
      tags:
        - images
      responses:
        '200':
          $ref: '#/components/responses/Image'
        '406':
          description: Client did not request a supported media type.

  /cache:
    get:
      summary: >-
        Returns 200 unless an If-Modified-Since or If-None-Match header is
        provided, when it returns a 304.
      parameters:
        - in: header
          name: If-Modified-Since
          required: false
          description: >
            For testing purposes this header accepts any value. (???)
            See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
          schema:
            type: string
            example: 'Wed, 21 Oct 2015 07:28:00 GMT'
        - in: header
          name: If-None-Match
          required: false
          description: >
            For testing purposes this header accepts any value. (???)
            See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
          schema:
            type: string
          examples:
            etag:
              value: '"bfc13a64729c4290ef5b2c2730249c88ca92d82d"' # Quotes are part of the value
            etags:
              value: 'W/"67ab43", "54ed21", "7892dd"'
            asterisk:
              value: '*'
      responses:
        '200':
          description: Neigher If-Modified-Since nor If-None-Match header is provided
        '304':
          description: If-Modified-Since or If-None-Match header is provided

  /cookies:
    get:
      tags:
        - Cookies
      summary: Returns cookie data
      responses:
        200:
          description: OK
  /cookies/set:
    get:
      tags:
        - Cookies
      summary: Sets one or more simple cookies
      parameters:
        - $ref: '#/components/parameters/freeFormQuery'
      responses:
        200:
          description: OK
  /cookies/delete:
    get:
      tags:
        - Cookies
      summary: Delete one or more simple cookies
      parameters:
        - $ref: '#/components/parameters/freeFormQuery'
      responses:
        200:
          description: OK

#################################
# Reusable things
#################################
components:
  schemas:
    CommonResponse:
      description: Response returned by `/get`
      type: object
      properties:
        args:
          type: object
          additionalProperties:
            type: string
          description: Query string parameters specified in the request URL.
        headers:
          type: object
          additionalProperties:
            type: string
          description: >
            Headers (standard or custom) used in the request. Some typical headers are:
              - Accept
              - Accept-Encoding
              - Content-Length
              - Content-Type
              - Host
              - Origin
              - Referred
              - User-Agent
          # not valid syntax
          #example:
          #  $ref: '#/components/examples/headers'
        origin:
          type: string
          description: The origin IP from which the request was made.
          example: '<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>'
        url:
          type: string
          format: uri
          description: The endpoint URL to which the request was made.
          example: https://httpbin.org/post
      required:
        - args
        - headers
        - origin
        - url

    PostResponse:
      description: Response returned by /post, /put, /patch and /delete
      allOf:
        - $ref: '#/components/schemas/CommonResponse'
        - type: object
          properties:
            data: {}    # Always a plain text string???
              # ???
              # oneOf:
              #   - type: string
              #   - type: object
            files: {}
            #  type: object
            #  description: ???
            form:
              type: object
              additionalProperties:
                type: string
              description: >
                Form parameters specified in "application/x-www-form-urlencoded" and
                `multipart/form-data` requests.
            json:
              description: >
                JSON value sent in the payload.
                Can be object, array, string, number, boolean or `null`.
              nullable: true
              # oneOf:
              #   - type: object
              #   - type: array
              #   - type: string
              #   - type: number
              #   - type: boolean

    TimestampWrapper:
      type: object
      properties:
        timestamp:
          $ref: '#/components/schemas/Timestamp'
      required:
        - timestamp

    Timestamp:
      type: object
      properties:
        epoch:
          type: number
          format: double
          example:<PHONE_NUMBER>.0671656
        slang_date:
          type: string
          example: today
        slang_time:
          type: string
          example: now
        iso8601:
          type: string
          # format: ???
          example: '2017-06-23T14:47:08.067166Z'
        rfc2822:
          type: string
          # format: ???
          example: 'Fri, 23 Jun 2017 14:47:08 GMT'
        rfc3339:
          type: string
          # format: ????
          example: '2017-06-23T14:47:08.06Z'
      required:
        - epoch
        - slang_date
        - slang_time
        - iso8601
        - rfc2822
        - rfc3339
      example:
        epoch:<PHONE_NUMBER>.84644
        slang_date: Jan 23
        slang_time: 4 months ago
        iso8601: '2017-01-23T14:59:10.846440Z'
        rfc2822: Mon, 23 Jan 2017 14:59:10 GMT
        rfc3339: '2017-01-23T14:59:10.84Z'
      # schema does NOT support plural "examples"
      # examples:
      #   Now:
      #     value:
      #       epoch:<PHONE_NUMBER>.0671656
      #       slang_date: today
      #       slang_time: now
      #       iso8601: '2017-06-23T14:47:08.067166Z'
      #       rfc2822: Fri, 23 Jun 2017 14:47:08 GMT
      #       rfc3339: '2017-06-23T14:47:08.06Z'
      #   DateInPast:
      #     description: Example of a date in the past
      #     value:
      #       epoch:<PHONE_NUMBER>.84644,
      #       slang_date": Jan 23
      #       slang_time": 4 months ago
      #       iso8601: '2017-01-23T14:59:10.846440Z'
      #       rfc2822: Mon, 23 Jan 2017 14:59:10 GMT
      #       rfc3339: '2017-01-23T14:59:10.84Z'

  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Use the same username and password as you will provide in path parameters.
    bearerAuth:
      type: http
      scheme: bearer

  parameters:
    user:
      name: user
      in: path
      required: true
      description: Username. Use the same username in the path AND for authorization.
      schema:
        type: string
    password:
      name: password
      in: path
      required: true
      description: Password. Use the same password in the path AND for authorization.
      schema:
        type: string
    freeFormQuery:
      name: freeform
      in: query
      schema:
        type: object
        additionalProperties: true
      # This is the default serialization method, so it can be omitted
      style: form
      explode: true
      description: >
        Enter free-form query parameters in the JSON format
        `{ "param1": "value1", "param2": "value2", ... }`.

        Note that the parameters will be actually sent as
        `?param1=value1&param2=value2&...`

  responses:
    200BasicAuth:
      description: OK
      content:
        application/json:
          schema:
            type: object
            properties:
              authenticated:
                type: boolean
                example: true
              user:
                type: string
                description: The user name specified in the request.
    Image:
      description: OK
      content:
        image/png, image/jpeg, image/webp:
          schema:
            type: string
            format: binary
        image/svg+xml: {}  # string? object?
        image/svg: {}  # string? object?

    TimestampResponse:
      description: OK
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TimestampWrapper'

  examples:
    headers:
      value:
        Accept: '*/*'
        Connection: close
        Host: httpbin.org
        User-Agent: curl/7.37.0

    Now:
      value:
        epoch:<PHONE_NUMBER>.0671656
        slang_date: today
        slang_time: now
        iso8601: '2017-06-23T14:47:08.067166Z'
        rfc2822: Fri, 23 Jun 2017 14:47:08 GMT
        rfc3339: '2017-06-23T14:47:08.06Z'
    DateInPast:
      description: Example of a date in the past
      value:
        epoch:<PHONE_NUMBER>.84644,
        slang_date": Jan 23
        slang_time": 4 months ago
        iso8601: '2017-01-23T14:59:10.846440Z'
        rfc2822: Mon, 23 Jan 2017 14:59:10 GMT
        rfc3339: '2017-01-23T14:59:10.84Z'

Sorry for that, the UI say that v3.0 is supported, but actually we have https://github.com/apiclarity/apiclarity/issues/39
to support OAS across the system. We will update the UI. Thanks!


Allow user to replace all uses of STDOUT/STDERR for logging

Hello,
I deploy this library in an environment where the java processes stdout and stderr is discarded and there is no way for the developer
maintainer to see it.
I would like the ffmpeg errors to be captured without involving stderr as they are usefull to diagnose some errors.
To capture the errors you would need to either log them into java.util.logging or the slf4j logging facade.
I understand that you may not wish to include slf4j as a dependency.
I know that some people hate java.util.logging (and would prefer not to have to use it)
So my suggestion would be to have a global static variable that the user can set that determines where log lines get pumped to.
The default implementation would pump to stdout/stderr just like it currently does but I could then in my bootstrap of my application call
"FFmpegCommon.setLoggingSystem(FFmpegLoggingManager instance)" (just an example)
If I were to design this interface then I would give it only 1 method that looks like this:
void appendLog(Process ffmpegProc, boolean isStdErr, byte[] data, int off, int len);
If you do not want to hand in the process then please pass some unique identifier (aka process pid for example or a random UUID instead so I can tell appart error messages from multiple concurrent ffmpeg jobs)
I would outsource line breaks and all that thing to concrete implementations.
Currently I have to hack very deep into your library using inheritance to be able to accomplish this.
The default implementation that dumps everything to stdout/stderr could probably be as simple as this:
public void appendLog(Process ffmpegProc, boolean isStdErr, byte[] data, int off, int len) {
  PrintStream stream = isStdErr ? System.err : System.out;
  try {
    stream.write(data, off, len);
  } catch(Exception e) {
    //IGNORED
  }
}

Sincerely
Alexander Schütz

I disslike the current stdout/stderr/stdin situation quite a bit and would like to see something like this.
An additional problem with the current solution would be, that stdout and stderr are merged into a single stream, this should be addressed as well.
slf4j-api is already included as a dependency, so adding support for a slf4j sink would be relatively easy.
But I'd say we should keep the default on System.out/System.err.
As for providing a reference to Process:
I see how hard it can be to identify what command is actually running.
I had a similar problem, where I had to interrupt a process that was running on a different thread.
I think providing a reference like you mentioned would be useful, but I'd prefer to make it something we (this library) owns.
So not (or at least not directly) java.lang.Process.

Fyi: Getting the command line from a java Process Object is trivial.  Files.readAllBytes("/proc/pid/cmdline") pid can be retrieved via Process.pid(). I do not require it in the log manager impl provided I can fetch the same id that you will hand me to the Ffmpeg obj that logs. I already have to "track" the Process objects anyways (I use a custom run process function that remembers the last process) so I can call destroyForcibly on it in case a client thats receiving transcoded video goes away.


Fixes Publishing Data to Elasticsearch

Fixes #963 due to bad types. For simplicity, I also moved this twint/storage/elasticsearch.py to use datetime, which is a more elegant solution (and already has precedent in twint/storage/db.py)
This change could break whatever twint/storage/panda.py used the hour function in elasticsearch.py for, which was simply moved into the one place it was used in panda.py as it was no longer needed and only used once. So, do test if you're interested in this PR, or tell me what you need me to do or whatever.
Hope this helps.

Thanks a lot for this PR, I was facing the same issue and this fixed it.

New error using elasticsearch
Traceback (most recent call last):
File "/usr/local/bin/twint", line 11, in
load_entry_point('twint==2.1.21', 'console_scripts', 'twint')()
File "/home/usuario/.local/lib/python3.6/site-packages/twint/cli.py", line 313, in run_as_command
main()
File "/home/usuario/.local/lib/python3.6/site-packages/twint/cli.py", line 305, in main
run.Search(c)
File "/home/usuario/.local/lib/python3.6/site-packages/twint/run.py", line 427, in Search
run(config, callback)
File "/home/usuario/.local/lib/python3.6/site-packages/twint/run.py", line 319, in run
get_event_loop().run_until_complete(Twint(config).main(callback))
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "/home/usuario/.local/lib/python3.6/site-packages/twint/run.py", line 239, in main
await task
File "/home/usuario/.local/lib/python3.6/site-packages/twint/run.py", line 290, in run
await self.tweets()
File "/home/usuario/.local/lib/python3.6/site-packages/twint/run.py", line 230, in tweets
await output.Tweets(tweet, self.config, self.conn)
File "/home/usuario/.local/lib/python3.6/site-packages/twint/output.py", line 175, in Tweets
await checkData(tweets, config, conn)
File "/home/usuario/.local/lib/python3.6/site-packages/twint/output.py", line 159, in checkData
elasticsearch.Tweet(tweet, config)
File "/home/usuario/.local/lib/python3.6/site-packages/twint/storage/elasticsearch.py", line 296, in Tweet
helpers.bulk(es, actions, chunk_size=2000, request_timeout=200)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/helpers/actions.py", line 373, in bulk
for ok, item in streaming_bulk(client, actions, *args, **kwargs):
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/helpers/actions.py", line 303, in streaming_bulk
**kwargs
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/helpers/actions.py", line 230, in _process_bulk_chunk
for item in gen:
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/helpers/actions.py", line 171, in _process_bulk_chunk_success
raise BulkIndexError("%i document(s) failed to index." % len(errors), errors

That's an issue from your Elasticsearch endpoint, @overcyber

Thank you. I realized, but do not know how to solve the Elastix. Can you help me ?

That's an issue from your Elasticsearch endpoint, @overcyber


Content: Getting Started with Node-RED Dashboard 2.0

Description

Article Written

Due for publication on 27th March, 2024
Related Issue(s)
Closes #1706 https://github.com/FlowFuse/customer/issues/148

Thanks @Yndira-E - @gdziuba adding you in as a reviewer - this is the blog due for publishing today

reviewing now

@gdziuba anything stopping this from being merged? Was due for publication today...

@joepavitt Nope.  I didn't see your response to Hasmin above.  It looked like an open dialog.  It can merge now.

@joepavitt I Will promote tomorrow.


Added test case to test the Exception aggregation

Added test case to test the Exception aggregation

Those changes just went in and added one more test to the suite to cover the scenario where the exception happens in OnReceive. It also changes the exception handling so that the underlying exception propagates more "naturally" through the task chain as a AggregateException. Glancing at the test you added here it should work exactly the same way since you're checking the inner exception's type. So if you rebate against my commit and rerun it should "just work". 😊

Are you on skype? Or teams? Or slack?

From: Drew Marsh<EMAIL_ADDRESS>Sent: Friday, February 16, 2018 9:55:59 PM
To: Microsoft/botbuilder-dotnet
Cc: Chris Mullins; Comment
Subject: Re: [Microsoft/botbuilder-dotnet] Added test case to test the Exception aggregation (#142)
Those changes just went in and added one more test to the suite to cover the scenario where the exception happens in OnReceive. It also changes the exception handling so that the underlying exception propagates more "naturally" through the task chain as a AggregateException. Glancing at the test you added here it should work exactly the same way since you're checking the inner exception's type. So if you rebate against my commit and rerun it should "just work". 😊
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fbotbuilder-dotnet%2Fpull%2F142%23issuecomment-366419636&data=04|01|cmullins%40microsoft.com|706deeccab964b060a8508d575cb1f33|72f988bf86f141af91ab2d7cd011db47|1|0|636544437615432135|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=%2B4GzZeB7Jw6EfnyRjF2Bu1I9AqGheuud6FhI9adeh%2F0%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABHICeMSz___o8zDv-Wvarlh6xGLPMwyks5tVmnvgaJpZM4SI2Ya&data=04|01|cmullins%40microsoft.com|706deeccab964b060a8508d575cb1f33|72f988bf86f141af91ab2d7cd011db47|1|0|636544437615432135|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=Bo2aoaS74l5IxGq3%2FO8dZAVGy6VpE7zjd3rtSoLrH%2FM%3D&reserved=0.

Merged.

From: Drew Marsh<EMAIL_ADDRESS>Sent: Friday, February 16, 2018 9:55:59 PM
To: Microsoft/botbuilder-dotnet
Cc: Chris Mullins; Comment
Subject: Re: [Microsoft/botbuilder-dotnet] Added test case to test the Exception aggregation (#142)
Those changes just went in and added one more test to the suite to cover the scenario where the exception happens in OnReceive. It also changes the exception handling so that the underlying exception propagates more "naturally" through the task chain as a AggregateException. Glancing at the test you added here it should work exactly the same way since you're checking the inner exception's type. So if you rebate against my commit and rerun it should "just work". 😊
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fbotbuilder-dotnet%2Fpull%2F142%23issuecomment-366419636&data=04|01|cmullins%40microsoft.com|706deeccab964b060a8508d575cb1f33|72f988bf86f141af91ab2d7cd011db47|1|0|636544437615432135|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=%2B4GzZeB7Jw6EfnyRjF2Bu1I9AqGheuud6FhI9adeh%2F0%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABHICeMSz___o8zDv-Wvarlh6xGLPMwyks5tVmnvgaJpZM4SI2Ya&data=04|01|cmullins%40microsoft.com|706deeccab964b060a8508d575cb1f33|72f988bf86f141af91ab2d7cd011db47|1|0|636544437615432135|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=Bo2aoaS74l5IxGq3%2FO8dZAVGy6VpE7zjd3rtSoLrH%2FM%3D&reserved=0.

I'm about to pull in the changes if you pulled stuff into your branch.

@cleemullins I can close this PR and open another for master? I noticed you already merged your branch in.


Not working on Linux (Fedora and Arch)

While joined to a VS Code Live Share session that was initiated by someone on Mac OS, I cannot see the current active mob timer that they started, and it shows as blank for me in my extension window.
I see << SET DRIVER >> at the top and add mobber at the bottom of the window.
Live Share Mob Timer version 0.1.3
Visual Studio Code Version 1.45.1
Fedora release 32 (Thirty Two) (Workstation Edition)
Linux kernel 5.6.14-300.fc32.x86_64

Wrong repo/app


[Bug] svg image load from server causes error while parsing the response

Is there an existing issue for this?

[X] I have searched the existing issues

Have you updated FilePond and its plugins?

[x] I have updated FilePond and its plugins

Describe the bug
I have implemented all the necessary methods i.e. preview and upload seamlessly along with loading the image from the server to show it on the edit page. But recently faced this issue while trying to load the SVG image from the server. Getting error while trying to parse the response (which is blob according to documentation) even though the response is a valid SVG.
Error: parsererror
Error Body:
Invalid XML: This page contains the following errors:
error on line 1 at column 1: Start tag expected, '<' not found
Below is a rendering of the page up to the first error
References:
Error (console error in ajax):

Response (valid SVG from server):

Reproduction
Step 1:
Implement filepond upload (server: process) with preview image+pdf
            process: {
                url: "<?php echo url('/admin/expertises/image-upload'); ?>",
                headers: {
                    'X-CSRF-TOKEN': '{{ csrf_token() }}'
                },
                ondata: (formData) => {
                    formData.append('module', moduleName);
                    return formData;
                },
                onload: (response) => {
                    return response;
                },
                onerror: (responseString) => {
                    console.error(responseString);

                    errorResponse = JSON.parse(responseString);

                    if (errorResponse && errorResponse.error && errorResponse.messages) {
                        toastr.error(
                            errorResponse.error,
                            errorResponse.messages.cover ? errorResponse.messages.cover[0] : 'File Upload Failed',
                            {
                                closeButton: true,
                                progressBar: true,
                                preventDuplicates: true
                            }
                        );
                    } else {
                        toastr.error('Failed', 'File Upload Failed', {
                            closeButton: true,
                            progressBar: true,
                            preventDuplicates: true
                        });
                    }

                },
            },

Step 2:
Implement load method to load already uploaded file from server (which I have done with ajax)
                    load: (source, load) => {

                        $.ajax({
                            url: '<?php echo url("/admin/expertises/get-file"); ?>',
                            headers: {
                                'X-CSRF-TOKEN': '{{ csrf_token() }}'
                            },
                            type: 'POST',
                            data: {
                                source: source,
                            },
                            xhrFields: {
                                responseType: 'blob'
                            },
                            success: function(data) {
                                load(data);
                            },
                            error: function(xhr, status, error) {
                                console.error('AJAX request failed:', error);
                            }
                        });
                    },

Step 3: Implement server method which returns the SVG image file
    public function getUploadedFile($file_source){

        $filename = basename($file_source);

        // get the mime type from file name extension
        $mime_type = mime_content_type($file_source);

        if (file_exists($file_source)) {
            $fileContent = file_get_contents($file_source);

            $response = new Response($fileContent, 200);
            $response->header('Access-Control-Expose-Headers', 'Content-Disposition, Content-Length, X-Content-Transfer-Id');
            $response->header('Content-Type', $mime_type);
            $response->header('Content-Disposition', 'inline; filename="' . $filename . '"');

            return $response;
        } else {
            return response()->json(['error' => 'File not found'], 404);
        }
    }

Step 4:
Try to upload a SVG file and then try to load it from server with a refresh (for me it is on the edit page)
You should find that the response is a valid SVG file but gets error on ajax methods error callback which will log the error message shown in the above description.
Environment
- Device: HP EliteBook G6 : Core i7 7th Gen
- OS: Windows 10 Pro : 22H2
- Browser: Google Chrome Version 130.0.6723.92 (Official Build) (64-bit)

From the stack trace it seems the error is in jQuery?

I am not sure. I just did all necessary and all other formats work properly except the SVG @rikschennink

Yes, error still occurs if load(data) is removed.
According to the documentation, I must return the images as blob which I did.
According to the documentation, I must use load(data) in the success where I receive the blob image which I did.
Now, this code works properly for all the other types of images except the svg. Now, what must I do to set it right ? or is there anything l'm doing wrong? Please tell me what I must do. Otherwise I'm stuck with it for few days. TIA @rikschennink

After trying a lot and a lot and failing, just took your hint that the issue could be with ajax. Then I tried axios and it worked instantly.
Thanks a lot for your support. @rikschennink

Glad to hear it's resolved 👍


Add spare in the tuning of V4R5

To fix the failure here, which is due to narrowed search space for fast tuning.
Failed config: ./bin/MIOpenDriver convfp16 -n 1 -c 16 -k 16 -H 28 -W 28 -u 2 -v 2 -l 1 -j 1 -p 3 -q 3 -x 3 -y 3 -F 1
Add spare, 1) first-round use fast tuning, 2) second-round do full search
Based on PR #528

@zjing14 How is spare_set used? I don't see this solver would do anything to decide when to use spare_set when not to.

Spare is decided by genericSearch via this function PerformanceImplicitGemmForwardV4R5Xdlops(bool spare);

I think the GenericSearch will first run non-spare (i.e., spare = false). If no tuning parameter set found, it will do the second run with spare == true. @atamazov Correct me if I am wrong.

@zjing14 Correct!

How urgent is this?

@atamazov Not super urgent. This is for Daniel's testing PR, not blocking other issues.


change copying of 3d point array to match surrounding code

Looking at the rest of the code in k2_server, they appear to use Stream.Buffer.BlockCopy to copy the raw bytes from a data structure. Add some (untested) code which apes this idiom. I'd be interested to know if this works. If so, it's probably more likely to be accepted upstream.

Block copying only works with primitive numerical data types. Throws runtime exception.


Simple authentication is not supported

Based on https://github.com/jupyter/enterprise_gateway/issues/979
Implementation details:
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/HttpAuthentication.html
Options:

Easy - add argument to allow username being passed as part of configs/constructors
Fancy - implement custom Auth that would replicate this. Might require more efforts, but sounds like interesting task to do.

Thanks for opening this issue Dmitry.  When I poked at this earlier, I was hopeful that we could leverage the Auth parameter somehow, so I'm inclined to take the option 2 route.  This custom Auth class (would we refer to it as "simple auth" based on your link?) would live in this package and be available to applications taking that approach - correct?

This custom Auth class (would we refer to it as "simple auth" based on your link?) would live in this package and be available to applications taking that approach - correct?
This is correct

This custom Auth class (would we refer to it as "simple auth" based on your link?) would live in this package and be available to applications taking that approach - correct?

thx for kevin and dimon. i just review the code in this package and find no implementation of an auth class. so would this custom auth class live in this package or a third one(e.g. HTTPKerberosAuth in requests_kerberos) may be better

Your code analysis is correct - the current auth-based classes derive from other sources.  However, because this would be a special case relative to this package, I think it makes sense that this package supply a "simple auth" option for clients to leverage.


can this be used with useReducer?

I have switched my form to the useReducer methodology because it was getting too cumbersome.  Now I'm not sure if it is possible to continue using this library or not.
Here is my relavant code:
const initialState = {
	bagID: '',
	lineTechName: '',
	infoCorrect: '',
	materialCorrect: '',
	unwantedMaterials: '',
	unwantedMaterial: '',
	qualityAcceptable: '',
	program: '',
	sealingProperly: '',
	temperature: ''
};

const [userInput, setUserInput] = useReducer(
	(state, newState) => ({ ...state, ...newState }),
	initialState
);

....
const handleChange = (evt) => {
	const { name, value } = evt.target;
	setUserInput({ [name]: value });
};
....
<RadioGroup
	name={'infoCorrect'}
	selectedValue={????}
	// onChange={(value) => {
		// 	setInfoCorrect(value);
	// }}
	onChange={handleChange}
>
<label className={'radio'}>
	<Radio value={'yes'} />
	Yes
</label>
<label className={'radio ml-5'}>
	<Radio value={'no'} />
	No
</label>
</RadioGroup>

I added question marks to the biggest part that I'm unsure about.  Also, I am guessing the handleChange logic will need to change because that is for normal text inputs.

FYI, for anyone who runs into a similar issue, I figured out how to do this here: https://github.com/chenglou/react-radio-group/issues/53#issuecomment-573045423


[question] How can I set empty string value to the variable?

I have the .env file with this content:
SOME_VAR=
and a string template, something like this: begin of %SOME_VAR%.
After ExpandEnvironmentVariables I want to see a string 'begin of '. But now I see 'begin of %SOME_VAR%' as a result. As I can understand, SOME_VAR= means to delete the variable.
Is there any way to assign an empty string to the environment variable?

Hmm excellent point.  Unfortunately, this is a limitation of .NET, which makes me extremely disappointed:
https://msdn.microsoft.com/en-us/library/z46c489x(v=vs.110).aspx#Remarks
I tried working around it, but there's nothing we can do to set an env var to the empty string in .NET, this very specifically deletes it.
That is most unfortunate. :(


Out of range error while importing array of enum values

I'm using QuickSheet to import data from google sheets. I've tryed to import array of enum alues. QuickSheet imports data correctly (it whould be much better if you mention about flags ability of enums in documentation... i was expecting an array of enums though flags enum is more correctly). But watching on data scriptable object in Inspector leads to massive oet of range error messages spam. They appear because enumValueIndex in GUIHelper class can't handle whith multivalue enum. If enum property is multivalue the enumValueIndex returns -1 which leads to error message.
I've added some code to solve the problem my way, but i'm not experienced enouth to find professional solution of this problem.
string text = "";

if (prop.enumValueIndex >= 0)
    EditorGUILayout.PropertyField(prop);
else
{
    EditorGUILayout.TextField(prop.name + " (int value)", prop.intValue.ToString());
    text = " => outofrange error";
}

    EditorGUI.indentLevel++;
    EditorGUILayout.LabelField("enumValueIndex = " + prop.enumValueIndex.ToString() + text);

Sorry if doublig...

Hey, you are not the only one try to use array for `enum' type. :-)

Could you tell me more details what 'flag ability of enum' you want to see in the document?

I want to know why you need enum array. I wonder how and why some people try to use enum array and want to know its real user cases.

I was not sure what will I get as a result of importing array of enums. To be honest I didn't know about flags attribute before I stated diging in bug. So I was expecting an array, an when I didn't saw it it debug I desided that I did something wrong it config sheet. It is probably obvious to a professional and I understand that it s right to use flags enum, but it was not obvious for me.

I'm configuring list of actions i can apply to items in game inventory.

[Flags]
public enum ArticleAction
{
    NoAction = 2,
    TakeOn = 4,
    Recycle = 8,
    Open = 16,
}

So I can use Switch selection statement to choose what buttons to show and what actions to apply. For example I can Open a chest and can TakeOn and Recycle a weapon.
Several years ago I worked as game designer on project where programmers used bit flags to configure actions for items. It was easy enoth for me, so I liked this idea - one number to describe item actions. may be i could use one enum to describe differen cases like "TakeOnAndRicycle", "TakeOnAndOpen"... or I could use int field of sum of bit flags like i had to use on that project... and I would have done so if I had not dealt whith bug my way.

I agree.  Supporting [Flags] attribute of enum type sounds great.
I'll look it later.
Also I found some related pages with googling for references purpose:

https://msdn.microsoft.com/en-us/library/system.enum.hasflag(v=vs.110).aspx
https://stackoverflow.com/questions/5542816/printing-flags-enum-as-separate-flags
https://stackoverflow.com/questions/4171140/iterate-over-values-in-flags-enum/4171168#4171168


CompressionError: bz2 module is not available

I'm running ubuntu 12.10. I cloned this repo, and ran make install. The build always fails with this message:     raise CompressionError("bz2 module is not available")
CompressionError: bz2 module is not available
Storing complete log in /home/codemagnus/.pip/pip.log
make: *** [pip] Error 2

It sounds like you built your own Python? Or somehow you don't have the bz libraries available.


Is the newest cpp package compatible with mxnetv0.8.0?

Are you asking if the code in cpp-package subdirectory in master branch of mxnet can be used to wrap the older mxnet 0.8.0 branch?  Sorry, that's very unlikely :(


Move Admin Set relationship from Descriptions to Relationships

On the work show page, it makes more sense to show the Admin Set relationship of a work under the Relationships header rather than the Descriptions header.
Agree, @projecthydra-labs/hyrax-ui-ux-advisors?

+1


Do not run render upload from forks

@peterbrightwell While working on this I noticed the render was failing
It's a security feature to prevents secrets being leaked (since anyone can fork a public repository) ref

Yes it will fail because fork can't access the secrets. I think it's best not to hard code the owner name in the workflow YAML. Instead upload-site.sh could check whether the secrets are set.
Though in any case having the action functionality differ for a fork doesn't seem ideal. Possibly it could be split into render.yml and upload.yml allowing different workflows, which could be enabled/distabled in the repo settings?

Also if you want to disable the action on the fork

Since there won't be many forks, I agree we can push the issue to them to just disabled it manually


QueueDescription.CountDetails.* always come back as 0

Hi,
Bug from a part of the discussion here: https://github.com/Azure/azure-sdk-for-python/issues/168#issuecomment-66495789
Using List queues/topics in ServiceBusManagementService do not fill correctly the "CountDetails" object.
After investigation, the problem comes from the namespace in the result:
<CountDetails xmlns:d2p1="http://schemas.microsoft.com/netservices/2011/06/servicebus">
        <d2p1:ActiveMessageCount>0</d2p1:ActiveMessageCount>
        <d2p1:DeadLetterMessageCount>0</d2p1:DeadLetterMessageCount>
        <d2p1:ScheduledMessageCount>0</d2p1:ScheduledMessageCount>
        <d2p1:TransferMessageCount>0</d2p1:TransferMessageCount>
        <d2p1:TransferDeadLetterMessageCount>0</d2p1:TransferDeadLetterMessageCount>
</CountDetails>

and CountDetails is defined:
class CountDetails(WindowsAzureData):

    def __init__(self):
        self.active_message_count = 0
        self.dead_letter_message_count = 0
        self.scheduled_message_count = 0
        self.transfer_message_count = 0
        self.transfer_dead_letter_message_count = 0

Then, the parser receives as "tagName" a string likes "ActiveMessageCount" but waits for "d2p1:ActiveMessageCount" here:
def _get_child_nodes(node, tagName):
    return [childNode for childNode in node.getElementsByTagName(tagName)
            if childNode.parentNode == node]

And the parser finds no children...
I don't think there is a lot of solution....
1- Cut all the namespaces before navigate into the XML to build the object
2- Modify _get_child_nodes to try to ignore NS using getElementsByTagNameNS if getElementsByTagName do not give nodes. For instance in naive pseudo-code:
def _get_child_nodes(node, tagName):
    result = [childNode for childNode in node.getElementsByTagName(tagName)
            if childNode.parentNode == node]
    if result:
        return result
    for ns in get_all_namespace_declared(node):
        result = [childNode for childNode in node.getElementsByTagNameNS(ns, tagName)
            if childNode.parentNode == node]
        if result:
           return result
    return []

What do you think? I can try a pull-request with one of these solutions if you think it's correct.

Bug fixed, will be a release in a few days as azure-servicemanagement-legacy 0.20.4


Add oidc auth for kube, using dex

some partials for oidc auth for kube apiserver.
have to think about more exposing the service to out of cluster.
also how pass dex's certificates to master.

Can one of the admins verify this patch?


Add Payfast Payment Gateway

The 3 current payment options are driving me up the wall. In South Africa the "best" gateway to use is Payfast.
I see on Github that there is a processing library available at https://github.com/thephpleague/omnipay-payfast or https://github.com/thephpleague/omnipay
How can I add this to ph7Builder

Hey @Nigrini
To add another payment gateway, this cannot be done through the admin panel, since each payment system relies on a specific API which needs to be handle with a specific library.
This can only be done by modifying the source of the "payment" module and in pH7Framework (eventually, you could add a composer library if available for that payment provider) and follow the same way like how I did for the current payment gateways available in the software.
You can also do it by forking this repo, do your changes, push it to your Github account and open a pull request to this repo with this new payment gateway. Don't forget to follow pH7CMS's coding conventions.
If you are not a good PHP programmer yourself, you will have to ask it to a good PHP programmer (Toptal for instance), or a good one on UpWork, but I've heard that it's harder to find good ones there).
Hope it helps 🤞
Have an amazing day! 🌞

I will consider it for the near future.
https://packagist.org/packages/omnipay/payfast


Update CODE_OWNERS.TXT

Only testing

Resolves SR-NNNN.

@Tokoli-Bismack-Adinortey I’m going to close this out. If you need this PR or would like to push something here, please feel free to reopen it.


Edit release doc

Some edits to the release doc:

Install nose when creating the conda environment for local testing.
Some format issues.

Coverage increased (+0.01%) to 83.663% when pulling 648e1c92cbfff30a0b0513ff1835b23c69923289 on weikang9009:release_doc into 8d1e59649d2ee14f5499ed5ba68d99e32fea89f8 on pysal:master.

Coverage increased (+0.01%) to 83.663% when pulling 648e1c92cbfff30a0b0513ff1835b23c69923289 on weikang9009:release_doc into 8d1e59649d2ee14f5499ed5ba68d99e32fea89f8 on pysal:master.


Change base node to run pruned node by default (1000 blocks)

Happy with that. Currently Esme has hit 11k height, so we can test that


feat: subclass of Table that can include column descriptions

Closes #41.
Summary of Changes
Create a new class ExampleTable that is a subclass of Table and can additionally store column descriptions. This allows the example data to be self-contained. The original describe_XY methods are removed.

🦙 MegaLinter status: ❌ ERROR

Descriptor
Linter
Files
Fixed
Errors
Elapsed time

✅ PYTHON
black
11
4
0
0.71s

✅ PYTHON
flake8
11

0
0.37s

✅ PYTHON
isort
11
4
0
0.25s

✅ PYTHON
mypy
11

0
1.57s

❌ PYTHON
pylint
11

2
1.64s

✅ REPOSITORY
git_diff
yes

no
0.05s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
MegaLinter is graciously provided by


TE5 Mac Chip Tool Testing: Playbackstate, Position attributes are not present for testing

While testing the Media Cluster test cases,
3.8.1. [TC-MC-6.1] Mandatory Media Playback Verification
3.8.2. [TC-MC-6.2] Optional Media Playback Verification
3.8.3. [TC-MC-6.3] Advanced Seek Media Playback Verification
3.8.4. [TC-MC-6.4] Variable Speed Media Playback Verification
Playbackstate and Position attributes are not present to perform few steps

.

They are present now.


Core-3776 Add automated testing for invalid requests on the gateway

//Add unit test for HttpServerChannelHandler
//Add PR description

The build is failing and we have a conflict...


Parse weapon should allow for spaces in damage

see https://app.roll20.net/forum/permalink/3903768/

This should be fixed in 6.1.2


[Event Request] table 39 "Purchase Line" - OnBeforeCheckLineAmount

Hi Team,
In table 39 "Purchase Line", please provide one more parameter the possibility to have OnBeforeCheckLineAmount event in procedure.
local procedure CheckLineAmount(MaxLineAmount: Decimal)
After begin at Line No 4354
OnBeforeCheckLineAmount(Rec, MaxLineAmount, IsHandled,CurrFieldNo);

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckLineAmount(var PurchaseLine: Record "Purchase Line"; MaxLineAmount: Decimal; var IsHandled: Boolean;CalledByFieldNo: Integer)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11415.


Replicating on_message functionality using websockets

I'm looking to implement something similar to the on_message functionality WebSocketApp but using the websockets library, i.e. always read the latest message. However it looks like they only offer recv() in order to read the next message in the queue.
My temporary work around is to run ws.recv() in a while loop, but I'm not sure whether this is the right approach:
async with websockets.connect(self.socket) as ws:
    while True:
        msg = await asyncio.wait_for(ws.recv(), timeout=3)
        self.on_msg(msg)

With this approach I have two concerns:

I'm subscribed to a channel that gets a lot of messages, so I'm concerned recv will fall behind in reading the messages in the queue if I keep the socket running. (I previously had a 0.1s delay in the while loop and noticed that the message I was getting was not the latest. Even after terminating my internet connection, it kept reading from the message queue before raising a connection closed error)

I'm currently using a timeout to detect if a message hangs for unforeseen reasons, but there are cases where there are simply no messages and it raises a timeout error. I'm not able to differentiate the two using the current method.

What's the best way to always get the latest message, even if there's a queue of unread messages? Also, how would you do error handling to avoid the issue in 2)?

I don't think WebSocketApp behaves the way you believe it behaves. Low-level, callback-based libraries usually call on_msg for every message, even if more messages were already received. They don't call it just for the last one. It seems harder to achieve what you're trying to achieve with such a library than with wesbockets.
With the higher-level, coroutine-based design of websockets, you can create that kind of structure.
Run this in a task:
queue = asyncio.Queue()

async with websockets.connect(self.socket) as ws:
    async for msg in ws:
        queue.put_nowait(msg)  # always succeeds because queue is unlimited

And this in another task:
while True:
    msg = await queue.get()
    # if more messages were received, get the last one
    while True:
        try:
            msg = await queue.get_nowait()
        except asyncio.QueueFull:
            pass
    # now msg is the last message in the queue, do what you want with it
    await process(msg)

(untested, but should put you on a viable track)

This proposal solves your second problem because you can detect the disconnection immediately in the first task, even if the second task is still busy processing the last message.

I'd distinguish between two scenarios though:

Buffering due to high load blocking the event loop. Using a (priority) queue won't help you there.
Buffering due to async tasks not being done yet but not blocking the event loop. In that case a (priority) queue will help you.

Personally, I would put the work items into a queue and handle the keepalive directly in the receive handler.


Compilation fails on windows

I have a user who is trying to build kubit from source, which pulls in kubert as a dependency. The user OS is Windows. They run into an issue with respect to signal handling in the shutdown module of this crate because it unconditionally uses tokio::signal::unix
It looks like there is a tokio::signal::windows module available that could be conditionally compiled based on platform feature flags, but the logic around signal handling will probably have to be different for each since it looks like the two platforms provide different approaches to signal handling.

I do wonder if it even makes sense for kubit to be using kubert's shutdown module at all given that it would only be relevant when kubit is run in "controller mode", not in a CLI mode (as far as I can tell).


rows discarded by fill(none) still eats up limit

I have following query
select mean(value) as value from "dummy" where time > '2015-01-01' group by time(1d) fill(none)
it successfuly retrieves 17 rows starting june. This is expected situation bause I only have 17 days of information.
When I want to limit my resultset to 10 rows I add limit 10 to my query and no result returns. If I change my query limit to 1000 I get my 17 rows again. I believe rows discarded by fill(none) statement are still considered a part of resultset and counted.
My system details
Windows 10 x64.
Go 1.5.1 windows/amd64
InfluxDB 0.9.3 (Build from source, patched to compile on Windows)

@jackzampolin can you repro?

@beckettsean Will do!

Unable to repro with master.  fill() works as intended.

Successfully reproduced on master.

Seems to be fixed in master