[Feature Request]: How can I "define" many LLM providers (with their creds) and then use them accordingly?

Problem Description
For now, it's hard to switch between LLM providers. Every time I have to switch from one LLM provider to another, I need to get the API key and copy/paste manually, then put the URL of the other LLM provider, etc.
This is not very efficient, I think. It would be great to have a way to set up many LLM providers and their models, then switch between them using a drop down list. This also will make it easier for masks. Today, a mask with an LLM that belongs to an LLM provider that's not my "current" LLM, will fail; I have to switch manually to make it work.
Solution Description
So, I believe the definition of LLM/LLM provider should be done in the setup, and then each conversation/mask should use the credentials defined with the LLM provider details required to call the LLM.
Alternatives Considered
I'm already using https://big-agi.com/ because Next-Chat doesn't support this feature unfortunately
Additional Context
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/discussions/4669

Problem Description
For now, it's hard to switch between LLM providers. Every time I have to switch from one LLM provider to another, I need to get the API key and copy/paste manually, then put the URL of the other LLM provider, etc.
This is not very efficient, I think. It would be great to have a way to set up many LLM providers and their models, then switch between them using a drop down list. This also will make it easier for masks. Today, a mask with an LLM that belongs to an LLM provider that's not my "current" LLM, will fail; I have to switch manually to make it work.
Solution Description
So, I believe the definition of LLM/LLM provider should be done in the setup, and then each conversation/mask should use the credentials defined with the LLM provider details required to call the LLM.
Alternatives Considered
I'm already using https://big-agi.com/ because Next-Chat doesn't support this feature unfortunately
Additional Context
#4669

Maybe you can deploy the one-api(https://github.com/songquanpeng/one-api), and add different provides to the one api.

We are developing v3 of NextChat, will publish more details sooon
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/4622

alright, thank you


Lavender Furniture Guide

I've added a page for Lavender and a guide on "Adding Furniture" using Lavender.
Additional I've also added a bare bones AssetBundles.md


A0301/A0302: Consider adding major/minor fault

This alarm is currently a minor fault. Consider adding a version where this is a major fault

we add two new alarms:

major detector hardware error
major detector logic error

Suggestion added in draft


[Collections] Improve error handling

Make sure errors returned by JSONPackageCollectionProvider have good string representation.
rdar://77530631

@swift-ci please smoke test


Fenicsx rewrite -- Python code

Fenicsx is now stable enough and well documented enough to be used. The Python code is written for legacy fenics and should be replaced. Also Fenicsx allows for the direct manipulation of entries in the Function array, whereas in legacy fenics we can only work on copies.
In legacy Fenics
v.vector().get_local() returns a copy of the vector.
In Fenicsx
v.vector.array returns a numpy vector that points to the data directly -> No copy
Exploiting this, could reduce the memory use of the library by up to 2/3

With regard to the python code, the only class to rewrite would be MechanicsProblem (unless I am overlooking something).
For the general design, I think that we could keep the existing structure, that is we have global arrays holding the strain, stress and stiffness (algorithmic) tangent values (for all integration points) which are then passed by reference (no copy) and used by IpLoop which manages which integration point should use what kind of constitutive law to compute stresses (and tangents) from strain.


Fix database_create_command? check

Currently this check doesn't work with rails db:create command since rails replaces ARGV. This fix makes it work for both rails and rake versions.

Hi @tycooon the change looks good. Thanks for taking the time to open the PR!

Thank you!
By the way, I found this issue while working on adding Sequel support for rails dbconsole  command. It looks like Rails commands are not very extendable, but I found some monkey-patchey way to make it work (only for pg for now).
You can find a draft of the code here https://github.com/umbrellio/umbrellio-sequel-plugins/blob/add-console-task/lib/umbrellio_sequel_plugins/rails_commands.rb. This file should be required in Rails boot.rb file since it patches the Rails::Command::DbconsoleCommand class :(
Would you be intrested in supporting this feature in this gem?


AURO MIGRATION: Update node to v22

Resolves AlaskaAirlines/auro-templates#6
Summary by Sourcery
Update project settings and configurations to support Node.js v22. Update documentation to reflect the changes. Update CI workflows to test on Node.js v22 instead of v18.
Build:

Update Node.js version to v22

CI:

Test on Node.js v22 instead of v18

Documentation:

Update contributing guidelines with innersourcing information, rebase instructions, conventional commit guidelines, and issue submission process. Update issue templates with exit criteria and labels. Update code of conduct contact information.

:tada: This PR is included in version 3.2.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


null-character checking fixes to mesh_badge app

Two patches for mesh_badge app that fix null-character checking

@kolodgrz FYI - you might want to sync up your work on top of this


sct_fmri_modo does not add correct path to fslview display

When sct_fmri_moco is used with -ofolder option, at the end when it suggest the fslview path to overlay the results, it does not add the -ofolder path to the generated files to be displayed in fslview.

I tried this with current SCT:
sct_fmri_moco -i fmri/fmri.nii.gz -g 4 -x nn -r 0 -ofolder test-issue/

And got the output:
Done! To view results, type:
fsleyes test-issue/fmri_moco.nii.gz fmri/fmri.nii.gz &

So, the ofolder is present as expected. Closing.


fix: filter and discard points whose time is out of x Domain Range

Since the x-axis ticks are aligned with interval, some response points may out of x-Domain time range. However, the y-axis tick will still be affected by these out-of-range points.

Codecov Report

Merging #1411 (42123d6) into master (0bdeafc) will decrease coverage by 1.84%.
The diff coverage is n/a.

:exclamation: Current head 42123d6 differs from pull request most recent head 3b5cb73. Consider uploading reports for the commit 3b5cb73 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1411      +/-   ##
==========================================
- Coverage   29.44%   27.59%   -1.85%
==========================================
  Files         128       93      -35
  Lines       10516     9972     -544
  Branches       99        0      -99
==========================================
- Hits         3096     2752     -344
+ Misses       7240     7040     -200
  Partials      180      180

Flag
Coverage Δ

be_unit_test
27.59% <ø> (ø)

e2e_test
?

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

Continue to review full report at Codecov.

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


Databricks Cluster Logs

Are the Cluster Logs available via the Diagnostic logging feature documented in this page different to the Cluster Logs documented here: https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery
I assume that the diagnostic logs documented in this page related to cluster only contain the logs related to the API calls made against the Clusters API. It will not collect the Spark driver, worker, and event logs.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: aa60fa41-f753-9c55-c799-a870bdb219a4
Version Independent ID: 786b27ec-7f4d-ad35-e26d-5832c072536e
Content: Diagnostic logging in Azure Databricks - Azure Databricks
Content Source: databricks/administration-guide/account-settings/azure-diagnostic-logs.md
Service: azure-databricks
GitHub Login: @mamccrea
Microsoft Alias: mamccrea

@pnarsi, Using Diagnostic settings from Azure Portal you can send logs to Azure Monitor.

The following articles show how to send monitoring data from Azure Databricks to Azure Monitor, the monitoring data platform for Azure.

Send Azure Databricks application logs to Azure Monitor
Use dashboards to visualize Azure Databricks metrics
Troubleshoot performance bottlenecks

Reference: Monitoring Azure Databricks

Thanks @CHEEKATLAPRADEEP for the prompt response
Unfortunately I don't believe your response addresses my question.
As per your screenshot via the Azure Portal we can setup databricks diagnostic logs. Among other things this diagnostic setting collect logs related to clusters. Furthermore when I actually spin up a databricks cluster there is also an option to send "cluster logs: to a specific a location on DBFS. This is other logging feature is documented here:  https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery
Are these diagnostic "cluster logs" different to the cluster logs that can be configured as part of initial cluster setup to be sent to DBFS? It is unclear from the Microsoft documentation what the difference is between these two different cluster logs are and whether I need to configure both.

@pnarsi, Cluster log delivery delivers Spark driver, worker, and event logs.
Where as "Diagnostic settings are used to configure streaming export of platform logs and metrics for a resource to the destination of your choice".
'Add Diagnostic setting' above to configure the collection of the following data:

dbfs
clusters
accounts
jobs
notebook
ssh
workspace
secrets
sqlPermissions
instancePools

You can find a Guide on Monitoring Azure Databricks on the Azure Architecture Center, explaining the concepts used in this article - Monitoring And Logging In Azure Databricks With Azure Log Analytics And Grafana.
To provide full data collection, we combine the Spark monitoring library with a custom log4j.properties configuration. The build of the monitoring library for Spark 2.4 and the installation in Databricks is automated through the scripts referenced in the tutorial and available at https://github.com/algattik/databricks-monitoring-tutorial/.
We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.

Now that the Spark monitoring library does not support Databricks runtime for versions 11 and the coming ones, is there any alternative to collect logs from a Databricks workspace?


EventHubs: Adding retry for create-batch api

The following error with stack-trace appeared while invoking the 'CreateBatch' api (the companion api of 'Send') from processor handler. Stack-trace analysis shows - the 'CreateBatch' API using an about-to-expire cached object resulted in the error. SDK internally caches various connection objects - TCP, session, and send-link. Per stack trace, the 'CreateBatch' call acquired a cached session-connection object and waited for it to be active to create the send-link. While waiting, the TCP connection aborted, disconnecting the session connection, which caused the error. The hosting networking layer likely initiated the TCP disconnect (e.g., con-reset). The error from 'CreateBatch' has the is-transient-error field set to true,
AmqpException(true, "Cannot create send link from a closed session.", sessionHandler.getErrorContext())  indicating it is retriable. A retry would have updated the cache with new connection objects.
Error in event processing callback Cannot create send link from a closed session., errorContext[NAMESPACE: <namespace>.servicebus.windows.net. ERROR CONTEXT: N/A, PATH: <eh-name>/Partitions/13]
Stacktrace:

com.azure.messaging.eventhubs.implementation.PartitionProcessorException:
   at com.azure.messaging.eventhubs.PartitionPumpManager.processEvents (PartitionPumpManager.java:353)
   at com.azure.messaging.eventhubs.PartitionPumpManager.lambda$startPartitionPump$2 (PartitionPumpManager.java:244)
   at reactor.core.publisher.LambdaSubscriber.onNext (LambdaSubscriber.java:160)
   at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.runAsync (FluxPublishOn.java:440)
   at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.run (FluxPublishOn.java:527)
   at reactor.core.scheduler.WorkerTask.call (WorkerTask.java:84)
   at reactor.core.scheduler.WorkerTask.call (WorkerTask.java:37)
   at java.util.concurrent.FutureTask.run
   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run
   at java.util.concurrent.ThreadPoolExecutor.runWorker
   at java.util.concurrent.ThreadPoolExecutor$Worker.run
   at java.lang.Thread.run

Inner exception com.azure.core.amqp.exception.AmqpException handled at com.azure.messaging.eventhubs.PartitionPumpManager.processEvents:
   at com.azure.core.amqp.implementation.ReactorSession.createProducer (ReactorSession.java:467)
   at com.azure.core.amqp.implementation.ReactorSession.createProducer (ReactorSession.java:449)
   at com.azure.messaging.eventhubs.implementation.EventHubReactorSession.createProducer (EventHubReactorSession.java:84)
   at com.azure.messaging.eventhubs.implementation.EventHubReactorAmqpConnection.lambda$createSendLink$0 (EventHubReactorAmqpConnection.java:117)
   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:125)
   at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
   at reactor.core.publisher.Operators$MonoSubscriber.complete (Operators.java:1802)
   at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext (MonoFlatMap.java:249)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete (MonoIgnoreThen.java:292)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext (MonoIgnoreThen.java:187)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext (MonoIgnoreThen.java:236)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete (MonoIgnoreThen.java:203)
   at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onComplete (MonoPeekTerminal.java:299)
   at reactor.core.publisher.SerializedSubscriber.onComplete (SerializedSubscriber.java:146)
   at reactor.core.publisher.SerializedSubscriber.onComplete (SerializedSubscriber.java:146)
   at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.onComplete (FluxTimeout.java:234)
   at reactor.core.publisher.MonoNext$NextSubscriber.onComplete (MonoNext.java:102)
   at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onComplete (FluxFilterFuseable.java:171)
   at reactor.core.publisher.FluxReplay$SizeBoundReplayBuffer.replayNormal (FluxReplay.java:868)
   at reactor.core.publisher.FluxReplay$SizeBoundReplayBuffer.replay (FluxReplay.java:965)
   at reactor.core.publisher.FluxReplay$ReplaySubscriber.onComplete (FluxReplay.java:1372)
   at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete (FluxPeek.java:260)
   at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete (FluxPeek.java:260)
   at reactor.core.publisher.FluxMap$MapSubscriber.onComplete (FluxMap.java:144)
   at reactor.core.publisher.FluxDistinctUntilChanged$DistinctUntilChangedSubscriber.onComplete (FluxDistinctUntilChanged.java:173)
   at reactor.core.publisher.FluxReplay$SizeBoundReplayBuffer.replayNormal (FluxReplay.java:868)
   at reactor.core.publisher.FluxReplay$SizeBoundReplayBuffer.replay (FluxReplay.java:965)
   at reactor.core.publisher.ReplayProcessor.tryEmitComplete (ReplayProcessor.java:465)
   at reactor.core.publisher.SinkManySerialized.tryEmitComplete (SinkManySerialized.java:64)
   at reactor.core.publisher.InternalManySink.emitComplete (InternalManySink.java:68)
   at com.azure.core.amqp.implementation.handler.Handler.close (Handler.java:155)
   at com.azure.core.amqp.implementation.ReactorSession.lambda$disposeWork$29 (ReactorSession.java:748)
   at reactor.core.publisher.MonoRunnable.call (MonoRunnable.java:73)
   at reactor.core.publisher.MonoRunnable.call (MonoRunnable.java:32)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext (MonoIgnoreThen.java:228)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete (MonoIgnoreThen.java:203)
   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onComplete (Operators.java:2023)
   at reactor.core.publisher.SerializedSubscriber.onComplete (SerializedSubscriber.java:146)
   at reactor.core.publisher.SerializedSubscriber.onComplete (SerializedSubscriber.java:146)
   at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.onComplete (FluxTimeout.java:234)
   at reactor.core.publisher.Operators.complete (Operators.java:137)
   at reactor.core.publisher.MonoWhen.subscribe (MonoWhen.java:93)
   at reactor.core.publisher.Mono.subscribe (Mono.java:4490)
   at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext (MonoIgnoreThen.java:263)
   at reactor.core.publisher.MonoIgnoreThen.subscribe (MonoIgnoreThen.java:51)
   at reactor.core.publisher.Mono.subscribe (Mono.java:4490)
   at reactor.core.publisher.Mono.subscribeWith (Mono.java:4605)
   at reactor.core.publisher.Mono.subscribe (Mono.java:4318)
   at com.azure.core.amqp.implementation.ReactorSession.disposeWork (ReactorSession.java:752)
   at com.azure.core.amqp.implementation.ReactorSession.lambda$closeAsync$7 (ReactorSession.java:276)
   at com.azure.core.amqp.implementation.handler.DispatchHandler.onTimerTask (DispatchHandler.java:32)
   at com.azure.core.amqp.implementation.ReactorDispatcher$WorkScheduler.run (ReactorDispatcher.java:207)
   at org.apache.qpid.proton.reactor.impl.SelectableImpl.readable (SelectableImpl.java:118)
   at org.apache.qpid.proton.reactor.impl.IOHandler.handleQuiesced (IOHandler.java:61)
   at org.apache.qpid.proton.reactor.impl.IOHandler.onUnhandled (IOHandler.java:390)
   at org.apache.qpid.proton.engine.BaseHandler.onReactorQuiesced (BaseHandler.java:87)
   at org.apache.qpid.proton.engine.BaseHandler.handle (BaseHandler.java:206)
   at org.apache.qpid.proton.engine.impl.EventImpl.dispatch (EventImpl.java:108)
   at org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch (ReactorImpl.java:324)
   at org.apache.qpid.proton.reactor.impl.ReactorImpl.process (ReactorImpl.java:292)
   at com.azure.core.amqp.implementation.ReactorExecutor.run (ReactorExecutor.java:91)
   at reactor.core.scheduler.SchedulerTask.call (SchedulerTask.java:68)
   at reactor.core.scheduler.SchedulerTask.call (SchedulerTask.java:28)
   at java.util.concurrent.FutureTask.run
   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run
   at java.util.concurrent.ThreadPoolExecutor.runWorker
   at java.util.concurrent.ThreadPoolExecutor$Worker.run
   at java.lang.Thread.run

