Add Package JavaDocs everywhere

Adds https://github.com/SpongePowered/SpongeAPI/issues/520
Bukkit had a nice overview with a one sentence description of each package.
IMO this is quite useful for a more general overview.
Overview:

Package
Description

...api
Core classes in the API with general purpose.

...api.attribute
Classes to manipulate Attributes such as MAX_HEALTH and MOVEMENT_SPEED.

...api.block
Classes used to manipulate block states of block volumes such as worlds.

...api.block.tileentity
Classes that represents special data holder blocks.

...api.block.tileentity.carrier
Classes that represents special data holder blocks with inventories.

...api.data
Classes used to store and manipulate data on a wide variety of data holders, replaces the insecure NBT access.

...api.data.manipulator
Data classes that can be used to add, alter, copy and delete data from DataHolders.

...api.data.manipulator.block
Data classes that can be used to add, alter, copy and delete data from blocks.

...api.data.manipulator.catalog
Utility classes listing all data classes applicable to a specific part of the API.

...api.data.manipulator.entity
Data classes that can be used to add, alter, copy and delete data from entities.

...api.data.manipulator.item
Data classes that can be used to add, alter, copy and delete data from item stacks.

...api.data.manipulator.tileentity
Data classes that can be used to add, alter, copy and delete data from tile entities.

...api.data.property
Classes that represent immutable data properties.

...api.data.type
Enum like classes used in DataManipulators.

...api.effect
Classes representing visual or audible effects for viewers.

...api.effect.particle
Classes representing visual particle effects for viewers.

...api.effect.sound
Classes representing sound effects for viewers.

...api.entity
Classes for non-voxel objects that can exist in a world, including all players, monsters, projectiles, etc.

...api.entity.explosive
Classes for entities that can explode such as TNT.

...api.entity.hanging
Classes for hanging entities such as decorative item frames.

...api.entity.living
Classes for living entities such as players and monsters.

...api.entity.living.animal
Classes for living Animals such as cows and sheeps.

...api.entity.living.complex
Classes for complex entities such as the ender dragon.

...api.entity.living.golem
Classes for golems.

...api.entity.living.monster
Classes for Monsters such as creepers and skeletons.

...api.entity.player
Classes for players.

...api.entity.player.gamemode
Should be moved

...api.entity.player.tab
Classes for player's tab lists.

...api.entity.projectile
Classes for projectiles.

...api.entity.projectile.explosive
Classes for explosive projectiles.

...api.entity.projectile.explosive.fireball
Classes for fireball projectiles.

...api.entity.projectile.source
Classes for projectile sources.

...api.entity.vehicle
Classes for vehicles such as boats and Minecarts.

...api.entity.vehicle.minecart
Classes for minecart.

...api.entity.weather
Classes for weather related entities.

...api.event
Classes dedicated to handling triggered code executions.

...api.event.attribute
Events related to attributes.

...api.event.ban
Events related to bans.

...api.event.block
Events related to blocks.

...api.event.block.tileentity
Events related to tile entities.

...api.event.cause
Classes for event causes and reasoning.

...api.event.cause.reason
Classes for event reasoning.

...api.event.entity
Events related to entities.

...api.event.entity.living
Events related to living entities.

...api.event.entity.living.human
Events related to humans including NPCs and players.

...api.event.entity.living.human.fishing
Events related to fishing humans.

...api.event.entity.living.player
Should be moved

...api.event.entity.minecart
Events related to minecarts.

...api.event.entity.player
Events related to Players excluding NPCs.

...api.event.entity.player.fishing
Events related to fishing players.

...api.event.inventory
Events related to inventories.

...api.event.message
Events related to messages such as commands and chat.

...api.event.network
Events related to network communication.

...api.event.rcon
Events related to the remote console access.

...api.event.server
Events related to the Server.

...api.event.server.query
Events related to the Server queries.

...api.event.state
Events related to the state of the game.

...api.event.statistic
Events related to in game Statistics.

...api.event.weather
Events related to weather effects.

...api.event.world
Events related to the world.

...api.extra.skylands
Classes related to the skyland world generation.

...api.item
Classes related to item stacks and inventories.

...api.item.inventory
Classes related to inventories.

...api.item.inventory.crafting
Classes related to crafting inventories.

...api.item.inventory.custom
Classes related to custom inventories.

...api.item.inventory.entity
Classes related to inventories for entities.

...api.item.inventory.equipment
Classes related to equipment inventories.

...api.item.inventory.property
Property classes related to inventories.

...api.item.inventory.slot
Classes for different inventory slot types.

...api.item.inventory.transaction
Transaction classes related to inventories.

...api.item.inventory.type
Classes for different inventory layouts.

...api.item.merchant
Classes related to merchants and item trading.

...api.item.recipe
Classes related to (crafting) recipes.

...api.network
Classes related to network communication.

...api.plugin
Classes related to plugins and plugin management.

...api.potion
Classes related to potion effects.

...api.resourcepack
Classes related to resource packs.

...api.scoreboard
Classes related to scorebards.

...api.scoreboard.critieria
Classes related to scoreboards defining the update behavior.

...api.scoreboard.displayslot
Classes related to positioning scoreboards.

...api.scoreboard.objective
Classes related to tracking the actual score value for the entiries in scoreboards.

...api.scoreboard.objective.displaymode
Classes defining the look of the values displayed by scoreboards.

...api.service
Classes related to service management as well as service definitions.

...api.service.ban
Service classes related to ban management.

...api.service.command
Service classes related to command management.

...api.service.config
Service classes related to config management.

...api.service.event
Service classes related to event management.

...api.service.pagination
Service classes related to pagination handling.

...api.service.permission
Service classes related to permission management.

...api.service.permission.context
Classes used to separate different permission contexts.

...api.service.permission.option
Permission holder classes more data than just permissions.

...api.service.persistence
Classes related to managing and persisting data objects.

...api.service.profile
Classes related to fetching game profiles.

...api.service.rcon
Service classes used to obtain details about the remote console.

...api.service.scheduler
Service classes related to timed code executions.

...api.service.sql
Service classes related to sql connection management.

...api.service.user
Classes related to fetching user profiles.

...api.statistic
Classes related to ingame statistics.

...api.statistic.achievement
Classes related to achievements.

...api.status
Classes related to server status publishing.

...api.text
Classes related to messaging and text displaying and formating.

...api.text.action
Classes related to actions bound to text parts.

...api.text.chat
Classes for controlling the type of text being send.

...api.text.format
Classes related to Text formating such as colors and style.

...api.text.selector
Classes related to selectors.

...api.text.sink
Classes related to message sinks (message target bundles).

...api.text.title
Classes related to title screens.

...api.text.translation
Text classes related to multi language support.

...api.util
Multi and single purpose classes to facilitate various programmatic concepts.

...api.util.annotation
Utility annotation classes.

...api.util.ban
Utility classes related to player and user bans.

...api.util.blockray
Block ray tracing utility classes.

...api.util.command
Utility classes related to commands.

...api.util.command.args
Utility classes related to command arguments.

...api.util.command.args.parsing
Utility classes related to command argument parsing.

...api.util.command.dispatcher
Utility classes related to command dispatching.

...api.util.command.source
Utility classes related to command sources.

...api.util.command.spec
Utility classes related to command specifications.

...api.util.event.callback
Utility classes related to event callbacks.

...api.util.event.factory
Utility classes related to event instance/class generation.

...api.util.event.factory.plugin
Utility classes related to event instance/class generation extensions.

...api.util.event.superclasses
Utility class for generated event classes.

...api.util.reflect
Classes related to java reflections.

...api.util.rotation
Utility classes related to rotations.

...api.util.weighted
Classes related to weighted randomization.

...api.world
Classes related to the world and its properties.

...api.world.biome
Classes related to the world's biomes.

...api.world.difficulty
Classes related to the worlds difficulty.

...api.world.extent
Classes related to virtually separating worlds into smaller pieces and working with them.

...api.world.gamerule
Classes related to the world's game rules.

...api.world.gen
Classes related to world generation.

...api.world.gen.populator
Classes related to the world population (blocks only).

...api.world.gen.type
Classes related to type definitions for the world generator.

...api.world.storage
Classes related to world storage access.

...api.world.weather
Classes related to the weather in a world.

Please note, that this summary does not contain any links to referenced classes, although the real overview would have them.
If you have any wishes or suggestions please tell me so i can add them here.

If I didn't know any better, most of these javadocs are just reiterating what the package name says versus what the package actually represents and how it can be used.
Example:
/**
 * Service classes related to
 * {@link org.spongepowered.api.service.ban.BanService ban management}.
 */
@org.spongepowered.api.util.annotation.NonnullByDefault
package org.spongepowered.api.service.ban;

I wonder what else could a package named service.ban be useful for? Surely it has something to do with being a service related to bans... Could you possibly elaborate? Give us a clue as to what can be done with it? How to use it? When to use it?

I was asked to not include examples.
https://github.com/SpongePowered/SpongeAPI/issues/520#issuecomment-120238753

I was asked to not include examples.
#520 (comment)

Sure, no examples, but not everything is explained in examples. The reasoning for examples not being included is that they can quickly become out of date. Explaining in a general sense of what the packages do in more than a single sentence for some of the packages. Explanation as to why the package is structured as so, etc.

Okay, can you give me an example why the ban package is structured that way?
Especially that package is a real myth for me, because everything connected to that service is in an another package (util).
Can you give a short example or outline? I would like to get a feeling of what exactly you do have in mind.
The only reference i had was Bukkit and some other publicly available javadocs.
Most of them consisted of one or two sentences.

@gabizou Something like this?
org.spongepowered.api.service
org.spongepowered.api.service.ban

@SpongePowered/developers Are we going to go ahead with this?

@simon816
Yes.

Shall I update it to latest master using this PR quality level or will you write them yourself anyway? I cannot start with this until this weekend though.

