Getting ports in a module

I'm trying to get ports of a module with the vpiHandle of the module like so:
if(vpiHandle ports = vpi_iterate(vpiPorts, m)) {     // m is the handle for the module currently in
  std::cout << "Found ports\n";
  // do something with it
} else std::cout << "No ports found\n";

This never seems to be finding any ports.
I've done this with vpiContAssign, vpiProcess, etc. which all work as expected. I see similar implementations for all these in uhdm/generated/src/module_inst.cpp

Start with working examples:
https://github.com/chipsalliance/UHDM/blob/master/util/uhdm-hier.cpp
https://github.com/chipsalliance/synlig/blob/main/frontends/systemverilog/uhdm_ast.cc#L2321
https://github.com/chipsalliance/Surelog/blob/00df97c73df40ba9633055f7a166a64421915021/src/hellouhdm.cpp#L158

Thanks, I figured it out.


Publish last version to pip didn't work (1.2.10)

in https://pypi.org/project/basecrm/ last version is 1.2.9


use -raw when getting values from terraform output

this prevent the extra "..." quotes which messes up the aws ec2 describe-instances call

Tests passed! Merging now, thanks!


doc: CLI screencast of popper hands-on exercise

do a screencast (make it a gif for the website) of the hands-on exercise

@shamedian sorry to bother again with this, but I just fixed #183 and, after we release 0.5, the screencast will be outdated. Would it be possible for you to generate it again? BTW, when working on steps:
mkdir mypaper
cd mypaper
git init
echo '# mypaper' > README.md
git add .
git commit -m 'first commit'

can you just do?:
mkdir mypaper
cd mypaper
git init


Boehm GC optional dependency warnings at configure time

when running CMake to generate a project, we get the following cmake warning in the console (with no Boehm GC installed)
-- Found GC library: BOEHM_GC_LIBRARIES-NOTFOUND
CMake Warning (dev) at /usr/local/Cellar/cmake/3.22.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Boehm_GC)
  does not match the name of the calling package (BoehmGC).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  app/lib/immer/cmake/FindBoehmGC.cmake:105 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  app/lib/immer/CMakeLists.txt:73 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

Yes, the package is optional. If you know how to remove the warning, happy to accept the change.

Yes, the package is optional. If you know how to remove the warning, happy to accept the change.

i can try to look into it eventually. Just curious because the other libs do not cause such warnings

The following should silence the warning.
# Suppress warnings, see the grey Note on https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
set(FPHSA_NAME_MISMATCHED on)
find_package(Boehm_GC)
unset(FPHSA_NAME_MISMATCHED)

Of course actually addressing the warning would be nicer. It seems to suggest to call find_package(BoehmGC), notice no underscore.

Oh, interesting, thanks Tradias!


FIX: Incorrect plugin metadata passed to Report assembler

Resolves: #1127.

Thanks to @celprov, who did the debugging.

This is working as expected - merging.


Make verify_peer_callback more powerful

This is to resolve #21474. Basically, the problem there boils down to the fact that a verify_peer_callback cannot override the default policies, i.e. the client still checks whether the certificate is valid and that the target name is contained in the certificate before the callback is executed. To me, this does not make a lot of sense, because it limits the use cases of the verify_peer_callback to those where you would want to pose additional verification rules. However, those can normally be executed before and the system would not even attempt to connect to this server.
The changes here introduce a new field in the verify options that decide whether the default server verification should be skipped. If that is the case, gRPC would skip the check whether the host name matches the common Name. Further, certificates are requested, but not verified.
@yihuazhang

I updated the PR where I made skipping the server verification optional now (so it should not be breaking any existing code) and added bindings for C#

Finally, I was able to build my changes after I discovered that grpc would not support bazel 2.1.4 but only up to 1.0.0. To get the changes compile, I altered the flag from bool to char. Is that the correct way to represent a bool in the C core?

@georghinkel We are moving toward new TLS credentials. verify_peer_callback in old SSL credentials does not have a lot traction.
In new TLS credentials, you have more flexibility in config credentials reloading, server authorization, hostname check, and so on.

@jiangtaoli2016 How long will that take, especially until the changes become available for wrappers?

@georghinkel
Thanks for contributing to the gRPC community!
We are now focusing on making the C core and C++ wrapper API stable. Wrappers for other languages are in our plate, but there is no clear timeline yet since it could only be sorted out after we make sure C/C++ are good to go.
After several discussions, we decide to not review changes to the old SSL credentials at this moment. old SSL APIs are pretty stable now and we are trying to avoid having to maintain two set of APIs at the same time.
Having said that, we do understand the lack of flexibility in old SSL credentials, and that's the whole point we are introducing new TLS credentials. Please stay tuned! We will try our best to implement the wrapper language in TLS credentials ASAP!

I am going to close this PR. Feel free to reopen if anything changes on your end!

Hello @ZhenLian ; I would be interested in any pointers on the "New TLS credentials ?"
this lack of feature cripples our code base, and undermines our security, and we must the native grpc version in order to migrate to the pure .Net core version later...

@antibarbie
You can find the gRFC here: https://github.com/grpc/proposal/pull/205
Right now the credential reloading feature is fully added. Custom verification is ongoing: https://github.com/grpc/grpc/pull/25631. You could use the old grpc_tls_server_authorization_check_config, but keep in mind that it is only available on the client side, and will be eventually replaced by https://github.com/grpc/grpc/pull/25631.
We are working very hard to make the new verifier implementation merge into the codebase.
@markdroth FYI.


Set Up SAP Business Application Studio for CAP Java

Tutorial URL: https://developers.sap.com/tutorials/cp-cap-java-app-studio.html
Hello,
In step 4 of the tutorial I encounter the following problem.
When I run the command "mvn clean install" I get an error instead of the expected "BUILD SUCCESS".
[ERROR] CdsMojo: [ERROR] Cannot find module<EMAIL_ADDRESS>Require stack:

<EMAIL_ADDRESS><EMAIL_ADDRESS>/home/user/projects/products-service/node_modules/<EMAIL_ADDRESS>/home/user/projects/products-service/node_modules/<EMAIL_ADDRESS>/home/user/projects/products-service/node_modules/<EMAIL_ADDRESS>/home/user/projects/products-service/node_modules/<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/home/user/projects/products-service/node_modules/@sap/cds-dk/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)

[ERROR]
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
at com.sap.cds.maven.plugin.util.ProcessExecutor.executeAndGetResult (ProcessExecutor.java:98)
at com.sap.cds.maven.plugin.build.AbstractNodejsMojo.execute (AbstractNodejsMojo.java:100)
at com.sap.cds.maven.plugin.build.CdsMojo.executeCds (CdsMojo.java:87)
at com.sap.cds.maven.plugin.build.CdsMojo.executeViaLifecycle (CdsMojo.java:140)
at com.sap.cds.maven.plugin.build.CdsMojo.execute (CdsMojo.java:66)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for products-service parent 1.0.0-SNAPSHOT:
[INFO]
[INFO] products-service parent ............................ SUCCESS [  2.926 s]
[INFO] products-service ................................... FAILURE [ 13.664 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.876 s
[INFO] Finished at: 2020-09-20T13:10:42Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.sap.cds:cds-maven-plugin:1.9.0:cds (cds.build) on project products-service: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :products-service
I did the steps of the tutorial and also I'm using a trial account.
Any hints what the problem and the solution could be?
BR
Fabian

@iwonahahn Hi Iwona, could you please have a look? :)

Hi @Mx343,
Sorry for the late reply. I forwarded the request to the development colleagues and will get back to you asap.
Best regards,
Iwona

Hi @Mx343,
can you please reproduce the issue and provide the full build log by running this command:
mvn clean install -X > build-output.log. Please attach the build-output.log to this issue for further investigation.
Best regards,
Marc

Hi @beckermarc ,
I run the command you provided in my already existing project and didn't start with the tutorial from scratch again (I hope this was ok).
Please see the attached build-output.log file.
build-output.log
Best regards,
Fabian

It looks like something went wrong during installation of the @sap/cds-dk module. It has a dependency to the sqlite npm module, which brings some binary artifacts. Those need to match the Node.js version. In your build Node.js version 12.16.1 is using for which the correct binary artifacts would be under sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node.
Can you please check which folders can be found under: /home/user/projects/products-service/node_modules/@sap/cds-dk/node_modules/sqlite3/lib/binding/?
After that can you try to delete the node_modules folder, run npm cache clean and retry the build?

the following folders could be found in the /home/user/projects/products-service/node_modules/@sap/cds-dk/node_modules/sqlite3/lib/binding/ path.
node-v64-linux-x64 with the artifact node_sqlite3.node .
I deleted the folder node_modules /home/user/projects/products-service/**node_modules**/@sap/cds-dk/node_modules/sqlite3/lib/binding/ and try to run the comand npm cache clean.
After an error I retried it with the command npm cache clean --force and retry the build
This time it worked.
[INFO] Reactor Summary for products-service parent 1.0.0-SNAPSHOT: [INFO]  [INFO] products-service parent ............................ SUCCESS [  7.178 s] [INFO] products-service ................................... SUCCESS [ 54.720 s]
I also did the mvn clean spring-boot:run and it worked also.
Thank you very much and best regards
Fabian

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


fisher command not found after immediately installing fisherman

After installing fisherman through the recommended curl command, I tried to run the fisher command within the same shell and I got
fish: Unknown command 'fisher'