API change check
API changes are not detected in this pull request.


CF CLI execution , DOS window opens but closes immediatly

I installed CF V6.10 on Windows 7 64-bit machine. Install finishes fine. When try to execute CF command from the DOS prompt ( after navigating to c:..\cloud foundry), a new window opens, I see few lines flashing , but the new window closed immediately.
Vasu Ram
<EMAIL_ADDRESS>

Does it happen in other directory other than c:...\cloud foundry? CF itself doesn't open new terminals, maybe something else is going on here.

It was a problem from my side.
I thought, I closed this by updating my original post.
Sorry.
RegardsVasu Ram
 On Thursday, March 12, 2015 4:33 PM, Simon Leung<EMAIL_ADDRESS>wrote:

Does it happen in other directory other than c:...\cloud foundry? CF itself doesn't open new terminals, maybe something else is going on here.—
Reply to this email directly or view it on GitHub.

Even I am facing the same issue. the cf CLI is getting opened and is getting closed immediately. I have simple installed the cf-cli-installer-6.22.2


Support for using Asciidoc rather than Markdown

I'm submitting a ...

[ ] language request
[ ] bug report
[X] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary

It would be really handy if the tool was also supporting writing ADR using Asciidoc.
Asciidoc is quite popular too, and has interesting 3rd party tooling for aggregating documentation or publishing documentation to Confluence for example.
So it would be nice if the adr tool would let you chose between Markdown and Asciidoc, while keeping Markdown as default.

haha, welcome to PR

@murdos @phodal I've submit a PR which add support for asciidoc.
Unless I've missed some tests, I think almost all current markdown supported functionalities should work with asciidoc.
You can try it if you want.

@jygastaud works well, already publish new version 1.5.0.

Wow that was quick.
Thanks @phodal

@jygastaud : Awesome, thanks!!!

Small fix pushed in #56


Optional in return of activeShotBlock

The return type of getActiveShotBlock in ControllerManager should be changed to Optional<ShotBlock>. This removes unnecessary nullPointerExceptions in current and future code.
An optional is created via this method:
SoundCard soundcard = new Soundcard();
Optional<Soundcard> sc = Optional.of(soundcard);

@geenen124 is this still in the planning?


Revert "[MXNET-1198] MXNet Java API"

Reverts apache/incubator-mxnet#13162 to be fair for everyone who commits to this one

@mxnet-label-bot add [pr-awaiting-merge]

Is it intentional that you are reverting two commits?

Is it intentional that you are reverting two commits?

@marcoabreu I am not sure, this just came up when I click the revert button. But it looks like +0 and -0.

Please don't merge it for now until figuring out how to merge commit with all commits history of a branch

@mxnet-label-bot update [pr-work-in-progress]

Close this since have the new one https://github.com/apache/incubator-mxnet/pull/13309


metron_agent health and cc_uploader http ports are the same

There's a conflict between the default values of the metron_agent health port and the cc_uploader http port. They are both using 9090. I found this out by chance while I was upgrading to Diego 1.16.1 and the cc_uploader job failed because the port was already in use (which is weird because I have enabled mTLS so it should use 9091, am I right?):
https://github.com/cloudfoundry/capi-release/blob/develop/jobs/cc_uploader/spec#L34
https://github.com/cloudfoundry/loggregator/blob/develop/jobs/metron_agent/spec#L106

Thanks for reporting this issue, @paolostivanin. The Loggregator team is aware that their new health-check endpoint port collides with the cc-uploader port, and has https://www.pivotaltracker.com/story/show/146101187 to address it. That port is configurable via the metron_agent.health_port BOSH property (https://github.com/cloudfoundry/loggregator/blob/v89/jobs/metron_agent/spec#L104-L106), so in the meantime you could alter the manifest to have metron use a different port. Since we expect this issue to be fixed soon, I don't think we'll make either port configurable via property override in the diego-release-generated manifest.
When I ran into this issue on BOSH-Lite recently, I found that the metron agent would tolerate not binding to that health port, whereas the cc-uploader will always fail if it cannot bind. So I suspect we didn't detect this issue earlier because the cc-uploader was generally winning the race to bind on that port. You might be able to redeploy and get lucky, or manually stop the metron agent, start cc-uploader, then restart metron.
It may be the case that the cc-uploader is keeping the 9090 plain-HTTP port open for backwards compatibility during upgrades, but @zrob could provide more context.
Best,
Eric, CF Diego PM

Thanks @ematpl !

That is odd that metron did not complain when 9090 was bound by cc_uploader.

Closing, as https://www.pivotaltracker.com/story/show/146101187 is done and in a final release (and, as it turns out, now conflicting with the cf-networking policy server).


Stylesheet inclusion check fails on Firefox in dev environment