We'll be going through and documenting things as we ramp up for beta. Having that said, I'd appreciate some smaller javadoc PR's for individual packages/groups so as not to nitpick and prevent one massive addition when it's a problem of smaller additions.

@ST-DDT Mind updating this PR (rebase to eliminate the unnecessary merge commits)?

@gabizou Done

While this is a decent attempt, this PR is just a regurgitation of what the package is named. If you really want this to happen, smaller PRs for specific packages can be done with better descriptions explaining what sort of functionalities they pertain to.


Disable colors in Edge and Internet Explorer

Fixes https://github.com/visionmedia/debug/issues/417
Both Internet Explorer and Edge report "AppleWebKit" in their User-Agent, so the current  useColors() function in src/browser.js returns true (check my rationale about this here. But in fact, Edge and Internet Explorer do not support colors in the console.
This PR checks whether the browser is Edge/IE and, if so, makes useColors() return false.
NOTE: A good project for detecting browsers is bowser. In includes nice examples of how the User-Agent of many browsers looks like.

NOTE: I will be able to test my fork tomorrow Monday and will confirm here that it works (I hope).

Coverage increased (+2.6%) to 75.325% when pulling 61852efeafcd8c83db016a5e31b6843bff858e68 on ibc:disable-colors-in-edge-and-ie into 13e1d068e9265b2c9a160ba242a6be200b9811f0 on visionmedia:master.

Coverage increased (+2.6%) to 75.325% when pulling 0e47511c9f9757de73c8f7cdda34413eddd4e23f on ibc:disable-colors-in-edge-and-ie into 13e1d068e9265b2c9a160ba242a6be200b9811f0 on visionmedia:master.

Coverage increased (+2.6%) to 75.325% when pulling 0e47511c9f9757de73c8f7cdda34413eddd4e23f on ibc:disable-colors-in-edge-and-ie into 13e1d068e9265b2c9a160ba242a6be200b9811f0 on visionmedia:master.

Coverage increased (+2.6%) to 75.325% when pulling 0e47511c9f9757de73c8f7cdda34413eddd4e23f on ibc:disable-colors-in-edge-and-ie into 13e1d068e9265b2c9a160ba242a6be200b9811f0 on visionmedia:master.

Hi, I'm just using my fork in Edge. It works. Obviously, the Edge support for %o in console.log("foo:%o", foo) is not very cool (it prints two lines, etc). But at least, with my PR logger() behaves similar to console.log() in Edge.

I hope you merge it.

Please authors, any feedback/comment about this PR?
debug module does not properly in IE/Edge. This PR fixes that. Please, don't leave this PR open forever.

Merged, thank you!

THANKS!!! Finally I can remove my debug fork from the package.json of many projects :)

Well, not so fast, I should wait for a new release in NPM :)

Check v3.0.1
On Thu, Aug 24, 2017 at 12:42 PM, Iñaki Baz Castillo <
<EMAIL_ADDRESS>wrote:

Well, not so fast, I should wait for a new release in NPM :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/visionmedia/debug/pull/489#issuecomment-324736817,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEWWBZ02LyE-1epPHXEnxmeHSjzwTViks5sbdIvgaJpZM4O8qne
.

Awesome, thanks! 👍

top top top!


Add ChangeObserver to relauncher contrib

I think a class like this could be helpful:
class ChangeObserver<T> {
   public static create<TTypeName extends "boolean" | "string" | ...>(type: TType): ChangeObserver<TypeNameToType<TTypeName>> { ... }

   private hasValue = false;

   // Returns if there was a change compared to the last value
   handleChange(value: T | undefined): boolean { ... }
}

Usage:
private readonly windowControlsOverlayEnabled = new ChangeObserver("boolean");
private readonly settingsProfilesEnabled = new ChangeObserver("boolean");

...

if (isWindows) {
	changed |= this.windowControlsOverlayEnabled.handleChange(config?.window?.experimental?.windowControlsOverlay?.enabled);
}

Originally posted by @hediet in https://github.com/microsoft/vscode/pull/156433#discussion_r931077442

@sandy081 please let me know if you like this!

This class is primarily owned by @bpasero. Hence assigning to him.

Yes, feel free, I can review a PR, thanks.


update ockam service start kafka-producer/consumer clap command to combine arguments bootstrap-server-ip and bootstrap-server-port

Current behavior
Currently when starting a kafka producer and consumer service, the arguments to indicate the ip and port are separate such as:
ockam service start kafka-producer --node producer1 --project-route /project/default \
  --bootstrap-server-ip <IP_ADDRESS> --bootstrap-server-port 5000 \
  --brokers-port-range 5001-5100

ockam service start kafka-consumer --node consumer --project-route /project/default \
--bootstrap-server-ip <IP_ADDRESS> --bootstrap-server-port 4000 \
--brokers-port-range 4001-4100

Desired behavior
Update this command to allow for one singular argument, named bootstrap-server that accepts an {IP}:{PORT} or just {PORT}
In the case of just a PORT, the ip address will should be the loopback address, <IP_ADDRESS>
ockam service start kafka-producer --node producer1 --project-route /project/default \
  --bootstrap-server <IP_ADDRESS>:5000 \
  --brokers-port-range 5001-5100

ockam service start kafka-producer --node producer1 --project-route /project/default \
  --bootstrap-server 5000 \
  --brokers-port-range 5001-5100

ockam service start kafka-consumer --node consumer --project-route /project/default \
  --bootstrap-server <IP_ADDRESS>:4000 \
  --brokers-port-range 4001-4100

ockam service start kafka-consumer --node consumer --project-route /project/default \
  --bootstrap-server 4000 \
  --brokers-port-range 4001-4100

Dev Notes
The commands implementation to use the arguments are found here.

We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels -  https://github.com/build-trust/ockam/labels/good first issue or https://github.com/build-trust/ockam/labels/help wanted

I'll take this one

Thank you, all yours @nidnogg !

I've put up a draft PR for this as I have not yet been able to test this without a local Kafka installation (not sure if it's needed yet). LMK if it's headed in the right direction!


Follow IDE system language

Is your feature request related to a problem? Please describe.
It would be nice if the plugin language could follows IntelliJ IDEA.

Actually, idea doesn't support multipule language default, if you want to setup different language, you should install language plugin. So we'd rather switch language in our devpilot settings.

Quite reasonable. Thanks!


fix: fix wrong network explorer url for startegies

Summary

Closes: #434
Fix an issue where the explorer url for a voting power strategy is on the wrong network
How to test

Go to http://localhost:8080/#/sn-sep:0x0141464688e48ae5b7c83045edb10ecc242ce0e1ad4ff44aca3402f7f47c1ab9/proposals
Open the voting power modal
All links to the explorer should use sepolia.starkscan

For OZ storage proof strategy, EVM slot value and others storage proof related strategy it should link to Etherscan not Starkscan, here is a space with storage proof and common strategies: http://localhost:8080/#/sn:0x071977084d73002fed430d99108da39d241b900099ccc2a4cdcb7d5041d851d2/proposals

Is there any other exceptions/uses cases?

No, but storage proof have many different strategies, SN mainnet and SN Sepolia strategies are different

No, but storage proof have many different strategies, SN mainnet and SN Sepolia strategies are different

So all storage proof srrategies should use etherscan?

Yes, it will either be Ethereum mainnet or Sepolia

And those strategies are only on starknet ?


Greater extensibility for fourkeys

My organization is looking at implementing fourkeys across all our teams, and have run into a couple of competing requirements:

We need to support some "custom" event sources, which it doesn't make sense to contribute back to fourkeys. For instance, a majority of production deployments occur via a system that was developed in-house.
We want to be able to pick up fourkeys improvements, without requiring the burden of manually incorporating those changes into our own fork.

To further illustrate some of the difficulties:

Adding a new event source requires changes to the event handler
Adding a new source requires code changes to the install script (and the new terraform work as well I believe)
Adding a new source requires code changes to the BigQuery queries shared by all sources

My team has been discussing some ideas of how we could make adding new sources easier, with a focus on configuration rather than code. We are now hoping to get some feedback on these ideas, or other suggestions about how we could satisfy our competing requirements.
Config file as input to setup script
The first part of the solution we have discussed would be to modify the install script to accept a file that would define the four keys configuration. The install script could then use this to run the appropriate gcloud commands (or create the appropriate terraform resources).
This could also potentially be used to configure the event handler, which leads to the next idea.
Generic Event Handler
We would like to eliminate the need to modify the event handler when adding a new source. This could be done by having the event handler read in configuration (possibly from an environment variable or file packaged in the container). This might look something like this:
routes:
  - newsource:
    topic: newsource      # name of the topic to forward messages to
    verification: simple_token      # verification function to use
    criteria: user_agent      # criteria for forwarding message. in this case, user_agent that matches topic name

Source Specific Queries
Instead of including the logic from all sources in each BQ query, only the logic for a single source would be included. These would then be UNIONED to produce the view/table used by the dashboard.
SELECT * FROM newsource_deployments
UNION
SELECT * FROM othersource_deployments

It is likely that the install script would need to generate the queries that would combine source specific tables.
This would line up with an approach that has already been discussed on the slack channel by @dinagraves and @twoodhouse
Those are the basic ideas so far. Please provide thoughts/feedback and let us know if this is a direction fourkeys would like to go. We are looking for opportunities to contribute as soon as we can get through the CLA process.

Thank you Landon!  I love this idea.
Would this be only at build and deploy or would the event-handler read from an editable config after deployment?   We did consider having it read from a storage bucket or something to be able to update the authorized sources without re-deploying.  My biggest concern was the fact that some sources have very complex authentication methods (looking at you Github!) and from a security standpoint I was concerned about blindly executing functions from a config file.
Do you want to set up some time to chat about it more?