Not a huge deal. The solution is obviously to just open up a new fish shell or terminal tab and try again. But this does prevent me from automating the installation of fisherman completely in my dotfiles. And also it might confuse many new users. Any ideas what I can do to make fisher usable immediately after installing fisherman>

Without any patches to fisherman itself you could just source the newly installed .fish file after installing.
source ~/.config/fish/functions/fisher.fish

Thanks for the tip Sefa! I wonder if we can just patch fisherman to run that line at the end of the install command?

The install command is no script. It is just curl saving a file to .config/fish/functions/fisher.fish

Oh good point. I see that it'd be a much more complicated change.

@patrickf3139 I'm on macOS and I have been unable to reproduce this, fish picks it up immediately.
Here are a couple of ideas

Source the fisher.fish file like @Scrumplex suggested
Run the curl command inside a subshell
Use a sleep 3 delay before you try to use fisher in your automation script

👋 Hope that works for you!

@jorgebucaran So what you did to repro was

fisher self-destroy
open new tab/shell/whatever
re-create your fishfile in ~/.config/fish/fishfile
execute

curl -v -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
fisher
```?

Never mind I ran it manually outside of my script and it worked somehow. Ok must be a bug in my automation. Thanks Jorge.

@patrickf3139 As it turns out, fish doesn't autoload functions immediately like I thought.
It can take up to 15 seconds for fish to notice a new autoloaded function. That's the worst case so on average no more than 7.5 seconds.
Still, I am not able to reproduce this issue when installing using the curl command as described in the installation instructions.
Now, here is something that will definitely work if fisher is still not available after downloading it in your automation script:
exec fish

exec will replace the currently running shell with a new fish session. It will not result in a nested session, but a new one which will take over the old one (and that one will be destroyed).
fisher should definitely be available in the new session. 💯

Woohoo thank you @jorgebucaran !

@patrickf3139 FYI https://github.com/jorgebucaran/fisher/issues/477


Add documentation for Rule.use as a function

Adds some documentation for using a function for Rule.use configuration.
For the object passed to the function, I'm not surewhat realResource, compiler & resourceQuery are for, and I'd appreciate some help to explain them succinctly , thank you
Fixes #2691

@bew Friendly ping

I'm still not sure what resourceQuery is, it's never populated in the webpack config we use, anyone can help? Thank you

The build fails, markdown lint doesnt pass with error:
./src/content/configuration/module.md: 324: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- `resource`: The path to the ..."]

ResourceQuery needs a look, dont have time today. If you dont have time either i would suggest  a change

Thanks!


Migration to Java 8 Time API and remove workarounds in tests

https://github.com/appifyhub/monolith/issues/181


Chromecast Support

Please add Chromecast Support to Zapp App

I don't own a chromecast, but I would be happy for any contributions.

FYI: VLC 3.0 implemented Chromecast support without relying on the proprietary SDK, but just reimplementing it (and also supporting more formats, yay!).

I am very sorry, but this feature is out of scope right now :(

I would be glad to contribute a chromecast support to this project. Is it possible to reopen this issue?

I would be glad to contribute a chromecast support to this project. Is it possible to reopen this issue?

Feel free to implement it.

@userdimi: There are some hurdles regarding chromecast support:

The Google SDK is closed source and cannot be released on F-Droid (which is the only store accepting Zapp right now).
If there was any open source alternative it has to be provided by a repository trusted by F-Droid. I had an issue with UPNP support and F-Droid, because I had to use the CLING library from an external maven repository and the F-Droid build server refused to build.
I have no access to a Chromecast device to test the implementation right now. So I might not be able to hold up support for that feature in the future.

Do you have ideas on how to implement this feature UI wise? You may want to take a look at my UPNP DLNA commit from two years ago: https://github.com/mediathekview/zapp/commit/c0ad444810fdadae141bf304f5fe294d8fb9f39f

As for the technical reasons, you could also just use two build flavors, so only the Google Play version can include this feature then. Or some thing as VLC – AFAIK theyx have their own implementation.

@rugk There is no Google Play or Amazon Store version and probably never will be (see #39). Also, F-Droids automated build system was not able to handle build flavors and had to be triggered manually. I don't know if that has changed the last few months.

Ah okay, so then we really need a FLOSS-only solution. So possibly VLC's implementation might be the best.

@cemrich I didn't know that F-Droid is rejected closed sourced SDK's like Google Cast SDK but yes, it makes sense for an open source store. I agree with @rugk and I think also that the best solution is, to make another one flavour for the chromecast support build. So you can deploy the app farther in F-Droid Store without chromecast feature. User who like to try out the chromecast feature can download the apk build from the chromecast flavor from a server and install it on the devices.
The other question is, do you have a server, where I can deploy the receiver application, so that the devices can connect with them? For beginning I will build an example receiver application and test it local with my chromecast device.
I have some Ideas about the UI for zapp application.

The other question is, do you have a web server, where I can deploy the receiver application, so that the devices can connect with them?

Wait, Chromecast integration requires a server component? A receiving server? Rly??

If I have understand it correct, yes. Please check this out: https://developers.google.com/cast/docs/caf_receiver/

Afaik you don't need an own server. The TV running Chromecast acts as the server for the Caster (in this case Zapp). I had support for Chromecast in MVW and didn't require any server component.

@userdimi I think you only need a server component if you want to create a Zapp client app which runs directly on the chromecast device (maybe to share and browse the library). For casting streaming and video addresses you need to transform Zapp to a sender app: https://developers.google.com/cast/docs/android_sender/
I had an idea on how to gracefully handle the floss/non-floss issue: I think it might be possible to deliver chromecast support as a plugin. This can be a separate (non-floss) APK without launcher which can be downloaded on Github. Here are some slides on how to do this: https://speakerdeck.com/appfoundrybe/cross-app-communication-and-plugin-architecture-in-android

The VLC guys claim that their libvlc is capable of streaming to Chromecast. It is licensed under LGPL 2.0 so it should be possible to include it into a MIT licensed app, right?
I'll have a look as soon as I find the time...

Please look into it. The official ZDF app lags hard.
Thank you!

I found that VLC plays "Full HD" videos (1920 × 1080) at 50 fps on Chromecast only with judder, while Chrome plays flawlessly using the same hardware setup and movie. I'm also not sure if VLC is a repository trusted by F-Droid.
So I think it's a better idea to deliver chromecast support as a plugin in the form of a separate (non-floss) APK as @cemrich  suggests.
I could provide a "Google Chromecast 3 (2018)" to support development.

@ThomasHeinrichSchmidt Thanks for your offer! I now own a Google Android TV with cast support for testing purposes. But the google cast API is insane. I am not sure I should invest time in this.

Anything I can do to help?
I would think there is some demand for Zapp with Chromecast, as the official ARD and ZDF apps do not work well with Chromecast (ARD jumps to some previous point in time for no reason every 10 or 15 minutes, ZDF lags any half minute or minute). Waipu.tv works well (no jumping, no lagging), but they want 12,99 € per month for timeshift which is standard for ARD, ZDF, and Zapp.

Also, offering a Chromecast plugin for Zapp in Google Play Store will probably boost popularity of Zapp itself.

I have tried to get an overview of the Cast API. These are the links I found useful.
Intro
- Sample app, using Dependency
Tutorial on Cast-enable an Android app
- Project source code
- Adding the Cast button
- Casting video content
Setup for Developing with the Cast Application Framework (CAF) for Android

I found two more ideas that could make the way to Chromecast support shorter and less painful.

There's the PyChromecast Python lib that handles communication with the Chromecast. This is also used by Home Assistant to integrate Chromecasts into the Smart Home, pychromecast hosted on Github
There's the Chromecast.link web service that allows to start a stream on the local Chromecast using a REST API like the https://chromecast.link#title=ZDF&subtitle=Live&poster=https://brandguide.zdf.de/pictures/447/0e4185eb9657cecbb59e164e55e1bf1fe6c197ce/ZDF_DE_Logo_02.png&content=https://zdf-hls-15.akamaized.net/hls/live/2016498/de/high/master.m3u8. The code is open source, see castlink on Github.


Rancher Catalogs do not respect capitalization in url requests

Rancher Version: v0.63.0
Steps to Reproduce:  Name a catalog "ExampleCatalog"
Results: Catalog items will populate, but they cannot be launched from the UI because the api request will look for "example:item:0" not "Example:item:0"

@vincent99 added the fix needed. PR https://github.com/rancher/rancher-catalog-service/pull/44

This is great, thanks! I did admittedly, pull out a bit of hair over this one...

@willseward sure thanks, and sorry for the trouble...

Tested with latest build from master and rancher-catalog version - v0.6.0
Had catalog name with Capital letters/Mixed case/numeric values.
Able to successfully launch templates from this catalog.
@willseward , fix for this issue will be available in the next rancher server release.


Running on Node - Server to Server with Multiple Conversations?

In trying to integrate our own site chat system with the bot framework, without being able to write a custom channel we have tried to use the directline api via a nodejs 'proxy'.
The directlineJS object is obviously designed for client side where one instance = one conversation. Does anyone have a good methodology for proxying multiple conversations? I could build multiple directline objects, each with their own convesationId, but that wouldnt scale very far as multiple polling get/websocket connections would be created to the directline endpoint?

I would write a custom proxy. The two scenarios are pretty different. For what it's worth, Direct Line isn't a particularly complex protocol, and I've written several such custom channel proxies.


ENH: differential_evolution init with population array fixes #6879

#6879 asks to be able to initialise the population with a given solution. This PR permits the initialisation of the population with a user supplied array.

@ZacDiggum

Woohoo! Thanks!

Ping.

Hi @andyfaff, I'm still here.
I'm very happy with the changes you made regarding the initial population.
For my own purposes I still use my version of differential_evolution which also routes the function value xk to the callback as discussed in #6878. Back then this led to #6923 and then we sadly got stuck there.
Maybe we could get #6878 going again?

IHMO, function parameters that can be of different types (or that do not follow a common interface like, say, "a sequence") is a sign of bad API design. Arguably there's already seed so we're just adding more here...
I didn't take a close look to these changes though and probably will not be able to do so soon.

Sorry, I meant the best-so-far value of the fitness function that could be used as termination criterion.

Hi @andyfaff,
how is it going with this pr and also #6878? Since the discussion in #6923 ended without conclusion, how would you like to proceed? The ideas for enhancement are still useful, right?

@ZacDiggum I think the changes in the other two PR's are mostly orthogonal to this PR and probably need a little more discussion. I think this PR is in a state where it could be merged, but it needs to be reviewed first.
@dlax, @rgommers?

There are several reasons why one might want to supply an initial population:

you create a tight bunch of initial guesses because you 'know' where the solution is, and you don't want to wait too long for convergence
you want to exclude various parts of parameter space to start with (e.g. you don't necessarily want latin hypercube).
you want to try your own initialisation methods.

I also have something more long term in mind. I originally wrote differential evolution code in C and for Igor Pro based on https://doi.dx.org/10.1098/rsta.1999.0469. This paper required lower and upper bounds for each parameter - you need them to initialise a random population. Once you've initialised the population you don't technically require bounds (unless you want to stay within a limit).
A future development that's possible is dropping the requirement to have lower and upper bounds for each parameter, you could just supply an initial guess / initial population. This would bring the interface to differential_evolution in to line with the other optimisers. However, I'm not sure how to manage the change of the differential_evolution interface. The changes to the internals are relatively straightforward. This future possibility is why I'm reluctant to make the DifferentialEvolutionSolver publicly available at the moment.

Addressed comments.

One test failure is a timeout and the other is unrelated.

@andyfaff
It's funny because I'm using differential_evolution() for fitting diffraction data as well by minimizing an error function. In my case it's Kogelnik's coupled wave theory in volume holography. That's why I introduced the 'first guess' in the init.
Making bounds optional is very interesting because one could make a curve / model fitting function like curve_fit() that uses differential_evolution().
Ideally, the user could choose to use bounds, first guess or both or none.

Do you know of a way of initializing the population without supplying one,
or having bounds?
(Check out refnx or fitting as well)
On 26 Jul 2017 7:08 pm, "ZacDiggum"<EMAIL_ADDRESS>wrote:
@andyfaff https://github.com/andyfaff
It's funny because I'm using differential_evolution() for fitting
diffraction data as well by minimizing an error function. In my case it's
Kogelnik's coupled wave theory in volume holography. That's why I
introduced the 'first guess' in the init.
Making bounds optional is very interesting because one could make a curve /
model fitting function like curve_fit() that usesdifferential_evolution().
Ideally, the user could choose to use bounds, first guess or both or none.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/pull/7115#issuecomment-317995512, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq51v1n2S_37W0IG8ITsfJBrizp_qYZks5sRwH7gaJpZM4MPaZ9
.

My first naive thought would be to use np.finfo(float).min and .max as pseudo bounds or something like that. But one would have to make sure that these values don't crash the fitness function. What happens with the other minimizers when they approach the domain boundaries of the function to be minimized?

@rgommers, I believe this is ready to go (once tests pass). I think all your comments are addressed.

Rebased and squashed.
This PR allows you to supply either a str -or- an array to the init kwd of the differential_evolution function. From the docstring:
Specify which type of population initialization is performed. Should be
        one of:

            - 'latinhypercube'
            - 'random'
            - array specifying the initial population. The array should have
              shape ``(M, len(x))``, where len(x) is the number of parameters.
              `init` is clipped to `bounds` before use.

        The default is 'latinhypercube'. Latin Hypercube sampling tries to
        maximize coverage of the available parameter space. 'random'
        initializes the population randomly - this has the drawback that
        clustering can occur, preventing the whole of parameter space being
        covered. Use of an array to specify a population subset could be used,
        for example, to create a tight bunch of initial guesses in an location
        where the solution is known to exist, thereby reducing time for
        convergence.

The tests pass and I believe most of the concerns have been addressed. However, @dlax did point out that it was messy to supply either a string or an array to the init keyword:

IHMO, function parameters that can be of different types (or that do not follow a common interface like, say, "a sequence") is a sign of bad API design.

An alternative is to supply the population initialisation array via the popsize keyword instead. Thus, if popsize is an integer or np.asarray(popsize).size == 1, then it's use will be the current behaviour. If it's an (M, len(x)) array, then it would be the initialisation array.
It shouldn't take too long for me to do those changes.
Opinions please (@bjude). If the current approach is considered best, then this should be good to merge. If the alternative approach is considered best I could refactor quite simply.

Other than the array initialisation check, im happy.
Now might be a good time for a PR of a  general utility function for latin hypercube sampling so that the user can have arbitrary population size with hypercube sampling (as mentioned by @andyfaff in #8093)

Just need to decide on whether you supply the initial population to the init kwd or the popsize kwd.

Test failure on travisCI/OSX is unrelated.

I think init makes more sense, since we're directly initialising the population. The fact that it affects the population size is secondary IMO.

This is super userful, thanks!

@rgommers, I went with your suggestion that the provided population is used for the actual size (rather than providing a subset).
The only decision to be made is whether the population should be given via the init keyword (which currently accepts strings), or via the popsize keyword (which currently accepts a single integer and is a multiplier factor). The PR is currently taking the former option, but @dlax commented that mixing string options with an array is poor api choice.
There is a third way, which is to add another keyword option.
Could I have feedback on what you think is the best option? If it's the first, then this PR should be ok to merge (I don't like to merge my own PRs). If it's the 2nd/3rd I can quickly refactor.

The only decision to be made is whether the population should be given via the init keyword (which currently accepts strings), or via the popsize keyword (which currently accepts a single integer and is a multiplier factor).

init certainly sounds preferable to popsize. I'd also prefer it to yet another keyword. I agree with @dlax in principle, but in practice I think using strings + array in init is only slightly ugly and overall the best solution.

In that case I think it's good to go.
On 3 December 2017 at 19:53, Ralf Gommers<EMAIL_ADDRESS>wrote:

The only decision to be made is whether the population should be given via
the init keyword (which currently accepts strings), or via the popsize
keyword (which currently accepts a single integer and is a multiplier
factor).
init certainly sounds preferable to popsize. I'd also prefer it to yet
another keyword. I agree with @dlax https://github.com/dlax in
principle, but in practice I think using strings + array in init is only
slightly ugly and overall the best solution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/pull/7115#issuecomment-348749921, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq51jmhoV1LX0634_xGojiC9iS2ml9Xks5s8mGjgaJpZM4MPaZ9
.

--

Dr. Andrew Nelson

Let's give it a day or two to see if no one objects, then hit the green button.

@andyfaff pushed 40 commits.

Ugh. What's happening here?

Yeah I know. When I checked out the branch on my computer git said my local version and remote branches had diverged, so I pulled the remote version onto mine. I made the changes, and pushed back to the remote and this happened.
I'm going to rebase on master and see if that fixes things. If not then I might use the repo I have on another computer.

Should be fixed


[5.9][Macros] Don't apply member attribute macros to expanded members.

(cherry picked from commit 14e92b2678e32fb35a3e27d19719bb0f9997f110)

Explanation: The attached macro proposal states:

member attribute macros allow one to modify the member declarations that were explicitly written within the type or extension by adding new attributes to them

The implementation did not follow this, because it applied member attributes to other macro-expanded members. This change aligns the implementation with the proposal.

Scope: Only impacts member-attribute macros that are composed with other macro roles that can add members to a type, e.g. member or peer macros.
Issue: rdar://109217961
Risk: Very low; this is a one-line change within the code path that expands member-attribute macros that checks whether the given member is in a macro expansion buffer relative to its parent.
Testing: Added a test case.
Reviewer: @ahoppen
Main branch PR: https://github.com/apple/swift/pull/66258

@swift-ci please test


Transform of Base to Intel Realsense D435i

Hey, does anyone here happen to know the transform of the Intel Realsense D435i depth camera on top of the head of the Go2 to the base of the robot?
Great work!

Thanks for the response!
I want to leave the camera on the tip of the head of the robot, as depicted in the image in the README. I require the coordinate transform between the depth camera and the base of the robot for a SLAM related project but was not able to find it anywhere. If i overlooked it in the urdf-file i apologize.

Thank you, that was what i was looking for! One question out of curiosity, how did you figure out the   coordinates in go2_nav2_nvblox.urdf? Did you measure this, calibrate it or get it from somewhere else?

I measured the distance from base_link to where the camera attaches to the robot, (thats the measurements you see in go2_nav2_nvblox.urdf) and since the camera's urdf already has the transform to  where the camera attaches, (from camera_depth_optical_frame camera_bottom_screw_frame) those translation measurements get added on. I also visually verified in rviz that the camera mesh was in the correct spot. It is just an estimate though so if you need a more accurate method to determine the placing, you can update the urdf file!

Ah okay, i understand! Thanks for your help!


Uber jar pom has duplicate slf4j-api dependency (compile & runtime)

The POM we generate for the uber-jar (:dist:jar) has two dependency entries for slf4j-api, one at compile and one at runtime.  It should just contain the "runtime" one.

False alarm... the final pom contains now duplication... just an intermediary in the build process.


/channel/{channelName}/user/{userName} route does not work if both {channelName} and {userName} contain non-lowercase characters

Example of URLs that do not work:
https://logs.ivr.fi/channel/Pajlada/user/Pajlada/2020/9 (Mixed case channelName, Mixed case userName)
Example of URLs that do work:
https://logs.ivr.fi/channel/Pajlada/user/pajlada/2020/9 (Mixed case channelName, lower case userName)
https://logs.ivr.fi/channel/pajlada/user/Pajlada/2020/9 (Lower case channelName, mixed case userName)
https://logs.ivr.fi/channel/pajlada/user/pajlada/2020/9 (Lower case channelName, lower case userName)

fixed in 291b765


[3077] - Add MCB action for adding ttw zone or london borough VERSION 2

Context
Resurrecting this PR from the dead with fixes 😸
Whilst working on exposing travel to work data on Find noticed some Courses seemed to be displaying incorrect info (via their Sites)
Looking at the db it appears that there a number of Sites may have had their london_borough and travel_to_work values mixed up during the back fill.
The TravelToWorkAreaAndLondonBoroughService made the assumption that the info from the Mapit API is returned in order (travel to work info is always first) but when I pinged the API this was not the case.
So for example, there are sites with travel_to_work values containing “Camden Borough Council” when they should actually have a london_borough value containing “Camden”
Changes proposed in this pull request

Rather than fetch both the travel_to_work_area and london_borough info in a single request, split these out into separate requests to deal with the randomness

Guidance to review

This code works locally but I am getting some weird behaviour with the mcb spec and cannot, or debug it. @defong can you help? CI specs are failing with Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected

Checklist

[x] Make sure all information from the Trello card is in here
[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

* This code works locally but I am getting some weird behaviour with the mcb spec and cannot, or debug it. @defong can you help? CI specs are failing with `Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected`

You touch mcb, you lost 1k of tests

* This code works locally but I am getting some weird behaviour with the mcb spec and cannot, or debug it. @defong can you help? CI specs are failing with `Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected`

You touch mcb, you lost 1k of tests

All good - issue is fixed now 👍


Error encountered while attempting "json.decoder.JSONDecodeError"

My question is "json.decoder.JSONDecodeError", and I encountered the following error. Please refer to the details in the attached screenshot.

thanks

This seems like a format issue; it doesn't comply with the format during JSON parsing. What is the request you are testing?

This seems like a format issue; it doesn't comply with the format during JSON parsing. What is the request you are testing?

instruction = '中国平安所在省份'

I tried this example and indeed an exception occurs; a relatively simple approach is to add a demonstration. Thank you for pointing it out.

I tried this example and indeed an exception occurs; a relatively simple approach is to add a demonstration. Thank you for pointing it out.

How to add?

Firstly, because I have not integrated data information regarding provinces, your query will result in an error.
You can try a different query, such as "介绍一下中国平安." It will return a table to you, which includes information on the place of registration.
Secondly, by modifying the prompt file in the prompt lib, similar to other demonstrations, adding an example in the prompt can solve the problem. However, due to the input length limitation of ChatGPT, this approach will not ultimately solve all the problems.
Lastly, the real solution is to input the results of each step into the LLM (Chatgpt) and then generate the call for the next step, instead of generating all the steps at the beginning as I did.
Hope these advices will help you

Firstly, because I have not integrated data information regarding provinces, your query will result in an error. You can try a different query, such as "介绍一下中国平安." It will return a table to you, which includes information on the place of registration.
Secondly, by modifying the prompt file in the prompt lib, similar to other demonstrations, adding an example in the prompt can solve the problem. However, due to the input length limitation of ChatGPT, this approach will not ultimately solve all the problems.
Lastly, the real solution is to input the results of each step into the LLM (Chatgpt) and then generate the call for the next step, instead of generating all the steps at the beginning as I did.
Hope these advices will help you

thanks 🍻


Can't update ToolTip while it's visible

I have a custom drawn control that renders an image (camera depth images) and tried to create a tooltip that follows the cursor and displays the pixel coordinates and value. The tooltip however does not update once it pops up.
The tooltip content is correct for the mouse position it gets first shown, but then doesn't update once the mouse moves.
Same for the Vertical/Horizontal offsets. Binding them to properties doesn't update them. Getting the tooltip control via x:Name and FindControl doesn't work as the returned tooltip for some reason doesn't have any of these properties. I tried Invalidating the visual of the tooltip and the whole usercontrol. I tried calling arrange with a calculated position directly. I am officially out of ideas.
I am on 0.10 preview 6.
<UserControl xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:SkiaPlayground.ViewModels;assembly=SkiaPlayground"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SkiaPlayground.Views;assembly=SkiaPlayground"
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        mc:Ignorable="d"
        x:Class="SkiaPlayground.Views.FloatImageInspector">
        <ToolTip.Tip>
            <ToolTip
                x:Name="ToolTip"
                HorizontalOffset="{Binding HorizontalOffset}"
                VerticalOffset="{Binding VerticalOffset}"
                ShowDelay="100">
                <TextBlock Text="{Binding ToolTipText}" />
            </ToolTip>
        </ToolTip.Tip>
</UserControl>

a few lines of the pointer moved event code:
HorizontalOffset += delta.X;
VerticalOffset += delta.Y;

var p1 = new SKPoint((float)p.X, (float)p.Y);
var p2 = RenderTransform.Value.Invert().ToSKMatrix().MapPoint(p1);
var x = (int)p2.X;
var y = (int)p2.Y;
try {
    ToolTipText = $"({x}, {y}) = {_image[y, x]}";
}
catch {
    ToolTipText = $"({x}, {y}) = XXXXX";
}

As a workaround - hide and show tooltip again with IsOpen property after pointer moved. It's not optimal, but should work.

How would that work? I can set IsOpen false before updating position and text and true after. But for that to have any effect I would need to render at least 1 frame without tooltip and then the next with again.
Tested it and don't see any effect. But thanks for the idea.

related to https://github.com/AvaloniaUI/Avalonia/issues/2354

Fairly sure this can be fixed really easily!
AffectsMeasure / AffectsRender on the ContentProperty perhaps? I know iv worked around it before... but likely this is a really easy fix for someone who wants to dip their toes in Avalonia.

What about using https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/Primitives/OverlayLayer.cs instead? And avoid using a Tooltip?

Thanks, I'll look into it tomorrow and report back. I'm still relatively new to avalonia. And this is an attempt to port an existing wpf control which uses a tool tip.

@Gillibald Sadly the same result. Text simply doesn't update.
<UserControl xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:SkiaPlayground.ViewModels;assembly=SkiaPlayground"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SkiaPlayground.Views;assembly=SkiaPlayground"
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        mc:Ignorable="d"
        x:Class="SkiaPlayground.Views.FloatImageInspector">
        <OverlayLayer>
            <TextBlock x:Name="TextBlock" Text="{Binding ToolTipText}" />
        </OverlayLayer>
</UserControl>

private string ToolTipText { get; set; } = "Some Text";

// mouse move event
try {
            ToolTipText = $"({x}, {y}) = {_image[y, x]}";
}
catch {
            ToolTipText = $"({x}, {y}) = XXXXX";
}

Console.WriteLine($"{ToolTipText}");
_textBlock.InvalidateVisual();

ToolTipText gets set correctly as can be seen in the console output
(58, 163) = 52
(57, 163) = 90
(60, 159) = 94
(63, 148) = 59
(68, 124) = 18
(75, 97) = 34
(81, 69) = 14
(93, 49) = 11

private string ToolTipText { get; set; } = "Some Text";

You haven't implemented INotifyPropertyChanged

Oh wow. That would make sense :D I wasn't aware that INotifyPropertyChanged was a thing as well in avalonia. Since the initial value showed up I thought it must be working somehow. Give me a second, and I can probably close the ticket.

Okay, updating the text works as expected, but setting offsets of an tooltip still doesn't. So I guess the initial report is still valid.
Sorry for the additional noise though =(

@jangernert can you share more code, how you work with OverlayLayer? Including parts where you move control to new coordinates.

I haven't tried to move the TextBlock inside the OverlayLayer yet. What I meant was going back to the ToolTip version of the code, updating HorizontalOffset and VerticalOffset still doesn't work with INotifyPropertyChanged implemented.


Increase effectiveness of forging bib

Now that the bug is fixed it's not working that well

Fixed in 12.2.43


A.I. - Follow StableDiffusion URL redirection

The current call to curl fails with
{
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/528152092/releases/latest",
  "documentation_url": "https://docs.github.com/v3/#http-redirects"
}

which impacts the rest of the deployment script.
This PR fixes this issue by passing the -L option to curl which allows curl to follow the redirection.
Edit: One will need to re-create the Docker image and modify the deployment file to reflect the change.

@88plug ^^

This has already been corrected here


Preparing metadata (pyproject.toml) did not run successfully

Overview
Upon first launch of the macOS app, this error appears and then the app crashes/closes:
Error: Command failed: /Users/trobbins/.opendataeditor/python/bin/python3 -m pip install --upgrade --disable-pip-version-check fastapi==0.103.1 fastparquet==2023.8.0 frictionless-ckan-mapper==1.0.9 frictionless==5.16.0 gitignore-parser==0.1.6 ijson==3.2.3 jinja2==3.1.2 jsonlines==4.0.0 marko==2.0.0 openai==0.28.0 openpyxl==3.1.2 pandas==2.1.1 pydantic==2.3.0 pygithub==1.59.1 pyquery==2.0.0 python-multipart==0.0.6 pyzenodo3==1.0.2 sqlalchemy==2.0.20 tinydb==4.8.0 typer==0.9.0 typing_extensions==4.8.0 uvicorn==0.23.2 xlrd==2.0.1 xlwt==1.3.0
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
running dist_info
creating /private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info
writing /private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info/dependency_links.txt
writing requirements to /private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info/requires.txt
writing top-level names to /private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info/top_level.txt
writing manifest file '/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-modern-metadata-fv5t2ui6/petl.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "/Users/trobbins/.opendataeditor/python/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/trobbins/.opendataeditor/python/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/trobbins/.opendataeditor/python/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
self.run_setup()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 5, in <module>
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 92, in run
self.egg_info.run()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 550, in run
self.add_defaults()
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 591, in add_defaults
rcfiles = list(walk_revctrl())
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 16, in walk_revctrl
yield from ep.load()(dirname)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools_scm/_file_finders/__init__.py", line 110, in find_files
res: list[str] = command(path)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools_scm/_file_finders/git.py", line 93, in git_find_files
toplevel = _git_toplevel(os.fspath(path))
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools_scm/_file_finders/git.py", line 23, in _git_toplevel
res = _run(["git", "rev-parse", "HEAD"], cwd=cwd)
File "/private/var/folders/zv/jtj1cly554q6x41q5m5brbm80000gn/T/pip-build-env-9hn8z36v/overlay/lib/python3.10/site-packages/setuptools_scm/_run_cmd.py", line 150, in run
res = subprocess.run(
File "/Users/trobbins/.opendataeditor/runner/lib/python3.10/subprocess.py", line 505, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/Users/trobbins/.opendataeditor/runner/lib/python3.10/subprocess.py", line 1154, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/Users/trobbins/.opendataeditor/runner/lib/python3.10/subprocess.py", line 2022, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
File "/Users/trobbins/.opendataeditor/runner/lib/python3.10/subprocess.py", line 1198, in _check_timeout
raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['git', 'rev-parse', 'HEAD']' timed out after 40 seconds
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I I don't think this is related to #278 & #313, and thought I'd share it here for review.

Just tried to launch it again to get a screen shot as well and it loaded just fine. 🤷🏻♂😆

Thanks @todrobbins!
@pdelboca
Based on the log info the internet went down for 40 second causing pip to crash. So it's not a bug on our electron component but a bug on error handling (#295) and retries strategy


Make plugins in ~/.config/micro/plug dir override built-in plugins

If ~/.config/micro/plug directory contains a plugin with the same name as a built-in plugin, the expected behavior is that the user-defined plugin in ~/.config/micro/plug is loaded instead of the built-in one.
Whereas the existing behavior is that the built-in plugin is used instead of the user-defined one. Even worse, it is buggy: in this case the plugin is registered twice, so its callbacks are executed twice (e.g. with the autoclose plugin, a bracket is autoclosed with two closing brackets instead of one).
Fix this by ensuring that if a plugin with the same name exists in the ~/.config/micro/plug directory, the built-in one is ignored.
Fixes #3029

With #3066 we can do the same thing for the rest of the runtime files with the same approach. :wink:


Initial impl of insert in gNSI pathz trie

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

114 of 116 (98.28%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.9%) to 64.671%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

gnsi/acltrie/trie.go
114
116
98.28%

Totals

Change from base Build<PHONE_NUMBER>:
0.9%

Covered Lines:
3608

Relevant Lines:
5579

💛  - Coveralls


ARM64 validation for C#/WinRT scenarios

Validate .NET 5 app consuming a C#/WinRT projection on ARM64 device.

Validated that .NET 5 console app consuming C#/WinRT projection (SimpleMath sample) builds and runs on ARM64 using the VS Remote Debugging tools.


Add Aeotech Smart Switch 6 to our z-wave network

I did add Aeotech's power strip months ago, but in https://github.com/130s/hut_10sqft/issues/100 it's not well documented. So now I have to find a way to add a new device again.

Figured out.

Put razberry in an Inclusion Mode. This can be done from the "Expert View".
On the device, start the inclusion sequence. For Smart Switch 6, just press the button at the front once (no need to keep pressing).

I see Interview is not complete msg that needs to be addressed.
http://RAZPI:8083/expert/#/help/3
Interview is not complete

Right after inclusion Z-Way determines the functions and capabilities of the new device by sending a lot of requests to the very device. The message „Interview is not complete“ indicates that Z-Way did not receive all the information requested. There are multiple reasons for this:

-    Z-Way is just too busy and needs more time. You should wait up to 30 seconds.
-    The new device is battery operated and went into deep sleep mode too fast to complete the interview. Just wake up the battery-operated device following the instructions for manual wakeup in the devices manual. Usually this completes the interview.
-    The device has a malfunction and can’t complete the interview. This must not happen for certified Z-wave devices but may sometimes happen for uncertified test and evaluation devices.

It is also possible that some wireless interference impacted the interview process. You can go to the “Interview” page and review the process of the interview by clicking the button “Show Interview Results”. All incomplete command classes offer a button to re-do the interview for this command class only. Doing this sometimes helps to finish interview. It is also possible to re-do the whole interview process by hitting the button “Force re-Interview”.

Note: If the reason for an incomplete interview is a failed secure command class you must re-include the device. The secure communication must be established within 10 seconds after inclusion.
Device Failed

Z-Way can’t connect to this device anymore. This means that the device is

-    not powered: Repower it!
-    moved to a position outside the wireless network coverage. Move the device back within the wireless range of the network.
-    damaged. Remove or Replace the device using the function in the network management tab.

Trying to "force interview" from the Expert GUI http://RAZPI:8083/expert/#/device/status but never gone through.

From Home Assistant, it is now easily included in a z-wave gateway https://github.com/130s/hut_10sqft/issues/610#issuecomment-982293756


Completing C# await keyword in non-async methods results in the wrong cursor location being used due to formatting.

Describe the bug:
Completing the await keyword in non-async methods results in Razor generating an incompatible edit that moves the cursor location.
Version used:
17.2-Preview1+
To reproduce:

Open a Razor file with the following text and cursor at the pipe (|):

@code {
    private void Foo()
    {
        aw|
    }
}

Manually invoke completion (ctrl + space) and select await

Expected Behavior:
Cursor is after await
Actual Behavior:

Additional Notes:
I dug into why this was happening and C# is depending on completionItem/resolve to fill out the text edit for that completion item. Only problem is the TextEdit C# returns is valid but Razor transforms it into something invalid.
Original C# completion item text edit (from C# server):
"textEdit": {
    "range": {
        "start": {
        "line": 97,
        "character": 12
        },
        "end": {
        "line": 99,
        "character": 10
        }
    },
    "newText": "async void Foo()\r\n    {\r\n        await"
},

After Razor formats the edit (from our HTMLC# server):
"textEdit": {
    "range": {
        "start": {
        "line": 0,
        "character": 7
        },
        "end": {
        "line": 4,
        "character": 4
        }
    },
    "newText": "\r\n    private async void Foo()\r\n    {\r\n        await\r\n    "
},

Note the extra newline and spaces after await.
One extra piece I found interesting is that C#'s completion item says it's a snippet but doesn't actually provide any tab-stops. Technically this is valid in the LSP specification but felt weird (fyi @dibarbet).

Just interesting: how did you get what LSP sends to the client (and vice versa if it is possible)? I've tried once, but it was buried somewhere too deeply, so I didn't find out how to get the raw text of requests and responses in the end...

Just interesting: how did you get what LSP sends to the client (and vice versa if it is possible)? I've tried once, but it was buried somewhere too deeply, so I didn't find out how to get the raw text of requests and responses in the end...

If you boot devenv.exe with the /log parameter you can see all of the requests & their content in %localappdata%\Temp\VisualStudio\LSP

Are we using GetMinimalChanges in this formatting path? If so, are we setting lineDiffOnly to false? Could try that?

@dibarbet would you mind validating whether this is fixed by your recent changes?

it is not - it needs this fix - https://github.com/dotnet/roslyn/pull/60499 as well as a fix for https://github.com/dotnet/roslyn/issues/60598

Fixed via: https://github.com/dotnet/razor-tooling/pull/6626

Will this fix work in 17.4 p1 by default, or some settings will be requred to be changed? I've seen some tweaks around new single-server completion (whatever this means) and as far as I know it won't be enabled for all clients by default. If I'll need to change this setting, can you please tell where to find it, thanks!

Will work by default. I pushed single server completion on-by-default in 17.4. I still have all the feature flags around in case we see something catastrophic happen I can remotely disable it for the world 😄


[Bug] Adding summer or winter courses shows a blank page

Description of the Bug
Adding summer or winter courses shows a blank page.
Reproduction Steps
Select summer school, business, business 200 and it will crash.
Expected Behaviour
Should work normally and show the classes.
Additional Notes

solved #23


fixed the label/input styling

Description
Updated the styling on the label/input boxes so that the full word or phrase could be read and changed it from grey to white.
Video Link
(https://www.loom.com/share/6fa4f0a1fefd44de9f3872769283929c)
Trello Link
https://trello.com/c/3ODjEaup/389-fix-and-style-labels-for-manage-resources-page
Type of change

[X] Bug fix (non-breaking change which fixes an issue)

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have removed unnecessary comments/console logs from my code
[X] My changes generate no new warnings
[X] I have checked my code and corrected any misspellings
[X] No duplicate code left within changed files
[X] Size of pull request kept to a minimum
[X] Pull request description clearly describes changes made & motivations for said changes

👍


Fix documentation example with TLS context

Fix documentation example related to ambassador integration with istio when using mutual TLS. The name created to the example doesn't match with the name used to the mapping.

Thanks! Since this is a documentation change, do you mind closing this and reopening it against https://github.com/datawire/ambassador-docs so it gets published immediately? (We use git subtree to vendor in the docs into this repository for various technical reasons.)

Sorry, @richarddli
I was reading the doc and opened it on the github's interface without paying enough attention. I'll reopen it.


Flowtype Mutation Queries not working

Describe the bug
This mutation query fails Flowtype checking but works perfectly fine:
  return prisma.createChangelogEntry({
    title: data.title,
    changelog: {
      connect: {
        id: data.changelogId,
      },
    },
    creator: {
      connect: {
        id: viewerId,
      },
    },
  });

Here's the flow error:
Cannot call `prisma.createChangelogEntry` with object literal bound to `data` because:
 - object literal [1] is incompatible with undefined [2] in property `changelog.connect`.
 - in property `id` of property `creator.connect`:
    - Either undefined [3] is incompatible with string [4].
    - Or undefined [3] is incompatible with number [5].
 - object literal [6] is incompatible with undefined [7] in property `creator.connect`.

   api/src/resolvers/Mutation/createChangelogEntry.js:16:38
                                              v
     16|   return prisma.createChangelogEntry({
     17|     title: data.title,
     18|     changelog: {
     19|       connect: {
     20|         id: data.changelogId,
     21|       },
     22|     },
     23|     creator: {
     24|       connect: {
     25|         id: viewerId,
     26|       },
     27|     },
     28|   });
           ^

References:
   api/src/resolvers/Mutation/createChangelogEntry.js:19:16
                        v
     19|       connect: {
     20|         id: data.changelogId,
     21|       },
               ^ [1]
   api/database/client/index.js:1005:13
   1005|   connect?: ChangelogWhereUniqueInput;
                     ^^^^^^^^^^^^^^^^^^^^^^^^^ [2]
   api/src/index.js:17:14
     17|   viewerId?: string,
                      ^^^^^^ [3]
   api/database/client/index.js:1880:24
   1880| export type ID_Input = string | number;
                                ^^^^^^ [4]
   api/database/client/index.js:1880:33
   1880| export type ID_Input = string | number;
                                         ^^^^^^ [5]
   api/src/resolvers/Mutation/createChangelogEntry.js:24:16
                        v
     24|       connect: {
     25|         id: viewerId,
     26|       },
               ^ [6]
   api/database/client/index.js:738:13
    738|   connect?: UserWhereUniqueInput;
                     ^^^^^^^^^^^^^^^^^^^^ [7]

To Reproduce

Add a schema with some relationships
Try to write a mutation query that connects or creates multiple things at once

Expected behavior
It should work
Versions (please complete the following information):

OS: MacOS MOjave
prisma CLI: 1.20.0
Prisma Server: no clue
prisma-client-lib: 1.20.1

Aha, explicitly marking the properties as "covariant" fixes this error!
export interface OrganizationCreateInput {
  name: String,
  +projects?: ProjectCreateManyWithoutOrganizationInput,
  +users?: UserCreateManyWithoutOrganizationsInput,
};

Very interesting, it turns out that interfaces in flow are "invariant" (no subtypes or supertypes are valid) by default, but object types are "bivariant" (or maybe "covariant") by default (all subtypes or supertypes are valid). What we actually want is "covariance" (all subtypes but no supertypes), which is why marking the properties as "covariant" with the + fixes the error. (read the type variance and interface type docs for more info) TIL I learned a lot about type systems!


Repository and Tag fields should not be filled out by default and only have grey suggestion text

Rancher versions: 2.0 master 4/16
Steps to Reproduce:

Add a pipeline
Click on Publish step

Results: In the Publish step, the repository and Tag Fields have default text in them.  This should not be there and only have the grey suggested text that I can easily overwrite.

@will-chan I thought that's what we discussed before. We give the pre-canned stage and steps so that user can start creating a pipeline effortless.

I agree with @tani for a suggestion text. There isn’t a value we can place that an arbitrary user could push to. Also the default tag variable is not a good default since it has invalid characters(in this case ‘:’) . The list of options should be pruned.

Talked with @cloudnautique and we will use the build number(${CICD_EXECUTION_SEQUENCE}) as the default tag.

@tfiduccia the Tag section is appropriate. It can be anything or a value from a list.. not sure a drop down would quite work.
@gitlawr the repository should be suggestion text. There is no value there we can set as a sane default that would work.

@tfiduccia the Tag section is appropriate. It can be anything or a value from a list.. not sure a drop down would quite work.
@gitlawr the repository should be suggestion text. There is no value there we can set as a sane default that would work.

There is a new pipeline design that doesn't include canned pipelines, so this issue is no longer relevant


Shortcuts for Window rescaling

Description of the new feature / enhancement
I'd love to have the opportunity to assign shortcuts to resize windows and move them to certain zones. Also, It'd be great to have the ability to resize windows across multiple zones.
Scenario when this would be used?
I often am in meetings where I'd like to resize the window across multiple zones, as my usual work zones are too small.
Supporting information
No response

In fancyzones? /needinfo

https://learn.microsoft.com/en-us/windows/powertoys/fancyzones#snapping-to-multiple-zones

Hi, thanks for sharing! This is great help. Yet I would like to have Keyboard shortcuts to assign an active window to a certain zone or zones, e.g.:
For a three-column layout, I'd like Ctrl + 1 for the left zone (zone 1), Ctrl + 2 for the middle (zone 2) etc.
And then Ctrl + Q for zones 1 + 2 and Ctrl + W for zones 2 + 3.
Is this possible already and I just don't know?


Fairly bad error in docs

https://docs.arangodb.com/Traversals/UsingTraversalObjects.html
It refers to a fifth parameter being passed to the .visitor function called connections, but it is in fact called connected.

I am not sure I understand.
The docs say this about the function signature for a visitor function:

visitor: function (config, result, vertex, path, connections) { ... }

I think the name of the fifth parameter here is relevant for documentation purposes mainly.
When a custom visitor function is actually used, the parameter can be given any name, as long as it is used consistently inside the function.
For example, the following visitor will work as well (as long as the config's order attribute is set to preorder-expander, which is the only situation that will populate the fifth parameter when the visitor is called):
config.visitor = function (config, result, vertex, path, foobar) {
  if (foobar && foobar.length === 0) {
    require("internal").print("found a leaf-node: ", vertex);
  }
}

Or am I getting something wrong?

Yes, but when using this through the HTTP API (I'm the node.js driver), you don't specify the function signature, only the body in a string, so the parameter names are fixed.

Ok, got it. Makes sense.
I will adjust the docs for this.

Fixes for the documentation have been pushed and will become available when the documentation is re-generated.


[Feature request] Transform emoji string to emoji

This is quite useful and convenient! Thank you @fszymanski
Now I want to transform emoji codes to emoji and I've looked up in the plugin doc, but found nothing about this.
Notice that you already have the  emoji data,  you can make a shortcut to transform emoji string to emoji or make it transform automatically while typing.
nr2char may be helpful.
How do you think about this?

For those coming to this issue seeking a solution, this feature was already implemented.
By default, selecting a suggestion from the pop-up will insert a text
representation of the emoji. To insert the actual emoji, ensure that your
terminal supports emoji fonts and that a suitable font is installed.
Once that's done, enable the `converter_emoji` converter like this:
>
  call deoplete#custom#source('emoji', 'converters', ['converter_emoji'])
<


⚠ Bofrost.be has degraded performance

In 7ccc343, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2631 ms

Resolved: Bofrost.be performance has improved in 03e5cc3.


IdentityAdmin vs IdentityManager

I setup Admin under https://localhost:44301/admin
I setup Manager under https://localhost:44301/manager
Each site is using Cookie Authentication with separate startup code.
Each site is using UseOpenIdConnectAuthentication
Each site is using AdditionalSignOutType "oidc"
Each site has their own cookie name.
using AdminHostSecurityConfiguration (Admin)
using HostSecurityConfiguration (Manager)
Admin has it's own Role name
Manager has it's own Role name
The user is given both roles in the IdSrv.
The issue is that if you login to Admin all is well. Local Storage is good and Cookie is created.
If you jump over to the Manager Url then you get an error. The cookie isn't created. You are forced to logout and then you hit back to login and all is well.
If you jump over to manager. The issue happens.
It seems to be an issue if these sites are under the same domain with sub virtual directories.
I don't think the cookie is the issue. I think that the LocalStorage key that is created first is the issue and it should be a unique name.
I can solve the issue by separating these sites to manager.domain.com or admin.domain.com (But I don't want to do that)
I hope I was clear enough.
Does anyone know how to resolve this or is this a bug?
Also, I have another site where I'm just using local storage only with oidc-client-js and don't have this issue. Seems like the cookie creations process has failed me.

Do the cookies have different names? :)

Yes, they do indeed.
On Jul 29, 2017 3:45 PM, "Bert Hoorne"<EMAIL_ADDRESS>wrote:

Do the cookies have different names? :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/IdentityServer/IdentityServer3.Admin/issues/71#issuecomment-318854445,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADa2bk-KYeCt8NbxjcoDCO1Au0AUfsYJks5sS4vNgaJpZM4OUuzl
.


MG can produce blank output when eroding non-binary WM mask

The erosion of the WM using itk::BinaryErodeImageFilter can fail. Changing to itk::GrayscaleErodeImageFilter appears to fix the problem.

I'm encountering blank outputs with MG for multiple scans. The masks contain 0's and 1's only, but the data type stored in the nifti format mask file is uint8. I will try what you suggested - is it simply changing itk::BinaryErodeImageFilter to itk::GrayscaleErodeImageFilter in petpvcMullerGartnerImageFilter.h (and using the corresponding #include)?


Feature Request: Table View

This is a (multiple allowed):

[ ] bug
[x] enhancement
[ ] feature-discussion (RFC)

Can we have something like this? https://marcosmoura.github.io/vue-material/#/components/table
Multi-column sort feature would be really nifty.

Yeah please include this!
We all need tables

Tried to find some existing examples
Instead i found this:
https://developer.apple.com/ios/human-interface-guidelines/ui-views/tables/
Which seems to show Tables as being what we would call a list

+1

+10

Question is what within the iOS theme would it look like

Any news regarding that? I saw it is under development, do you (development) have any additional info?
Thank you.

U

Unless you

Speaking of which it would be good to get @nolimits4web 's perspective

@ZanderBrown , I saw it is under development, here: https://trello.com/b/AuvkBFfx/framework7-roadmap

Added by commit 45004e1cdf2ddfd739e249412d5b79c45fcdf9bd

Wow great @nolimits4web

@nolimits4web, you are the man. You can count on $100 donation for this 👍

Hello
any idea when it can be released, please?

See #1439


[BUG]

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[x] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.8.0
What problem did you encounter?

So, after I deleted one of the older versions of Bloxstrap without disabling this setting (maybe 2.7.0?) it won't let me disable it. I don't know how to fix it
Bloxstrap Log
N/A

try going to the mods folder by typing  %AppData% in the explorer bar and then clicking enter then in that tap click appdata then Local then Bloxstrap then modifications then ExtraContent then places and deleting the mobile.rbxl file

try going to the mods folder by typing %AppData% in the explorer bar and then clicking enter then in that tap click appdata then Local then Bloxstrap then modifications then ExtraContent then places and deleting the mobile.rbxl file

theres no mobile.rbxl file? am i doing something wrong

try going to the mods folder by typing %AppData% in the explorer bar and then clicking enter then in that tap click appdata then Local then Bloxstrap then modifications then ExtraContent then places and deleting the mobile.rbxl file

theres no mobile.rbxl file? am i doing something wrong

nvm


Cannot read property 'on' of undefined

I have this error when including <DevTools />

Using these packages:
"mobx": "^5.9.4",
"mobx-react": "^6.0.2",
"mobx-react-devtools": "^6.1.1",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "^3.0.1",

Same issue here after updating from version 6.0.3 to 6.1.1 (in addition to several other packages). Reverted back to version 6.0.3 and I'm still getting the error. Must be related to other packages being updated? I have all the same package versions @zbeyens listed.
This is what I had previously that was working (with 6.0.3):
"mobx": "^5.9.0",
"mobx-react": "^5.4.3",
"mobx-react-router": "^4.0.5",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.8",

Note that the DevTools package is not compatible with mobx-react@6 (see the
changelog of that package)
On Fri, May 31, 2019 at 6:25 PM Nicholas Westbrook<EMAIL_ADDRESS>wrote:

Same issue here after updating from version 6.0.3 to 6.1.1 (in addition to
several other packages). Reverted back to version 6.0.3 and I'm still
getting the error. Must be related to other packages being updated? I have
all the same package versions @zbeyens https://github.com/zbeyens
listed.
This is what I had previously that was working (with 6.0.3):
"mobx": "^5.9.0",
"mobx-react": "^5.4.3",
"mobx-react-router": "^4.0.5",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.8",
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mobxjs/mobx-react-devtools/issues/117?email_source=notifications&email_token=AAN4NBBWSIYC2FGAXA6T3L3PYFGOFA5CNFSM4HR3SZU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWVWWKA#issuecomment-497773352,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAN4NBAM65K7TGPW6LWVX4TPYFGOFANCNFSM4HR3SZUQ
.

The MobX-react devtools (either as package or browser plugin) are no longer supported. Instead, the following tools can be analyzed to analyze your mobx-react application:

Visualizing re-rendering of components is now part of the standard React devtools
The dependency tree of a compent tree can be inspected by showing the state of the useObserver hook in the React devtools (at the time of this release it displays as just Object, but the next iteration of the React devtools will support those properly)
Spying on events can still be done with the MobX-react browser plugin, through the mobx-logger package or manually by using the spy or trace utility from the mobx package.


Enhancements: Comment Replies, Google Login Info, Virtual Tickets, Event Filters, and UI Improvements

Description:

This pull request introduces several new features and improvements:

Changes made:

Reply to Comments: Added functionality to reply to existing comments on events.
Contributor View: Event contributors can now be viewed directly on the event page.
Google Login Enhancements: Gather additional user information when logging in with Google.
Virtual Ticketing: Implemented support for virtual tickets, enhancing online event accessibility.
Event Filters: Added filters to distinguish between public and private events on the event listing page.
Organizer and Account Info Pages: Improved UI for the organizer and account information pages to enhance user experience.

Forget to add secret variable

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests
JS Bundle Analysis - Avoid shipping oversized bundles

Good work all features are added and works smoothly.

Add redundant files has been removed.


tree.getAll not detecting DragAndDrop changes

Hi.
The tree component has been working pretty well for me except for one thing: tree.getAll() works correctly after addNode() and removeNode(), but not when using DragAndDrop to rearrange the order of nodes. The DragAndDrop functionality is visually correct, but calling getAll() returns the tree data as if nothing moved.
From what I can see in the code, it indeed looks like only the visuals are updated but the actual node data isn't getting updated.
In my application, I have a tree and the user is able to add, remove, and rearrange the tree. Then there's a "save changes" button that processes the data from getAll(), so it would be nice if the tree state would be updated along with D&D.
For now I can just remove nodes and re-add them, but there can be potentially hundreds of nodes in a single tree for my application so it would be much more convenient to D&D. I could also try to parse the tree HTML which will not be fun. Any other interim suggestions would be appreciated.
Thank you.

I tried the development version from you commit (70ba903). As far as i can tell this does not work correctly. If I have a list with 3 elements on the same level and i move the top one to the bottom the view works fine but getAll() is wrong. The former top element is represented as a child of the former middle element.
Initial situation (view and getAll):

Dog
Cat
Parrot

View after Drag&Drop:

Cat
Parrot
Dog

getAll after Drag&Drop:

Cat
==> Dog
Parrot


Cannot create new NFT collection on testnet (due to invalid royalty account)

Hey Matt! I'm unable to create new NFT collections on testnet - looking in the error log it shows me "receipt for transaction<EMAIL_ADDRESS>contained error status INVALID_CUSTOM_FEE_COLLECTOR"
This makes me assume that the account ID of your testnet acc is not existing anymore after the testnet reset :)

lol, thanks mate!

Long Live The Testnet Reset! Hurray hurray! :(

https://github.com/trustenterprises/hedera-serverless-api/commit/7536c9daa5337d43c1ebd15ee82806bf764d62ce


Crashing with Prisoner Arena mod

Describe the bug
Using the Prisoner Arena's mod( https://steamcommunity.com/sharedfiles/filedetails/?id=2022581505 ), the game crashes every time it starts preparing the arena
To Reproduce
Steps to reproduce the behavior:

Make Prison Arena
Click Prison Arena
Choose Prisoners
Click Brawl
Game crashes when its in the prepare phase

Mod List
Modlist below
https://gist.github.com/HugsLibRecordKeeper/decbd0f496072a7abb3d0d00c3dad34a
Screenshots
If applicable, add screenshots to help explain your problem.

Rimworld crashing, i dont know what else to show other than that, no idea what logs I can give.

Please see:

Q&A

Mod Compatibility

Known Issues

The Community Modpack

This Mod Order Guide

Address the problems in your mod list before asking for help or submitting errors & bug reports!

You can submit a bug report here

we need the HugsLib log and player log if possible

The link for the modlist is the hugslib log
HugsLib log:
https://gist.github.com/HugsLibRecordKeeper/decbd0f496072a7abb3d0d00c3dad34a
Player log:
Player.log

This occurs in <IP_ADDRESS>.
Error Log:
error.log
Player Log(bruh i see kernel):
Player.log
Save File (everything is set up, just go to the arena just above the hospital and click brawl.):
https://drive.google.com/file/d/1_wVE2svx-t3BsI8tPqd8NRiRFSTringJ/view?usp=sharing

Still happens in <IP_ADDRESS>

tested with 2.1.5 following the instructions and savefiles provided by previous testers; the game crashed immediatelly after hitting brawl.

still happens in <IP_ADDRESS>, I noticed something odd if you start a fight between an animal and a prisoner the game doesn't crash, but you cannot cancel it, if you cancel it th prisoner ai brokes and the animal atacks the prisoner until it downs them

CTDs should be fixed but there may be some other race conditions in there I didn't catch. So Errors may occur in the log.


Mysql connection not close issue

Here is code example of serverless and mysql2 with knexjs lib
in the AWS lambda function not close connection after idle time set 1000ms
used libs

serverless
Mysql2
Knexjs v0.95

import knex from "knex";
import mysql2 from "mysql2";

if (typeof rdsClient === "undefined") {
  // Connect to the MySQL database
  var rdsClient = knex({
    client: "mysql2",
    connection: {
      host: "localhost",
      port: 3306,
      user: "test-user",
      password: "test-password",
      database: "test-db",
      pool: {
        min: 0,
        max: 1,
        idleTimeoutMillis: 1000,
      }
    }
  });

}

async function fetchUsers() {
    return await rdsClient.select().from('users');
}

fetchUsers();

It continuously increase and DB connection and it close around after 10 minuets
Thanks,

Please add some code allowing to reproduce the problem. The code above cannot behave like described, since it doesn't even create any connections, since no queries to DB is done.

Above code used as separate file and import where it needed in the AWS lambda function using serverless.
when request comes to lambda function it will going to create new connection and not close.
I used idleTimeoutMillis flag for close connection if more then 1 second open idle time(if not used that connection).
Simple use any lambda function this issue will generate.
Please let me know want more detail.
Thanks,

when request comes to lambda function it will going to create new connection and not close.

The code above does not create any database connections. Knex doesn't create connections until some db queries are made.

Added simple query at detail.
async function fetchUsers() {
    return await rdsClient.select().from('users');
}

fetchUsers();

Maybe the process is just killed before DB connection is closed, though it is strange if it stays open if process dies. You could add await rdsClient.destroy() before ending.

Above is just one example I have multiple query at many place and don't know or detect queries is running or finish all of them.
So where to add destroy method/function.
I have added tren pool parameters and function destroyRequest and destroySuccess but all connection are not going to close.
It open 10 connection and close only 6 or 7.

Umm... how does AWS lambda know that your function has done its work and its context can be destroyed? You do wait that all the
queries returns and only after that return from the lambda function?

Have you read this one? https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html currently it just sounds that you are not using it correctly. Try to make reduced test case of your code in a way that you can pinpoint where things doesn't work anymore.
Anyways basic principle is that you should do event handler:
exports.handler = async function(event) {
  const retVal = await someKnexQueryStuff();
  ...
  await knex.destroy();
  return retVal;
}

Closing as this doesn't seem to be knex bug, but usage support.

It seems issue with lambda or serverless not in knexjs.
Thank you for clear this things.

Will raised issue on AWS support.
You can close this thread.
Thanks for quick response.


Use proper MiqExp operators for datetime filtering

Filtering results in the API on date/datetime attributes can be done,
but there's not exactly a 1-1 relationship between the syntax of the
filtering API and that of MiqExpression, which supports it.
Using comparison operators to filter on dates just happens to work
because arel, which is in turn supporting MiqExpression, knows how to
deal with it. But it's not officially supported - the documented way to
form expressions with datetimes is by using the date time operators:
"IS", "BEFORE", "AFTER", "FROM", "IS EMPTY", and "IS NOT EMPTY". Using
an unsupported operator in an expression that has to be evaluated in the
context of Ruby (i.e. it can't be completely evaluated in SQL because of
the presence of one or more virtual attributes) will break.
The best we can do most immediately is to provide a simple mapping for a
subset of the operators:

Filter API
MiqExpression

>
AFTER

<
BEFORE

=
IS

Anything else will result in a bad request, which is better than a 500.
Fixes https://github.com/ManageIQ/manageiq/issues/12648
@miq-bot add-label api, bug
@miq-bot assign @abellotti

While I'm ok with Time.zone.parse() for the verification (consistent with MiqExpression), the syntax of what it supports seems to be far greater than ISO8601 (correct me if I'm wrong).
I think for the purpose of documentation and what we support from the API perspective (i.e. our sanity), let's stick to ISO8601 examples in the specs. i.e. at least yyyy-mm-dd and yyyy-mm-ddThh:mm:ssZ even though a lot more will work.

let's stick to ISO8601 examples in the specs. i.e. at least yyyy-mm-dd and yyyy-mm-ddThh:mm:ssZ

ISO8601 may be problematic - specifically in that I don't believe we support the timezone offset.

hmm, so it's really just a subset of ISO8601.  We have UTC  (....Z) signature though, maybe let's clearly define what we support in the specs for now and add tests.  let's sync up offline.

Thanks @imtayadeway for the update, will merge when 🍏
Recap here for documentation purposes:
  filter[]=attr operator value

  For operators of <, > and =

  Adding support for datetime values supporting the following ISO8601 subset:

  YYYY-MM-DD
  YYYY-MM-DDTHH:MM:SSZ


Updated

Just removed slut because of bot interference

From CONTRIBUTING.md:

If you want to make a contribution, create a fork, then push the changes you make to the dev branch (Jonas747/yagpdb/dev). This is key for larger commits and edits to important / complicated parts of the bot so it can be tested safely without breaking everything.

TL;DR don't PR To master : )


fix: resolve bug where onAction is executed multiple times

Closes https://github.com/adobe/react-spectrum/issues/6643
Menu Component

Case of RAC
The following table shows what triggers the onAction passed to Menu or MenuItem

| Menu only | MenuItem only | Menu and MenuItem
-- | -- | -- | --
item.props |   | ⭕ | ⭕
props |   | ⭕ | ⭕
menuData | ⭕ |   |

item.props and props both contain the same onAction passed to the MenuItem, which is the cause of the bug.
First of all, props.onAction is deprecated, so it is preferable not to use it.
It is also problematic that when onAction is passed to both Menu and MenuItem, the onAction passed to Menu is not executed

Based on the above, it has been modified so that it executes as follows:
| Menu only | MenuItem only | Menu and MenuItem
-- | -- | -- | --
item.props |   | ⭕ | ⭕
props |   |   |
menuData | ⭕ |   | ⭕

Case of react-spectrum
In @react-spectrum's Menu, the onAction received in the Menu's props was being passed to the MenuItem's props. However, since it can be obtained from menuData, onAction is no longer passed to MenuItem."

✅ Pull Request Checklist:

[x] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
I have added tests for Menu as mentioned in the issue, as well as for GridList and ListBox, which are also collection components. There may be other collections with onAction, so please check those as well.

🧢 Your Project:

@snowystinger
Thank you for your comment!
First, to clarify, as described in the property explanation, onAction is originally treated as Menu's onAction, but in the example you provided, it changes to be treated as MenuItem's onAction. We need to decide which one to prioritize.
In my case, I prioritized the former and made the correction. However, my perspective might be incorrect as I have only recently started looking at the code.
If we decide to treat it as MenuItem's onAction, it would be best to change it as you suggested. However, in the react-spectrum code, Menu's onAction is passed as a prop to MenuItem, resulting in props.onAction and menuData being executed twice, causing the same bug. Therefore, a fix is necessary in any case.

Ah, I see, we pass through onAction to the props of MenuItem even though we should already have access to that value. So we're missing some tests.
I was trying it out locally, I'll go ahead and push the changes I think make sense in a moment.


iOS compatibility and bugfixes

Audio playback on mobile/iOS bugfix by using Waud.js
iOS bugfix where the PixelPreview is overlaid by the controls

What is still not working: setting pixels on iOS. on Android it works.


how to use mssql service from within app?

Hi Alex,
Thank you publishing your code. I am trying to read and write pandas dataframe to azure sql server from pivotal python. the code runs fine on my laptop but when it is deployed on PCF, it throws error:
ERROR:root:('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")

I understand that service binding with the app exposes connection input as env variables, but don't know how to create the connection. Thanks

Hi @mhadi813,
That code example is fairly old, so there might be changes in CF that might render it as not working. Having said that, I don't think there is something in the example (beyond old driver versions maybe) that shouldn't work even today.
I would like to clarify one thing first - this example is intended to be run as a custom Docker container on CF, and not as the built-in CF Linux image. Did you check whether your code works by packaging it into the container and running the container locally as described in README.md?

Thanks @alexpulver for explaining. I'm new to docker, so couldn't tell whether I could use your code without docker. I finally ended up using apt and python buildpacks to install ms sql drivers and pyodbc.

First of all glad to hear you resolved this! Also, I think I confused you a bit - the local debugging should be done in Docker (because of various dependencies like FreeTDS that might not be available on your system). But the full code here can run as Python buildpack on CF Linux - that's where I was wrong in my previous comment.
There are a few special files in the repository that allow all of this to work:

bin/post_compile - this file is a hook recognized by Python buildpack that installs the FreeTDS driver after all Python packages have been installed. The reason it is done last, is because FreeTDS driver requires ODBC to be installed already - see --with-odbc-nodm parameter in the script. ODBC is installed as part of Python packages installation
environment.yml - if present, Python buildpack will use miniconda instead of pip to install dependencies. This is useful when Python packages rely on compiled binaries that pip can't install - like ODBC in this case (if I remember correctly)
manifest.yml - sets the environment variables that FreeTDS driver uses to locate ODBC configuration
runtime.txt - if present, Python buildback uses the specified Python version for runtime environment
config/odbcinst.ini - ODBC configuration used by FreeTDS driver as mentioned above. The driver uses odbcinst.ini name for lookup, so the file must be names exactly like this. You can see that driver location in the INI file has base directory of /app/vendor. This is where the bin/post_compile hook installs the driver to

Hope that makes sense now :).

Thank alot, this is super help.


Verify converted code by kotlinc

Ideally, it should be an additional check inside tests.
Another possible solution is marking testData as source set.

I'm actively working on this,  including fixing the redeclarations, etc.

ts2kt is obsolete, use https://github.com/Kotlin/dukat instead and there we do have tests for compilation phase