I get a security error in Firefox when using react-vis.

The error occurs when I develop using webpack-dev-server. Firefox throws a security error because react-vis (loaded from localhost:8080) is trying to access a stylesheet that was loaded from a different origin (I'm including semantic-ui css from a cdn). The line that throws is that one. The error does not exist in the production bundle because that check is removed.
I'm not sure what the fix should be. Try-catching that line would not solve the underlying issue but would at least prevent the page to crash in those circumstances.

Huh, that's annoying. I'm not quite sure what a good workaround would be, maybe a minimal solution would involve adding a prop to XYPlot like "skipStylesheetCheck" that would skip the stylesheet check? If you wanted to file a PR to that effect I'd gladly accept it.

Hi,
I am facing this exact same issue. It is preventing me from working on react-vis in firefox. A quick way of reproducing this would be to try this:
document.styleSheets[0].cssRules

Which throws:
SecurityError: The operation is insecure.

@stropitek Have you managed to fix this? If not, I can make a PR, as @mcnuttandrew suggested.

@tux4 I haven't started to work on this. Feel free to do the PR

I'm going to close this as #658 has landed and appears to address this issue. Feel free to re-open if you feel otherwise.


[question] Why am I getting an unexpected activation, even before training ?

note: I understand this is probably not the best place to ask this question. However I couldn't find an official or recommended forum for this...
I am working on creating a custom environment and training a RL agent on it.
My environment has an action space of size 127, and interprets it as a one-hot vector: Taking the index of the highest value in the vector as an input value.
For debugging, I create a bar chart, showing how many times each value has been "called"
Before training, I would expect the graph to show a roughly uniform distribution of "events", but instead the "events" in the lower end of the action spec are massively more likely than the others
I have created a colab to explain and reproduce the "issue" here
Here is a short version, in case the colab doesn't work
note_dims = 127
note_counters = np.zeros((note_dims))

class CustomEnv(gym.Env):
  def __init__(self):
    self.action_space = spaces.Box(-1, 1, [note_dims], dtype=np.float32);
    self.observation_space = spaces.Box(-1, 1, [10], dtype=float);
    self._state = np.zeros([10])

  def reset(self):
    self._step_count = 0
    self._state = np.zeros([10])
    return self._state;

  def render(self, *args):
    pass

  def step(self, action):
    self._step_count += 1

    # map actions from -1,1 to 0,1
    action = action * 0.5 + 0.5

    pitch = np.argmax(action)
    note_counters[pitch] += 1

    reward = 0
    isdone = self._step_count > 500
    observation = self._state

    return observation, reward, isdone, {}

# Make sure the environment is properly configured
env = CustomEnv()
check_env(env, warn=True)
# vectorize the environment
env = make_vec_env(lambda: env, n_envs=1)

# I have tried multiple model architectures here but the results are always the same
model = PPO2('MlpPolicy', env, verbose=1)

obs = env.reset()
note_counters = np.zeros((note_dims))

for step_idx in range(1000):
  action, _states = model.predict(obs)
  env.step(action)

plt.bar(np.arange(0, note_dims), note_counters)

system info
default colab instance

note: I understand this is probably not the best place to ask this question. However I couldn't find an official or recommended forum for this...

You are right about this, but also on how we do not have any official forum for this. We usually recommend asking on stackoverflow or /r/reinforcementlearning, but I am starting to wonder if (yet another) Discord server or gitter page would be useful...
To your question: This is expected behaviour. Randomly initializing neural networks does not usually end up with uniform guessing. See this paper (figure 7) for an example with ResNets and Gaussian initialization. Same behaviour happens, more or less, with other network types and initializations.
This is why we have the entropy term for policy-gradient based methods, which encourages taking different actions. As you continue training, you should start seeing more uniform actions, if not "optimal".

My environment has an action space of size 127, and interprets it as a one-hot vector

Why do you use a Box space and not a Discrete space?

Your issue isn't with SB but with np.argmax.
See here:
https://colab.research.google.com/drive/12Lj5VjiArqxa5DfXnjYAUkU78qWwn7on?usp=sharing
The tl:dr is that argmax picks the index using strictly greater, not greater or equal, hence you see this.
Counting all the elements equal to argmax yields this:

Thank you all for your answers.
@Miffyli

Would you like me to close this issue and ask it again on stackoverflow ?
I'll need some time to read and understand that paper, then I'll look into the entropy parameter (it sounds similar to the "exploration" parameter. Are they the same ?)

@araffin

I'm using a box because the actual problem I'm trying to solve requires some controls that are not discrete
I couldn't find the part you mention in the documentation, or I don't quite understand your point: isn't the gaussian distribution applied to each dimension individually, rather than across them ?

@PartiallyTyped

It looks like your changes were not saved in the colab. Could you add you example here ?
Also, I don't see how this would make a difference unless a lot of values in the action vectors were equal, which is not what I expect either.
Furthermore, if my use of argmax was the issue, why would my test with the random actions give me the uniform distribution ?

Again, thank you all for taking the time to answer me and being so reactive

@bgirschig
I would ask this somewhere else, as this is not specifically a stable-baselines issue, and we do not have much time to devote on providing technical support like this (sorry ^^'). See other replies for better answers (e.g. using Box and then turning into discrete actions is probably a wonky idea).

All of this is a consequence of the distributions used.
If you take the the action vector and reverse it. You will see the same poison like distribution when using an untrained model.


addCc and addBcc not working while sending a mail

Issue Summary
We want to use addCc and addBcc but mail not going in these case but addTo working perfectly and receiving mails.
so how we can make addCc and addBcc working.
Code Snippet
use SendGrid;
use SendGrid\Mail\Mail as SendgridMail;
$email = new SendGridMail();
$sendgrid = new SendGrid($this->container->getParameter('sendgrid_api'));
$email->addCc($ccEmail);
$email->addBcc($bccEmail);
$email->setSubject("subject");
$email->addContent("text/html",  $emailTemplate);
$sendgrid->send($email);

What version of this library are you using? Can you post the request body? https://github.com/sendgrid/sendgrid-php/blob/master/TROUBLESHOOTING.md#viewing-the-request-body
This may be resolved by https://github.com/sendgrid/sendgrid-php/pull/952

I could not get bcc to work today using 9.9.0.  I did however get cc working.

I could not get bcc to work today using 9.9.0.  I did however get cc working.


fix: cant install package directly from github

fix for error Can't add "root": invalid package version undefined

ah, my bad. not used to npm hierarchical package structures


Numba: no cuda support detected?

Describe the bug
I am currently trying to work with Numba on a system with an Nvidia GPU. For this, I am trying to use the numbaWithNumba package found in nixpkgs, but is_available() gives me False all the time and numba -s returns an incomplete setup status for CUDA.
Steps To Reproduce

Install numbaWithNumba in a shell via nix-shell -p python3Packages.numbaWithNumba
Run python -c "import numba.cuda; print(numba.cuda.is_available())" -> results in False
Run numba -s ->

System info:
/nix/store/c1rgbgz8d826xbyqcz6k68vvwkxbkh0m-python3-3.12.7-env/bin/python3.12: No module named pip
--------------------------------------------------------------------------------
__Time Stamp__
Report started (local time)                   : 2024-12-14 23:58:05.694113
UTC start time                                : 2024-12-14 22:58:05.694121
Running time (s)                              : 0.03438

__Hardware Information__
Machine                                       : x86_64
CPU Name                                      : skylake
CPU Count                                     : 16
Number of accessible CPUs                     : 16
List of accessible CPUs cores                 : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
CFS Restrictions (CPUs worth of runtime)      : None

CPU Features                                  : 64bit adx aes avx avx2 bmi bmi2
                                                clflushopt cmov crc32 cx16 cx8
                                                f16c fma fsgsbase fxsr invpcid
                                                lzcnt mmx movbe pclmul popcnt
                                                prfchw rdrnd rdseed rtm sahf sgx
                                                sse sse2 sse3 sse4.1 sse4.2 ssse3
                                                xsave xsavec xsaveopt xsaves

Memory Total (MB)                             : 64133
Memory Available (MB)                         : 62099

__OS Information__
Platform Name                                 : Linux-6.6.63-x86_64-with-glibc2.40
Platform Release                              : 6.6.63
OS Name                                       : Linux
OS Version                                    : #1-NixOS SMP PREEMPT_DYNAMIC Fri Nov 22 14:38:37 UTC 2024
OS Specific Version                           : ?
Libc Version                                  : glibc 2.40

__Python Information__
Python Compiler                               : GCC 13.3.0
Python Implementation                         : CPython
Python Version                                : 3.12.7
Python Locale                                 : en_GB.UTF-8

__Numba Toolchain Versions__
Numba Version                                 : 0.61.0
llvmlite Version                              : 0.43.0

__LLVM Information__
LLVM Version                                  : 14.0.6

__CUDA Information__
CUDA Device Initialized                       : True
CUDA Driver Version                           : ?
CUDA Runtime Version                          : ?
CUDA NVIDIA Bindings Available                : ?
CUDA NVIDIA Bindings In Use                   : ?
CUDA Minor Version Compatibility Available    : ?
CUDA Minor Version Compatibility Needed       : ?
CUDA Minor Version Compatibility In Use       : ?
CUDA Detect Output:
Found 1 CUDA devices
id 0    b'NVIDIA TITAN X (Pascal)'                              [SUPPORTED]
                      Compute Capability: 6.1
                           PCI Device ID: 0
                              PCI Bus ID: 1
                                    UUID: GPU-b08e26d8-65ac-1443-3a8c-1fc9d3bf98a7
                                Watchdog: Disabled
             FP32/FP64 Performance Ratio: 32
Summary:
        1/1 devices are supported

CUDA Libraries Test Output:
None

__NumPy Information__
NumPy Version                                 : 1.26.4
NumPy Supported SIMD features                 : ('MMX', 'SSE', 'SSE2', 'SSE3', 'SSSE3', 'SSE41', 'POPCNT', 'SSE42', 'AVX', 'F16C', 'FMA3', 'AVX2')
NumPy Supported SIMD dispatch                 : ('SSSE3', 'SSE41', 'POPCNT', 'SSE42', 'AVX', 'F16C', 'FMA3', 'AVX2', 'AVX512F', 'AVX512CD', 'AVX512_KNL', 'AVX512_KNM', 'AVX512_SKX', 'AVX512_CLX', 'AVX512_CNL', 'AVX512_ICL', 'AVX512_SPR')
NumPy Supported SIMD baseline                 : ('SSE', 'SSE2', 'SSE3')
NumPy AVX512_SKX support detected             : False

__SVML Information__
SVML State, config.USING_SVML                 : False
SVML Library Loaded                           : False
llvmlite Using SVML Patched LLVM              : False
SVML Operational                              : False

__Threading Layer Information__
TBB Threading Layer Available                 : False
+--> Disabled due to Unknown import problem.
OpenMP Threading Layer Available              : True
+-->Vendor: GNU
Workqueue Threading Layer Available           : True
+-->Workqueue imported successfully.

__Numba Environment Variable Information__
None found.

__Conda Information__
Conda not available.

__Installed Packages__
Couldn't retrieve packages info.

__Error log__
Error (pip): Command '('/nix/store/c1rgbgz8d826xbyqcz6k68vvwkxbkh0m-python3-3.12.7-env/bin/python3.12', '-m', 'pip', 'list')' returned non-zero exit status 1.

__Warning log__
Warning (cuda): Probing CUDA failed (device and driver present, runtime problem?)
(cuda) <class 'OSError'>: libcudart.so: cannot open shared object file: No such file or directory
Warning: Conda not available.
 Error was [Errno 2] No such file or directory: 'conda'

Warning (no file): /sys/fs/cgroup/cpuacct/cpu.cfs_quota_us
Warning (no file): /sys/fs/cgroup/cpuacct/cpu.cfs_period_us
--------------------------------------------------------------------------------
If requested, please copy and paste the information between
the dashed (----) lines, or from a given specific section as
appropriate.

=============================================================
IMPORTANT: Please ensure that you are happy with sharing the
contents of the information present, any information that you
wish to keep private you should remove before sharing.
=============================================================

On the contrary, using jaxWithCuda works fine. I can import the lib, execute code and get results back.
Expected behavior

The python command should return True
Running numba -s should result in

no questions marks
libcudart.so should be found

Additional context
This happens on both unstable and 24.11. I also recently started using the cache from the cuda-team, but I had the problem before I added their substituter.
Metadata

system: "x86_64-linux"
host os: Linux 6.12.3, NixOS, 24.11 (Vicuna), 24.11.20241210.a0f3e10
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.24.10
nixpkgs: /nix/store/va0p2i72cm2ljwm084a0g6ji41s5qnyz-source

Notify maintainers

@mweinelt I know you are not listed as a maintainer, but you added a few cuda related things to numba, so maybe you can help me/clarify things a bit.

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

Defering to the @NixOS/cuda-maintainers.

I did some further troubleshooting and I am maybe onto something...
There was a similar issue on numbas issue tracker, and it was recommended to run python -c "from numba import cuda; cuda.cudadrv.libs.test()". The output on my NixOS system is:
Finding driver from candidates:
        libcuda.so
        libcuda.so.1
        /run/opengl-driver/lib/libcuda.so
        /run/opengl-driver/lib/libcuda.so.1
        /usr/lib/libcuda.so
        /usr/lib/libcuda.so.1
        /usr/lib64/libcuda.so
        /usr/lib64/libcuda.so.1
Using loader <class 'ctypes.CDLL'>
        Trying to load driver...        ok
                Loaded from libcuda.so.1
        Mapped libcuda.so paths:
                /nix/store/9xyylgpsldqfbx7abjyvz42amharnm3d-nvidia-x11-565.77-6.6.64/lib/libcuda.so.565.77
Finding nvvm from Nix store
        Located at libnvvm.so
        Trying to open library...       ERROR: failed to open nvvm:
libnvvm.so: cannot open shared object file: No such file or directory
Finding nvrtc from Nix store
        Located at libnvrtc.so
        Trying to open library...       ERROR: failed to open nvrtc:
libnvrtc.so: cannot open shared object file: No such file or directory
Finding cudart from Nix store
        Located at libcudart.so
        Trying to open library...       ERROR: failed to open cudart:
libcudart.so: cannot open shared object file: No such file or directory
Finding cudadevrt from <unknown>
        Located at libcudadevrt.a
        Checking library...     ERROR: failed to find cudadevrt:
libcudadevrt.a not found
Finding libdevice from Nix store
        Located at /nix/store/3v3r8yyfrpjkwb3mzpwvz77ybpsp7wgp-cuda_nvcc-12.4.99/nvvm/libdevice/libdevice.10.bc
        Checking library...     ok

If I run the same command on Ubuntu, where everything is detected correctly, I get the following output:
Finding driver from candidates:
        libcuda.so
        libcuda.so.1
        /usr/lib/libcuda.so
        /usr/lib/libcuda.so.1
        /usr/lib64/libcuda.so
        /usr/lib64/libcuda.so.1
Using loader <class 'ctypes.CDLL'>
        Trying to load driver...        ok
                Loaded from libcuda.so
        Mapped libcuda.so paths:
                /usr/lib/x86_64-linux-gnu/libcuda.so.550.127.05
Finding nvvm from System
        Located at /usr/local/cuda/nvvm/lib64/libnvvm.so.4.0.0
        Trying to open library...       ok
Finding nvrtc from System
        Located at /usr/local/cuda/lib64/libnvrtc.so.12.6.85
        Trying to open library...       ok
Finding cudart from System
        Located at /usr/local/cuda/lib64/libcudart.so.12.6.77
        Trying to open library...       ok
Finding cudadevrt from System
        Located at /usr/local/cuda/lib64/libcudadevrt.a
        Checking library...     ok
Finding libdevice from System
        Located at /usr/local/cuda/nvvm/libdevice/libdevice.10.bc
        Checking library...     ok

It seems like libraries found in /usr/local/cuda/lib64 on ubuntu are not found on NixOS, but they are present on my system, but not in the lib64 folder, but in lib. I guess numba is searching in the wrong folder now?
Maybe I could patch cudatoolkit to make a symlink of lib to lib64.

From the patch file we have vendored, it looks like Numba expects everything to exist in a single directory. If that's the case, that won't work with our packages which use splayed outputs.
To work around that, I suggest using symlinkJoin to create a derivation with all of the relevant CUDA libraries in a single output. From what I can see from a quick look at the runtime failure, that would be something like
symlinkJoin {
  name = "cudatoolkit";
  paths = with cudaPackages; [ cuda_nvcc cuda_nvrtc cuda_cudart ];
}

I may be forgetting a library :l
Give that a try and let me know how that works.

@ConnorBaker Thanks for the tip! I guess I got it running now to a point I can work with!
I experimented with getDev and getLib and got this:
nix-repl> "${lib.getDev pkgs.cudaPackages.cuda_nvcc}"
"/nix/store/3v3r8yyfrpjkwb3mzpwvz77ybpsp7wgp-cuda_nvcc-12.4.99"

nix-repl> "${lib.getLib pkgs.cudaPackages.cuda_nvcc}"
"/nix/store/3v3r8yyfrpjkwb3mzpwvz77ybpsp7wgp-cuda_nvcc-12.4.99"

nix-repl> "${lib.getBin pkgs.cudaPackages.cuda_nvcc}"
"/nix/store/3v3r8yyfrpjkwb3mzpwvz77ybpsp7wgp-cuda_nvcc-12.4.99"

nix-repl> "${lib.getExe pkgs.cudaPackages.cuda_nvcc}"
"/nix/store/3v3r8yyfrpjkwb3mzpwvz77ybpsp7wgp-cuda_nvcc-12.4.99/bin/nvcc"

nix-repl> "${lib.getDev pkgs.cudaPackages.cuda_nvrtc}"
"/nix/store/yyag2ikqh0nvbjw193lar506q41vhknl-cuda_nvrtc-12.4.99-dev"

nix-repl> "${lib.getLib pkgs.cudaPackages.cuda_nvrtc}"
"/nix/store/4q7rxvd6dwnkrsyiif4f75xh1l6xcjz5-cuda_nvrtc-12.4.99-lib"

nix-repl> "${lib.getDev pkgs.cudaPackages.cuda_cudart}"
"/nix/store/c9ssqifwhvxnrk2s4j1mxkmsw1jwnd5f-cuda_cudart-12.4.99-dev"

nix-repl> "${lib.getLib pkgs.cudaPackages.cuda_cudart}"
"/nix/store/x9lnlkmvfvvph8r723z3vrkv0r2fh1fa-cuda_cudart-12.4.99-lib"

cuda_nvcc can be just included like that, no need to differentiate, while nvrtc and cudart could need both dev and lib. Nevertheless, I didn't really need all of them.
What really made the trick work, is the postBuild hook of symlinkJoin:
cuda-symlink = pkgs.symlinkJoin {
  name = "cudatoolkit";
  paths = with pkgs.cudaPackages; [
    cudatoolkit
    # cuda_nvcc
    # (lib.getLib cuda_nvrtc)
    # (lib.getDev cuda_nvrtc)
    # (lib.getLib cuda_cudart)
    # (lib.getDev cuda_cudart)
    (lib.getStatic cuda_cudart)
  ];
  postBuild = ''
    ln -s $out/lib $out/lib64
  '';
};

Seems like only cudatoolkit and the static library of cuda_cudart are needed and in the hook I made a symlink of the lib64 folder. Since I am using a flake, I just exported a CUDA_HOME variable pointing to my cuda-symlink derivation and now numba -s displays everything nicely!
How should be proceed on this topic? Maybe "fix" this upstream too?


curl "....Embeddings/data/bill_sum_data.csv" --output bill_sum_data.csv returns error on param --output

for the running
I get error
curl "https://raw.githubusercontent.com/Azure-Samples/Azure-OpenAI-Docs-Samples/main/Samp
les/Tutorials/Embeddings/data/bill_sum_data.csv" --output bill_sum_data.csv
Invoke-WebRequest : A positional parameter cannot be found that accepts argument '--output'.
At line:1 char:1

curl "https://raw.githubusercontent.com/Azure-Samples/Azure-OpenAI-Do ...

  + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
  + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

perhaps it should be writting with -o param instead of --output.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 9c542f1c-f19a-5eea-9e98-1543a7352038
Version Independent ID: f190ef2f-fe21-7610-6893-a4d9149435ff
Content: Azure OpenAI Service embeddings tutorial - Azure OpenAI
Content Source: articles/cognitive-services/openai/tutorials/embeddings.md
Service: cognitive-services
Sub-service: openai
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@RoyKimYYZ
Thanks for your feedback! We will investigate and update as appropriate.

@RoyKimYYZ based on the error message it looks like the issue you are encountering is that you are trying to run the command in PowerShell. If you run the command in the command prompt or in a bash shell it should work as expected:

If you want to run it in PowerShell you need to modify that line slightly to use curl.exe. curl by itself in some versions of PowerShell is an alias for Invoke-WebRequest.
So to run it in PowerShell you need:
curl.exe "https://raw.githubusercontent.com/Azure-Samples/Azure-OpenAI-Docs-Samples/main/Samples/Tutorials/Embeddings/data/bill_sum_data.csv" --output bill_sum_data.csv

@RoyKimYYZ yes unfortunately this is one of those edge cases where the experience between older versions of PowerShell and Windows Command Prompt is not identical. That is why we explicitly state Windows Command Prompt above the command:

If you were running the command in PowerShell 7 it would also work as expected as that alias is no longer present in the latest PowerShell releases:

Thanks for clarifying. Making the documentation more explicit in this situation would be helpful and as such is my feedback. I’m all good.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: @.>
Sent: Monday, June 19, 2023 10:48 AM
To: @.>
Cc: Roy @.>; @.>
Subject: Re: [MicrosoftDocs/azure-docs] curl "....Embeddings/data/bill_sum_data.csv" --output bill_sum_data.csv returns error on param --output (Issue #111027)
@RoyKimYYZhttps://github.com/RoyKimYYZ yes unfortunately this is one of those edge cases where the experience between older versions of PowerShell and Windows Command Prompt is not identical. That is why we explicitly state Windows Command Prompt above the command:
[image]https://user-images.githubusercontent.com/31510320/246861267-52f7e1b5-0c54-43fe-9b40-fe6eef936ad6.png
If you were running the command in PowerShell 7 it would also work as expected as that alias is no longer present in the latest PowerShell releases:
[image]https://user-images.githubusercontent.com/31510320/246863601-7a8b9788-3417-4a63-b2d3-3c4a32976411.png
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/111027#issuecomment-1597321218, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAO6JIRRONEYTI3SILHLIZTXMBREJANCNFSM6AAAAAAZJ6REQY.
You are receiving this because you were mentioned.Message ID: @.***>

@RoyKimYYZ The feedback is greatly appreciated. If it broke up the experience for you, I am sure there are countless others who did the exact same thing and just didn't report it to us. I will add an item to our internal backlog to look at revising that section to use the tabbed command experience with the legacy curl.exe included for PowerShell for backwards compatibility.
Now that we are tracking this request internally we will close out this issue.

#please-close


Is there a best practice to catch errors from hideExpressions and other data-driven code?

Question
Hello.
We use JSON driven forms with hideExpressions. We are working on a feature that lets users create and edit forms. As they edit the JSON data structure, it is likely the content of hideExpression will result in syntax or reference errors when processed by ngx-formly.
Is there existing support or best practice in ngx-formly to deal specifically with this type of error? For example an optional callback we could pass to run custom logic in case of error?
Alternatively we are thinking of replicating the hideExpression processing code and use it to validate the JSON data structure before sending it to ngx-formly.
Thank you

@pimarian Hi There!
I happen to be working on this same type of project internally!  Currently, my solution of this revolves around invoking a monaco-editor to allow users to create the expression as if they were using an IDE.  When they hit "check expression"  I'll take that expression parse it as a function and see if it has any type of errors.  If any appear I'll pop them in a "console-like" window under the monaco editor ( or the editor itself) and let them know what might be wrong with the expression.
In our wrapper library, whenever expressions are created, we create a wrapper function that adds try / catch around the expression and explicitly give errors based on the problem in the expression.  Before that, we just used the built-in Formly Expressions to let us know what expression had an error.
Let me know what you end up coming up with if this doesn't work for you!

Thank you for explaining your approach @kenisteward

I'll take that expression parse it as a function and see if it has any type of errors

For this part, are you just creating a Function object? I believe that will handle any syntax error, but will not handle reference error, if you are using a local variables not passed by ngx-formly for example.

whenever expressions are created, we create a wrapper function that adds try / catch around the expression and explicitly give errors based on the problem in the expression

That is a good idea. What do you do in the catch block? Do you have something exposed in the global scope you call here to access the error?

For this part, are you just creating a Function object? I believe that will handle any syntax error, but will not handle reference error, if you are using a local variables not passed by ngx-formly for example.

Exactly! We have an onInit / onPopulate function for an extension internally that we use to get the references to things like formControls / fields.  At that point, we take the string and convert it to a function that will wrap what we wanna pass to formly there.  I'll see if it is okay to expose this code from internal to give a better example of what I mean.

That is a good idea. What do you do in the catch block? Do you have something exposed in the global scope you call here to access the error?

Same for above. Because we are running inside the lifecycle of formly we have access to all of formly's methods / objects / utilities AND closured reference to the service we create the formly fields with (which has our exception handling service injected) inside teh try catch is something like

// if the expression is "hideExpression": "model.name !== 'kenisteward'; we convert that this way

const expressionWithLogic = `
      try {
          return ${currentlyProcessingFieldObj.hideExpression}
          } catch (e) {
               // not exactly what we call but something like it but this is where you can break e down to help the developer know what was wrong with the expression as we are  inside the function that is called by formly
    this.exceptionHandler.log(e);
    throw (e);
          }
`
currentlyProcessingFieldObj.hideExpression = expressionWithLogic;

Couple of Notes:

we are actually creating a function internally and calling that function instead but this was a quicker way of getting the idea across.
this assumes that hideExpression is a string, if it is anything else then you'll use the function way that I just mentioned
This is all run onPopulate / oninit as well so we have access to fieldconfig if we need it.  So does the expression string because that is called directly by formly after we have reset it.

Thanks, I did not realize the hideExpression function would have access to your injected service. That is great!
But, I don't understand something based on the code snippet above.
This is the function that processes hideExpression when it's a string in ngx-formly:
export function evalStringExpression(expression: string, argNames: string[]) {
  try {
    return Function(...argNames, `return ${expression};`) as any;
  } catch (error) {
    console.error(error);
  }
}

If you preprocess the value as in your snippet, won't you get return try { ... } catch (e) { ... }; as the body of the Function object? I don't think that is valid

I'll see if I can setup a stackblitz in the next couple days :)
On Wed, Sep 29, 2021, 7:51 PM pimarian @.***> wrote:

Thanks, I did not realize the hideExpression function would have access to
your injected service. That is great!
But, I don't understand something based on the code snippet above.
This is the function that processes hideExpression when it's a string in
ngx-formly:
export function evalStringExpression(expression: string, argNames: string[]) {
try {
return Function(...argNames, return ${expression};) as any;
} catch (error) {
console.error(error);
}}
If you preprocess the value as in your snippet, won't you get return try
{ ... } catch (e) { ... }; as the body of the Function object? I don't
think that is valid
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ngx-formly/ngx-formly/issues/2994#issuecomment-930655494,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADB4XNLKOT26UOGD4KPICNTUEOX7RANCNFSM5FATGO5Q
.

By using a custom extension you may be able to catch those errors by wrapping expression properties, for an example check 18n example https://formly.dev/examples/advanced/i18n-alternative


version problem when working with AirSim

Hi, i'm using PX4 with AirSim for SITL, and version 1.8.2 is recommended. The code is as follow
make posix_sitl_ekf2  none_iris
But when checkout to master branch, this command cannot be used.
What's the new command to replace it with the master branch?
Thanks.

Can you give some more context on what commands you are running? And what the output is and what the problem is, etc.

@julianoes They will be following these instructions to start SITL before starting airsim: https://github.com/microsoft/AirSim/blob/master/docs/px4_sitl.md

@julianoes Sorry for too little description. just as @hamishwillee  supplemented.
I mean I cannot find this command make posix_sitl_ekf2  none_iris in master branch. Does it change?

Oh, now I understand. The command is now:
make px4_sitl none_iris

However, note that AirSim does not work with master or 1.9.2 yet unless you disable lockstep.
It's in the works though.

@julianoes Hi, thanks for the reply. i have tried the link you recommend. In detail, i have disabled the lockstep by set(ENABLE_LOCKSTEP_SCHEDULER no), and modified the setting file. The following is my setting.json file.
{   "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",   "SettingsVersion": 1.2,   "SimMode": "Multirotor",   "Vehicles": {     "PX4": {         "VehicleType": "PX4Multirotor",         "UseSerial": false,         "UseTcp": true,         "TcpPort": 4560,         "GroundControlPort": 14580,         "Parameters": {             "NAV_RCL_ACT": 0,             "NAV_DLL_ACT": 0,             "LPE_LAT": 47.641468,             "LPE_LON": -122.140165,             "COM_OBL_ACT": 1         }     }   } }
However, it still doesn't work. Maybe 1.8.2 is more stable. Besides, the AirSim always crashed when i use "PX4" as the "Vehicles". Can u tell us what the problem is?

@julianoes  Hi, thanks for the reply. i have tried the link you recommend. In detail, i have disabled the lockstep by set(ENABLE_LOCKSTEP_SCHEDULER no), and modified the setting file. The following is my setting.json file.

However, it still doesn't work. Maybe 1.8.2 is more stable. Besides, the AirSim always crashed when i use "PX4" as the "Vehicles". Can u tell us what the problem is?

@lovettchris Can you help here?

@xlong0513 try with Udp port 15460 instead of TCP.
And replace this line:
https://github.com/PX4/Firmware/blob/993fa5bd3758030e6b461109f4b0ae8da9cec388/ROMFS/px4fmu_common/init.d-posix/rcS#L234
with:
simulator start -u 14560

I'm successfully running px4 (v 1.8.2) SITL with QGroundcontrol & Airsim
My build & run command is
make px4_sitl_default none_iris
sudo ./build/posix_sitl_default/px4 ./posix-configs/SITL/init/ekf2/iris

[/AirSim/settings.json]
{
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
  "SettingsVersion": 1.2,
  "SimMode": "Multirotor",
    "Vehicles": {
        "PX4": {
            "VehicleType": "PX4Multirotor",
            "UseSerial": false,
            "UdpPort": 14560
        }
    }
}

Airsim is now compatible with lockstep, closing.


File selection

File loading is straightforward and efficient, but choosing which files to include in the experiment has proved elusive.

Added support for selecting files for each animal.


merge 3.x to master

The merge was green in Travis CI - the wait for the Windows test was too long. Merged without waiting for it as the test is completely free of any windows concerns.


Update version release to v3.3.5

@mattymaxwell The changelog seems to be listing 3.3.4 twice?
Unreleased
Removed
Support for PHP versions below 7.4
[3.3.4] - 2022-02-15
Changed
permission to allow Editors access to menus and widgets
[3.3.4] - 2022-02-15
Changed
Mustache bumped to v2.14.1 to patch [security issue](https://github.com/advisories/GHSA-4rmr-c2jx-vx27)

(from https://github.com/dxw/govuk-blogs/blob/028615273b1065a35c8787b8c1a1d16d12f4c225/CHANGELOG.md)

Thanks @RobjS have updated that to what it should be now

@mattymaxwell The removal of PHP versions below 7.4 will be part of this release as well. Each release will include any changes that have been merged into master since the previous release - there's no way of doing "selective" releases.

@RobjS ah sorry I didn't think to bring those above the line in. Done now


Interface for providing fixes for diagnostics

Some diagnostics indicate clear errors with unambiguous and well defined fixes. e.g. a missing semicolon in javascript.
As I read the spec today, the flow for providing a fix for a diagnostic is more or less:

Server publishes diagnostics
Tool requests code action based on user interaction with one or more diagnostics
Server responds with Command[]
Tool does something implementation-specific with commands

Language servers are doing ad hoc work beyond this. The tslint vscode plugin for example has a private extension to the protocol to gather all fixes for a file as a TextEdit[], and can be configured to apply all fixes on save.
It would be valuable for both server and tool authors to have a specification for this class of use cases.

A few thoughts on what the interface might look like:
We could represent a fix as either a WorkspaceEdit a TextEdit[]. I think there's a case to be made for a WorkspaceEdit, as there are some reasonable fixes aren't local to a single file. For example a linter that applies a naming convention to fields could have a fix that involves renaming the field, requiring changes across multiple files.
We could add fix as an optional property on Diagnostic. It seems worthwhile to add an optional resolve step analogous to the one for completion items, in cases where computing the fix may be expensive.
This does make conflict resolution less clear though. If a tool wants to apply all fixes, but there are overlaps in the TextEdits (between diagnostics, not in the TextEdits of a single diagnostic, as that is obviously invalid) what should it do? It could go fix by fix, building up a larger fix by only accepting fixes that do not overlap with any of the TextEdits accepted so far.
Alternatively, we could add a new request for a fix and let the server handle conflict resolution. This interface ends up looking a lot like the existing format document request though.

Here is what I added for 3.0 to support this:

clients can announce a capability that they support applyEdit requests
sever can announce a capability that they support command execution.

Using the two new requests auto fix is implemented like this:

server publishes diagnostics
client request code actions / commands for the diagnostics. Server provides them
User picks a command
clients forwards the execution to the server
server computes edits and send a applyEdit request to the client

The eslint extension client part has no custom requests anymore to support auto fix.
@rictic would that work for you as well.

And to note: the edit that can be applied using the new applyEdit request support modifying n files.

OK to close ?

Yeah, looks good to me. So, to summarize, the manual flow works as you described, and for an automatic fix flow the server can choose to either respond to textDocument/willSaveWaitUntil with TextEdits or send down workspace/applyEdit?
That should work great, I'll try it out soon!

Ok, so, it's only nine months later, but I got this working!
The flow is surprisingly complicated and mind-twisty. I think it would be worth adding some more documentation to the suggested flow for fixing lint warnings. For the code action part I eventually grokked what you were saying that the flow is:
  <- publishDiagnostics
  -> getCodeActions  <- Command(myAppName/applyEdit)
  -> executeCommand(myAppName/applyEdit)
  <- workspace/applyEdit

It is very nice though that I can execute other commands without any code needed in the client-side part of the extension. +1 to that.
The only remaining issue here that I've got is Microsoft/vscode-languageserver-node#274


Show a rough download completion estimate (ETA)

A simple ETA should be shown alongside the progress spinner.

Right now the ETA calculation is working, but it is very heavily thrown off if items already exist, as this will tell the calculation that these items completed "immediately", which is an unrealistic way of going about it.
We might be able to track separate index and total counts for actual downloadable items instead, which should be much more accurate.

This is now working (including the scheduled updating), but there is a weird drawing issue when drawing a string that is shorter than the previous one.
Essentially when "minutes" changes to "hour", it reads as "hourtes", so it's not properly clearing the line/buffer.
NOTE: This might only be affecting the Hyper-terminal app.
For now I've hacked my way around this by simply adding an X amount of whitespace at the end, but it would be nice to properly fix this instead. Also note that stopping and restarting the spinner when changing the message works, but it produces flickering which is not ideal either.

Solved it with a simple length check for the previous and new spinner test, clearing the spinner (stop & start) if the new text is larger than the previous one.


Add zArtemis platforms

Add s390x and z/OS zArtemis platforms to the plaforms map.
Signed-off-by: Violeta Sebe<EMAIL_ADDRESS>

@llxia @renfeiw please review, thank you!

Related: https://github.com/adoptium/TKG/pull/290/


chore: Add simple example of 2d arrays

Description
This adds a simple example of using an array in an array
Problem*

Resolves
Summary*

Documentation

[ ] This PR requires documentation updates when merged.

[ ] I will submit a noir-lang/docs PR.

[ ] I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Hmm seems I accidentally rebased ontop of #2793

Are we wanting to add support for this in the ABI?

Yep, I'll open up an issue for it


add-category comment-ameliorer-la-qualite-de-l-air-chez-soi-grace-a-la-vent…

…ilation.md

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


Create a lib that uses other third party native dependencies (framework etc.)

Hi @brodybits , Thank you very much for developing this fantastic tool.
I have used create-react-native-module to create the library with example and so far I am able to run the Android project pretty fine and for iOS I am having the issues.
Use case:
I want to build a react-native library for video conferencing feature (integrating the native Zoom SDKs for iOS and Native). So for iOS we have native third party framework to be linked within the library.
So when I try to link the library in example file I am unable to compile as the library pod is not able to find the third party framework reference linkage.
Can you please help me around this?

same problem here. please help

same problem here. please help

same problem here. help please !

same problem here. help please !

I link it in the project and it works, but it's not the right way to do this, I would like to do everything in the lib

I link it in the project and it works, but it's not the right way to do this, I would like to do everything in the lib

Pod::Spec.new do |s|
  s.name         = "RNNativeMyLibrary"
  s.version      = "1.0.0"
  s.summary      = "RNNativeMyLibrary"
  s.description  = <<-DESC
                  RNNativeMyLibrary
                   DESC
  s.homepage     = "https://github.com/MaxToyberman/react-native-locale-listener#readme"
  s.license      = "MIT"
  # s.license      = { :type => "MIT", :file => "FILE_LICENSE" }
  s.author             = { "author" =><EMAIL_ADDRESS>}
  s.platform     = :ios, "9.0"
  s.source       = { :git => "https://github.com/author/RNNativeMyLibrary.git", :tag => "master" }
  s.source_files  = "ios/*.{h,m,mm,swift}"
  s.swift_version = "5.0"

  s.requires_arc = true
  s.dependency "React"
  s.vendored_frameworks = "ios/sdk/MySDK.xcframework"
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

end

@nguyenhuutinh where's the dependency framework in your .podspec file, could you elaborate more?

I would recommend adding such third-party native dependencies to both peerDependencies and devDependencies. This needs to be both tested and documented. Thanks for reporting.

It seems like the podscpec file of my module isn't used/recognized by the main project. Do I have to register it somehow?

same problem


[web debugging]: DDC sometimes throws a stack overflow exception running DevTools

Using tip of trunk Flutter devtools, after a few runs of DevTools build with DDC you will get this stack overflow exception on startup. Likely there is a DDC bug handling fields.
Run Dart DevTools by following the instructions here. Launching DevTools using DDC a couple times from IntelliJ triggers the following stack overflow error. The error does not occur with dart2js, Flutter Desktop, or on the very first time DevTools is run with DDC. To reproduce, stop devtools and rerun.
The relevant error-causing widget was:
  Builder file:///Users/jacobr/projects/flutter/devtools/packages/devtools_app/lib/src/app.dart:320:14
When the exception was thrown, this was the stack:
packages/devtools_app/src/initializer.dart 34:24             set [_widget]
packages/devtools_app/src/initializer.dart 34:24             set [_widget]
packages/devtools_app/src/initializer.dart 34:24             set [_widget]
packages/devtools_app/src/initializer.dart 34:24             set [_widget]
packages/devtools_app/src/initializer.dart 34:24             set [_widget]
...

Fyi @nshahan

Looks like a duplicate of https://github.com/flutter/flutter/issues/66122.


allow use in Python 3.7

Fixes #3.

Use typing_extensions for Protocol for Python <= 3.7.
Don't use / to indicate position-only arguments.

Tested on Python 3.7.11.

I will merge and release this tonight so it gets in the bundle. If it's broken we can fix again tomorrow, but I think it's OK.


[lit-next] Fixes @query with cache setting when Babel compilation is used

Fixes #1584, #1572.
This PR also re-enables testing under Babel compilation. This is now done in ReactiveElement and not LitElement.

Merging with IE test timeouts since those will be fixed separately.


multiline ticks labels, draft

On the x axis, split text labels on \n; use a ? at the start of a line to cancel consecutive repeats
It's a draft that helps tinkering, but it will probably not be merged, because if we're taking this route, it should happen in d3-axis instead (and we'll add the "line" option in there as well).
#460

A (better) iteration in d3-axis: https://github.com/d3/d3-axis/pull/83


startPrefetchingAtIndex accident crash. SingleObjectArray object at index.

New Issue Checklist

[x] I have read and understood the CONTRIBUTING guide
[x] I have read the Documentation
[x] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
iOS

Platform Version
11.1.2

SDWebImage Version
4.1.0

Integration Method
cocoapods

Xcode Version
Xcode 9.1.1

Repro rate
sometimes ?%

Issue Description and Steps
I've got a crash.
#2 -[__NSSingleObjectArrayI objectAtIndex:]
#3 SDWebImage: __48-[SDWebImagePrefetcher startPrefetchingAtIndex:]_block_invoke

            [self.delegate imagePrefetcher:self
                            didPrefetchURL:self.prefetchURLs[index] // <- here
                             finishedCount:self.finishedCount
                                totalCount:self.prefetchURLs.count];

Counld you please provide the full stacktrace for us to analysis this issue ?
I think maybe it's about some race condition that the prefetchURLs property has been changed when loadImageWithURL completion called. Do you call cancel outisde main queue ?

@dreampiggy maybe it is better to copy url instead?
NSURL *currentURL = [self.prefetchURLs[index] copy];

@lolgear Maybe not. NSArray already retain your NSURL instance. So a copy will not work for any lifecycle improvement. So just capture is OK :)

@dreampiggy notes to your previous question:
I call
[self.prefetcher prefetchURLs:urls];

in core data private context ( a.k.a background ).

@lolgear I see. The loadImageWithURL completion block is always called on main queue (currently, but now doc point this out). So if you try acess that prefetchURLs properties outside main queue, there may be a multi-thread race condition.

@dreampiggy so, the current fix would be dispatching invocation of set prepared urls on main thread?

@lolgear The fix I provided #2111 will use atomic lock to ensure multi-thread-safe and retain the NSURL by advance to avoid that prepared urls changes and NSArray out of bounds. Maybe a better way is welcomed, but this fix seems simple and crude :)

@dreampiggy I mean the fix on current version.

@lolgear 😅 You can use prefetcherQueue to ensure all the operation happened on main queue to avoid this. (Don't worry, network request is always happended on background queue using NSURLSession)...But I think a better way is to wait for a new patch version release.

@bpoplauschi Any plan to review the patches for 4.2.3 ? :)

Merged. Wait for 4.2.3 release :)


Angular use of library

I want use this library in angular 5, but this no have support, any advice to use this in Angular 5

easyXDM exists orthogonally to frameworks such as angular, and so you there should be nothing preventing you from leveraging the library.
Without knowing more about what you've tried, it's hard to provide any guidance on how to proceed.


[BACKLOG-26358] Fixes issue that allowed users to create folders with…

… special slash characters
Dev validated on <IP_ADDRESS>-7
PR that was merged into master: https://github.com/pentaho/pentaho-kettle/pull/5946
@kcruzada @pamval @pentaho-jlien @pentaho-svigneri

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
mvn -B -f 'pom.xml' -pl 'plugins/file-open-save/core' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'plugins/file-open-save/core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  plugins/file-open-save/core/src/main/javascript/app/services/data.service.js

Closing as we will address this in a later SP.


Fix markdown links

I stumbled over a broken link in library.md, so I wrote a quick Python script for checking all of them: https://gist.github.com/Kha/d8b4b0006db50f2e90c7
I can add the script as a test case if you think that would be helpful. When the documentation is more complete, a reverse test - find files that aren't mentioned in .md files - would probably also be interesting.

@Kha This is great!
Do you mind including the Python script in the pull request?
We have a script sub-directory for this kind of tool.

I agree -- this is very nice.

This is very nice! I knew that I would occasionally move files and forget to change the markdown file, but I hoped I had made fewer mistakes doing this. It would be very nice to have this in the test suite.

I couldn't find any revision of this file in the git logs.

I think I created this file and then renamed it before I even committed it. The contents are now in set.hlean in that folder (which should indeed be added to that folder).

When the documentation is more complete, a reverse test - find files that aren't mentioned in .md files - would probably also be interesting.

Yes, that would also be really useful. I often forget to add newly created files to the markdown files, so I think there are also lots of files missing.

Ok, added the script to script/. It turns out I had way too much fun writing Python code again after quite some time, so the script now optionally also checks http links (can be slow) and the reverse test (you probably only want to use this from library/ and hott/), and returns a non-zero status code in case of any warning.


Requesting for elaboration on some terms

"Billing Period is the time period since the last invoice date. Service Period is the time period during which you are charged to use the service."
Most of the time, we here are support get asked why the billing period is almost always behind (in dates) for the service period.
For instance, in annual invoices, one sees a Billing Period of Jan 2019 to Jan 2020, with an invoice date somewhere in Jan 2020.
The invoice would show a service date of Jan 2020 to Jan 2021.
It's a bit confusing because, why would a Billing cycle of 2019 to 2020 be showing on an invoice that's for 2020 to 2021 (annual payment)
Please help clarify this confusing concept, thanks!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 07447e32-a5e3-c1ab-4b2e-9d9f22c6347e
Version Independent ID: fb661e27-a1df-1c37-7e30-1f765633fa7c
Content: Understand your invoice for Office 365 for business
Content Source: Office365-Admin/subscriptions-and-billing/understand-your-invoice.md
Service: o365-administration
GitHub Login: @cmcatee-MSFT
Microsoft Alias: cmcatee

@isaacgandalf  That is correct. it is a New subscription and paid monthly.
Hope this helps!
Thanks
Sri

@isaacgandalf - From our understanding, the issue you raised has been answered by msbemba so we will close this issue.
Thank you for your contribution to make the docs better! Much appreciated!


Training with XLM-RoBERTa

Hi, has anybody looked into training a version of udify with XLM-RoBERTa? Seems like it could help with the low-resource languages in multilingual BERT so I'm planning on giving it a go if nobody else has already.

That's a good idea. Now that I see that Hugggingface has added support for it, it should be straightforward to add support here. I might get around to it, but feel free to try it yourself.
Training on my single GPU might take a while. 🙂

I've got a couple spare 2080ti that should do the trick. I've never used AllenNLP before so I'm a little unfamiliar with how all these config files work. If you could give me some general guidance on what I would have to update in the code I'm happy to take a crack at it and share my results.

The first thing to do would be to add the latest transformers release to requirements.txt which has XLM RoBERTa here and here. Then it should be imported into udify/modules/bert_pretrained.py and replace BertTokenizer/BertModel/BertConfig wherever necessary. Finally, copy config/ud/multilingual/udify_bert_finetune_multilingual.json and modify it to point to xlm-roberta-base instead of bert-base-multilingual-cased (and a new vocab.txt file which can be extracted from the pretrained model archive).
There might be a few details I missed, but I think that's most of it. I also highly recommend using a debugger inside udify/modules/bert_pretrained.py to see what the data looks like.
Thanks for offering your help!

Thanks, I'll take a crack at it

Followed the steps you outlined and modified a few other things as well (i.e. modifying the special tokens and tokenizer)  but I keep running into allennlp errors that I can't quite sort. I have plenty compute available if anybody else manages to get this running but I don't think I'll be able to.

Update: came back to this and figured it out. Just had to deal with the differences between how pytorch_pretrained_bert and transformers dealt with model outputs. Training now.

How's the training going? Any problems?

I had a few issues with gradient explosion. Had to take a couple days off but I'm getting back at it now to see if I can get it going again.

Hey, I am trying to train a version of udify with a bert-like model, I was wondering if you got any updates for the changes needed ?
Thank you in advance
@ssdorsey @Hyperparticle

@ssdorsey  or anybody else,
were you able to train the model? Looking to do the same with XLM-R but if you have any experience that you can share, it would be really helpful. TIA.

Any of you might have some updates regarding the training?

@ssdorsey can you once tell us how exactly did you handle the outputs finally? I'm getting this error even after changing the config files.
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling ``cublasCreate(handle)\``
I'm trying to use "ai4bharat/indic-bert" as pre-trained model. The procedure will be very similar to what you would have done in XLM-RoBERTa.


Build 0.11.0

ref: conda-forge/staged-recipes#9315

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-webservice.
I tried to re-render for you, but it looks like there was nothing to do.


Connecting the Polkadots tour - kickoff in Barcelona, Madrid and Lisbon.

Connecting the Polkadots - tour - Farid Rached
Grant Application
This application is (select one):

[x ] Speculative (use this by default)
[ ] an RFP response

This application is (select one):

[x] Public (fully)
[ ] Public with private finances

Abstract
We are planning a worldwide series of meetups and workshops, aimed at a developer crowd in underserved regions called: 'Connecting the Polkadots'. A series aimed to inspire local developers to contribute to the growth and development of Polkadot, Substrate and potentially Kusama, and to inspire them to apply for Web3 grants.
This is a small grant request in order to validate it's added value, doing THREE meetups in Madrid, Lisbon and Barcelona in November 2019. When successfull, we will apply for a followup grant towards other cities.
Checklist

[ x] The grants document has been read and understood.
[x ] The Google Form will be completed accurately. Note that the Google Form requires the pull request URL.
[x ] Abstract (above) is succinct and complete.
[x ] The application is being included into the correct directory: either 'targeted' or 'speculative'.
[ x] The application includes a project description.
[ x] The application includes all names of team members.
[x ] The application includes a description of the team's experience.
[x ] The application includes all necessary links (e.g. GitHub and LinkedIn)
[x ] The "Development Roadmap" section in the application has a timeline of development ("milestones").
[x ] The "Development Roadmap" section in the application has an estimate of funds required.
[x ] The "Development Roadmap" section gives an indication of the team's long term plans.
[x ] The "Development Roadmap" section includes documentation as a deliverable for at least one milestone.

I understand Hutch (@pablanopete) is in contact and dealing with this in a non-grant way.

Correct, going along nicely!

Van: Edward Thomson<EMAIL_ADDRESS>Verzonden: dinsdag 17 september 2019 11:58
Aan: w3f/Web3-collaboration<EMAIL_ADDRESS>CC: faridrached<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Onderwerp: Re: [w3f/Web3-collaboration] Connecting the Polkadots tour - kickoff in Barcelona, Madrid and Lisbon. (#164)
I understand Hutch (@pablanopetehttps://github.com/pablanopete) is in contact and dealing with this in a non-grant way.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/w3f/Web3-collaboration/pull/164?email_source=notifications&email_token=AKVBFVPIIMQTM7YWFCOJEGTQKCS6DA5CNFSM4ISL65IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6374PY#issuecomment-532151871, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKVBFVIOKA5CQ4XPST5YOX3QKCS6DANCNFSM4ISL65IA.


Minified version

Please add minified version (lib/imagecapture.min.js) to the package.

@dandv PTAL.

Thanks for the ping. I've added a minified version and will publish a new version as soon as yarn releases the fix for yarn publish.

just do npm publish

@dsslimshaddy: I had actually uninstalled npm, but I've just published v0.3.4.


Chinese asr task support

Does the mini-omni framework support Chinese speech-to-text? According to my experience, chinese audio file cannot be recognized when I running the 'inference.py'.
I'm eagerly awaiting your response. Thanks in advance!

As we use the whisper encoder, and during my test, I find that it can undertand basic chinese questions, but the output is only english. Please refer: https://github.com/gpt-omni/mini-omni?tab=readme-ov-file#faq

I will close it for now, please feel free to re-open.


package.json so we can publish anchor, button, image + input

What does this PR do? (please provide any background)
Adds package.json to four components so we can publish them.
Only these components to start with because they are required by other components. When these are published we can change the others (for example tile) to require them from npm, then we get rid of all of the cross directory requires, so then we can publish everything and require it independently.
What tests does this PR have?
It is only a config change, no tests
How can this be tested?
cd src/components/anchor && npm install
Screenshots / Screencast
What gif best describes how you feel about this work?

Developer Definition of Done/Quality Checklist (for PR author to complete BEFORE code review):

[x] I have checked the contributing document and I'm happy for this to be reviewed.

Software Engineer or Developer review:

[x] I’ve witnessed the work behaving as expected (this could be on the authors machine or screencast).
[x] I’ve checked for coding anti-patterns.
[x] I’ve checked for appropriate test coverage.
[x] I’ve checked all the tests are passing.

Software Engineer or project guru review:

[ ] I’ve witnessed the work behaving as expected (this could be on the authors machine or screencast).
[ ] I’ve checked for coding anti-patterns.
[ ] I’ve checked for appropriate test coverage.
[ ] I’ve checked all the tests are passing.

Taking :one:

Looks good to me :+1:

Only comment would be that the GIT URLs point to the base project of 'ui-toolkit'. Should we point to the components location within the GIT repo?

Thanks for looking, is that even possible though? The repository field should link to a repo, not an individual file or folder

Not sure - it was just a comment out of curiosity as much as anything. I'd personally find it a bit confusing, if an npm module linked to a repo, where the link was not directly to the module in question.


Subscription Key Security Strategy

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce
Run up the AzureMapsCodeSamples project as-is, no modification required.
Any log messages given by the failure
N/A
Expected/desired behavior
Thanks for this great demo pack. A quick question around the subscripton key.
I am experimenting with using the Map class for a few of our projects, my basic instantiation looks as follows:
new atlas.Map(this.id, {
            "subscription-key": subscriptionKey,
            language: "en-US",
            zoom: this.zoom
            ... more optional params
        });

By my understanding, the class requires that the subscription key be provided on instantiation, it will then be held by the class and used for subsequent requests to the API that provides data for the map (tile vectors, traffic incidents etc.) This obviously means that the subscription key must be brought out into client-side JS in order to be supplied to the class.
What I would like is to be able to provide a proxy url for the Map component, which will be able to intercept requests to its API, and insert the subscription key directly from the server.
Hopefully someone can provide a bit of clarity and if I have missed something obvious in the docs!
Thanks
OS and Version?
Windows 10

There is a new feature coming out soon (few weeks) that will likely be a good option. I'll update this thread once it is announced.

Any update on this guys?

Hi, is there any update on this item? Thanks

There is a new higher security option currently in development that will be announced soon.

Would it be possible for you to give us a broad timeframe for option please?
If my subscription key is in plain text, I believe that anyone who looks at the source could take my key and start running up charges on my account. This is a blocker for me using this service in my production application.

An anno cement is currently planned in about 2 months.
Note, every other mapping platform uses a plain text key, thus why the initial option is that. We don't do URL restricting as that isn't real security and easy to spoof. That is actually a bigger risk as it provides a false sense of security. There is little reason for people to steal each other's keys as anyone can create one and get a decent amount of free usage. That said, we do want to provide a high security option which will be announced soon.

Thank you for this information, it's useful - I'm looking forward to the announcement.

I'm happy to report that last week the Azure Maps team announced a high security option for Azure Maps which uses Azure Active Directory (AAD) for authentication. The announcement can be found here: https://azure.microsoft.com/en-us/blog/announcing-azure-maps/
Here is some related documentation:

https://docs.microsoft.com/en-us/azure/azure-maps/azure-maps-authentication
https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-map-control


Typo error

Spelling mistake of "People"

@SurajPratap10 Please assign me this issue under gssoc'23

assigned @Anshika-Jain02


Feature request: Add a graphical display of logobject timelines

This would make it easier to see how multiple logobjects aligns with each other.

Moved from WE-24


GPL License

GPL works for me, but it does limit things if, for example, ABR builds on this stuff. Might behoove us to use something more liberal like MIT just in case.

+1 MIT
Trevor Bekolay wrote:

GPL works for me, but it does limit things if, for example, ABR builds
on this stuff. Might behoove us to use something more liberal like MIT
just in case.
—
Reply to this email directly or view it on GitHub
https://github.com/ctn-waterloo/best_practices/issues/1.

Changed!
(Although my understanding is that we don't really have to worry too much about GPL limitations if all the contributors are part of ABR, as we could just dual-license, but yeah, it's probably easier to just MIT)


Add "Log messages in a custom format" recipe

This recipe shows how to create a custom logger and log various messages into it. Based on #69 and is a part of #61
Side note:
Too many errors and mistakes were made in https://github.com/brson/rust-cookbook/pull/69 (and it's now in conflit with commit like "oops", so its quality is poor). Now with the help of @dtolnay and @budziq I re-created a clean (?) PR based on this todo-list https://github.com/brson/rust-cookbook/pull/69#issuecomment-300814527

@rap2hpoutre  Hi there was no deed to close the original PR as you could have just git push --force pulled_branch to your repository with new changes and the PR would be completely updated/rewritten :)
Anyhow. Your pull looks very good :smiley: . Minor suggestions:

[ ] the textual description should mention hyperlinked  log::Log and log::set_logger and that it is writing to stdout.
[ ] (much less important - not mandatory) I would suggest changing title to "Log messages with a custom logger impl" as "custom formatting" can be realized via https://doc.rust-lang.org/log/env_logger/struct.LogBuilder.html

@bugzik Thanks! Once again I would like your recommandations. What about this textual description:

Set a basic custom logger ConsoleLogger that logs various messages to stdout. Loggers implement the log::Log trait and are installed by calling the log::set_logger function. This ConsoleLogger writes to stdout.

Source: https://doc.rust-lang.org/log/log/index.html#logger-implementations
For the other suggestion, I think you are right but I think we do not need "impl", just "Log messages with a custom logger"

I would suggest to make the text a little more concise and in passive voice.

Custom logger ConsoleLogger is implemented with log::Log trait and installed via log::set_logger. Messages are logged to stdout.

As to your suggestion "Log messages with a custom logger" looks awesome to me.
For future reference, I would just push updated PR and ask for review instead of posting suggested text inline. It will be easier and less noisy on the thread :)

Looks good to me :ok_hand:. Great work! I assure you that it was painful only the first time :)
@rap2hpoutre Do you feel upto creating the the minimal env_logger based examples?

Great work! I assure you that it was painful only the first time :)

Thank YOU for all the time you offered me. I learned A LOT. 👌

Do you feel upto creating the the minimal env_logger based examples?

Not today I think, maybe after the weekend. I think I will do this in a new PR because I can't say "yes I will do this in X hours/days", I have no idea right now. But I will continue to contribute and hope I will become a better contributor.

Nicely done!


Support FOFN original subread input, document CLI

Behavior I expected
Accept FOFN input for subreads (--input_subreads_unaligned=subreads.fofn).
Very frequently PacBio subread data is spread across directories and files according to flow cell and run architecture. This is the standard format in which PacBio reads are delivered to customers by service providers. The solution to this is the FOFN format (see for example PBMM2 documentation).
Behavior I observed
Command-line arguments are not documented. Unclear expected input of --input_subreads_unaligned; however instead I received an error that the FOFN file did not have a SAM header. Example workflow does show BAM input but does not otherwise describe inputs.
Reprocessing, merging, and housekeeping related to transformations on very large BAM files is a notable overhead and makes deepconsensus less useful.
Background
I am working with a rather large dataset (several TB) that involves combining across multiple PB BAM files from different flow cells. Therefore I have used the commonly used FOFN (file of file names) format as input to the PBMM2 step. Accepting FOFN is standard for PB tools.
I got to the deepconsensus step itself, however, before observing that BAM only appears to be supported for the unaligned input subreads.
I am currently using a workaround of pbmerge from the PB toolkit to prepare a single unmapped BAM file from my subreads. This single BAM can then presumably be passed to deepconsensus.
What would help
I suggest some options for addressing this issue, at various levels of effort:

Best: Explicitly accept FOFN input for unaligned subreads, fully document CLI including help strings.
Medium: Document CLI including help strings, update the quickstart.md to reflect the requirement for a single subread input BAM, including a pbmerge step for multiple BAM files.
Minimal: Update the quickstart.md to reflect the requirement for a single subread input BAM, including a pbmerge step for multiple BAM files.

Thank you for this feature request.
DeepConsensus is still at a proof-of-concept stage, but we are working on making it more scalable and easy to use outside of Google's internal infrastructure. I'll log this as a feature request in the meantime. Thanks!

Hi @maximilianpress ,
We've made a release in January that cleaned up a code quite a bit, and we also no longer use pbmm2.
I'm going to close this issue now. But feel free to open another one if you encounter any issues with the latest release.


cluster_config.yaml.example - needs update

I copied the cluster_config.yaml.example to my personal k3s-hetzner.yaml
it took me some time to figured out, that

ssh_key_path is now public_ssh_key_path
private_ssh_key_path is missing
ssh_allowed_network is missing

create_cluster.yaml.example is != of readme section "Creating a cluster".

Which yaml are you referring to? I just checked if I updated the README and it seems that I did. So I am not sure of which section you mean.

Oh I see, I forgot to update that file. Sorry :)

Thanks for reporting this, I have updated the cluster.yaml.example file.


Is it possible to download only the first slide from post that have multiple?

There's a scenario that a post can be multiple but unfortunately those additional videos are promotion which I don't like to include in download.

Not possible in the CLI. You could implement something like this in JavaScript.

Not possible in the CLI. You could implement something like this in JavaScript.


events: Add new user_settings event type when updating user settings.

There are four commits -

Send user_settings event for both display and notification settings.
Add user_settings_object to client_capabilities. The old events will be sent only is user_settings_object is false.
Add user_settings object, containing all display and notification settings, to register response.
Update frontned code to use user_settings event.

Discussion

There will be some changes, mainly in api docs and some merge conflicts in changelog, when #19394 is merged.

Have also asked the question of two copies of settings values in the register response in chat.zulip.org.

Thanks for working on this @sahil839!  I think this PR is pretty close to being mergeable; we mostly just need to finalize these last bits of API semantics and make sure the API documentation is clear about how it works.

Yes, would be better if we resume this after doing that migration.

@timabbott updated the PR with suggested changes except this for which I have commented in the thread itself.
Also, I have almost done the work of controling the setting fields in top-level object using client_capabilities and the frontend changes for using the user_settings object, but need to test it carefully, Will complete this by tommorrow.

This PR looks great!  I pushed back after the small variable name change noted above and also keeping all the changes at feature level 87, since I think it makes sense for this to be an atomic update for the purposes of clients.
I'll hold off on merging until you add that last commit which can also be at feature level 87; please comment if you need to make any changes to the existing commits, since that way I can avoid rereading the ones I've already reviewed and am happy with.

I just merged #18074, so this will need a feature level bump.

This is not ready for review yet as I have to modify the code for the recently added settings like enable_drafts_synchronization.

@timabbott Updated the PR.

Added a prep commit for removing duplicate tests for enable_drafts_synchronization.
Updated the feature levels in previous commits and also added enable_drafts_synchronization in the api docs of user_settings object.
There is one change in previous commits - moved the change to make user_settings_object True to the last commit of adding the user_settings module. Rest, the old commits are same.
I added the user_settings module in this PR only, as I was facing some issues with lint for typescript and it would have resulted in some unnecessary changes which would have been removed anyway in this PR.

Merged, after adding a commit adding complete types to the user_settings object; @priyank-p FYI.
I also did a bit more work on the documentation in a final commit.  Huge thanks for executing this transition @sahil839!