Error @microsoft/sharepoint

What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>node --version v14.15.0
npm -v 6.14.8
Issue description
Cannot create a web part project by executing yo @microsoft/sharepoint
PS C:\Windows\system32> cd "C:\Users(username)\CustomWebPart"
PS C:\Users(username)\CustomWebPart> yo @microsoft/sharepoint
See https://aka.ms/spfx-yeoman-info for more information on how to use this generator.
Let's create a new SharePoint solution.
? What is your solution name? OneWebPart
? Which type of client-side component to create? WebPart
Add new Web part to solution one-web-part.
? What is your Web part name? HelloWorld
? Which template would you like to use? No framework
Error @microsoft/sharepoint
Trying to copy from a source that does not exist<EMAIL_ADDRESS>I have accessed C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\lib\generators\solution\templates\spo\ and able to find tsconfig.json files

Hi @Joanna2211 - thank you for reporting this issue.
Usually these type of problems is related to some misconfiguration on the machine.
I would recommend to reinstall the generator.
Also double-check it is installed for the same user that is going to create the project (maybe some access policies on the machine).
If you're using nvm or nvs - make sure the generator is installed for the current version of Node you're using to create the project.
Let me know on the results.
Thanks!

Hi @AJIXuMuK, I tried to reinstall the generator but still no luck. I am using nvm and changed to Nodejs 14.15.0 before reinstall
Here is my procedure:
C:\Windows\system32>nvm list

14.15.0 (Currently using 64-bit executable)
10.24.1

C:\Windows\system32>npm list --depth=0 -g
C:\Users(username)\AppData\Roaming\npm
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>C:\Windows\system32>npm uninstall @microsoft/generator-sharepoint -g
npm WARN deprecated<EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated<EMAIL_ADDRESS>"Please update to latest v2.3 or v2.2"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules@rushstack\typings-generator\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
removed 1433 packages in 9.407s
C:\Windows\system32>npm list --depth=0 -g
C:\Users(username)\AppData\Roaming\npm
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>C:\Windows\system32>node --version
v14.15.0
C:\Windows\system32>npm install @microsoft/generator-sharepoint --global
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>The functionality that this package provided is now in @npmcli/arborist
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js
npm WARN deprecated<EMAIL_ADDRESS>This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated<EMAIL_ADDRESS>"Please update to latest v2.3 or v2.2"
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported

<EMAIL_ADDRESS>install C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\node_modules\node-sass
node scripts/install.js

Cached binary found at C:\Users(username)\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-83_binding.node

<EMAIL_ADDRESS>postinstall C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\node_modules\node-sass
node scripts/build.js

Binary found at<EMAIL_ADDRESS>Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules@rushstack\typings-generator\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules@microsoft\generator-sharepoint\node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

<EMAIL_ADDRESS>added 1433 packages from 682 contributors in 48.749s

C:\Windows\system32>npm list --depth=0 -g
C:\Users(username)\AppData\Roaming\npm
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>C:\Windows\system32>cd C:\Users(username)\CustomWebPart
C:\Users(username)\CustomWebPart>yo @microsoft/sharepoint
 _-----_     ╭──────────────────────────╮
|       |    │      Welcome to the      │
|--(o)--|    │  SharePoint Online SPFx  │

---------´   │  Yeoman<EMAIL_ADDRESS>│     ( _´U_ )    ╰──────────────────────────╯
/A\   /
|  ~  |
'..'_
´    |° ´ Y
See https://aka.ms/spfx-yeoman-info for more information on how to use this generator.
Let's create a new SharePoint solution.
? What is your solution name? FirstWebPart
? Which type of client-side component to create? WebPart
Add new Web part to solution first-web-part.
? What is your Web part name? HelloWorld
? Which template would you like to use? No framework
Error @microsoft/sharepoint
Trying to copy from a source that does not exist<EMAIL_ADDRESS>C:\Users(username)\CustomWebPart>

@Joanna2211 - thank you for the details.
It seems a bit weird to me.
First of all, nvm stores modules in AppData\Roaming\nvm not AppData\Roaming\npm.
Second, node_modules@microsoft is not a correct path for sure. There should be \ in between.
I tested your scenario (same node version, nvm, generator, etc.) and found no issues.
Is there anything additional\specific about your environment?
Do you have nodejs installed on the machine itself, without nvm? What version?
Are you using Docker containers?

@AJIXuMuK , thanks for your help.
For #1, I got both AppData\Roaming\nvm and AppData\Roaming\npm, so I think the nvm stores on correct location.
For #2, You are right, the path is incorrect, but I don't know why it gets the incorrect path.
At the beginning, I followed https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment to setup my environment. And I faced this error, so i installed nvm to change the nodejs version in order to use lower version of shrepoint generator.
I have installed nodejs 14.15.0 on the machine. I haven't used Docker.

Thank @Joanna2211 for the reply.
Let's try and start from scratch as the behavior is weird.
BTW, I assume you're on either Windows 10 or 11, correct?
So let's try to do the next:

remove nodejs (using control panel)
remove nvm (https://github.com/nvm-sh/nvm/issues/298)
I would recommend use nvs instead of nvm as it doesn't "pollute" your main machine and main npm folder if you have one.
use nvs to install node v14 and switch to it
Then try to go throught the tutorial again, or just:

npm i -g gulp-cli yo
npm i -g @microsoft/generator-sharepoint

And see how it works.
If the folder is still weird - try install any other module that has namespace (for example, @pnp/spfx-controls-react) and check if it produces the same weird path.
If yes - it's some strange configuration of machine + nodejs/npm.
Maybe, as an option try to use yarn instead of npm: https://yarnpkg.com/

@AJIXuMuK , thanks for your reply. I am using Windows 10. May I know where is the difference between nvs and nvm? Actually, I have installed other nodejs version (10.24.1) using nvm and installed<EMAIL_ADDRESS>it is working normally. If i changed to use nvs, will it affect my current working environment?

@Joanna2211 nvs and nvm are 2 different node version managers. I don't know all the specifics but from my experience nvm may use global node_modules folder (under npm subfolder) to store modules.
That may sometimes lead to unpredictable behavior.
nvs always uses isolated node_modules for each installed version.
For your question - if you delete nvm, it of course will affect you current working environment.
But you can have both nvm and nvs installed on the same machine.

Actually, I have installed other nodejs version (10.24.1) using nvm and installed<EMAIL_ADDRESS>it is working normally. If i changed to use nvs, will it affect my current working environment?

Could you search for this version's folder and check how the paths are created in there? Is it still node_modules@microsoft or node_modules\@microsoft?


TREC Deep Learning 2022

Dataset Information:
"The Deep Learning track focuses on IR tasks where a large training set is available, allowing us to compare a variety of retrieval approaches including deep neural networks and strong non-neural approaches, to see what works best in a large-data regime."
Links to Resources:

https://microsoft.github.io/msmarco/TREC-Deep-Learning

Dataset ID(s) & supported entities:

TBD, but probably under msmarco-passage-v2 and msmarco-document-v2

Checklist
Mark each task once completed. All should be checked prior to merging a new dataset.

[ ] Dataset definition (in ir_datasets/datasets/[topid].py)
[ ] Tests (in tests/integration/[topid].py)
[ ] Metadata generated (using ir_datasets generate_metadata command, should appear in ir_datasets/etc/metadata.json)
[ ] Documentation (in ir_datasets/etc/[topid].yaml)

[ ] Documentation generated in https://github.com/seanmacavaney/ir-datasets.com/

[ ] Downloadable content (in ir_datasets/etc/downloads.json)

[ ] Download verification action (in .github/workflows/verify_downloads.yml). Only one needed per topid.
[ ] Any small public files from NIST (or other potentially troublesome files) mirrored in https://github.com/seanmacavaney/irds-mirror/. Mirrored status properly reflected in downloads.json.

Additional comments/concerns/ideas/etc.
Little information is available yet.

Hi Sean, we are integrating the splade repository with ir_datasets and one of the tests we want to add is TREC-DL22 (and potentially the queries from NEUCLIR23 and DL23). Anything that I can help in adding this data (as the issue already exists)?

Hey @cadurosar! Thanks for bumping this. It should be easy to add, and I'll try to within the next couple of days.

@cadurosar I've finished the updates for TREC DL 2022, including the /judged subsets, and pushed to pypi (version 0.5.5).
I'll try to get to NeuCLIR later today, but I have a busy schedule today so it may not get done until early next week.

Thanks a lot Sean! I completely understand and if you find that you are too busy I can try adding them next week


Update dependencies, upgrade to Express 4

This PR updates all dependencies to the latest versions and upgrades to Express 4.
It also DROPS SUPPORT for Node <0.10.x.
There are a number of security issues with the Express 2.x implementation, including vulnerability to the bodyParser() multipart DoS exploit.

Build failure on .6 and .8 is expected. Update the Travis config to account for the dropped support.

I have merged this changes in to master and bumped to 2.0.0 (since it breaks compatibility)
Thanks!

:+1:


fix: post model external_id field

Follow-up of https://github.com/desmos-labs/desmos-bindings/pull/84
Closes https://github.com/desmos-labs/desmos-bindings/pull/84

@manu0466 I found that there is some uncovered lines are in the tests, like assert_eq!(...), or lines in the variable declaration as follows:
  | 273 | +          Box::new(move \|key, limit\| {
  | 273 | +                self.query_default_external_addresses(
  | 274 | +                    owner.clone(),
  | 275 | +                    chain_name.clone(),
  | 276 | +                    Some(PageRequest {
  | 277 | +                        key,
  | 278 | +                        limit: limit.into(),
  | 279 | -                        reverse: false,
  | 280 | -                        count_total: false,
  | 281 | +                        offset: None,
  | 282 | +                    }),
  | 283 | +                )

@manu0466 Using tarpaulin 0.20.0 will be better. I t is the issue from tarpaulin.


Question / feature request: using truesocket recording mode for an in-process HTTP server

Hi again @mindflayer - thanks for your responses in sphinx-doc/sphinx#11324.
To recap (and for future readers): the improvement requested in that issue is to allow Sphinx to use session-based (pooled) HTTP requests instead of creating one TCP connection per request when it checks documentation hyperlinks.  While investigating how to add tests for an implementation of that, I discovered mocket.
It turned out that mocket wasn't applicable for the implementation I attempted, because I wanted to retain both the test HTTP server and test HTTP client.  In that plan, measurement of actual traffic from client to server was required, instead of what mocket generally provides: mocking of the server's responses (useful -- and in fact preferable -- in many other situations).
With that explained, the question / feature request is:
Would it be possible for mocket's recording mode to support a socket server that is in the same Python process as the socket client?
If helpful: I can provide example code that I've attempted this with, and the error output(s) that I've encountered.  But I think I should ask the feasibility question first.

Thank you.  Here is a sample that recreates the situation:
# Sample code derived from: https://docs.python.org/3/library/http.server.html#http.server.SimpleHTTPRequestHandler and sphinx: https://github.com/sphinx-doc/sphinx.git
from contextlib import contextmanager
from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
import mocket
from threading import Thread
from tempfile import mkdtemp
from urllib.request import urlopen

class RedirectHandler(SimpleHTTPRequestHandler):
    protocol_version = "HTTP/1.1"

    def do_GET(self):
        if self.path == "/origin":
            self.send_response(302, "Found")
            self.send_header("Location", "http://<IP_ADDRESS>:8000/destination")
            self.end_headers()

        if self.path == "/destination":
            self.send_response(200, "OK")
            self.end_headers()

class RedirectServer(Thread):
    def __init__(self):
        super().__init__()
        self.server = ThreadingHTTPServer(("<IP_ADDRESS>", 8000), RedirectHandler)

    def run(self):
        self.server.serve_forever(poll_interval=0.001)

    def close(self):
        self.server.shutdown()

@contextmanager
def redirect_server():
    server = RedirectServer()
    server.start()
    try:
        yield server
    finally:
        server.close()

with mocket.Mocketizer(truesocket_recording_dir=mkdtemp()):
    with redirect_server():
        urlopen("http://<IP_ADDRESS>:8000/origin")

The first problem I see is that your are spawning your server while already inside mocket.
After I fixed that, I got a:
  File "/home/drizzt/repos/python-mocket/mocket/mocket.py", line 366, in true_sendall
    self.true_socket.sendall(data, *args, **kwargs)
BrokenPipeError: [Errno 32] Broken pipe

and that's what I am trying to understand now.

I've never felt like I completely understand socket-based programming (to the level of intuitively knowing how to write socket-based communication code), but what I remember is that although each socket can operate like a peer, generally a socket will self-categorize as either a 'server' or 'client' type of socket during initialization: the former will always bind to an address and port to listen on.
(I also forget why bind and listen are separate calls, but that's beside the point)
My guess here is that we only want mocket to perform custom logic for sockets that are categorized as 'client'.  And to do that effectively, we need to identify the type of the socket before any ambiguous calls happen (such as send, recv -- basically, calls that are valid for both types of socket).

My guess here is that we only want mocket to perform custom logic for sockets that are categorized as 'client'.

I don't think there is a procedural way to distinguish between a client and a server socket.
https://docs.python.org/3/howto/sockets.html#creating-a-socket

I don't think there is a procedural way to distinguish between a client and a server socket, apart from when it starts to use its primitives. Also, servers use both server and client sockets.

@mindflayer is that enough evidence to prove this feature request invalid?  (I think that it's ok - maybe good - if it is)

My bad, that was a rookie mistake. What I get instead is that the client gets stuck on:
  File ".../python-mocket/mocket/mocket.py", line 375, in true_sendall
    recv = self.true_socket.recv(self._buflen)

After attempting an implementation here (essentially: a lot of if conditions to check whether the socket.socket-inherited object is in 'server mode', and to call the super-method if so), I've caught up to this change, and see the same behaviour here.
I've also added some debug print statements to check the progress of socket creation and startup.
If I read the code and behaviour correctly: the mocket library code is single-threaded, and the server-side socket (from the sample code above) is initialized and begins listening.  The process gets stuck, though, because after the client issues a request (in recording mode -- with no existing response data that it can echo from), the client thread is going to wait forever, and the server process won't get any CPU-and-I/O time to receive the request and respond.

I'll try to spend a bit more time on it. No reason for closing it as invalid.


Update docusign-tutorial.md

@ArvindHarinder1 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@jeevansd could you please approve? This is to address the confusion Shawn Bishop brought up about what's supported

#sign-off


Azure deployment names can exceed 64 characters

Need to apply a limit to the user provided workload name.

I believe this is only an issue when deploying the Bicep directly and not in the custom Portal UI.


issue505 first draft

https://github.com/vizhub-core/vzcode/pull/new/issue505

Another idea: there's only ever one hovered item. What if we track that state higher up in the component tree? That might solve it.

#505


Content Script style  not updated in manifest on hot reload

Describe the bug
When using pnpm dev. The first time it builds it works correctly, however when I change the styles, it rebuilds the styles with a new cacheKey and puts that in the dist folder, however the manifest.json still has the old key so changes are not reflected in the browser.
To Reproduce
Steps to reproduce the behavior:

run pnpm dev
change content script style, automatic rebuild
manifest.json has old key

Expected behavior
manifest.json should be updated with the latest key.
Desktop (please complete the following information):

OS: Mac
Browser: Chrome
Node Version 18.16.1

@gavinhow Theres' more issue with this, i have also #296
If you can work without css for now, let's try to use my workaround, it's linked in this PR on description.
I hope it can help you for now, i'm sadgeful busy but maybe on this weekend i have time to investigate that or @Jonghakseo can solve this :)

@gavinhow
I apologize for this bug.
I should have tested and fixed the feature more thoroughly.
Thanks for the report.

@all-contributors please add @gavinhow for bug


refactor: write [T]Value in terms of [T]ValueDetails

This PR

Rewrite all the [T]Value functions in terms of [T]ValueDetails functions to reduce duplication. [T]ValueDetails is not anything significantly much more than [T]Details.
By the way, I noticed this while I was looking at the code to see if it could be genericizied (#158) and it seems like it can, but it is a bit tricky I think.
Related Issues

Notes

Follow-up Tasks

How to test

Hey @craigpastro, yeah it looks like CodeCov prematurely released v4, and Renovate updated it.
https://github.com/codecov/codecov-action/issues/1089
I've reverted CodeCov back to v3.

Hey @craigpastro, yeah it looks like CodeCov prematurely released v4, and Renovate updated it.
codecov/codecov-action#1089
I've reverted CodeCov back to v3.

Thanks @beeme1mr 🙌

I'll try to review this today/tomorrow!

Thanks, Todd. No rush of course.


1.19

I love this mod and wanted to upgrade our private server to 1.19 so I went ahead and updated it.
Didn't touch the version because I don't feel it's my place to do so.
Tested briefly on singleplayer and SMP.

Thank you.


spring function don't work fine with spring integration

spring function don't work fine with spring integration
In my case.I am use spring cloud stream , then I am try to use spring integration with java dsl.First time，I use a consumer bean to do all things that I need to do.
when I  got Spring Integration, I do a refactor by use the old consumer bean to send message by MessageGateway.
Then I realized，why I needed this consumer bean? so I had a try to just use IntegrationFlow to accept message from a messageChannel that also defined with spring cloud stream.
yes,It worked succes in my demo.but I found it don't work fine wit spring-cloud-bus. with the more test。I founded that，It just work fine without spring function beans。 I had try to find some thing about this in Stack Overflow,But not found.so,i think，it is a issue.
my core config
spring:
  cloud:
    stream:
      input-bindings: amqpMessage
      bindings:
#        amqpMessage-in-0:
        AMQP_MESSAGE_INPUT:
          destination: AMQP_DESTINATION
          group: AMQP_INPUT
        AMQP_MESSAGE_OUTPUT:
          destination: AMQP_DESTINATION
      function:
        bindings:
          amqpMessage-in-0: AMQP_MESSAGE_INPUT
          amqpMessage-out-0: AMQP_MESSAGE_OUTPUT
      output-bindings: amqpMessage
      rabbit:
        bindings:
          AMQP_MESSAGE_OUTPUT:
            producer:
              routing-key-expression: ''''''

my integrationflow:
  @Bean
  public IntegrationFlow directFlow(
      SimpleEchoServiceActivator simpleEchoServiceActivator
  ) {
    return IntegrationFlows
        .from("AMQP_MESSAGE_INPUT")
        .handle(simpleEchoServiceActivator)
        .log().get();
  }
@MessageEndpoint
@Slf4j
public class SimpleEchoServiceActivator {

  @ServiceActivator
  public void handle(Cargo messages) {
    log.info("accept {}", messages);
  }
}

when I declare a consumer like this,even don't do any config in yaml.my integration flow defined before,just don't work. so,same way,do not work fine with spring cloud bus,because of springCloudBusInput consumer.
  @Bean
  public Consumer<String> temp() {
    return v -> log.info("============{}", v);
  }

also ,I checked queue in rabbit mq. when i add this bean,the queue's message won't be consumed.
Version of the framework

org.springframework.boot
spring-boot-starter-parent
2.7.0

<spring-cloud.version>2021.0.3</spring-cloud.version>

external code. I send mssage by use gateway
@MessagingGateway
public interface ICargoSingleGateway {

  @Gateway(requestChannel = "AMQP_MESSAGE_OUTPUT")
  void supplier(Cargo messages);

}
    iCargoSingleGateway.supplier(
        new Cargo(1, "AAAAAAAAAAAAAAAA", "Address1", 0.5, ShippingType.DOMESTIC, 1,
            1, ""));

    iCargoSingleGateway.supplier(
        new Cargo(2, "BBBBBBBBBBBBBBBB", "Address1", 0.5, ShippingType.DOMESTIC, 1,
            1, ""));

    iCargoSingleGateway.supplier(
        new Cargo(3, "CCCCCCCCCCCCCCC", "Address1", 0.5, ShippingType.DOMESTIC, 1,
            1, ""));
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cargo {

  public enum ShippingType {
    DOMESTIC,
    INTERNATIONAL
  }

  private long trackingId;
  private String receiverName;
  private String deliveryAddress;
  private double weight;
  private ShippingType shippingType;
  private int deliveryDayCommitment;
  private int region;
  private String description;

}

Can you please create a small application that reproduces the issue and push it to GitHub somewhere so we can take a look. It is hard to understand based on your explanation what are you trying to accomplish.

Closing it due to lack of  followup from the reporter


Add App-DB and App-Conversion KNP

Removed documize >> conversion knp because we ask documize to use the converison by giving documize the conversion url and all calls to the conversion are made from the external.

@ShellyXueHan Test documize seems fine after the knp playbook was run from this branch.
The playbook should work in prod in theory, assuming the documize pods in prod are also labelled with deploymentconfig=documize-test. Many thanks.


Follows the NGINX Breaking Changes suggestion

On the Compatibility > Breaking changes section, they asked us to replace one line in the NGINX file, according to documentation.
I updated the whole file to be more similar with the documentation.
Please, pay special attention to the SSL version of the NGINX file, since I'm not familiar with SSL configs on NGINX, so it's more susceptible to contain errors.

@pichouk I did your suggestions. Thanks for your review 😄

Looks good to me like this :)


NFT Minting issue

Describe the bug
problem in changing the network when minting the NFT in this website mint.morkie.xyz/taiko
Steps to reproduce
Steps to reproduce here.
Additional context
Additional context here.

Not related to this repository. Contact the respective project or team that provides the NFT, which is not taiko.


pull request for e2e test at 01/25/2017 16:45:08

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


crypto no longer works

It looks like something broke crypto with changes pushed today. Did not investigate where the change came from so I am reporting it here.
To reproduce:
var crypto = require('crypto')

This will produce the following error:
index.js:3 Uncaught TypeError: Cannot read property 'toString' of undefined
    at Object.require.270.crypto (index.js:3)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.164.browserify-cipher (index.js:12)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.1.../../src/example (index.js:7)
    at s (_prelude.js:1)
    at e (_prelude.js:1)
    at _prelude.js:1

where:
crypto.pbkdf2Sync.toString()

will is called on undefined object, i.e. crypto.pbkdf2Sync is not defined.
Again, this regression is relatively new. Perhaps due to a change from today.

Facing the same issue in crypto.pbkdf2Sync.toString()

There are no changes that were pushed today. Must be a dependency that pushed changes that is breaking this. crypto-browserify was my first thought, but that doesn't seem to have been updated either https://github.com/crypto-browserify/crypto-browserify. Maybe it's a dependency of crypto-browserify?

Likely might be https://github.com/crypto-browserify/createHash/releasesm, which updated 6 hours ago with a new patch version.

Looking at https://github.com/crypto-browserify/createHash as a likely candidate for the regression.

Issue is fixed from new version of pbkdf2(3.0.12)

I was just going down that rabbit hole, thanks for the reply!

@vivek0tiwari Confirmed the issue is now resolved. @pdparchitect try renpm iing browserify.

Yes fixed!

I'm still seeing this when I do import crypto from 'crypto'.

also still see the same error here..

Same for me...


Using "IN" operator in a trait with a number type causes nodejs (local evaluation) to throw

How are you running Flagsmith

[X] Self Hosted with Docker
[ ] Self Hosted with Kubernetes
[ ] Self Hosted at flagsmith.com
[ ] Some other way (add details in description below)

Describe the bug
FlagSmith (local evaluation) will fail to evaluate flags when a segment does a IN condition in a trait that has an integer value.
Failed to get Flagsmith flags TypeError: otherValue.includes is not a function
[dev:*server]     at exports.matchingFunctions._a.<computed> (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/models.js:70:23)
[dev:*server]     at SegmentConditionModel.matchesTraitValue (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/models.js:132:16)
[dev:*server]     at traitsMatchSegmentCondition (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:45:30)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:22:16)
[dev:*server]     at Array.map (<anonymous>)
[dev:*server]     at traitsMatchSegmentRule (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:21:98)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:25:16)
[dev:*server]     at Array.filter (<anonymous>)
[dev:*server]     at traitsMatchSegmentRule (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:24:44)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:16:16)
[dev:*server]     at Array.filter (<anonymous>)
[dev:*server]     at evaluateIdentityInSegment (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:15:54)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:10:16)
[dev:*server]     at Array.filter (<anonymous>)
[dev:*server]     at getIdentitySegments (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/segments/evaluators.js:9:41)
[dev:*server]     at getIdentityFeatureStatesDict (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/index.js:92:65)
[dev:*server]     at getIdentityFeatureStates (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/flagsmith-engine/index.js:162:39)
[dev:*server]     at Flagsmith.eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:650:89)
[dev:*server]     at step (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:107:23)
[dev:*server]     at Object.eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:48:20)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:26:71)
[dev:*server]     at new Promise (<anonymous>)
[dev:*server]     at __awaiter (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:8:12)
[dev:*server]     at Flagsmith.getIdentityFlagsFromDocument (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:639:16)
[dev:*server]     at eval (webpack-internal:///(sc_server)/../node_modules/flagsmith-nodejs/build/sdk/index.js:402:55)

Steps To Reproduce

Create a flag
Create a segment override for that flag
Setup a rule. example trait IN 2024
In the code, try to fetch flags, passing example trait as integer 2024
See an error being thrown

Expected behavior
FlagSmith shouldn't let an invalid rule break all flags
Screenshots
No response

@waltergalvao , just a heads up that I've transferred this issue to our NodeJS client repository. Thanks for raising it and we'll look into it as soon as possible.

Closed because the issue could not be reproduced


Read write 32 squash

This is the squashed version of the read-write-32 PR.
Adding functionality in the driver and runtime to generate read/write 32 packets to perform AIE configuration. In this implementation, the driver uses the first queue, which is mapped to the ARM, and can send read/write 32 packets to the firmware in response to read/write operations to the driver's sysfs interface. Currently still have the AIE BAR in the platform, which is unused but not hurting anything. Will remove that from the platform once we completely deprecate the MMIO configuration.

Thanks for squashing - 3 commits was much easier to review than 22. However, there are still some instances of files that change twice. For example, both the first commit (2aa3229a) and the 3rd commit (6fe0bd58) touch chardev.c, whereas ideally all of the changes to each file would be in a single commit.


Fixed invalid memory access when changing color of cursor in terminal

This PR fixes access to free memory when changing
the color of cursor in terminal (fixes #2938).
The fix consists in doing deep copies of strings for
last_set_cursor_color and last_set_cursor_shape
instead of doing pointer copy (pointer copies
could be pointing to freed memory).

Codecov Report

Merging #2941 into master will decrease coverage by 0.02%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master    #2941      +/-   ##
==========================================
- Coverage   75.71%   75.69%   -0.03%
==========================================
  Files          92       92
  Lines      135030   135029       -1
==========================================
- Hits       102241   102212      -29
- Misses      32789    32817      +28

Impacted Files
Coverage Δ

src/terminal.c
72.49% <93.75%> (+0.15%)
:arrow_up:

src/gui_beval.c
55.79% <0%> (-6.44%)
:arrow_down:

src/window.c
81.68% <0%> (-0.46%)
:arrow_down:

src/gui_gtk_x11.c
47.83% <0%> (-0.15%)
:arrow_down:

src/ex_cmds2.c
80.2% <0%> (-0.1%)
:arrow_down:

src/term.c
59.56% <0%> (-0.06%)
:arrow_down:

src/os_unix.c
54.3% <0%> (-0.05%)
:arrow_down:

src/screen.c
76.59% <0%> (-0.05%)
:arrow_down:

src/eval.c
81.55% <0%> (+0.04%)
:arrow_up:

src/gui.c
49.4% <0%> (+0.1%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

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


No issue just talking

I got no problem with your app, is just wanted to say thank you!
I bought the Garmin HUD 6 month before the end of its life (Garmin pulling the plug on all apps),
I was ready throwing it away but luckily forgot.
Today I found it and were curious if there was any other way for it to work, and then I found you and your app using Google maps my since then preferred navigation system.
I am really grateful for what you are doing here because i really liked the concept of the HUD ad the vastly superiority of Google Maps.
IMHO I hope you will add some more features, like for example the lane pointer under the arrows.
But for now this app is really great and I hope you will support it for a long time and maintaining it.

Hi
Thanks for your comment.
Hope it can help you driving right direction ^^
Yes , I think the lane pointer is very important, I'm working on it.

Hi
I add  lane pointer in 0.4.4
You can download & test it:
https://github.com/skyforcetw/Garminuino/releases/download/0.4.4/gmaps_hud-release_v0.4.4.apk


ARROW-5264: [Java] Allow enabling/disabling boundary checking by environmental variable

The flag BoundsChecking#BOUNDS_CHECKING_ENABLED determines if boundary checking is enabled/disabled in vector/arrow buffer APIs.
It has significant performance implications, since boundary checking is a frequent operation.
This PR addresses 2 problems with the flag for boundary checking in Java API:

The flag can be determined by an environmental variable: ARROW_ENABLE_UNSAFE_MEMORY_ACCESS, in addition to the system properties. The system properties have higher priority than the environmental variable.

There is an old and a new system property for this flag. To disable boundary checking, both the old and new properties must be set to true, which is undesirable. In addition, if both old and new properties are provided, the behavior is indeterminate. In the patch, the new property takes precedence over the old property.

-1
This was a design choice to maximize the likelihood that the choice is never actually evaluated (since it is either always true or always false for all vectors across time).

Codecov Report

Merging #4258 into master will increase coverage by 1.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4258      +/-   ##
==========================================
+ Coverage   88.27%   89.44%   +1.16%
==========================================
  Files         763      622     -141
  Lines       93723    83275   -10448
  Branches     1251        0    -1251
==========================================
- Hits        82735    74484    -8251
+ Misses      10875     8791    -2084
+ Partials      113        0     -113

Impacted Files
Coverage Δ

go/arrow/math/uint64_amd64.go

go/arrow/memory/memory_avx2_amd64.go

go/arrow/ipc/file_reader.go

js/src/enum.ts

go/arrow/array/builder.go

js/src/Arrow.node.ts

js/src/schema.ts

go/arrow/type_traits_boolean.go

js/src/ipc/node/writer.ts

js/src/visitor/vectorloader.ts

... and 132 more

Continue to review full report at Codecov.

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

-1
This was a design choice to maximize the likelihood that the choice is never actually evaluated (since it is either always true or always false for all vectors across time).

I see. Thanks. In the new commit, this design choice is left unaffected. I only add an environmental variable to set the flag. The environmental variable has a lower priority compared to the system properties.

Why are you removing tests in this commit?

Why are you removing tests in this commit?

Added them back. Thanks for your kind reminder.

Hi @jacques-n, do you have any more comments? Do you have any suggestions to the test cases?

+1 lgtm
@liyafan82 , thanks for the contribution. I suggest you add a similar flag for isSet() to be optionally skipped in a separate jira to improve performance

+1 lgtm
@liyafan82 , thanks for the contribution. I suggest you add a similar flag for isSet() to be optionally skipped in a separate jira to improve performance

Thanks a lot for your suggestion. I will start a separate JIRA for that.

Please update javadoc

Please update javadoc

@emkornfield updated. Thanks for your kind reminder.

There is class level docs that need updating also I think

There is class level docs that need updating also I think

@emkornfield I have updated the javadoc for class org.apache.arrow.memory.BoundsChecking. Thanks a lot for your careful review.

+1 FYI, I also think this fixes https://issues.apache.org/jira/browse/ARROW-4851, sorry not at my development computer or I would merge

deprecated.

Resolved.
Thanks again for the careful review, and sorry for my poor English.

+1 FYI, I also think this fixes https://issues.apache.org/jira/browse/ARROW-4851, sorry not at my development computer or I would merge (after typo is fixed)

Hi @emkornfield , I have fixed the typo. Would you please help merge it?

Merging this


Agent selection upon initial setup

Related to the functionality for selecting up to 5 max agents. We'll start off by having the system use the same 5 agents by default, then the user would need to configure the agents they want in settings.
Would be nice if on initialization we ask the user which agents they want.

It's okay to keep this in settings. The prefilled options let the user know which agents are active.


Is it possible to have a feature like transfer from L1 to L3 directly

Describe the feature request
Bridging from L1 to L3 directly without switching to L2 first and then bridge to L3
Describe alternatives you've considered
It is more practical to transfer your assets to L3.
Additional context
Additional context here.

We have a new bridge coming which will support this. Stay tuned!


Can make share pre-traied model?

Thanks you

Sorry for the delay, the pre-trained model has been deleted unexpectedly. I will train a new one and upload it in the future.
If you are in a hurry, you can train one by yourself follow the instructions (the default parameters are all set).
Feel free to reach out if you have any further questions.

Pre-trained models are now available in this URL.

BTW, I didn't train long for the pre-trained model. Feel free to contribute if you have better result.

yeah, I see you trained for 19 epochs. I can push the model from there if you think that it would improve

In the paper I can see that you trained the model for 1000 epochs. Is that correct? I mean, you said that 145 epochs is crazy, that's why I find it strange

Yeah, but that's only applicable for the one-to-one model. For many-to-one model, since the number of trainA is large, the training will converge quicker and be more stable.

I wonder if the current pre-trained model works well for you? If not, it's that possible that there's something wrong with your PWG vocoder?

It is working and giving intelligible results. Although it has style leaking in VC across gender. Specially compared with the results reported in the website. I'll do further tests and tell you.

Thanks! Another trick I used before is that I ruled out the utterances shorter than 2-second instead of zero-padding, though I didn't know if that matters.


Is it possible to override a value representation in error message?

System Details
FluentValidation version: 7.6.100
Issue Description
I have following API model:
public class DateRangeModel
{
    [FromQuery(Name = "start-date")]
    [JsonConverter(typeof(DateConverter))]
    public DateTime? StartDate { get; set; }

    [FromQuery(Name = "end-date")]
    [JsonConverter(typeof(DateConverter))]
    public DateTime? EndDate { get; set; }
}

and validator for that:
public class DateRangeModelValidator : AbstractValidator<DateRangeModel>
{
    public DateRangeModelValidator()
    {
        RuleFor(x => x.EndDate)
            .GreaterThanOrEqualToDate(x => x.StartDate)
            .When(x => x.EndDate.HasValue && x.StartDate.HasValue);
    }
}

I get following error for this rule:
'end-date' must be greater than or equal to '6/29/2018 12:00:00 AM'.
But I would like to control value representation to get following result:
'end-date' must be greater than or equal to '2018-06-29'.
Question: Is there a way to set 'yyyy-MM-dd' format for DateTime value representation?
Thanks in advance.
P.S.: overriding PrepareMessageFormatterForValidationError() method in my custom validator doesn't affect error message.

#906 Addresses this.

Ability to use formatting placeholders in error message templates will be part of the 8.1 release. Please test out the 8.1-preview2 build which is now on nuget.


nested @import fails when importer is async

When the importer does not call done synchronously, a nested @import fails.
See sample code below
If you comment out the async invocation and uncomment the direct invocation, things work as expected
import Sass from 'sass.js';
var scssSuccess = '@import "child"; .parent { color:green; }',
    scssFail = '.parent { @import "child"; }';

Sass.importer((request, done) => {
    var childCss = '.child { color: red; }';

    var processContent = (content) => {
        var result = {
            content: content,
            path: 'file:///C:/TMP/child.scss'
        };
        console.log('importer\n  result', result);
        done(result);
    };

    // delayed (async) invocation of done
    new Promise(resolve => { resolve(childCss); }).then(processContent);

    // direct invocation of done
    //processContent(childCss);
});

async function compile(scss) {
    return await new Promise(resolve => {
        console.log('sass.compile\n  content', '>>>' + scss + '<<<');
        Sass.compile(scss, resolve);
    }).then(function (result) {
        console.log('result', result);
        return this;
    });
}

compile(scssSuccess).
then(() => {
    console.log('\n\nFAIL SITUATION');
    compile(scssFail);
});

Can you provide your code in a way that would run in a browser or Node (whatever version)? Or specify how to make your code run in either of those environments? Right now I'm getting syntax errors for import and async…

anyway, rewriting your example:
var Sass = require('./dist/sass.sync.js');
var nestedImport = '.parent { @import "child"; }';

Sass.importer(function(request, done) {
  var importedContent = '.child { color: red; }';
  setTimeout(function() {
    var result = {
      content: importedContent,
      path: 'file:///C:/TMP/child.scss'
    };

    done(result);
  }, 100);
});

Sass.compile(nestedImport, function(result) {
  console.log(result);
});

yields the following error:
Error: Invalid CSS after '...@import "child"': expected "{", was "; }"
        on line 1 of stdin
>> .parent { @import "child"; }
   -------------------------^

But when the Importer callback returns immediately, things works out fine:
var Sass = require('./dist/sass.sync.js');
var nestedImport = '.parent { @import "child"; }';

Sass.importer(function(request, done) {
  var importedContent = '.child { color: red; }';
  var result = {
    content: importedContent,
    path: 'file:///C:/TMP/child.scss'
  };

  done(result);
});

Sass.compile(nestedImport, function(result) {
  console.log(result);
});

produces the following result.text:
.parent .child {
  color: red; }

Off the top of my head I've got no idea why this works synchronously, but fails asynchronously. The way Importer callbacks are handled in JS doesn't look like it could cause this. But sass_importer_emscripten() doesn't explain the behavior, either.

I am using jspm, system.js, sass-plugin, es6 and babel. Hence the code sample. Your code produces the same result.
It seems like the finished method is called only once even if the importer hasn't finished.
The call stack however doesn't help much due to the emscripten code.
Any pointers, ideas how to fix this?

It seems like the finished method is called only once even if the importer hasn't finished.

That's indeed what is happening. But since the returned value is "not done", emscripten should sleep for 20ms and then try again. But that's not happening. It falls through on the first attempt. I suspect this is because emscripten_sleep() somehow breaks the loop.

Any pointers, ideas how to fix this?

If I were to guess, I'd say the nested import is has a function in its call stack, that is not included in the whitelist. You'd have to run a debug build to get to this info… Not much fun if you haven't got things configured already…
I'll try to have a look at this on Sunday (as I'm currently on vacation and the lady is pestering me about going to Dinner…).

fixed the problem and released 0.9.11 - thanks for filing the issue :)

Thanks Rodney.
Works like a charm!


Why is maxDataLength hard coded?

We are moving to the Azure bot storage mechanism instead of the default botBuilder one since the botBuilder's 65kb size limit was a problem for us (we need a bit more). So I migrated everything to this, until I realised it has the exact same size limit and it's hard coded:
https://github.com/Microsoft/BotBuilder-Azure/blob/master/Node/lib/Consts.js#L3
Is there a reason for this?

Thank you for opening an issue against the BotBuilder-Azure repo. As part of the Bot Framework v4 release, we’ve moved all the Azure related work to the platform SDK repo. We will continue to support and offer maintenance updates via this repo.
From now on, https://github.com/Microsoft/botframework-sdk repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the Bot Framework repo found here:
https://github.com/Microsoft/botframework-sdk/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


executor: improve usb coverage attribution

Always call write_extra_output() only if the current program or call
can produce extra coverage (== is a syz_usb* syzcall).

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1236   +/-   ##
=======================================
  Coverage   67.58%   67.58%
=======================================
  Files         120      120
  Lines       20908    20908
=======================================
  Hits        14130    14130
  Misses       6108     6108
  Partials      670      670

Continue to review full report at Codecov.

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


V4 library: Allow adding items to the certificate_requests outside of the __init__ method of the charm.

Enhancement Proposal
Some charms requires integrations with other charms to have the information to create CertificateRequestAttributes. E.g., a API gateway charm might need to be integrated with a backend API charm to know the hostname/common_name of the certificate to request.
Since the TLSCertificatesRequiresV4.__init__ uses framework.observe to listen to events, the TLSCertificatesRequiresV4 must be created in the __init__ method of the charm. Therefore, the computation of the information for the certificate requests needs to be done in the __init__ method of charm. For the above example, this would include getting the data from the integration, performing various validation (e.g., whether the hostname is valid), reconcile the data from integrations (e.g., whether there are conflicts in hostnames from different applications of backend API charms), other form of business logic (e.g., some backend API charms might not need HTTPS and therefore does not need a certificate).
However, the __init__ method should focus on initialisations and should not perform business logic computations.
The proposal is to add a way to modify the certificates_requests outside of the __init__ method of the charm.
One possible solution is to have the TLSCertificatesRequiresV4.__init__ to take a callback function that creates the list of CertificateRequestAttributes. This way the execution of the various business logic would not be at the __init__ method of the charm.

I haven't tested it, but can't you probably leverage custom events to achieve this. For example:
def __init__():
      self._certificates = TLSCertificatesRequiresV4(
          charm=self,
          relationship_name="certificates",
          certificate_requests=[],
          mode=Mode.UNIT,
          refresh_events=[self.on.request_certificate],
      )

def _my_event_handler(event):
    self._certificates.certificate_requests = get_certificate_requests()
    self.on.request_certificate.emit()

def get_certificate_requests() -> List[CertificateRequestAttributes]:
    if not my_relation_created():
        return []
    common_name = self._get_common_name_from_config()
    return [
        CertificateRequestAttributes(
            common_name=common_name,
        ),
    ]

But generally speaking I would avoid custom events (as they make the code less readable). Instead, we recommend going with an approach like this:
def __init__():
      self._certificates = TLSCertificatesRequiresV4(
          charm=self,
          relationship_name="certificates",
          certificate_requests=self.get_certificate_requests(),
          mode=Mode.UNIT,
          refresh_events=[self.on.request_certificate],
      )

def get_certificate_requests() -> List[CertificateRequestAttributes]:
    if not my_relation_created():
        return []
    common_name = self._get_common_name_from_config()
    return [
        CertificateRequestAttributes(
            common_name=common_name,
        ),
    ]

More context
The TLS library follows a declarative approach where the charm tells its intended certificates using the certificate_requests attributes. The library reacts to juju events like relation changed, and compare the state of the interface with the charm intent. For instance, if the certificate common name is based on a config option, this allows to dynamically change the certificate request as users change the config option without the charm having to care about what was previously requested. The library automatically cleans up old unwanted certificate requests without the charm ever having to be involved.
We want to avoid charms making certificate requests in an imperative way (ex. using a request_certificate() method) , which would often result in a constant increase in data in the databag, and the lib having to make decisions as to what to do with previously requested certificates. For instance, if the charm asks the lib to request_certificate(a), and at some point in the future request_certificate(b), should it request a and b or does b overwrites a? This is not obvious and the reason is that with an imperative approach, the lib would have no way of knowing the user's intent.

Thanks for taking a look at this @gruyaume
The issue we have with needing to load certificates in the constructor is that __init__ methods should generally not execute business logic or be complicated and this kind logic should go elsewhere. In our case, retrieving the certificates can cause exceptions as it requires interactions with the workload container. Exception handling in __init__ is not great because that makes it quite hard to reason about the state of the object after initialisation. It would be great if the design of the library could be changed so that it doesn't require potentially complicated and exception raising logic in the initialiser of the charm

@jdkandersson , have you seen my custom event based recommendation above?

I did read it, the recommendation includes the caveat, which I agree with, that custom events are not generally recommended. And if this is the recommendation for using the library, perhaps the library can be adopted to include that approach so that it doesn't have to be implemented for every charm that uses the library? Any thoughts please?

Hello @jdkandersson , another option we discussed is to have the library take a func as an input and it would call back the func when it needs to know the list of certificate requests.
The problem with this approach is that it would be breaking our API's.
Honestly, I'm not quite sure what's the problem with the generic approach we recommend:
def __init__():
      self._certificates = TLSCertificatesRequiresV4(
          charm=self,
          relationship_name="certificates",
          certificate_requests=self.get_certificate_requests(),
          mode=Mode.UNIT,
          refresh_events=[self.on.request_certificate],
      )

def get_certificate_requests() -> List[CertificateRequestAttributes]:
    if not my_relation_created():
        return []
    common_name = self._get_common_name_from_config()
    return [
        CertificateRequestAttributes(
            common_name=common_name,
        ),
    ]

You mentioned that

Retrieving the certificates can cause exceptions as it requires interactions with the workload container.

Why not catch those and return an empty list when that's the case? I don't see how this is a blocking issue.

another option we discussed is to have the library take a func as an input and it would call back the func when it needs to know the list of certificate requests.

I think the function that provides the certificates would be great. I understand it is an API change, not sure if you can adjust the API to also support that case or you would need a new major version

Honestly, I'm not quite sure what's the problem with the generic approach we recommend

The issue is that __init__ should be a very simple function that just assigns attributes rather than executing complex logic including exception handling. The reason for that is complicated __init__ make it difficult to know what the state of the object is after __init__, e.g., are the certificates empty or not

The point I'm trying to make is that certificate request attributes are needed to instantiate the TLS library class. They are unique to each instanciation of the class. Moving to using functions doesn't make much sense and complexifies the library - both for us and for our users. Using a func may have made sense if during the lifecycle of a TLS Requires instantiation the cert requests were to change.
Now the same is true of many things in the charm ecosystem . For instance, should the DatabaseRequires library take a callable instead of the database name parameter, should the IngressPerApp library take a callable instead of the host parameter?
Of course, we could use callable everywhere, but our code would be harder to read and less reliable. It's a trade-off of course, and I believe we're in a better spot with our current approach.


install regex does not seem to work

Hello, I tried "install_regex_clr {database_name}" from manage.py but get an "Unknown command: 'install_regex_clr " in manage.py.
Can anyone advise?  Do I need to add anything to the INSTALLED_APPS?  django-mssql-backend works great otherwise

'sql_server.pyodbc' must be added to INSTALLED_APPS. It seems this was a documentation oversight in https://github.com/ESSolutions/django-mssql-backend/commit/b3671363a144c82544317d9c89641e96b78d8a42.


XIVY-15540 render HTML of javadoc

brings stiflers mum back on stage

... no honestly; let's render javadoc HTMLs ... e.g apache commons StringUtils

This should be safe right? Or better do we have a santisiert which checks this HTML first?

Honestly I guess this is indeed dangerous. Though I tested manually and couldn't execute descriptions like <script>alert('exposed')</script>
However; I copied this from Function-Browser where it's also in use, so I thought it safe enough to use


remove the unused key warning

When I copy-pasted my flatten crate I forgot to remove the key used to publish the package and that throw a warning.

(test with mean bors)
bors merge

good bors


Sync images support

Hi, there is any way of getting the pan when zoomed ?
and when click the zoom position ?
so i could sync two images for compare ??
Thanks.

I'll look into maybe adding an onChange that gets called with this info. In the meantime, you could look into my other project react-input-position (it's what this library relies on for position calculations). It makes it pretty quick to build magnifier components and it would provide all of that information.