@dinagraves, thank you for your response. I would be more than happy to set up a time to discuss further. What is your preferred medium for this discussion?
We hadn't thought much about making this dynamic (no need to redeploy event handler). I can see how there would be some benefit, and if this is the preferred route we would be happy to oblige.
To clarify one point, in the design we originally conceived, the authentication functions wouldn't be defined in the configuration file. We would just be specifying a pre-defined function to execute. Perhaps this was naive on our part, but we assumed that most sources could use a few generic methods (such as the "simple_token_verification"). Maybe we need to take the idea a bit further, and define the verification functions as python plugins.
These would be packaged in the image at build time, but then at run time the config file would specify which plugins to invoke as each request came in. Does this approach resolve the security concerns? I think it would prevent execution of arbitrary code in the event that someone gained access to the config file.

Sent you a message on Slack to arrange a meeting.

Landon and I discussed the config file format some more out-of-band.
Here's where the newest plan:
`routes:

name: github-worker
source: ../github-plugin
topic: github
verification: github.complex_auth # One of the default methods, or a custom one from the plugin
matchers:

header: User-Agent
value: Github`


Create Python package

We need to make this an actual Python package that can be released.
Benefits:

Better testing with pytest
Better linting with pylint and flake8
Better integration with pip install in Docker container
Better code reuse (e.g., apbs_logger)

The goal of this issue to make our software able to be installed from PyPi so that the Docker image can just do a pip install apbs_aws.


⚠ GitLab Server has degraded performance

In 712fda7, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6916 ms

Resolved: GitLab Server performance has improved in 99ef112.


Sync assignments endpoint

Description

Item 1

Reviewers

Primary:
Secondary:

Checklist

[ ] Added/Updated related documentation (if applicable).
[ ] Added/Updated related unit tests (if applicable).

Screenshots (if applicable):

Solved this in subsequent PR


Add arm64 hardware acceleration

Background
On onnx-go, we have poor performance on running some models on arm64. After profiling, we identify that we spend a lot of time on gonum.
More informations on this issue :
https://github.com/owulveryck/onnx-go/issues/169
Proposal
Add arm64 asm instructions.
Potential impact of proposal

/cc @Kunde21

@blackrez I haven't started studying arm64 asm and I still have yet to finish x64 (s|d)gemm kernel.  This is on my roadmap and we're looking for help on it, but it may not be right away.

I'm volunteer to help on this issue. I'm not an expert on arm64 but I want to learn. If you have some resources to point me I will be glad to help

I always start with the manuals, so arm intro and the ISA manual are the best references.  Reading through the kernels in OpenBLAS can help, though they usually have a lot of C preprocessor to them.


not working with tus-node-server