Error when including the css

In what circumstances is import 'react-infinite-calendar/styles.css'; expected to work? I'm using browserify/babelify and I get an "Unexpected Token" error when trying to build - I don't think importing css files in js source files will work without some kind of transform, at least with browserify (and I haven't had any luck with the browserify-css transform). Any suggestions?

Hey @j-s-n, you need to use the appropriate loader / transformer. In your case, you should simply look into using something like browserify-css


[SecretManagement] ArgumentCompleter / cached secret info

#Implement an argument completer for the SecretManagement module.
Currently if you want to use the cmdlet, you need to know your secrets / vault name.
The Get-SecretInfo cmdlet is super useful for that.
That being said, it could be implemented directly into the module using an argument completer for the vaults and secrets name
Proposed technical implementation details (optional)
Here's a simple example that work with cmdlets for the Vault parameters and secrets parameters.

Register-ArgumentCompleter -CommandName Get-Secret, Set-Secret, Get-SecretInfo -ParameterName Vault -ScriptBlock {
    Get-SecretVault  | Select -ExpandProperty Name | foreach-object {
        [System.Management.Automation.CompletionResult]::new($_)
    }
}

Register-ArgumentCompleter -CommandName Get-Secret, Remove-Secret -ParameterName Name -ScriptBlock {
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $VaultNameFilter = $fakeBoundParameter.Vault
    (Get-SecretInfo -Vault $VaultNameFilter )  | Select -ExpandProperty Name  | foreach-object {
        [System.Management.Automation.CompletionResult]::new($_)
    }
}

The only drawback is that relying on Get-SecretInfo as it is means that you have to wait on remote vault querying, which can add a couple of seconds. (But since the value completion is not triggered automatically, that shouldn't be a problem)
Still, for the Vault parameter, it is perfect.
For the Name, I think it make sense anyway (value completion must be manuall triggered so it's a choice of whether you enter your name manually (if you know it) or trigger the value completion, which is the equivalent of running a Get-SecretInfo in the console then copy/paste the name.

I think it could be nice to have a the possibility to cache results from Get-SecretInfo.
That would benefit the argument completion.
Unless having secret name saved somewhere is a security concern for some ?
Anyway, expanding on that idea, I made a second version that implement a new Get-SecretInfo.
That new Get-SecretInfo (exposed through an alias to override the original) expose a new  [Switch] Cache parameter which will use a cached version of the credentials, rendering the argument completion for secret names instant.
Calling Get-SecretInfo normally will refresh the cached informations.
Get-SecretInfo -Cache will use cached informations and / or generate them if they are not present.

function Get-SecretInfo2 {
    [CmdletBinding()]
    param (
        [String]$Vault,
        [String]$Name,
        [Switch]$Cache
    )

    $CacheParamstr = 'Cache'
    $VaultPath = "$env:USERPROFILE\Powershell\SecretsManagement\Vaults\"
    $UseCache = $False

    if ($PSBoundParameters.ContainsKey($CacheParamstr)) {
        $UseCache = $PSBoundParameters.Item($CacheParamstr)
        [void]$PSBoundParameters.Remove($CacheParamstr)
    }

    if (! (Test-Path $VaultPath)) { New-Item $VaultPath -ItemType Directory }

    $VaultNames = [System.Collections.Generic.List[String]]::new()
    $CachedOutput = [System.Collections.Generic.List[PSObject]]::new()

    if ($UseCache) {
        if ($PSBoundParameters.ContainsKey('Vault')) {
            $VaultNames.Add($PSBoundParameters.Item('Vault'))
        }
        else {
            $VaultNames = @(Get-SecretVault | Select -ExpandProperty Name)
        }

        foreach ($Vault in $VaultNames) {
            if ($Vault -eq 'BuiltInLocalVault') {
                $CachedOutput.Add((Get-SecretInfo -Vault 'BuiltInLocalVault'))
                continue
            }

            $CurrVaultPath = "$VaultPath\$Vault.json"
            if (Test-Path -Path $CurrVaultPath) {
                $CachedOutput.Add((Get-Content -Path $CurrVaultPath -Raw | ConvertFrom-Json | Select -Property Name, @{n = 'Type'; e = { [Microsoft.PowerShell.SecretManagement.SecretType]$_.Type } }, VaultName))
            }
            else {
                try {
                    $CurrentVault = @(Microsoft.PowerShell.SecretManagement\Get-SecretInfo -Vault $Vault)
                    $CurrentVault | ConvertTo-Json | Out-File $CurrVaultPath
                    $CachedOutput.Add($CurrentVault)
                }
                catch {

                }
            }
        }
        return $CachedOutput
    }

    if (! $PSBoundParameters.ContainsKey('Vault')) { Get-ChildItem -Path $VaultPath | Remove-Item }
    $Output = Microsoft.PowerShell.SecretManagement\Get-SecretInfo @PSBoundParameters
    $GrpVault = $Output | Group-Object -Property VaultName

    foreach ($grp in $GrpVault) {
        if ($grp.Name -eq 'BuiltInLocalVault') { Continue }
        $CurrVaultPath = "$VaultPath\$($grp.Name).json"
        $grp.Group | ConvertTo-Json | Out-File $CurrVaultPath
    }

    return $Output
}

New-Alias -Name 'Get-SecretInfo' -Value 'Get-SecretInfo2'

Register-ArgumentCompleter -CommandName Get-Secret, Set-Secret, Get-SecretInfo, Get-SecretInfo2 -ParameterName Vault -ScriptBlock {
    Get-SecretVault  | Select -ExpandProperty Name | foreach-object {
        [System.Management.Automation.CompletionResult]::new($_)
    }
}

Register-ArgumentCompleter -CommandName Get-Secret, Remove-Secret -ParameterName Name -ScriptBlock {
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $VaultNameFilter = $fakeBoundParameter.Vault
    (Get-SecretInfo -Vault $VaultNameFilter -cache)  | Select -ExpandProperty Name  | foreach-object {
        [System.Management.Automation.CompletionResult]::new($_)
    }
}

Both solution (original without caching and my favorite, with caching), if implemented,  would provide a greater code writing experience.
(Also, my second solution expose (vs natively supported cache) unnecessarily expose Get-SecretInfo2 )

I added missing cmdlet and published a version on the Powershell Gallery.
https://www.powershellgallery.com/packages/SecretManagementArgumentCompleter/1.0.0
I am leaving this feature request open as I still think it would be great if supported natively.


age-plugin-yubikey support

Hi there!
Thanks for this project, I'm trying to add support for the rage YubiKey plugin.
What I've tried so far:
home.nix configuration:
{
  homeage = {
    pkg = pkgs.rage;
    identityPaths = [ "${config.home.homeDirectory}/yubikey.txt" ];
    installationType = "activation";
    file."test" = {
      source = ./data.age;
      symlinks = [ "${config.xdg.configHome}/secret" ];
    };
  };
  # ...other config
}

Create the secret data & create ~/yubikey.txt:
echo "foobar" | rage -i ~/yubikey.txt -e > ~/.config/nixpkgs/data.age
age-plugin-yubikey -i > ~/yubikey.txt

Changes to homeage itself:
diff --git a/homeage/default.nix b/homeage/default.nix
index 45b2ea8..df9130a 100644
--- a/homeage/default.nix
+++ b/homeage/default.nix
@@ -37,7 +37,16 @@ with lib; let
   }: let
     linksCmds = createFiles "ln -sf" path symlinks;
     copiesCmds = createFiles "cp -f" path copies;
+    yubikeyPlugin = pkgs.age-plugin-yubikey + "/bin";
+    pinentry = pkgs.pinentry-gtk2 + "/bin";
+    identity = builtins.head cfg.identityPaths;
   in ''
+    PATH="${yubikeyPlugin}:${pinentry}:$PATH"
+    echo "GETTING IDENTITY FILE CONTENT:"
+    cat ${identity}
+    echo "IDENTITIES PROVIDED: ${identities}"
+    echo "YUBIKEYS CONNECTED:"
+    age-plugin-yubikey -l
     echo "Decrypting secret ${source} to ${path}"
     TMP_FILE="${path}.tmp"
     $DRY_RUN_CMD mkdir $VERBOSE_ARG -p $(dirname ${path})

I added in pinentry-gtk2 after finding https://github.com/str4d/rage/issues/280 and assuming that home.activation is unable to open pinentry-curses.
I'm logging the identity file content, identities provided, and yubikeys connected really only as sanity checks, which produces an output like this:

On an unrelated note, on macOS I'm getting an error mounting the secret tmpfs:
Edit: just learned about homeage.mount, my bad.

I'm running into trouble here as well. Ive been trying this config:
{
  homeage = {
    # Wrap rage so that it can discover age-plugin-yubikey
    pkg = pkgs.writeShellApplication {
      name = "rage";
      runtimeInputs = [ pkgs.age-plugin-yubikey ];
      text = ''
        ${pkgs.rage}/bin/rage "$@"
      '';
    };
    identityPaths = [ "${../../secrets/keychain-yubikey-identity.txt}" ];
    installationType = "activation";
    # ... other config
  };
}

The Activating homeageDecryptCheck succeed, and I am prompted for my pin and tap my yubikey. But then during Activating homeageDecrypt rage fails instantly, without even asking for my pin, with Error: No matching keys found. Here is the relevant output:
Activating homeageDecryptCheck
Enter PIN for YubiKey with serial 23597600:
Enter PIN for YubiKey with serial 23597600:
Activating writeBoundary
Activating copyFonts
Activating homeageCleanup
[homeage] Cleaning up decrypted secret: /Users/andrewhamon/.config/secrets/buildkite_api_key
[homeage] Not removing secret file /Users/andrewhamon/.config/secrets/buildkite_api_key because does not exist.
[homeage] Cleaning up decrypted secret: /Users/andrewhamon/.config/secrets/jupyter_token
[homeage] Not removing secret file /Users/andrewhamon/.config/secrets/jupyter_token because does not exist.
[homeage] Finished cleanup of secrets.
Activating homeageDecrypt
Decrypting secret /nix/store/xn2cqjdznsd6gf2adwram15fkyhfph3i-buildkite_api_key.age to /Users/andrewhamon/.config/secrets/buildkite_api_key
Error: No matching keys found

[ Did rage not do what you expected? Could an error be more useful? ]
[ Tell us: https://str4d.xyz/rage/report                            ]

and it recently got support for HM as well.

@nekowinston did you get it working on macOS? Looking at the docs it only mentions user-level systemd rather than an activation script.

@andrewhamon yes, it uses a launchd script on macOS instead, my config for it is pretty basic: https://github.com/nekowinston/dotfiles/blob/main/home/secrets/sops.nix

Sadly sops doesn't seem to work with age-plugin-yubikey either. I am hoping to avoid gpg since its seems unnecessarily complex compared to age. sops-nix also seems a decent bit more complex that agenix (which I am using for my nixos hosts)
I tried some debugging by logging the args passed to rage in my wrapper script, but that didn't yield anything significant.
The next step the I can think of would be to use a modified age/age with detailed debugging logs there.
That feels like a fair bit more effort than simply writing my own activation script and invoking that manually, though, so I'll probably do that.

Using the system-wide ragenix instead of the user-scoped homeage works for me with age-plugin-yubikey:
{ pkgs, ragenix, ... }:

let
  ageWithYubikeyPlugin = pkgs.runCommand "age-wrapper" { buildInputs = [ pkgs.makeWrapper ]; } ''
    mkdir -p $out/bin
    makeWrapper ${pkgs.rage}/bin/rage $out/bin/rage \
      --set PATH ${pkgs.age-plugin-yubikey}/bin \
      --set PINENTRY_PROGRAM ${pkgs.pinentry-curses}/bin/pinentry-curses
  '';
in
{
  environment.systemPackages = [
    pkgs.rage
    pkgs.age-plugin-yubikey
    ragenix.packages.x86_64-linux.default
  ];

  age.secrets.test-secret.file = "/etc/nixos/secret1.age";
  age.identityPaths = [ "/etc/nixos/identities/age-yubikey-identity-d4162ec5.txt" ];
  age.ageBin = "${ageWithYubikeyPlugin}/bin/rage";
}


OSX: atom shell command always moves one desktop to the left

atom ~/.bashrc

Instead of focusing on the Atom editor (as expected), it always focuses on the desktop to the left of the selected desktop (even if Atom isn't on that desktop).
Has anyone else experienced this? It's quite annoying having to four-finger-swipe to the desktop Atom is on every time I open a file thru the terminal.
EDIT: If the file is not yet open, the Atom editor will be focused. But if it's already open, I'm moved a desktop to the left and then nothing happens.
EDIT 2: I'm on OSX 10.10.2

I am also experiencing this.


RFE: genotype germline sites with Mutect2 to be used with PureCN

The current solution for PureCN uses VarDict, which does mark sites as somatic or likely germline, followed by a series of filtering (which, honestly, I did not understand completely) to produce a file which can be digested by PureCN.
We can allow MuTect 2 to genotype germline sites: this normally means just an increase in runtime with little benefit, but doing for specific cases might be useful. In particular, PureCN could then be used with MuTect2, which would allow to leverage PureCN's native handling of MuTect2 VCFs.
Not sure if it's worth it or not, but I'm throwing ideas into the mix.

This is done as of bcbio 1.2.7:
https://github.com/bcbio/bcbio-nextgen/blob/master/bcbio/variation/mutect2.py#L99


GPL-403 - As a user I need a tag set for ONT

User story
As an ONT user we need to have a tag set available to add to samples when creating libraries. Initially there will be 24 tags available eventually moving to 96.
Who the primary contacts are for this story
Karen Oliver / Craig Corton
Acceptance criteria
To be considered successful the solution must allow:

When a library is created from a plate the tags should be available so these can be automatically added to the samples.

Additional context
What fields are required?

would it be possible to use @JamesGlover new record loader.

The tag set in question is ONT_EXP-PBC096.
We need to transfer this tag set into traction. Probably best to use a rake task or James record loader.
There are some questions that need to be answered by Keith first.

Steps you will need to do to get this story working locally:

checkout the sequencescape repo and set it up
start a server
go to the UAT tab
generate a tag group with 96 tags and the correct tag group name

You can then use this tag group to test the rake task
I have spoken to Keith and they will use the tag oligo directly so need to align ids or names.
Probably best to name the tag group id sequentially e.g. if the tag group is called ONT_EXP-PBC096 the tag 1 should be called ONT_EXP-PBC096-01 and so on.

For clarity, this task requires that Traction queries sequencescape for the tag set


[86] Issue #86 - Sept 7, 2017

To contribute to this issue, simply leave a comment here. Please also review our contributing guidelines.
The current draft for this issue in _drafts/. If you want to contribute directly, open a pull request.

Hey folks! Also skipping this one. 😅
If anyone is up for it, let me know!

/cc @SwiftWeekly/writers

Implement SE-0075: CanImport

Thanks anyway @SD10 ! 🙌

What's with all the slacking off @jessesquires ? 😈

@jessesquires if other writes can't help with I can take this one if help is needed. Let's wait for 1-2 days:)

https://github.com/apple/swift/pull/11730

[swift-evolution] Contextualizing async coroutines: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170828/039349.html
[swift-evolution] [Review] SE-0184: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170828/039395.html
good one "[swift-evolution] Why you can't make someone else's class Decodable: a long-winded explanation of 'required' initializers": https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170828/039396.html
https://github.com/apple/swift/pull/11703#issuecomment-326384444

https://mjtsai.com/blog/2017/08/29/swift-4-bridging-peephole-for-as-casts/

https://github.com/apple/swift-evolution/pull/707

New local refactoring action:
https://github.com/apple/swift/pull/11711

Implementation links will be added to the swift-evolution status page: https://github.com/apple/swift-evolution/pull/747

@jessesquires taking this issue too

@RomanVolkov sounds good!

https://twitter.com/daniel_duan/status/904864776290942978

https://github.com/apple/swift/pull/11744

https://swiftunboxed.com/lang/optionals-map-flatmap/

https://github.com/apple/swift/pull/11786

http://belkadan.com/blog/2017/09/Over-abstraction/


Does not push the files

Hi,
I have set everything up, but when I push to origin master.
The only thing that gets pushed are two folders objects and refs.
Here's everything that I did:
First I created a folder in dropbox named tt, then I ran the following commands:
mkdir tt
cd tt
touch file.txt
git init
git remote add origin "dropbox://tt"
git add .
git commit -m "Initial commit"

then pushing:
git push origin master

Here's the pushing output:
To dropbox://tt
 * [new branch]      master -> master

Everything is good, Now when I go to my Dropbox, I only see two folders in the tt folder the objects and refs folders (BTW what are those folders anyway?).
The main Issue is that the file file.txt (or any other files) were not pushed.

That's expected behavior. Maybe you're confused about what this extension is supposed to do? Taking a closer look at notes, FAQ, and design doc might help clear things up.
Basically, you're not supposed to worry about the files in your /tt folder in your Dropbox -- you're not meant to use that folder directly, only through git-remote-dropbox.
Once you've done what you've done, you can go somewhere else on your computer (or another computer) and do git clone dropbox://tt && git checkout master and you should be able to see the file.txt file in there.

Oh, thank you very much :smile: I did not actually understand what a git repo is; I thought it would be something like Github.


Deleting old API in preparation for v0.4.0

Deleted old API and move makeOpenFiles to utils.go
Signed-off-by: Darren Stahl<EMAIL_ADDRESS>/cc @swernli @jstarks

LGTM


Bug: Sending an empty array of events to an interpreter fails with "Cannot use 'in' operator to search for '$$type' in undefined"

Description
According to the docs of Interpreter.send (https://paka.dev/npm/xstate@4.33.1/api#dcfdac634e7e7494):

An array of events (batched) can be sent as well, which will send all batched events to the running interpreter

However, this throws an error if the array is empty, forcing users to wrap all calls to send that use arrays of dynamic length in an array length check to avoid this bug.
Expected result
I expected the interpreter to do nothing
Actual result
It threw error Cannot use 'in' operator to search for '$$type' in undefined with stack trace:
    at Object.toSCXMLEvent (/var/task/dist/handlers.js:159314:41)
    at /var/task/dist/handlers.js:161157:41
    at Scheduler2.process (/var/task/dist/handlers.js:160435:11)
    at Scheduler2.schedule (/var/task/dist/handlers.js:160419:14)
    at Interpreter2.batch (/var/task/dist/handlers.js:161121:24)
    at Interpreter2.send (/var/task/dist/handlers.js:160689:19)

Reproduction
https://codesandbox.io/s/keen-bell-peys02
Additional context
XState version: 4.30.5

It's an easy fix - I will prepare it soon. However, note that in the next major version we plan to remove service.batch (which gets called by service.send([])). For that reason, I recommend you to migrate towards using this:
-service.send(events)
+events.forEach(event => service.send(event))

Makes sense! Will take note of this planned breaking change


Take snapshots only when there are no volatile data in memory

I was benchmarking dbsync, which included stopping and restarting it many times. I notices that rewards for epoch 250 were missing, while rewards for later epochs existed in db. I believe this happened because rewards stay in memory for some time. If a snapshot is taken before rewards are inserted and dbsync restarts, these rewards get lost.
A solution is to never take a snapshots while a reward/stake is still in memory. Another solution is to only take snapshots on epoch boundaries. Profiling already indicates that taking snapshots has an impact in sync times, so reducing the snapshots can help there.

Firstly, snapshots should only be taken when db-sync is stopped. Is there a way we can ensure this?
Also think this is related to issue https://github.com/input-output-hk/cardano-db-sync/issues/657


[Feature Request] Unsafe code execution support

Required prerequisites

[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

Motivation

Current implementation only allows execute safe python codes. To give user more flexibility, we should add unsafe code execution mode.
Solution
Use python subprocess package to run commands.
Alternatives
No response
Additional context
No response

@dandansamax what does safe python mode mean?
I wanted to execute LLM generated code and save the produced results, (P.S. does this mean unsafe?), so any idea how to do this instead of just copy pasting?

hi @dandansamax ,
Thanks for letting know the framework better.
So subprocess is like parallel programming right? We try to save the main process while we may risk the new process. Also we can try sandboxing .
I had a question though - So in Autogen i didn't encounter any such restriction to execute also it generated and executed my prompts automatically, so any idea how does Autogen ensure this malicious non execution or has it accepted this risk afayk??

So subprocess is like parallel programming right?

Yes. Also the sandboxing idea is good, we should try to implement it.
I'm not so familiar with Autogen, but after checking its code, I believe it uses subprocess to execute code and having two mode. If use_docker is not specified, it will run the code natively in the host, otherwise it will start up a docker image to run it.

The sandboxing idea is good, we should try to implement it.


add google places

Codecov Report
Patch coverage: 82.60% and project coverage change: +1.27% :tada:

Comparison is base (c720255) 88.33% compared to head (a013b80) 89.61%.
Report is 1 commits behind head on master.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   88.33%   89.61%   +1.27%
==========================================
  Files           3        4       +1
  Lines          60       77      +17
==========================================
+ Hits           53       69      +16
- Misses          7        8       +1

Files Changed
Coverage Δ

src/__init__.py
82.75% <75.00%> (-0.58%)
:arrow_down:

src/views/location_api.py
92.68% <84.61%> (+2.36%)
:arrow_up:

src/constants.py
100.00% <100.00%> (ø)

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


Install fly

we need it for concourse

https://github.com/cloudfoundry/capi-workspace/commit/966be83ef06bd6e101ca0f4b6b53b45baa6f99a5


EXE version works, but py doesnt

Hey,
So when I use the exe version it works, but the open source py one doesnt. The py one just closes instantly with no errors. I want to use the opensource one so I can customise the message.

nvm it does give an error above

run the installer or do pip install requests

says its already installed, and same error/closing instantly.

Thats odd.

Try reinstalling python
Try reinstalling requests package (pip uninstall requests then pip install requests)
Use exe version

I will be releasing an updated version soon anyway.
Let me know if you fix it and if you can i have a server where this is hosted 24/7


fix: enable table overflow-x

This PRs refactor's Box component to a Layout inside CollectionTable.js, so we can have proper overflow in the table, when we have multiple locales supported.

Before
After

Also removed redundant div, and replace with fragment.

Hey @konsalex,
thank you for your contribution. Looks good to me, gonna leave it up to @sargreal to merge ^^


fix: reset lambda memory config to the pre test value - resolves #2

Resolves #3

:tada: This PR is included in version 0.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


You can run the command ‘straight-pull-package’ with M-x -pul-p RET

See the following screenshot:

As you can see,  the straight-pull-package command doesn't appear with M-x -pul-p, while it will appear with M-x -pul -p. So I'm very confused by the info given in *Messages* buffer:
You can run the command ‘straight-pull-package’ with M-x -pul-p RET

Not related to straight. This is a question better suited for a general Emacs forum.

Sorry for bothering here. Reposted it on<EMAIL_ADDRESS>


Invalid Invite for Discord Server

Having trouble joining the Discord Server

Correct link is https://aka.ms/msftgamedevdiscord
We will fix it, thanks!


Releases/v1.5.1

Testing for release.

@marscher  I am still getting random faults in the test matrix.   I am not sure if it is us or something underlaying in Python.   I will likely proceed with the release as none of my local testing shows anything unstable after many runs.  My general feeling is there may be an instability in some backported changes in the Python release system.
It will take a while getting the release pipeline up the date.   Some of the changes in the python packaging system damaged the  release system and a number of images have shifted.  Hopefully I have some images by the end of the weekend.

@pelson it seems like the conversion to pyproject.toml was incomplete.   None of the builds are properly under the release system.  (I believe it was changed in #1133)
Unfortunately, the revised system is entirely opaque to me thus I am not sure how to proceed.  Under the setup.py system it was easy to customize to include files that were outside the scope of the regular build system. (after all Python doesn't account for java files as part of the build process.)  I can try to do things like moving org.jpype.jar to be under the python module, but that may break other things.
I may need to add you to azure dev cloud in order for you to see the logs.  If you have a azure account that please look through the github commits to get my email and drop me a email so I can properly add you (no need to post it here.)

You should be able to get all the artifacts from build.  I believe to went wrong executing the source dist which is supposed to build the jar and collect all the distibuted sources.  If something is missing from the step then everything downstrwam will fail.
The procedure I would use would be pull the source artifact and inspect it.  The disable tge rest if the release build (to save time or ypu can end up with 10 failed builds queued up), then trigger a new release with changes until tge source dist succeeds.


render 50 doms to canvas, the canvas result will change(blank) as the width  and the height change.

render 50 doms to canvas, the canvas result will change(blank) as the width  and the height change. When I set the width or the height to 700px, the canvas in the onrendered callback will be blank.
Here is my simple code:
http://jsbin.com/renuyirimo/edit?html,js,output

the demo will result in 50 blank canvas which is not expected.
but
you can change the width to 600 or change the loop to 5 instead of 50, the canvas will not be blank, which is expected

Is this still an issue with v1.0.0? If so, could you please share an example on jsfiddle.


Twitched server, no login possible

Hi,
I have a problem again. I switched the server with the bot. The unmodified stable releases throws this error:
[21:17:35] error  - Error: write after end
    at writeAfterEnd (/var/www/domain.com/bot/node_modules/twitch-irc/node_modules/irc-message/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:144:12)
    at DestroyableTransform.Writable.write (/var/www/domain.com/bot/node_modules/twitch-irc/node_modules/irc-message/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:192:5)
    at write (_stream_readable.js:583:24)
    at flow (_stream_readable.js:592:7)
    at Socket.pipeOnReadable (_stream_readable.js:624:5)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)

The beta release just stops on the login. I can still login with telnet from the new server so the connection is okay. But I cannot login with Twitch-IRC. The old server is working fine. There is no difference in the code.
At this moment, I have no idea how to debug this. Any ideas?

please use tmi.js. There have been changes made to the chat api and twitch-irc will not work without further changes.

@celluj34 Again: It works on one server (debian 6) but not on the other (Ubuntu 14.04) for no apparent reason and I have no idea how to debug that.

And just for your information. TMI.js throws this error:
[02:06pm] warn: Could not parse NOTICE from tmi.twitch.tv:
[02:06pm] warn: :tmi.twitch.tv NOTICE * :Login unsuccessful
´´´

And that's it. A different account works and a different server works too.

Have you tried getting a new oauth token for the account that can't login?

I will post my complete data here as my login was changed. It makes no sense but maybe it helps you to find the problem:
var options = {
    options: {
        debug: true
    },
    connection: {
        random: "chat",
        reconnect: false,
        server: "<IP_ADDRESS>",
        port: 443
    },
    identity: {
        username: "yaybotio",
        password: "ojwjiv0yl55o8ihwwvbloxdh4g1kv6"
    },
    channels: ["#efficiencyvi"]
};

Result:
[04:04pm] info: Connecting to <IP_ADDRESS> on port 80..
[04:04pm] info: Sending authentication to server..
[04:04pm] warn: Could not parse NOTICE from tmi.twitch.tv:
[04:04pm] warn: :tmi.twitch.tv NOTICE * :Login unsuccessful
[04:04pm] error: Login unsuccessful.
[04:04pm] info: Connection closed.

In comparison:
telnet irc.twitch.tv 6667
Trying <IP_ADDRESS>...
Connected to irc.twitch.tv.
Escape character is '^]'.
USER yaybotio
PASS oauth:ojwjiv0yl55o8ihwwvbloxdh4g1kv6
NICK yaybotio
:tmi.twitch.tv 001 yaybotio :Welcome, GLHF!
:tmi.twitch.tv 002 yaybotio :Your host is tmi.twitch.tv
:tmi.twitch.tv 003 yaybotio :This server is rather new
:tmi.twitch.tv 004 yaybotio :-
:tmi.twitch.tv 375 yaybotio :-
:tmi.twitch.tv 372 yaybotio :You are in a maze of twisty passages, all alike.
:tmi.twitch.tv 376 yaybotio :>
JOIN #efficiencyvi
<EMAIL_ADDRESS>JOIN #efficiencyvi
:yaybotio.tmi.twitch.tv 353 yaybotio = #efficiencyvi :yaybotio
:yaybotio.tmi.twitch.tv 366 yaybotio #efficiencyvi :End of /NAMES list
quit
Connection closed by foreign host.

This happened for 4 different logins. However with the 5th new login it seems to work for now and I have still no idea why.

I had connection problems once, and I fixed it using this configuration:
connection: {
preferredPort: 443,
preferredServer: '<IP_ADDRESS>'
}
Give it a try


Remove Unicode normalization in difftree

Fixes #1057
Signed-off-by: Vadim Markovtsev<EMAIL_ADDRESS>

@mcuadros I had to edit your test since it did not match the way CGit works with unnormalized Unicode file names.


Misspelling in api_id

Hey there,
First some context.
We are students of the Bern University of Applied Sciences.
We are making a Java implementation of your Draft as a pre-requisite of our Bachelors thesis.
see: https://github.com/RockstaYT/P2_BBS_Signature
As part of this project we also went over the Draft and saw some spelling errors.
Would be nice if you could fix them if you have time :)
First error is:
ciphersuite and and "H2GHM2S" in 3.5. BBS Signature Interface
Shouldn't it be ciphersuite and and "H2G_HM2S_"?

Hi @RockstaYT, glad to see another implementation under way. I don't think there is a Java implementation yet. I've been working on a JavaScript only implementation JavaScript BBS Signatures, there are some in TypeScript, and Rust that I know of.
Note that we have weekly calls Mondays 11AM (PST) via DIF Applied Crypto WG. Also note that DIF is free to join for individuals and gives you access to the zoom calls and slack channel. We go over the latest issues on the call.

Hey @Wind4Greg, thank you for the invite!
I was accepted yesterday as an DIF Member, but sadly im not receiving the slack invite.
Maybe you could fix that in todays call.
My email would either be<EMAIL_ADDRESS>(preffered) or<EMAIL_ADDRESS>Will delete this comment tomorrow, as it doesnt add anything to the discussion :)


my subdomain(hopefully)

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] Your website is not hosting on the following due to SSL issues: Vercel, Netlify

Description

for my art site
Link to Website

paintings-k52e.onrender.com/

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

I have read the CLA Document and I hereby sign the CLA


Allow passing props to individual fields in full-rendering mode

Would be awesome to keep using the UI-kit full rendering but passing props to individual fields, similar to initialValues.

This would also allow per-form translation of field labels instead of having to put them all into e.g. your UIKit.