I have tried tus-js-client with my Laravel PHP code. It works if I put upload endpoint to https://master.tus.io/files/. If I put endpoint to my local machine, which runs a standalone tus-node-server (<IP_ADDRESS>:8000), I have the following exception:
Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
at Upload._createUpload (http://<IP_ADDRESS>:8080/tus-js-lib/dist/tus.js:569:11)
at Upload.start (http://<IP_ADDRESS>:8080/tus-js-lib/dist/tus.js:457:12)
at HTMLInputElement.startUpload (http://<IP_ADDRESS>:8080/tus-js-lib/demo.js:106:10)
What went wrong with my local TUS server? How can I debug?

It looks like the endpoint that you provided to new tus.Upload is not a valid URL, so tus-js-client is not able to create an upload. What value does this parameter have in your situation?

I ran a standalone tus-node-server, which has the following code:
`const tus = require('tus-node-server');
const server = new tus.Server();
server.datastore = new tus.FileStore({
path: './files'
});
const host = '<IP_ADDRESS>';
const port = 8000;
server.listen({ host, port }, () => {
console.log([${new Date().toLocaleTimeString()}] tus server listening at http://${host}:${port});
});`
It prints out "[09:33:58] tus server listening at http://<IP_ADDRESS>:8000" when getting started; and I use "http://<IP_ADDRESS>:8000" as the endpoint for tus_js_client.

Can you please try using http://<IP_ADDRESS>:8000/files as the endpoint? tus-node-server is only accepting uploads at the /files path.

yes, it is working now. Previously I tried http://<IP_ADDRESS>:8000/files before, but I used './files' as storage path not knowing '/file' is relevant to tus-node-server running location.
Now I have two more questions:
(1) how can I use https endpoint? I have a guess: maybe I don't need to change the tus-js-client and tus-node-server.js at all, I just need to change http to https in endpoint. At browser side, browser will take care of https encryption, at server side, I should use a web server like Apache2 to redirect https traffic to the tus-node-server. Is it a correct way?
(2) Now the server is standalone, how can I embed it into my PHP web server?

yes, it is working now. Previously I tried http://<IP_ADDRESS>:8000/files before, but I used './files' as storage path not knowing '/file' is relevant to tus-node-server running location.

The path property defines under which URL tus-node-server is accessible while the directory property defines where the files will be stored on disk: https://github.com/tus/tus-node-server/blob/master/lib/stores/FileStore.js#L27

I have a guess: maybe I don't need to change the tus-js-client and tus-node-server.js at all, I just need to change http to https in endpoint. At browser side, browser will take care of https encryption, at server side, I should use a web server like Apache2 to redirect https traffic to the tus-node-server. Is it a correct way?

Yes, exactly that is correct. You can find example configurations for Apache and Nginx at https://github.com/tus/tusd/tree/master/docs. Even though they are in the tusd repository, they can be used for tus-node-server as well with minimal changes.

Now the server is standalone, how can I embed it into my PHP web server?

tus-node-server allows you to listen to events, e.g. when an upload is finished: https://github.com/tus/tus-node-server#events. From those event listeners you can then send a request to your PHP web server to do further processing.

I took a looked at both Apache and Nginx configuration files.
For Apache, there are lines
        # Pass requests to tusd server         ProxyPass /files http://localhost:1080/files         ProxyPassReverse /files http://localhost:1080/files
I basically understand.
However, in Nginx config file, there is nothing similar. I wonder how Nginx knows what traffic to forward to tus server. It cannot be all the HTTPS traffice, because I have other web server running.

Is it in location?
location / {         # Forward incoming requests to local tusd instance         proxy_pass http://localhost:8080; ... }

Is it in location?

Yes, it is.

got some error like

What does the log output from tus-node-server look like when you start it using the DEBUG=* environment variable?

can you be more specific on how to enable debug mode?
I use nodejs tus_node_server.js to start. It runs in a Ubuntu OS.
Now I have that HTTP 412 error even without running proxy in between.
Is there good document on how to write the server code like catch events, and errors, etc?

@djsg he meant something like:

suppose you start your app with npm start
to enable debug logging you'd do DEBUG=* npm start

After some try-and-error, I believe I have managed to make tus-js-client to work with tus-node-server through nginx proxy.
However, since my server security cert is self-signed; line 499 of upload.js xhr.send(...) function hit net:ERR_CERT_AUTHORITY_INVALID error.
Is there a better way than disabling it in browser?

after disable security check in chrome, I got that 412 error code again.
Here is the tus-node-server print to screen msg:
tus-node-server Invalid upload-metadata header: filename N3o5MjAteDY0Lm1zaQ==,filetype

Hi all,
thanks for your help. Since my original problem is resolved. I will close this issue.


Update MSSQLDialect overrideDriverTypeConversion to support empty dates

Hi,
I'm using Model.fromMap() to populate my models. I have a table on MSSQL with a datetime2 column. When I do Model.fromMap() and my datetime2 column is empty, MSSQLDialect.overrideDriverTypeConversion does an exception on line 108 because the string is empty.
The if(value instanceof String) sencence should be if(value instanceof String && value!=null && !value.isEmpty())
This way you can create a model with fromMap and later run presence and format validators on the datetime2 column that actually can't be run because fromMap throws an exception.
Right now I have to validate myself if my form gives an empty date to exclude it from the map given to Model.fromMap() method, but it would be better to do this with validators on Model.save(). This is not needed with MySQL because it uses DefaultDialect which doesn't try to parse empty or null strings as dates.

@axel20000 feel free to submit a pull request. Do not forget to add a test for this condition


add public email signup to typelift.slack.com

here's the link for: https://github.com/outsideris/slack-invite-automation (edited)
an example of this running is: ios-developers.io
https://typelift.slack.com/
https://slack-files.com/T0AEG81AL-F0AF09Z0W-8fddd9db8e

We're using gitter now so this issue is closed.


Fixed pandas in requirements.txt that got removed

Close #42

Merging since this is just changing requirements.txt


How to extract the weight and bias from GRU and feed to a GRUcell layers?

Hi ,  I find that in pytorch, there are ways to extract  the bias and weights from a trained GRU layers and apply them to a GRUcell as follows:
def get_gru_cell(self, gru):
    gru_cell = nn.GRUCell(gru.input_size, gru.hidden_size)
    gru_cell.weight_hh.data = gru.weight_hh_l0.data
    gru_cell.weight_ih.data = gru.weight_ih_l0.data
    gru_cell.bias_hh.data = gru.bias_hh_l0.data
    gru_cell.bias_ih.data = gru.bias_ih_l0.data
    return gru_cell

where gru param is a trained pytorch's GRU layers(nn.GRU).
I want to know how to rewrite this implementation by Tensorflow2.3?
For example I try to rewrite it in TF2 as follows:
def get_gru_cell(self, gru):
    gru_cell = tf.keras.layers.GRUCell(gru.units)
    gru_cell.set_weights(gru.get_weights())
    return gru_cell

But I get value_error:
ValueError: You called set_weights(weights) on layer "gru_cell_2" with a weight list of length 3, but the layer was expecting 0 weights. Provided weights: [array([[-0.017596  , -0.01114826, -0.05229527, .....
Can anyone tell me how to rewrite it correctly? Thanks!

Ok , I find that I should build layer and give a input shape before do layers.set_weights(), which is different from Pytorch.
Because I have solved the problem, I close this issue.


new logging (amends #518)

[ ] refactor tracer API and get rid of probe2trace.pl

Sounds good to me. Thanks. Merging.


Crash when changing "operation" mid-mouse drag

(I'm new to ImGuizmo, so apologies if this is documented and I haven't found it yet. And thank you for this great tool.)
Suppose I'm using an ImGuizmo in TRANSLATE operation, while I'm dragging with the mouse if I change the operation to, say, ROTATE (e.g., with a keyboard shortcut) then Manipulate will crash.
Currently, my unsatisfying solution is to call Enable(false);Enable(true); if the operation changes mid-drag. This flips the "Using" bits to false which kills the current mouse interaction. 1) Is there a more graceful way to stop the current mouse interaction? I didn't see a set_using(bool) type function exposed. 2) Is there a best practice to deal with changing the operation mid mouse drag? I suppose I could handle the logic on my side to wait until mouseup to change the operation, but maybe there's better thing to do.

Hi Alec!
Internaly, I use mouse button up/down to handle various states. So, if the manipulation mode changes there is no way I can detect it.
The quick to fix it IMHO is to wait for a mouse up before changing the manipulation mode on your side.


Flat logo/icon

The website uses flat design.
The icon on the slack channel uses flat design.
There's a franz icon on the website (the one used for plugins) that uses flat design.
Why not moving to flat design for the franz logo? That gradient and white border could be removed and that would be it. I can take charge of that if you want.

Here's an example!!

I have tried that in the past and while I like the flat logo as a standalone graphic. It doesn't work well in the context of the dock or taskbar as it looks a little pale in comparison to other apps.

I'm planning to do a redesign of the brand when Franz 5 officially leaves it's beta state (if this is a thing 😄)

Ha ha okay then! Closing this (for now :sunglasses:)

Have you seen this one...it's really nice! https://www.sketchappsources.com/free-source/1851-franz-icon-redesign-sketch-freebie-resource.html

Yeah, I'm also using that one. Looks great.


Proposal: Switch Docker Image to Alpine distro

Switch to Alpine distro version of deno which is much smaller than the one used.

This is released with v3.3.0


⚠ GitLab Server has degraded performance

In d7358ae, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11696 ms

Resolved: GitLab Server performance has improved in 7239de8.


Adding plugin metadata

1. Need to change this to the new Vec based command line approach.

2. Need to test what happens to an existing client that will upgrade to this version.
   My concern is that it will not ownload a new binary and fail to run the old one

Didn't understand 1. As for 2, how can we test it?

@Eransho

You changed how the command line arguments are passed, right?
I think install from master, and have the plugin downloaded. Then run from your branch and see what happens

@amircodota

These changes are aligned to the changes in the binary
The newer plugin version (this one) will not work with older binary because of the new command argument - is that what you meant?

Ah OK. I thought you need to merge each of the metadata arguments with --client-metadata, not just the first one
Yes, but it will not download a newer version either, leaving the user with a non-functioning setup


[WIP] Temporary hack (?) to run background mode without speedup [AUTOZIP]

Download:
Environment: QT=5.12, ARCH=32, CONFIGURATION=release, QTIFW=C:\Qt\Tools\QtInstallerFramework\3.1
trik-studio-master-i686-auto.zip


Support smart pointer types other than Box

The current version aimed at a minimum set of features. But unsize coercion has been enabled for smart pointers other than Box<T>, and we'd better support it now, though DST coercion is not stabilized yet.
Once DST coercion is stabilized, we will be able to simplify intertrait quite a lot and will be able to support whatever smart pointer types without special casing such a type.

The candidates to implement:

Ref/RefMut
Rc
Arc
Weak

Arc support is added in a91076475c0f5cdea70371f54a0a5301ffb824e1.


Document how page numbering works and how it can be configured

There's a lot of mention in the README and theming guide about ways to configure page numbering and refer to page numbers, but no where is the page numbering behavior described in detail. Add a section that explains how page numbering works, the difference between logical and physical page numbers, how page numbers get added to the running content, and how page numbering can be configured.

Hi and thanks. Yet, it does not work: both running-content-start-at: title and page-numbering-start-at: title do not change anything (neither does numbering-start-at: title which I found somewhere). Neither changes the page number (it still is "1" on the first body page, and roman for the precedent pages' previews) nor is any page number shown on cover, title, toc, ... I tried underscores instead of "-" as well
Maybe I'm using it wrong, I tried it in page and base of my theme.yml... if so it might be useful to add the location where to specify it.
I'm using asciidoctor-gradle-plugin:<IP_ADDRESS> and asciidoctorj-pdf:1.5.0-alpha.16 by the way

@crusy The problem is that your Asciidoctor PDF is substantially out of date. We're now on 1.5.3. See https://github.com/asciidoctor/asciidoctor-pdf/blob/master/CHANGELOG.adoc#153-2020-02-28---mojavelinux for a list of what the 17 releases have brought. In those lists are the start at features to control page numbering and running content.

Thanks. https://github.com/asciidoctor/asciidoctorj-pdf claims  v1.5.0-alpha.15 to be the latest, just to let you know.
Using 1.5.3 results in a completely messed up PDF (one page instead of three, no images, no footer content), but that's a different topic of course. Thanks again!

Thanks. asciidoctor/asciidoctorj-pdf claims v1.5.0-alpha.15 to be the latest, just to let you know.

Please file an issue with that project (or submit a PR) to get it updated.

Maybe I'm using it wrong, I tried it in page and base of my theme.yml... if so it might be useful to add the location where to specify it.

For future reference: Use those keys in the root of our theme.yml
extends: default
page_numbering_start_at: title
running_content_start_at: title
footer:
  height: 0.75in
  ...

Is it possible to add an offset to {page-number}?
I'm generating three PDFs one after the other. I want to make them appear as one by adding the total "previous" page count to the current document's page number... is there something like
footer:
recto: &shared_footer
right:
content: '{page-number} + {some-offset}'
?

For future reference: Use those keys in the root of our theme.yml

These keys are covered here: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#key-prefix-page-numbering and here: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#key-prefix-running-content

Is it possible to add an offset to {page-number}?

Not using the built-in syntax. But the value of the content key is an AsciiDoc paragraph, so you can use a custom inline macro that reads the page-number document attribute and increments it accordingly (something like pagenum:[]).
In the future, please use the discussion list (https://discuss.asciidoctor.org) or the chat channel (https://gitter.im/asciidoctor/asciidoctor) to get support. We want to reserve the issue tracker for tracking changes to the software.


Test fixes

I hit a few problems trying to run the test locally; here are the fixes.

Pull Request Test Coverage Report for Build 1813

1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 55.571%

Totals

Change from base Build 1807:
0.01%

Covered Lines:
2050

Relevant Lines:
3689

💛  - Coveralls

@naved001, it was one of the test_bool_validation_* in tests/unit/config.py; str.lower choked on the bool that it fished out of the config object.
The dry run stuff cropped up when I added the isinstance assert; those tests tripped it.

Merging, since this has 2 approvals.


Use exit code to fail when code compile fails

Changes
This is an alternative solution to https://github.com/game-ci/unity-test-runner/pull/137
Test compiler error: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1172309575
Test playMode test failure: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1172328015
Confirm successful test run:  https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1172347925
Checklist

[x] Read the contribution guide and accept the code of conduct
[x] Readme (updated or not needed)
[x] Tests (added, updated or not needed)

Cool! Does it also work as expected for license error?

Yep, tested with failure to activate license: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1176073170
I also did one more where I have the test runner run 0 tests: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1176084269


nidaqmx Task does not close a socket

Because of that, eventhough you restart a notebook, the NI card drivers report Buffer error.

Additionally, if task is saved into NI MAX using .save(), the custom scales are not saved. Therefore next time you run the task using NI MAX, it gives you an error.


Update type definitions for components using children prop

This PR bumps the version of solid-js to v1.4.3 and updates
type definitions of Components using children prop to use,
ParentComponent and ParentProps.
Resolves #39

Thanks - at a glance this looks good. I'll aim to merge and release over the weekend 🙌

No worries. Get well soon 🙏


MacOS build

Updated readme + few minor ad-hocs(Proper solution requires some work with updating external dependencies).
Tests sucks, but I don't have a linux machine to compare the result.

Actual test results on macOS Ventura 13.4 (Intel)
bin % ./tests
Running test: test_blockstore_returns_valid_raw_data
ERROR
Running test: test_blockstore_stores_bigint
ERROR
Running test: test_blockstore_stores_block
ERROR
Running test: test_blockstore_stores_multiple
ERROR

*** Results ***
** Test case "test_blockstore_returns_valid_raw_data": ERROR
Uncaught std::runtime_error in test "test_blockstore_returns_valid_raw_data":
Could not write DataStore db : NotFound: ./test-data/tmpdb/LOCK: No such file or directory

** Test case "test_blockstore_stores_bigint": ERROR
Uncaught std::runtime_error in test "test_blockstore_stores_bigint":
Could not write DataStore db : NotFound: ./test-data/tmpdb/LOCK: No such file or directory

** Test case "test_blockstore_stores_block": ERROR
Uncaught std::runtime_error in test "test_blockstore_stores_block":
Could not write DataStore db : NotFound: ./test-data/tmpdb/LOCK: No such file or directory

Upd: test result on Ubuntu 22.04.2LTS is exact same = broken.

Upd: I had to manually create test-data directory and now it's all good with tests on macos:
./tests
Running test: test_blockstore_returns_valid_raw_data
PASS
Running test: test_blockstore_stores_bigint
PASS
Running test: test_blockstore_stores_block
PASS
Running test: test_blockstore_stores_multiple
PASS

*** Results ***
** Test case "test_blockstore_returns_valid_raw_data": PASS
** Test case "test_blockstore_stores_bigint": PASS
** Test case "test_blockstore_stores_block": PASS
** Test case "test_blockstore_stores_multiple": PASS
*** Summary ***
Out of 4 tests run:
0 failure(s), 0 error(s)

Thanks @mattip from discord community for the solution.


Annotation overrides magic comments

We expect generated annotations not to override existing magic comments.
If you use # frozen_string_literal: true or any other magic comment, the gem will override it, causing unwanted diffs in the code.
Expected behavior: the gem adds annotation after magic comments

Actually the gem handles # encoding: utf-8 comments correctly; we just need to make it recognize other types of magic comments.

Seems to work, thank you!

@Morozzzko released in 0.4.3.


CANSparkMax simulation usage

The 2019-1.0.0 version says "Added ability to simulate REV CANSparkMax", however, I cannot get this simulation work. When I installed the vendor libraries of REV CANSparkMax and ran the task "./gradlew runJavaSnoborSim", the error comes as follow:
java.io.IOException: SparkMaxDriver could not be loaded from path or an embedded resource. 	attempted to load for platform /windows/x86-64/
I also tried the vendor libraries example, and it works fine. When I tried to install and add the SparkMax vendor libraries, the same error appears.
Look forward to your reply,
Thanks

See new documentation for 2020
https://snobotsimdocs.readthedocs.io/en/latest/index.html


SelenideAppiumElement's $$ Method Returns ElementsCollection Instead of SelenideAppiumCollection?

The problem
I've encountered an issue with the SelenideAppiumElement class not behaving as expected when using the $$ method. It seems that SelenideAppiumElement inherits the $$ method from SelenideElement, but instead of returning a SelenideAppiumCollection, it returns an ElementsCollection. This creates a problem when trying to chain methods specifically designed for SelenideAppiumCollection.
Is there a recommended way to handle this situation? Do I need to extend or override something within the framework to get the desired functionality? Or is this something that needs to be fixed in the framework itself?
It's also possible that I might be misunderstanding something or using the framework incorrectly. Any guidance would be appreciated.
Details
This does not compile because SelenideAppiumElement inherits the $$ method from SelenideElement, which returns an ElementsCollection instead of a SelenideAppiumCollection. Here is the relevant code snippet:
public static SelenideAppiumCollection findElementsByLabelInParentContainer(String text, SelenideAppiumElement parentElement) {
    return parentElement.$$(By.xpath(String.format("..." + FIND_BY_LABEL, text)));
}

Tell us about your environment

Selenide Version: 7.3.2

@Deceptio Hi. Yes, you understand it correctly: it's inconsistency. We know it, but it was not easy to fix.
I hope we will fix it some day.
Feel free to submit a PR if you can fix it by your self. ;)


Union execution shows results from one of the inputs, then fails

This is likely a duplicate of https://github.com/CODAIT/nlp-editor/issues/54 but I could reproduce it today with the tutorial flow.
It can be reproduced with this flow.
union_issue.json.txt

Create a union node for RevenueOfDivision1 and RevenueOfDivision2.
Run the union. Get results from one of the sequences, not the second sequence, and not the union.
Run the union again - we get an exception.
As the gif shows, running the sequences individually sometimes leads to the wrong results being shown. I.e., run RevenueOfDivision2 but get results from RevenueOfDivision1.

@laurachiticariu I see the issue. The Union works when the two Sequence nodes' attributes are renamed to the name of the Union. For example, the Union is names RevenueOfDivision and both Sequences have their main output renamed to the same value. I will fix this so that the Union will yield to any name brought in by the Sequences


Access repository files from test

Hi,
I wanted to update from 0.9 to 0.13. Apparently there is a change in 0.10 where the tests are now run with a working directory in /tmp/... and no longer from the root of the rust project.
Seems like a reasonable change, but is there a way to easily reference the files from the project?
My motivation is the first parsing example of this README.
The entire point of the example is to read an existing file and show that it works. There is no harm in using a no_run, but I wondered if there is a solution to actually read the file. Maybe an option to automatically sym-link the project's file into the temporary folder or so.
Thanks

Hi @Fluci !
The change was made exactly to prevent tests from interacting filesystem (left artifacts in the source tree, consequent test runs giving different output, tests eating your laundry ;) )

Maybe an option to automatically sym-link the project's file into the temporary folder or so.

This would not be really portable and could lead to tests eating your laundry again ;)
We usually suggest making such examples no_run (as you've mentioned) or providing some fixture in the test itself. You could use the skeptic-templates to hide such fixture from readers.

Hi @budziq
I've expected something like this, I just wanted to ask if a "loop hole" has been left by design.
I think, there are plenty of other examples using rust's integration tests, and the project will survive with the no_run in the README.
Anyway, thanks for the quick response :)
Best

I've expected something like this, I just wanted to ask if a "loop hole" has been left by design.

There were never any real demand for it yet. If it's a hard requirement I might try to think how to implement it in a relatively clean way.

Well, I would place it on the "needs more thumbs up" list for new features: useful for some, unnoticeable for most. Personally, I'm fine without it for the moment.

K. I'll reopen it as a wishlist item and we'll see if there is a demand for it :smile:

I have a similar issue. In my case ${pwd}/tests/ contains input files needed to do a reasonable test of my crate. I need some way to find these files from the skeptic binary, or I need to be in the cargo dir.
Thanks!


Question: No changes in 2+ years, should we consider moving to okhttp-sse instead?

I'll soon start a SSE project, not sure if I should go with this library that looks dedicated to the problem or pick the experimental project from okhttp main repository https://github.com/square/okhttp/tree/master/okhttp-sse as it has more recent changes (2 months).
On this library I see no recent changes and the latest version is not a 1.0 but a 0.9, so I'm not sure about the confidence I can have on this lib to push this in production. Maybe it's stable and used in production for years, then I understand there is no changes required, in such case thanks for your responses.

Also I have a question about the listeners, the mechanism from okhttp-sse seems simpler, is there differences in the SSE protocol (2 RFCs?) or does this library provides advanced retry mechanism hence the more complex API?
https://github.com/square/okhttp/blob/master/okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt

Good question, i'm wondering the same.
okhttp-see is clearly not documented enough imo.
I did try oksee, in works flawlessly without code boilerplate, so today, i'd still give oksee a go, but it only takes a good readme on okhttp side to attract attention, users...
I'm working on android, and using retrofit, i don't see yet how retrofit will support this, it's quite a massive rework, but once it does, the choice will be a no brainer.

Ditch this library, its dead and broken.

it depends on an obsolete version of okhttp,
it does NOT work with http/2, which is hugely important for SSE,
you can't POST data to the server for setting up the connection.

All of these problems are non-issues for okhttp-sse.


Bugfix -- set_optimizer is not implemented

Fixes #18514
Description
(Brief description on what this PR is about)
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

In Python front-end API, kvstore.set_optimizer is used.
set_optimizer and setoptimizer, which one is better?
I prefer the former, but the latter may be compatible with some MXNet applications in julia.
➜  julia git:(master) ✗ ag set_optimizer
NEWS.md
83:        * `set_optimizer()`

src/kvstore.jl
267:When running on multiple machines one must use `set_optimizer`.

src/model.jl
446:      set_optimizer(kvstore, optimizer)

➜  julia git:(master) ✗ ag setoptimizer
src/kvstore.jl
301:    setoptimizer!(kv::KVStore, opt)
321:julia> setoptimizer!(kv, SGD(η = .2))  # SGD with .2 as learning rate
338:function setoptimizer!(kv::KVStore, opt::AbstractOptimizer)

src/MXNet.jl
113:       setoptimizer!,

@andevellicus also note that MXNet 2 is deprecating the model API which Julia binding relies on here. You may want to target the 1.x branch with this PR?

In Python front-end API, kvstore.set_optimizer is used.
set_optimizer and setoptimizer, which one is better?
I prefer the former, but the latter may be compatible with some MXNet applications in julia.

yeah, the latter one matches the naming convention of Julia.


Update to more recent Rust.

Mostly just updating various APIs that have changed.

Thanks for the PR. I'm going to test it in a sec. I'm not planning on maintaining this extensively. It was more of an experiment.


support bulk transforms

The Bulk API we've added to DocumentManager neglects transforms.  Let's add that since it's supported at the REST layer.

This capability is already included in the API, and is tested in test-complete/src/test/java/com/marklogic/client/functionaltest/TestBulkWriteWithTransformations.java.  I'm not sure why I thought it was missing.


segmentation fault in word2vec

$ gcc word2vec.c -pthread -lm -g
$ ./a.out -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15
Starting training using file text8
Vocab size: 71291
Words in train file: 16718843
Segmentation fault (core dumped)

solved.

solved.

How did you solve it?


How to use with AngularJS?

Hi,
This probably isn't an issue and is more of a "how-to".
I am trying to upgrade to AngularJS skeleton project to use ES6. My config currently turns off the module definition and wrapper:
  modules:
    definition: false
    wrapper: false

So far all I have installed for ES6 support is Babel Brunch (npm install --save babel-brunch). Since I will be using ES6 modules I have removed the above config. But after doing that I have noticed two issues:

My vendor files ('javascript/vendor.js': /^bower_components/) still get all the module polyfill code e.g. endsWith, unalias and require defined at the top of the file.
I am using angularjs-templates-brunch to produce my template file (joinTo: 'javascript/templates.js'). The template file now includes all of the polyfill code and each of my templates get wrapped up in modules like require.register("post/post.tpl", ... { . This means that I can't just require a templates module and I need to explicitly require each template module somewhere in my code so that it will execute code to declare the Angular module (angular.module('templates')):

require.register("posts/posts.tpl", function(exports, require, module) {
(function() {
    var module;

    try {
        // Get current templates module
        module = angular.module('templates');

Hopefully that makes some sense, so my questions are:

Is it correct that my app, vendor and template files are all defining the module polyfill code? Can Babel Brunch be configured to put that pollyfill code in a separate file?
How can I turn the module wrapping off for just my templates?
https://babeljs.io/docs/setup/ has the config property as ESbabel and not babel, are both correct?

Why did you close this?


adding current limitation

closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/7885

@scanum Can you ask for review and merge? thanks

@MikePlumleyMSFT PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


replapi-it

rayhanadev gave me his replapi-it package. I'm changing the whole thing, so make sure you're using his latest version 2.4.0-beta.2.

The latest version might be bugged iirc, but it should stay on the latest version that works automatically :).


Support new inclusive range syntax

The a...b syntax has been replaced with a..=b, but rustfmt currently fails when parsing this. This makes any file that contains this syntax once unparseable.

This should be fixed on the latest rustfmt-nightly. Would you try with it?


PutMetricData within the CloudWatch SDK doesn't accept Gzipped payload (though the API states it should)

The CloudWatch Client points out that it accepts a Gzipped payload for the PutMetricData request but the SDK does not support this. https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/CloudWatch/TPutMetricDataRequest.html
Expected Behavior
The SDK should support a Gzipped blob as an argument
Current Behavior
The SDK does not allow gzipped payloads
Steps to Reproduce (for bugs)
Look at the SDK
Context
We're aggregating Cloudwatch metrics within our application to the 'Values' array. Ideally I should be able to send out 20 metrics, each with 150 values, in one request. Unfortunately, due to to 40Kb limit, I cannot even send 10 metrics (each with 150 values) consistently. Adding in the  functionality to gzip the payload may allow more metrics to get aggregated per request. Ultimately, I believe this will save my company money (even if it's a trivial amount).
Your Environment

AWSSDK.Core version used:  <IP_ADDRESS> (Using version <IP_ADDRESS> of the CloudWatch SDK)
Service assembly and version used:
Operating System and version: Windows 10 1909
Visual Studio version: 16.3.9
Targeted .NET platform: netcoreapp2.1

Thanks for the feedback on this.  Currently the PutMetricData code is autogenerated.  There wasn't a flag for a custom extension.

Any feedback on when this will be fixed?

Automatic compression for PutMetricData is now supported in AWSSDK.CloudWatch version 3.7.302.0 (changelog).

Blog post: https://aws.amazon.com/blogs/developer/new-default-payload-compression-for-amazon-cloudwatch-putmetricdata-with-the-aws-sdks/
Docs, which cover to to enable/disable and configure the threshold for which AWS SDKs will compress: https://docs.aws.amazon.com/sdkref/latest/guide/feature-compression.html


After selecting a date in the datepicker, if you attempt to change the selected date, the datepicker does not open again.

I recorded the video please check.
If I select a date and immediately try to change it by clicking on the datepicker, it doesn't open. However, if I click outside of the input box and then select a date, it works as expected.

Facing the same issue, Its still not resolved

same error

Same here, I had to manually blur the input to fix the issue.


[Unity] Issue collecting sensor data while using MPL hand

Hi,
I'm a student and I'm trying to use the MuJoCo Unity plug-in and HAPTIX to study human performance of referred robotic arm control. In particular, I am looking to have individuals use the MPL hand to interact with objects in an environment and complete tasks by moving said objects.
I'm looking for some help with creating sensorized objects in an environment with the MPL hand to see how strongly users are grasping the objects. In a new environment I have been able to make an object, create a site, add a MJ site scalar sensor (a touch sensor) and to get sensor values that make sense to me. See the first picture below, where I have a cylinder with mass = 1 in contact with a plane and giving a sensor reading of ~9.81 which makes sense due to gravity and it only reads that value once the cylinder has made contact with the plane (it initially starts above it and falls into the plane).
When I import the MPL hand though, I start getting weird and even nonsensical values, even from the same sensorized object. In two examples below I have the same object in contact first with the same plane as when it previously worked, now giving a sensor value of 0.002, and in the second example the object is in contact with the table top imported with the MPL hand and it gives a value of -1.39 which doesn't make any sense as the scalar touch sensor should not be able to give negative sensor readings. Additionally, in these cases as soon as I enter play mode the sensor begins to read that value even if it is not in contact with anything in the environment.
I was wondering if anyone could help me get to a point where the sensor values make sense when the MPL hand is around?
Thanks,
Michael

eba-4d9c-8873-cb19b49cafb0)

Hi sorry for not including versions, I am using mujoco 2.3.6 and Unity 2022.3.5f1
To display sensor readings I just edited the MjSiteScalarSensor script to make the SensorReading variable to be
public double SensorReading;
and not
public double SensorReading { get; private set; }
I don't believe I am using the hand in prefab mode, I brought it in by Assets --> Import MuJoCo Scene and then did not edit it at all, I don't think that is using it as a prefab but please let me know if that's mistaken.
In terms of planes, I have still had the problem when I didn't add any planes to the MPL scene.
My timestep is 0.002
Does anything stick out as to where I would be encountering a problem? Also, what version of Mujoco did you use where you weren't able to replicate the bug?
Thanks

Could you try to update to 3.0.1, reimport the hand, and add your extra cylinder and sensorize it?

It works as expected now! Thanks for suggesting, I didn't realize there was a new version of Mujoco out but that seems to have solved my problem.
Thanks again


Error

i get this error:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add lo
g4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR Slyther Could not access server list, using cache.
ERROR Slyther catching
 java.io.IOException: Server returned HTTP response code: 403 for URL: http://sl
ither.io/i49526.txt
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
ource)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at net.gegy1000.slyther.network.ServerHandler.getEncodedServerList(Serve
rHandler.java:198)
        at net.gegy1000.slyther.network.ServerHandler.readServerList(ServerHandl
er.java:80)
        at net.gegy1000.slyther.network.ServerHandler.getServerList(ServerHandle
r.java:63)
        at net.gegy1000.slyther.network.ServerPingerDispatcher.run(ServerPingerD
ispatcher.java:29)
        at java.lang.Thread.run(Unknown Source)

Did you fix this?

Yes i was somewhere else the was a internet block for some connection but when i was home it works


tph_gms2_socket.io.js:42 Uncaught TypeError: window[name] is not a function

Please provide more information about how you encountert this error, can you reproduce it?

My mistake, I hadn't included the event in the sio_init() GML script.


One Note?

Does the Javascript API provide any methods for persisting data in a OneNote addin? If not, why not?

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

ID: b683480b-a4fe-97ba-64f9-45ecfe829bf4
Version Independent ID: a0993174-18dd-9594-9c3c-102d078e2217
Content: Persisting add-in state and settings
Content Source: docs/develop/persisting-add-in-state-and-settings.md
Product: office 365
GitHub Login: @o365devx
Microsoft Alias: o365devx

@stephenb159 Thanks for your interest in Office Add-ins development. Issues in this GitHub repository (OfficeDev/office-js-docs-pr) are intended for reporting errors/problems with the API documentation.  Therefore I'm closing this GitHub issue, but please feel free to post your question to Stack Overflow with the office-js tag. By posting how-to questions such as this one to Stack Overflow, you're not only more likely to get a response, but that response may also benefit other developers who might be facing the same challenges.


Ocelot container problem

Hi Tom
it work really well when test it on Visual Studio but when i try to build it to container,
it dosn't working. it registered with eureka discovery service but when i try access test api it return
This page isn’t working
localhost didn’t send any data.
if i call the other service (in container too) it return correctly.
not sure how can i track down this problem.
Thank you.

@deadmandrive set the logger level to trace and get the logs from your container, easiest way is probably use console logger (stdout) in asp.net and then do docker logs {containername/id} and you can see them on the terminal...or you can write to disk etc up to you. This might help you track the issue down.
Most of the time docker problems are because the networking isn't set up correctly and one container cannot talk to another.

@TomPallister Thank you. will try it out.

@TomPallister i set the logger level to trace but don't understand "use console logger (stdout) in asp.net" part. Do you have some example that i can take a look?
Now i got new error
This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500

I mean something like
                .ConfigureLogging((hostingContext, logging) =>
                {
                    logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
                    logging.AddConsole();
                })

but you can use any type of logger you want.

@TomPallister Ok. Got it will do.

@TomPallister I check the connection between Ocelot Gateway and each service containers. they all working find.
I test by ping from Ocelot Gateway container to each service containers.
# ping service-a
PING service-a (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.154 ms
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=2 ttl=64 time=0.055 ms
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=3 ttl=64 time=0.055 ms
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=4 ttl=64 time=0.146 ms
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=5 ttl=64 time=0.085 ms
64 bytes from service-a.test-network (<IP_ADDRESS>): icmp_seq=6 ttl=64 time=0.125 ms
^C
--- service-a ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5192ms
rtt min/avg/max/mdev = 0.055/0.103/0.154/0.041 ms
# ping service-b
PING service-b (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.145 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=2 ttl=64 time=0.129 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=3 ttl=64 time=0.071 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=4 ttl=64 time=0.128 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=5 ttl=64 time=0.127 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=6 ttl=64 time=0.077 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=7 ttl=64 time=0.051 ms
64 bytes from service-b.test-network (<IP_ADDRESS>): icmp_seq=8 ttl=64 time=0.140 ms
^C
--- service-b ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7242ms
rtt min/avg/max/mdev = 0.051/0.108/0.145/0.035 ms
# ping service-a2
PING service-a2 (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=1 ttl=64 time=0.190 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=2 ttl=64 time=0.094 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=3 ttl=64 time=0.103 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=4 ttl=64 time=0.097 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=5 ttl=64 time=0.116 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=6 ttl=64 time=0.155 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=7 ttl=64 time=0.199 ms
64 bytes from service-a2.test-network (<IP_ADDRESS>): icmp_seq=8 ttl=64 time=0.097 ms
^C
--- service-a2 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7288ms
rtt min/avg/max/mdev = 0.094/0.131/0.199/0.042 ms
#

So right  now. I'm not quit sure what the problem is?
But something wrong with this.
Ocelot.Requester.Middleware.HttpRequesterMiddleware[0]
requestId: 0HLGDFTAQ9RD9:00000003, previousRequestId: no previous request id, message: Error making http request, exception: System.Net.Http.HttpRequestException: Cannot assign requested address ---> System.Net.Sockets.SocketException: Cannot assign requested address

@deadmandrive interesting, Ocelot is using http://localhost:9600/api/values as downstream url in your logs but you are pinging service-a is there something wrong with the config?

@TomPallister Well i use the same setting when i ran in visual studio debug mode and it worked.
It only not working when run it in docker mode. and i see that in the process ocelot ask the eureka for a list of api that requested and eureka seem like to give it a correct routing.
Here is my ocelot.json config
{
  "ReRoutes": [
    {
      "DownstreamPathTemplate": "/api/values",
      "DownstreamScheme": "http",
      "UpstreamPathTemplate": "/service-a",
      "UseServiceDiscovery": true,
      "ServiceName": "service-test-A",
      "UpstreamHttpMethod": [ "Get" ],
      "LoadBalancerOptions": {
        "Type": "RoundRobin"
      }
    },
    {
      "DownstreamPathTemplate": "/api/values",
      "DownstreamScheme": "http",
      "UpstreamPathTemplate": "/service-b",
      "UseServiceDiscovery": true,
      "ServiceName": "service-test-B",
      "UpstreamHttpMethod": [ "Get" ]
   }
  ],
  "GlobalConfiguration": {
    "RequestIdKey": "null",
    "ServiceDiscoveryProvider": {
      "Type": "Eureka"
    }

  }
}

@TomPallister I see. That might be a hint. Thank you Tom. I will try to solve it and tell you later what the problem is.

@TomPallister Tom, I think i made some progress but still got a new error. now i can get the right url for routing in docker
Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 GET http://localhost:9100/service-a

      GetInstances returning: Instance[InstanceId=service-a2:9501,HostName=service-a2,IpAddr=<IP_ADDRESS>,Status=UP,IsUnsecurePortEnabled=True,Port=9501,IsSecurePortEnabled=False,SecurePort=443,VipAddress=service-test-A,SecureVipAddress=service-test-A,ActionTy
pe=ADDED]
      GetInstances returning: Instance[InstanceId=service-a:9500,HostName=service-a,IpAddr=<IP_ADDRESS>,Status=UP,IsUnsecurePortEnabled=True,Port=9500,IsSecurePortEnabled=False,SecurePort=443,VipAddress=service-test-A,SecureVipAddress=service-test-A,ActionType
=ADDED]

requestId: 0HLGHA1ADHD30:00000002, previousRequestId: no previous request id, message: Downstream url is http://service-a2:9501/api/values

The load Balancing is working and it Downstream url is correct. Some how this happen.
Error making http request, exception: System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused
         at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)

Error Code: UnableToCompleteRequestError Message: Error making http request, exception: System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sock
ets.SocketException: Connection refused

Then I try to install curl and check that api is working from testocelot container.
# curl --request GET http://service-a/api/values
["This Is Test Service A 1"]#
# curl --request GET http://service-a2/api/values
["This Is Service Test A 2222"]#
# curl --request GET http://service-b/api/values
["This IS SerVice Test BBBB"]#

I will try to find out more about Connection Refused Issue. But if you have some suggestion i will happy to hear it. Thank you Tom

@deadmandrive it might be something to do with TLS, are you using https to connect to the services from Ocelot?

Ok cool, do you use docker compose btw?

@TomPallister I use docker-compose on some services (eureka-server , config-server ,rabbitmq,zipkinserver) and some in docker command in power-shell (dotnet core service,Ocelot-Gateway)

@deadmandrive I would put everything into docker compose if I was you because that will set up all the networking between the services correctly. Not sure if there is a reason you cant do this though!!

@TomPallister I try that before and found problem that all dotnet service not register with eureka-server but I might give it a try again.

same problem for me!
I got this Error on log:
info: Ocelot.RateLimit.Middleware.ClientRateLimitMiddleware[0]
requestId: 0HLSC9H156ML7:00000001, previousRequestId: no previous request id, message: EndpointRateLimiting is not enabled for /api/Hello
info: Ocelot.Authentication.Middleware.AuthenticationMiddleware[0]
requestId: 0HLSC9H156ML7:00000001, previousRequestId: no previous request id, message: No authentication needed for /mygate/Hello
info: Ocelot.Authorisation.Middleware.AuthorisationMiddleware[0]
requestId: 0HLSC9H156ML7:00000001, previousRequestId: no previous request id, message: /api/Hello route does not require user to be authorised
warn: Ocelot.Requester.Middleware.HttpRequesterMiddleware[0]
requestId: 0HLSC9H156ML7:00000001, previousRequestId: no previous request id, message: Error making http request, exception: System.Net.Http.HttpRequestException: Cannot assign requested address
---> System.Net.Sockets.SocketException (99): Cannot assign requested address
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)          at Ocelot.Requester.HttpClientHttpRequester.GetResponse(DownstreamContext context) warn: Ocelot.Responder.Middleware.ResponderMiddleware[0]       requestId: 0HLSC9H156ML7:00000001, previousRequestId: no previous request id, message: Error Code: UnableToCompleteRequestError Message: Error making http request, exception: System.Net.Http.HttpRequestException: Cannot assign requested address        ---> System.Net.Sockets.SocketException (99): Cannot assign requested address          at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)          --- End of inner exception stack trace ---          at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)          at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)          at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)          at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)          at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)          at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)          at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Ocelot.Requester.HttpClientHttpRequester.GetResponse(DownstreamContext context) errors found in ResponderMiddleware. Setting error response for request path:/mygate/Hello, request method: GET

My Ocelot GateWay Can't assign requested address through the Docker
but it works correct when I run containers out of Docker
has Ocelot any problem on Docker?

hi i have same issue.
My Ocelot Gateway doesn't work but my service who works in the k8 pod is work.
does any one solve

So Bad Gateway. Not Support Docker and Still Load localhost:500 .

Same issue. Please help us to solve this issue.
info: Ocelot.RateLimit.Middleware.ClientRateLimitMiddleware[0]
requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: EndpointRateLimiting is not enabled for /api/v1/cms142/{everything}
info: Ocelot.Authentication.Middleware.AuthenticationMiddleware[0]
requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: No authentication needed for /cms142/getapiname
info: Ocelot.Authorisation.Middleware.AuthorisationMiddleware[0]
requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: /api/v1/cms142/{everything} route does not require user to be authorised
warn: Ocelot.Responder.Middleware.ResponderMiddleware[0]
requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: Error Code: ConnectionToDownstreamServiceError Message: Error connecting to downstream service, exception: System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it.
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Ocelot.Requester.HttpClientHttpRequester.GetResponse(HttpContext httpContext) errors found in ResponderMiddleware. Setting error response for request path:/cms142/getapiname, request method: GET

have you fix the problem？ would you pls share the solution?

Same issue. Please help us to solve this issue.
info: Ocelot.RateLimit.Middleware.ClientRateLimitMiddleware[0] requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: EndpointRateLimiting is not enabled for /api/v1/cms142/{everything} info: Ocelot.Authentication.Middleware.AuthenticationMiddleware[0] requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: No authentication needed for /cms142/getapiname info: Ocelot.Authorisation.Middleware.AuthorisationMiddleware[0] requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: /api/v1/cms142/{everything} route does not require user to be authorised warn: Ocelot.Responder.Middleware.ResponderMiddleware[0] requestId: 0HMA0B2J418UN:00000001, previousRequestId: no previous request id, message: Error Code: ConnectionToDownstreamServiceError Message: Error connecting to downstream service, exception: System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Ocelot.Requester.HttpClientHttpRequester.GetResponse(HttpContext httpContext) errors found in ResponderMiddleware. Setting error response for request path:/cms142/getapiname, request method: GET

have you fix the problem？ would you pls share the solution?


Styling issue, a thin left border is showing in the field list configuration panel

Describe the bug
There is a thin gray border only on  the left side of the Fields list panel

Expected Behavior
There should'nt be border on only one side
Reproduction Steps & Sample

Open a manager app in devext in configuration mode
Click on Interactivity then Table options
Click on Field's button and notice the gray thin border on the left side

Other Relevant Info
No response

@azizaparveen seems reasonable to me as well but this is another one we should check with them on just in case its desired for some reason. This should be the same across other places where field config is available in other apps.

@azizaparveen
This is an issue with the styles in the configuration of instant app. We don't see any option to fix this from component side.
@jmhauck  - please let us know your thoughts on this

Correct, this would be a change in configuration app not our components.


Implement cumprod function

I implemented cumprod function based on cumsum function.
In addition, I also fixed typos in the docstring of cumsum function (cumlative -> cumulative).

I fixed to use int64 and added tests.
The commits include the fix for cumsum, but should I separate it for another PR?

Please send anther PR.

I removed the change for cumsum.

Thanks.
I got following result. Please improve the test.
======================================================================
FAIL: test_cumprod_2dim (test_sumprod.TestCumprod_param_0)  parameter: {'axis': 0}
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/work/cupy/cupy/testing/helper.py", line 404, in test_func
    impl(self, *args, **kw)
  File "/work/cupy/cupy/testing/helper.py", line 115, in test_func
    check_func(cupy_result, numpy_result)
  File "/work/cupy/cupy/testing/helper.py", line 165, in check_func
    rtol, atol, err_msg, verbose)
  File "/work/cupy/cupy/testing/array.py", line 26, in assert_allclose
    rtol=rtol, atol=atol, err_msg=err_msg, verbose=verbose)
  File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1411, in assert_allclose
    verbose=verbose, header=header, equal_nan=equal_nan)
  File "/usr/local/lib/python2.7/dist-packages/numpy/testing/utils.py", line 796, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0

(mismatch 10.0%)
 x: array([  1.000000e+00,   2.000000e+00,   6.000000e+00,   2.400000e+01,
         1.200000e+02,   7.200000e+02,   5.040000e+03,   4.032000e+04,
         3.628800e+05,   3.628800e+06,   3.991680e+07,   4.790016e+08,...
 y: array([  1.000000e+00,   2.000000e+00,   6.000000e+00,   2.400000e+01,
         1.200000e+02,   7.200000e+02,   5.040000e+03,   4.032000e+04,
         3.628800e+05,   3.628800e+06,   3.991680e+07,   4.790016e+08,...
-------------------- >> begin captured stdout << ---------------------
dtype is <type 'numpy.float32'>

Thank you for the review.
The inconsistency for float32 between numpy and cupy comes from numerical error and precision.
The overflow also occured on int32, but in this case both results in numpy and cupy were equal.

The relaxing rtol is OK.
And, thank you for many fixing.
LGTM!


Fix Object.callv() not marked unsafe

Fixes a typo causing Object.callv() accidentally not being marked unsafe.
Also adds the following statement to all unsafe binding functions:

Safety: This function bypasses Rust's static type checks (aliasing, thread boundaries, calls to free(), ...).

I was thinking about a per-function reason and can change it if needed. The description is also very generic at the moment and can probably be made more concrete.

If you want me to change the message, let me know what it should be like, or you can add a commit on top directly (whatever is less work for you) 🙂

@Bromeon I thought you were implying in the OP that you'll want to change it later in the PR. If you're not going to, then this can be merged as it is. Thanks!
bors r+


New YAML based regression flow

The current regression flow is a mix of bash and python script, which is really meant to be used as a simple flow for initial bring up. As more and more ISS and RTL simulator are added to the flow, it becomes pretty hard to extend and maintain. On the other hand, there's a need of a better end to end flow to control how the program is generated, how to simulate the program, and how the result should be compared.
To resolve these issues, we are implementing a new end-to-end flow based on YAML configuration files. The purpose is make this flow more configurable and extendable. I have submitted the initial prototype of the flow:  https://github.com/google/riscv-dv/commit/18cca8b42689da1b8c6134a2c03fc685b624e005
List of YAML configure files:

Test list
ISS configuration
RTL simulator configuration
Privileged CSR specification

Here's a few commands you can try:
// Run full regression with VCS
python3 run.py --simulator=vcs
// Run full regression with VCS
python3 run.py --test=riscv_arithmetic_basic_test --iterations=10
// For complete command reference
python3 run.py --help

I will be adding a few more features to this flow. Feel free to give your feedback and suggestion here.

New flow is ready now, I have updated the README to reflect the changes. Please file a bug if you encountered any issue. I will keep the old flow for a couple of months.


[Bug]: Pushing commits to remote fails. Got stuck in a loop while entering username and password

Apache Hop version?
2.7
Java version?
11.0.18
Operating system
Windows
What happened?
<when trying to push commits to repo, I get prompted to enter Git username and password, but nothing happens I get asked again for my username and password and get stuck in a loop. pls fix it
Issue Priority
Priority: 1
Issue Component
Component: Hop Gui

which git service are you using?

github
De: Hans Van Akelyen @.>
Enviado el: lunes, 11 de diciembre de 2023 14:50
Para: apache/hop @.>
CC: Eric Sánchez Tamayo @.>; Author @.>
Asunto: Re: [apache/hop] [Bug]: Pushing commits to remote fails. Got stuck in a loop while entering username and password (Issue #3492)
CORREO EXTERNO, ten cuidado con los enlaces y archivos adjuntos.
which git service are you using?
—
Reply to this email directly, view it on GitHubhttps://github.com/apache/hop/issues/3492#issuecomment-1850117246, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCLNMQIC4ODOGDZ3M7MITH3YI4FQRAVCNFSM6AAAAABAPOOYB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJQGEYTOMRUGY.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

github

We will improve the documentation but this is probably caused by using your regular password and not a personal access token. There are other tickets to improve the UI and this will be taken into account.


No hover information on any icons in the list view

Each icon in a given row of the list should have a tooltip informing the user what the icon represents.
Tooltips for these should follow the 'tooltip on top' pattern: http://www.patternfly.org/pattern-library/widgets/#tooltip

outdated - closing

outdated - closing


Warning: Failed to restore: downloadCache failed: unable to verify the first certificate

Dear team, I apologise if I'm in the wrong place. Couldn't find any relevant link.
Trying to use actions/cache@3 or actions/cache/restore@v3 got this message:

The cache was saved with a separate workflow and on the place.

GitHub Enterprise Server 3.8.8
Runs-on: self-hosted
Might it be a runner settings issue related?  Could you please give me a hint on how to resolve this?
Thanks in advance.
Regards,  Denis.

: cleanup caches by a branch
on:
pull_request:
types:
- closed
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
      echo "Fetching list of cache key"
      cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )

      ## Setting this to not fail the workflow while deleting cache keys.
      set +e
      echo "Deleting caches..."
      for cacheKey in $cacheKeysForPR
      do
          gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
      done
      echo "Done"
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      REPO: ${{ github.repository }}
      BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge

: cleanup caches by a branch
on:
pull_request:
types:
- closed
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
      echo "Fetching list of cache key"
      cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )

      ## Setting this to not fail the workflow while deleting cache keys.
      set +e
      echo "Deleting caches..."
      for cacheKey in $cacheKeysForPR
      do
          gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
      done
      echo "Done"
    env:
      GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      REPO: ${{ github.repository }}
      BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge

Hello @poiupoiu17990 as far as I understood this plugin doesn't allow to use of a cache,  only to list or delete. The question was how to use it.
BTW, for a GHES it requires GH_ENTERPRISE_TOKEN and GH_HOST definition instead of GH_TOKEN.
 env:
   GH_ENTERPRISE_TOKEN: ${{ github.token }}
   GH_HOST: 'git.custom-host.com'
 run: |
   gh extension install https://github.com/actions/gh-actions-cache
   gh actions-cache list

@agepalmist Did you ever find a solution?

@agepalmist Did you ever find a solution?

was done by the GH runners management team, the cache wasn't provided deliberately in my case :)


Feature: Add scroll wheel support to visualiser

Summary
Allows the user to scroll up & down while hovering over a fader on the visualiser.
Requested from Issue #1
Example of Usage can be seen here on Imgur

Hi there, I'm going to b we to hold on merging this one temporarily, #23 replaces the existing visualisation with a full SVG replacement, which I'm hoping to merge in first, so this may need to be refactored to accommodate. I'll follow up again once that's done.

Sounds like a plan

Merge conflicts resolved and updated code to support the new SVG design (looks great btw)

Looks good, I'll merge it in.


[BUG] Communication dtype is broken in zero 3

https://github.com/microsoft/DeepSpeed/blob/0a73e6e6137a91e1b776f725b637f8b37a75f8e7/deepspeed/runtime/zero/stage3.py#L1168
Only works for float32.

@stas00, FYI


⚠ Cioos Pacific CKAN Sitemap has degraded performance

In f8b5cd4, Cioos Pacific CKAN Sitemap (https://catalogue.cioospacific.ca/sitemap/sitemap-1.xml) experienced degraded performance:

HTTP code: 200
Response time: 11665 ms

Resolved: Cioos Pacific CKAN Sitemap performance has improved in acf821b after 5 minutes.


InternalClient#updateChannel fails on text channels [indev]

This is due to a line that tries to convert bitrate:
data.bitrate *= 1000; // convert to bits before sending

For text channels, this turns data.bitrate from undefined into NaN which the API doesn't like.
I've made this an issue instead of a PR because we could:

Split into updateTextChannel and updateVoiceChannel so we don't even bother sending bitrate and user limit for text channels.

Make the text vs voice distinction as a check in updateChannel.

Just hack on a if (typeof data.bitrate !== 'undefined') or other similar check.

I'll let someone else decide.
(On this note, I'm a little surprised it gets this far instead of failing at the range checks for user_limit and bitrate.)

I'm for 2.

The issue is a bit deeper than this.  When the call to updateChannel comes back, it is saving the bitrate of NaN back to the cache, so subsequent calls to updateChannel will fail.
I have worked around this by removing the bitrate from the channel in the cache prior to making the updateChannel call.


Code no longer being updated?

Apologies if I'm misunderstanding, I've never taken a look at an extensions source code before. I was trying to get it running locally but it seems the repo code is significantly behind what's available through the extension store - version 1.6.2 locally if the package.json is correct vs 3.4.3 on the store.
Did the project switch from being open source?

Hi @mrcrozier, correct the project is currently in my private repo due to reasons I mentioned here on this issue: https://github.com/gencay/vscode-chatgpt/issues/68.

Ah sorry didn't see that issue, thanks for all the hard work - sorry its being taken advantage of


"Evaluating the object store's key path did not yield a value." after upgrade

In version 2 of by db, I had a table with the following schema: '&id,&[userId+readableId]'
I tried to put a record with no id, and I got the error "Evaluating the object store's key path did not yield a value.".  This is expected.
I realized that I didn't really want id to be the primary key.  So in version 3 I changed the schema to just "&[userId+readableId]'"
But I still got the same error when trying to put an object with no id.  I checked the chrome development tools and it said I was at version 30, as expected.
After clearing out storage and reloading, however, the error went away.
What am I doing wrong here?  Why doesn't the upgrade work as I'm expecting it?  I would expect to have gotten no error, even before clearing out storage.

From what I remember you can't change the primary key of a table in dexie. I think there are a couple of issues about this.