Redesign the navbar

As seen in the image below, the navbar looks pretty empty...

A brand name can be added near the logo, the search bar can be centered at the div and some additional icons can be added just like the actual YouTube web page as shown below:

Profile icon, Notification icon, microphone icon can be added to make the navbar look filled with a lot of components.
I would like to work on this feature.
Please assign me the task under GSSoC'23.

Hello @abhinav-m22, in the navbar will you only be adding components for looks only or will they be functional as well ?

Hello @abhinav-m22, in the navbar will you only be adding components for looks only or will they be functional as well ?

At first I'll add only the icons for a better visual look. And then I'll add some funciotnalities if possible..

Hey @Fenrir-04 ..
Any update about the issue? Should I work on it?

@abhinav-m22 yes you can start working on the issue

I would like to work on it. Please assign me


Solar Panel Sensor goes to 0 watt every 70 minutes

Version of the custom_component
1.5.0
Configuration
Default Configuration through the Integrations panel on Home assistant.
Describe the bug
After upgrading to 1.5.0 from 1.4.0 the Solar Power sensor reports "0" watt every 70 minutes, incorrectly.
In the picture attached, the first bump is using 1.5.0, the second one is after reverting back to 1.4.0. The curve is 'filled' because it goes to 0 every 70 minutes.

Debug log
Nothing interesting here, just a lot of lines like

2022-02-07 20:59:41 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.264 seconds (success: True)
2022-02-07 21:00:41 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.181 seconds (success: True)
2022-02-07 21:01:41 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.343 seconds (success: True)
2022-02-07 21:02:41 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.272 seconds (success: True)
2022-02-07 21:03:41 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.205 seconds (success: True)

Enable teslajsonpy to show what Tesla is returning at 70 minutes. If the answer is 0, then there's nothing the component can do.
Regardless, I don't have solar so don't support this so you'll have to wait for someone with solar to look at the issue.

Found the issue it's in teslajsonpy library. https://github.com/zabuldon/teslajsonpy/issues/287
Closing here.


Add initial documentation about how to create a release

replaced by https://github.com/spdx/tools-python/blob/main/dev/publish_from_tag.sh


[Feature]Add cugraph local storage support to DGL

Description
This PR closes https://github.com/dmlc/dgl/issues/4672

Checklist
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented
[ ] To the best of my knowledge, examples are either not affected by this change,
or have been fixed to be compatible with this change
[x] Related issue is referred in this PR

Changes

[x] Homogeneous Graph
[x] Heterogeneous Graph
[x] Single GPU support
[x] Multi GPU support
[ ] End to End Example
See example in : https://github.com/VibhuJawa/dgl_cugraph_examples
[ ]Todo Add here
[x] from hetrogenous_graph

Pending Tests:

[ ] Homogeneous Graph Sampling
[x] Heterogeneous Graph Sampling
[x] from hetrogenous_graph

Out of scope:
 renumber_vertices_by_type added in API
  to_hetrogenous_graph
 edge_subgraph
 subgraph
This PR depends upon:

https://github.com/rapidsai/cugraph/pull/2795/files

Upstreaming is blocked by:
https://github.com/rapidsai/cugraph/issues/2788

Looks fine to me.


Vim remote xdebug into docker container

Hey everyone. I am currently trying to set up my nVim to remote debug PHP which is run inside a Docker container. By this point I am almost certain I am overlooking something hilariously obvious but I have been banging my head against this for so long I can't seem to figure it out.

edit: In the end it was a problem with my firewall configuration :(
Before I found that I switched to the php:apache image. Then I installed xdebug and added my custom xdebug.ini via Dockerfile so if anyone stumbles upon this, the way below should still work (I'll edit some parts) but is not what finally worked for me.

Docker Setup
To make it easy on me (at least that's what I thought starting out) I grabbed this neat docker image:

webdevops/php-apache-dev
https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache-dev.html

which makes it easy to set some of the xdebug settings.
My docker-compose yml looks like this:
version: "3.6"
services:
  x_web:
  image: webdevops/php-apache-dev
  restart: always
  volumes:
    - ../public:/var/www/html
  ports:
    - '8080:80'
  container_name: x_web
  environment:
    XDEBUG_REMOTE_AUTOSTART:        1
    XDEBUG_REMOTE_CONNECT_BACK:     0
    XDEBUG_REMOTE_HOST:             <IP_ADDRESS>
    XDEBUG_REMOTE_PORT:             9000
    WEB_DOCUMENT_ROOT:              /var/www/html

edit: In the end I switched connect_back back on and it did work just fine.

The environment variables:

activate the remote_autostart
deactivate the remote_connect_back so that it does not override the remote_host
set the standard port which vdebug is expecting

To find out the IP my container would find my host under I did:
ip a | grep docker
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
inet <IP_ADDRESS>/16 brd <IP_ADDRESS> scope global docker0

Since I did not specify a network for the service it will attach itself to docker_default which is bridged and thus able to reach the host - at least I can successfully ping the address :)
Since I am ultimately planning on making this work on some other dev compose environments, I set the web root to what I would use there. This is also where I have mapped the volume to which contains the script I'd eventually like to debug.
nVim Setup
This is my nVim
➜  ~ vim --version
NVIM v0.3.7
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-8dKHat/neovim-0.3.7=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-8dKHat/neovim-0.3.7/build/config -I/build/neovim-8dKHat/neovim-0.3.7/src -I/usr/include -I/build/neovim-8dKHat/neovim-0.3.7/build/src/nvim/auto -I/build/neovim-8dKHat/neovim-0.3.7/build/include
Compiled by<EMAIL_ADDRESS>
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info`

Since Python is needed, here is what :checkhealth has to say on that account:
## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.6.8
  - INFO: pynvim version: 0.3.2
  - OK: Latest pynvim is installed.

From :help Vdebug I gathered I'd have to add the following to my nvim
" xDebug Settings
if !exists('g:vdebug_options')
  let g:vdebug_options={}
endif
let g:vdebug_options.path_maps = {"/var/www/html": "/home/roman/projects/xdebug/public"}
let g:vdebug_options.server = ""

edit: not sure this was really necessary since ...

So the remote dir matches the web root on the container and yes since I am not a creative person my test project is called xdebug. The docker-compose.yml file lies in xdebug/docker so that the volume entry should be fine as well.
PHP
This is PHP running inside the container:
root@b7820729e785:/etc/php/7.2/cli# php -v
PHP 7.2.19-0ubuntu<IP_ADDRESS> (cli) (built: Jun  4 2019 14:48:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.3.7, Copyright (c) 2002-2019, by ionCube Ltd.
    with Zend OPcache v7.2.19-0ubuntu<IP_ADDRESS>, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

I am aware that xdebug is not supposed to work with ionCube:

https://xdebug.org/docs/install

But I do not get any errors in this regard
xDebug is up and running inside the container, too. Since this will get pretty long I'll attach the output of
php --info
in a separate file.
phpinfo.txt
Were it all comes tumbling down
After all this setup I thought I was ready to go. I open the index.php file inside the dir that's matched to the web root and pressed :

Vdebug will wait for a connection in the background

Then I browsed to the page.
Since nothing happend I checked the remote_log:
Log opened at 2019-07-09 10:39:02
I: Connecting to configured address/port: <IP_ADDRESS>:9000.
E: Time-out connecting to client (Waited: 200 ms). :-(
Log closed at 2019-07-09 10:39:02

So the container seems to be unable to reach the client, but I don't understand why.
Since it's a bridged network I thought I could do
docker network inspect docker_default
and use the gateway as an address the container could reach the host under but to no avail.
network_inspect.txt
I'd really appreciate if someone could give me a nudge in the right direction. Cheers.

@romanhandke the solution to your problem was?

docker gateway ip was incorrect? did you have to update the XDEBUG_REMOTE_HOST to another value?

@BlackIkeEagle sorry, it took me a while to see your question.
My problem was, that any incoming connection on Port 9000 was blocked by ufw ... so it was - after all - something dumb.
As I understand it XDEBUG_REMOTE_HOST is overruled by XDEBUG_REMOTE_CONNECT_BACK (if active) anyway and thus can be skipped.
My Xdebug config () simply consists of
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_enable Enables remote debuggin :)
xdebug.remote_connect_back allows xdebug to track my host system when I open the script I wish to  debug in my Browser (I use the Xdebug-Helper Browser addon)
xdebug.remote_port is the port on which my nVim expects the incoming connection


Add link to picocolors

It could be a nice gesture of support between nano-libraries and promot each other

*promote
& saves a Google / or confusion.


Agent failing to build in existing workspace.

I've been using the micro ros agent by building and running it from a dedicated workspace, but I'd like to do so from my main ros2 workspace. However, I'm having problems.  I've been following the standard install instructions and it is working up until the ros2 run micro_ros_setup build_agent.sh command, which fails with:
milner@canterbury:~/code/ros2_workspace$ ros2 run micro_ros_setup build_agent.sh  Building micro-ROS Agent Package 'micro_ros_agent' specified with --packages-up-to was not found
This is all being done in for ros2-foxy.

Try just adding the micro-ROS agent package to your workspace. It will also need micro_ros_msgs package.

If I run thorough it in a fresh workspace, it builds just fine.  It's just when I try to add it to an existing workspace that there is an issue.  I'd like to be able to build the agent along with the rest of my workspace so that we just need to checkout the main development workspace (and submodules, etc) and also so that we can add starting the agent to our launch scripts.
Is there a way to get more diagnostics about what is failing?

Could you please detail which is the error you are getting and the steps for reproducing it?


Keep name to verify consistent

Keep 'azureiotsecurity' name of container to verify consistent with name of module  and name in route

@sandervandevelde : Thanks for your contribution! The author, @mlottner, has been notified to review your proposed change.

#sign-off


Fix build status

Fixes the build status badge in Readme
https://github.com/slimphp/Slim/issues/3330

coverage: 99.429%. remained the same
when pulling 67a0aa4b7557020a932c4cfe74701685af3f4c46 on limarkxx:fix-build-status
into 5943393b88716eb9e82c4161caa956af63423913 on slimphp:4.x.

Thanks!


SCSI package support partitioned disks

Partitioned scsi disks in linux normally show up like the following:
sdd       8:48   0   271M  0 disk
├─sdd1    8:49   0  88.9M  0 part
├─sdd2    8:50   0  61.9M  0 part
├─sdd3    8:51   0    32K  0 part

Such that each partition has an index on the attached disk. In order to use these partitions, our package needs to support having multiple guest paths mounted in the UVM for a given scsi device.
This PR changes how the package thinks about and handles SCSI disks to allow for future use with partitioned disks. In particular this PR updates the SCSI logic from a 1:1 mapping of an attached disk with a guest mount in the UVM to a 1:many mapping of an attached disk with many potential guest mounts. This is only supported for layer scsi mounts on linux.
This PR also updates some functional tests that can be used to verify behavior.
Future PRs will be made to use this PR's changes. This PR does NOT include the guest side changes to use partitioned disks. This will also come in a later PR.

@katiewasnothere can this be closed, or still needed?


any plans to support https://github.com/Famous/engine/tree/v1.0.0?

I note that famous-0.3.5 has been deprecated in favour of famous-1.0.0.
any plans to support https://github.com/Famous/engine/tree/v1.0.0?
Thanks

Hi, good question. The mixed mode API is all new and different and also the new famous-platform library has not yet been released. I'll make a short announcement on this topic probably next week.
cheers.

after talking to a couple people there:

no more famous scrollviews: "just use native scrolling"
new browsers don't stop scrolling when JS is running, so it makes no sense to try to do pure JS scrolls.

no 'appmode' flag anymore.
not sure if we will get scrollevents on our own surfaces for overflow: scroll got mixed responses on this question.

no modifiers
you can just add transforms to surfaces.

separated into BEST which is app framework and CORE for the core drawing engine.
BEST is a more declarative syntax for Behaviors etc. but said it won't ship for at least 4~5 months (in famous time, that could be a year?). Zach from angularfamous got hired to lead that project, and it looks like a mix of react and angular with DI and $state

they rewrote the engine from scratch
since they had no tests before and lots of turnover of the team

no text support for webGL
just meshes and images.

Awesome post @dcsan, thanks for sharing that here!

Any news on possible support for famous-1.0.0?

Hi, no official statements yet, but here is what I wrote to someone else earlier this week:
So I think that mixed mode is a big step forward.  At this stage only the engine has been released, but if you want to build apps, I think we really need the new "famous platform" as well (which should contain a scrollview control), which will be available as a public beta next month.
So, I've been playing around with the new API and trying to get a good feel for it. I have a basic version of a LayoutController up & running and I will be releasing that in the near future. I'm also working on AutoLayout (cassowary constraints) as I myself have a big need to make doing layout even easier and faster.
Concerning upgrading my famous projects. Some libs that I have created try to solve a particular problem with famo.us (e.g. famous-bkimagesurface, famous-sizeconstraint). These things can now be achieved properly with famo.us itsself, so I don't intend to update those. Others, like famous-map and famous-flex, I will continue to support. My goal is to update these projects in a way so that they have an API that matches the new vanilla famo.us / framework API. I think that's important and that developers only have to learn one style of API. Because of this I'm waiting in anticipation of the famous framework and BEST. When released I will probably update my projects shortly after that. In the meantime I will be working on getting the internals ported and probably add some GL features.
Hope that gives you a glimpse of what's coming next.

Hi,
I've noticed that an alpha of the famous framework has appeared:
https://github.com/Famous/framework

Hi, I've put an official statement in the README.
cheers


Display error is a Desktop session/job is already running on VNC partition

Currently we limit vnc partition to one job only so users don't start multiple sessions. But the current submit mechanism will still keep on submitting jobs in in background, causing queue to be full and (QOSMaxJobsPerUserLimit)
Jobs for user ccvdemo
Running:
ID       NAME                              PART.  QOS  CPU  WALLTIME    REMAIN      NODES
8235455  sys/dashboard/sys/bc_ccv_vnc_alt  vnc    vnc  8    2-00:00:00  1-23:50:53  node1156
Pending:
ID       NAME                              PART.  QOS  CPU  WALLTIME    EST.START  REASON
8235461  sys/dashboard/sys/bc_ccv_vnc_alt  vnc    vnc  8    2-00:00:00  N/A        (QOSMaxJobsPerUserLimit)
8235462  sys/dashboard/sys/bc_ccv_vnc_alt  vnc    vnc  8    2-00:00:00  N/A        (QOSMaxJobsPerUserLimit)

We need to find a way to throw error, if a job is already running.

This is resolved. SLURM has an 'maxsubmitjobsperuser' option per partition, so I set it to one for VNC. Now when a user clicks on submit again, it automatically throws the error:
sbatch: error: QOSMaxSubmitJobPerUserLimit.
sbatch: error: Batch job submission failed: Job violates accounting/QOS policy (job submit limit, user's size and/or time limits)

Closing this issue.


De-duplicate presubmit key entries

Prow only allows you to specify the name of the repository once under presubmit. Duplicate entries of any repository name will override any previous mentions of it - causing only a single presubmit job to register.
This PR groups tests by service and common, to ensure we only reference each of the repositories once at most.

Thanks! @RedbackThomson
/lgtm


Pick up comments before where clause in traits

Closes #4211

Thanks for pointing that out; I had them with differing contents in a previous version and didn't clean it up. Should be fixed.

Thanks!


update zhipuai llm and fix issues

Description
Here are the updates:

Name Change ZhipuAI -> ZhipuAILLM: Since there are also other models like Embedding and MultiModal, ZhipuAILLM is more appropriate in this context than ZhipuAI.
Updated Unit Tests and Bug Fixes.

Fixes # (issue)
Version Bump?
Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

[X] Yes

Type of Change
Please delete options that are not relevant.

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

How Has This Been Tested?
Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

[X] I added new unit tests to cover this change
[X] I believe this change is already covered by existing unit tests

Suggested Checklist:

[X] I have performed a self-review of my own code
[X] My changes generate no new warnings

@nerdai could you pls take a look at this pr.


Adding a parameter to catalogs, Pipeline and Recurrence information, and object refactoring

Please note: This being my first Java PR, please bear with me as this has a quite a number of changes.  I am still ramping up and will be keen on submitting changes in small batches quickly.  Big thanks to Jianghao for helping me discover a bug and fixing it right away.

[PART 1: stuff I worked on with Ben Goldsmith] - commits from late July

Catalogs.java: added a parameter, called basic, to indicate that you want basic information rather than nested information about a table (i.e., list tables method) for performance increase

Adding Pipeline and Recurrence information to jobs

Added methods to get such information

Object refactoring and comment changes

[PART 2: code gen based on this PR: https://github.com/Azure/azure-rest-api-specs/pull/1429] - commits from Aug 27th

Code gen based on this PR: Azure/azure-rest-api-specs#1429

Modifying the gulpfile to align with the directory revamp of the Swagger repo

Modifying the test files to work with the object-refactoring changes in the PR

Adding a few more tests to align with the well-covered tests for .NET SDK

Removing "import com.microsoft.azure.SubResource"

@ro-joowan,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Can one of the admins verify this patch?

@jianghaolu Travis finally passes!!!


About object proposal generation on LVIS v1 in Table 4

Thanks for your excellent work!
I evaluate the object proposal generation of SAM (ViT-H) on LVIS v1, but the result of AR@1000 is 50.5 (not  59.3 reported in the paper).
I remove the predicted IoU and stability filter and set a 64*64 point grid and 0.9 NMS threshold, which produces about 900 masks per image.
Maybe there are some differences in the evaluation.  Could you provide the evaluation code？

How do you generate proposals by SAM? I didn't find any relevant code in the repository.

Thanks for your interest!
We are not intending to release the full evaluation suite as part of this repo at this time. In general, for research-related issues, please reach out to the authors directly instead of using github issues.
Here are some more details that might be relevant. Masks are ranked by the average of the predicted IoU and stability score when determining what to drop due to the 1000 mask cutoff. We calculate the AR averaged over matching IoU thresholds between 0.5 and 0.95, as in the usual AP/AR calculation for COCO and LVIS. We also calculate the class-agnostic AR, so all ground truth masks are considered to be the same category. Finally, due to the federated nature of LVIS, there may be some subtleties when using existing evaluators intended for class-specific AP; e.g., even when set to be class-agnostic, LVISEval (https://github.com/lvis-dataset/lvis-api/blob/da5f65d16237637d848a51713556c48ca521bc18/lvis/eval.py#L14) will drop predictions with a class label that are neither in the image or exhaustively excluded; this is incorrect for class-agnostic recall.

Hey @yangliu96 what evaluation script did you use? I tried using LVISEval, however ran into multiple problems...


⚠ Bofrost.be has degraded performance

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

HTTP code: 200
Response time: 1662 ms

Resolved: Bofrost.be performance has improved in 25db10a.


Updated header and footer UI/UX

This PR enhances the header and footer UI/UX. The changes include improving the hover effects for the logo, updating the card styling with background color and shadows, and modifying the footer with better link styling. These improvements provide a more modern and responsive design.

@ZeDD0405 : This does not change anything. Please mention issue that you are working on

I wanted to inform you that I will work on another issue tomorrow morning
and will send it back to you as soon as possible. Additionally, I have
already messaged you on Internshala regarding this.
Thank you for your patience.
On Fri, Nov 15, 2024 at 9:53 PM Mehul Prajapati @.***>
wrote:

@ZeDD0405 https://github.com/ZeDD0405 : This does not change anything.
Please mention issue that you are working on
—
Reply to this email directly, view it on GitHub
https://github.com/mehul-m-prajapati/github_tracker/pull/23#issuecomment-2479351322,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMN7GIH6VXI7JPL6FKVHFU32AYNYTAVCNFSM6AAAAABR3G2H36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZZGM2TCMZSGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@ZeDD0405 : This does not change anything. Please mention issue that you are working on

I wanted to inform you that I will work on another issue tomorrow morning and will send it back to you as soon as possible. Additionally, I have already messaged you on Internshala regarding this.
Thank you for your patience.


Bytecode VM: Support PushLastMatchInstruction

There are some issues with using references in the interpreter mode (and thus in running the Bytecode VM). Compare:
bin/natalie -e '/(?<foo>bar)/ =~ "foobar"; p $~'
#<MatchData "bar" foo:"bar">

bin/natalie -i -e '/(?<foo>bar)/ =~ "foobar"; p $~'
nil

I expect the interpreter mode uses some regexp internally and overwrites the global

It needed a small update to accompany the changes in #1990.


Cannot read properties of null (reading 'getNorthEast')

Verify latest release

[X] I verified that the issue exists in the latest release

Describe the Bug
Looks like onIdle() fails to getBounds() 🤔  This doesn't break the map.

Sorry I don't have a reproduction repo at the moment. Just though I'd make this issue for now.

Hi @bradley-varol, check if you replicate issue #1, otherwise, check if you have wrong coordinates. Usually bounds function fails for these reasons.


[Epic]: Content reduction pilot

The following articles will be either consolidated, archived, or removed. In any case, they'll be redirected as appropriate.

[x] #36561
[x] https://github.com/dotnet/docs/issues/36387
[x] #36879

completed by all listed tasks.


MDA Tile

Added code for MDA Tile included readme.

Adding a new feature. Will open again once done testing.


Trying to upload images with api

I am trying to host user images using UploadThing
here is the function I am using
  const handleImageUpload = async () => {
    try {
      // Send the image data to the server
      const response = await fetch("/api/uploadthing?slug=images", {
        method: "POST",
        body: uploadedImage,
        headers: {
          "Content-Type": "image/jpeg", // Adjust the content type as needed
        },
      });

      if (response.ok) {
        console.log("Image uploaded successfully!");
        // Handle any further actions after successful upload
      } else {
        console.error("Failed to upload image.");
      }
    } catch (error) {
      console.error("Error uploading image:", error);
    }
  };

I have never done this before, any clue on how can I upload the images via the api passing an id [I have it stored in id] and retrieve it using a fetch function?
Following the docs I have created core, route file in /uploadthing and installed necessary dependencies

any clue on how can I upload the images via the api passing an id

If I understand correctly, I think you are trying to pass metadata from the frontend to be used in middleware/server-side? If so, I think that this example is what you are looking for.
The endpoints are not really intended to be used directly without our components/hook, but if you do want to do that, I would suggest looking at the respective implementations to see how the fetch should work.

Is it necessary to use the UploadButton or UploadDropZone or we can declare custom components? It would be nice to know how these two work internally too.

You can absolutely make your own custom components if you want. Check out these docs for how to get started there.

It would be nice to know how these two work internally too.

The components are all open source in this repo. Here's the React ones:
https://github.com/pingdotgg/uploadthing/blob/main/packages/react/src/component.tsx

Thanks 😊 I will lok into it.


#37: badges in README.md were fixed

Coverage remained the same at 100.0% when pulling a1af2cb7d1e51192b8b1f29bef00a07371b8ca80 on develop into 7514b7d5c8a776630dd7444c902bfea58dfcbba2 on master.


use of csvw:{foobar} generats error in metadata graphs

For example:
356343 _:N8553915f2a8243e9a776ce4f391fc305 http://www.w3.org/ns/csvw#lang "{{lang_code|lower}}" http://iisg.amsterdam/occupation_link/provenance/bf682913/2017-11-03T22:19 .
@albertmeronyo is this maybe linked to #12 ?

Did you use {{lang_code|lower}} in the json file? If so, it should probably be {{lang_code|lower()}} to work.

Hi, I tried both, to no avail. NB: this only concerns the conversion csvw:value in the nano-pub part.

Apparently, this is just 'ugly' representation of how the csvw:value was created. No error, but ugly.


📖 Quick Start Pytorch Components & Workflows

Description
With the upcoming 1,5 release, we're looking forward to improve the new user onboarding. This PR introduces a new set of pytorch components based on the official pytorch tutorials. Most of the components are designed to emulate commonly used modules such as torch utils Dataset and DataLoader, while the rest such as TorchModel are easily modifiable.
List of new components:

LoadTorchVisionDataset
TorchDataLoader
TorchModel
TrainTorchModel
TestTorchModel
SaveTorchModelState
LoadTorchModelState
TorchModelPredict
Image2TorchTensor
TorchModelPredictFromTensor

I have also created 2 workflows:

TorchTrainModel.xircuits: Trains a fashion mnist model, and saves the trained torch model state.
TrainPredictFromModel.xircuits: Loads a saved torch model state and performs inference.

Due to it's specific use case, the previous pytorch components and workflows are migrated to it's own Xircuits project template - https://github.com/XpressAI/template-semantic_segmentation
References
https://github.com/XpressAI/xircuits/pull/68
Pull Request Type

[ ] Xircuits Core (Jupyterlab Related changes)
[ ] Xircuits Canvas (Custom RD Related changes)
[x] Xircuits Component Library
[ ] Testing Automation
[ ] Documentation
[ ] Others (Please Specify)

Type of Change

[x] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Tests

Setup

Make venv
python -m venv venv && source venv/Scripts/activate
After extracting the zip file
pip install xircuits*.whl
To fetch the new torch components:
xircuits-components --branch fahreza/new-torch
pip install the new torch components
pip install -r xai_components/xai_pytorch/requirements.txt
Launch Xircuits:
xircuits

Workflow Tests

Run TorchTrainModel.xircuits. Did it successfully run?
Run TrainPredictFromModel.xircuits. Did it successfully run?

Grammar Check
Check that the new components have reasonable text descriptions.

Tested on?

[x] Windows
[ ] Linux Ubuntu
[ ] Centos
[ ] Mac
[ ] Others  (State here -> xxx )

Notes
The prediction isn't great since the model accuracy is only 60%. Feel free to add your own if it gives the correct output.

@MFA-X-AI Do you mean TorchPredictFromModel.xircuits instead of TrainPredictFromModel.xircuits?

D:\XpressAI-Repos\xircuits\venv\lib\site-packages\tqdm\auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

Executing: LoadTorchVisionDataset
Downloading FashionMNIST to D:\XpressAI-Repos\xircuits\data
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz to data\FashionMNIST\raw\train-images-idx3-ubyte.gz
100%|██████████| 26421880/26421880 [00:36<00:00, 731940.42it/s]
Extracting data\FashionMNIST\raw\train-images-idx3-ubyte.gz to data\FashionMNIST\raw

Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-labels-idx1-ubyte.gz
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-labels-idx1-ubyte.gz to data\FashionMNIST\raw\train-labels-idx1-ubyte.gz
100%|██████████| 29515/29515 [00:00<00:00, 123685.05it/s]
Extracting data\FashionMNIST\raw\train-labels-idx1-ubyte.gz to data\FashionMNIST\raw

Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-images-idx3-ubyte.gz
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-images-idx3-ubyte.gz to data\FashionMNIST\raw\t10k-images-idx3-ubyte.gz
100%|██████████| 4422102/4422102 [00:02<00:00, 1529346.59it/s]
Extracting data\FashionMNIST\raw\t10k-images-idx3-ubyte.gz to data\FashionMNIST\raw

Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-labels-idx1-ubyte.gz
Downloading http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-labels-idx1-ubyte.gz to data\FashionMNIST\raw\t10k-labels-idx1-ubyte.gz
100%|██████████| 5148/5148 [00:00<?, ?it/s]
Extracting data\FashionMNIST\raw\t10k-labels-idx1-ubyte.gz to data\FashionMNIST\raw

Executing: TorchDataLoader
Shape of X [N, C, H, W]: torch.Size([64, 1, 28, 28])
Shape of y: torch.Size([64]) torch.int64

Executing: TorchModel
Using cpu device
NeuralNetwork(
  (flatten): Flatten(start_dim=1, end_dim=-1)
  (linear_relu_stack): Sequential(
    (0): Linear(in_features=784, out_features=512, bias=True)
    (1): ReLU()
    (2): Linear(in_features=512, out_features=512, bias=True)
    (3): ReLU()
    (4): Linear(in_features=512, out_features=10, bias=True)
  )
)

Executing: TrainTorchModel
Using cpu device

Epoch 1
-------------------------------
loss: 2.299560  [    0/60000]
loss: 2.291411  [ 6400/60000]
loss: 2.260286  [12800/60000]
loss: 2.255728  [19200/60000]
loss: 2.251524  [25600/60000]
loss: 2.203349  [32000/60000]
loss: 2.225282  [38400/60000]
loss: 2.177551  [44800/60000]
loss: 2.177159  [51200/60000]
loss: 2.142596  [57600/60000]

Epoch 2
-------------------------------
loss: 2.148282  [    0/60000]
loss: 2.137422  [ 6400/60000]
loss: 2.062230  [12800/60000]
loss: 2.084925  [19200/60000]
loss: 2.036381  [25600/60000]
loss: 1.968870  [32000/60000]
loss: 2.005548  [38400/60000]
loss: 1.909899  [44800/60000]
loss: 1.918659  [51200/60000]
loss: 1.851401  [57600/60000]

Epoch 3
-------------------------------
loss: 1.876785  [    0/60000]
loss: 1.844696  [ 6400/60000]
loss: 1.710771  [12800/60000]
loss: 1.766611  [19200/60000]
loss: 1.657800  [25600/60000]
loss: 1.613809  [32000/60000]
loss: 1.643544  [38400/60000]
loss: 1.535521  [44800/60000]
loss: 1.561128  [51200/60000]
loss: 1.464803  [57600/60000]

Executing: TestTorchModel
Using cpu device
Test Error:
 Accuracy: 60.8%, Avg loss: 1.477669

Executing: SaveTorchModelState
Saved PyTorch Model State to examples/TorchTrainModel.pth

Finish Executing

Then,
======================================
__   __  ___                _ _
\ \  \ \/ (_)_ __ ___ _   _(_) |_ ___
 \ \  \  /| | '__/ __| | | | | __/ __|
 / /  /  \| | | | (__| |_| | | |_\__ \
/_/  /_/\_\_|_|  \___|\__,_|_|\__|___/

======================================

Xircuits is running...

D:\XpressAI-Repos\xircuits\venv\lib\site-packages\tqdm\auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

Executing: Image2TorchTensor
Size of the Original image:  (1078, 1280)
Size of the image after resize:  (28, 28)
Size of the tensor:  torch.Size([1, 28, 28])

Executing: TorchModel
Using cpu device
NeuralNetwork(
  (flatten): Flatten(start_dim=1, end_dim=-1)
  (linear_relu_stack): Sequential(
    (0): Linear(in_features=784, out_features=512, bias=True)
    (1): ReLU()
    (2): Linear(in_features=512, out_features=512, bias=True)
    (3): ReLU()
    (4): Linear(in_features=512, out_features=10, bias=True)
  )
)

Executing: LoadTorchModelState
Using cpu device

Executing: TorchModelPredictFromTensor
Using cpu device
Predicted: "Coat"

Finish Executing

Looks fine, IMO!


How to retrieve custom_fields definitions?

I see in API doc, it has: GET /v2/contact/custom_fields .
Is there a way to do that using SDK?

Just submitted a PR for this. https://github.com/zendesk/basecrm-ruby/pull/76


How to access IProfileService from within IdentityServer

[X] I read and understood how to enable logging

Issue / Steps to reproduce the problem
First of all I'm quite new to IS, but I have developed an IdentityServer with this functionality working.
Now I'm migrating it to the new version and I'm having this issue.
I'm trying to access my CustomClaimsService (:IProfileService) from within IdentityServer but it never gets executed. I'm taking as a base the Combined_AspNetIdentity_and_EntityFrameworkStorage sample on IdentityServer4.Samples
If I access from, let's say, MVC Client, the CustomClaimsService gets called and the token gets filled with my custom claims.
My ConfigureServices()
public void ConfigureServices(IServiceCollection services)
        {
            services.AddTransient<IEmailSender, EmailSender>();

            services.AddDbContext<ApplicationDbContext>(options =>
                options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

            services.AddIdentity<ApplicationUser, IdentityRole>()
                .AddEntityFrameworkStores<ApplicationDbContext>()
                .AddDefaultTokenProviders();

            string connectionString = Configuration.GetConnectionString("DefaultConnection");
            var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name;

            services.AddIdentityServer()
                .AddDeveloperSigningCredential()
                .AddConfigurationStore(options =>
                {
                    options.ConfigureDbContext = builder =>
                        builder.UseSqlServer(connectionString,
                            sql => sql.MigrationsAssembly(migrationsAssembly));
                })
                .AddOperationalStore(options =>
                {
                    options.ConfigureDbContext = builder =>
                        builder.UseSqlServer(connectionString,
                            sql => sql.MigrationsAssembly(migrationsAssembly));
                    //options.EnableTokenCleanup = true;
                    //options.TokenCleanupInterval = 30;
                })
                .AddAspNetIdentity<ApplicationUser>()
                .AddProfileService<CustomClaimsService>();

            services.AddMvc();

        }

and my Configure()
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            // this will do the initial DB population, but we only need to do it once
            // this is just in here as a easy, yet hacky, way to get our DB created/populated
            InitializeDatabase(app);

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
                app.UseDatabaseErrorPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            // app.UseIdentity(); // not needed, since UseIdentityServer adds the authentication middleware
            app.UseIdentityServer();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }

I can't repro your issue. I did the minimal steps to add a custom profile service to that sample and it's working fine.

Hi, Brock. Thank you for your help.
I guess I'm doing something wrong then
These are the steps I do

Dotnet new with is4inmem
Add Class Library "CustomClaimService" that derives from IProfileService and implement the interface (I touch nothing inside - I leave the exceptions)
Add .AddProfileService<CustomClaimService>(); to the IdentityServer Builder
Add services.AddTransient<IProfileService, CustomClaimService>(); to ConfigureServices
Add a breakpoint inside of GetProfileDataAsync
Start debugging
Login with one of the in-memory user
The breakpoint never gets hit

On the other example that I was working I've added a MVC Client and when I logged in the breakpoint got hit.
I uploaded the test to a repo. It's https://github.com/germansak/istestprofile
There must be something I'm missing :-(

[https://github.com/IdentityServer/IdentityServer4/issues/458 ](ISSUE 458)

It's (GetProfileDataAsync Method on IProfileService) only called if you ask for scopes that have additional claims.
@brockallen

When you login into IdentityServer directly (by that I mean, You're not redirected to Identity Server by a client when using Implicit or Hybrid Flow). The GetProfileDataAsync Method on IProfileService never gets called.
The GetProfileDataAsync Method on IProfileService  is Invoked when the client request additional claims for the user.

Also:

Add a breakpoint inside of GetProfileDataAsync

This isn't always called depending on the scopes requested. Put a break point in the ctor instead.
Also, yes, this:

.AddTestUsers(TestUsers.Users) adds TestUserProfileService to IServiceCollection.

registers its own profile service. Choose one.

Actually I used test users to make the demo only. The actual app gets users from a database.
So what should I do? I need to get domain information from the user logged in from within IdentityServer since I run an admin panel to do users and roles administration, so I need to make policy based auth using the user information (I.E. Is he/she on IT?). Should I access the users database directly and make my own "ProfileService"? Is there any other way to reuse CustomClaimService so I don't have to write auth twice?
Thank you all for your help
German

I guess SO will be a better place to discuss this? @brockallen

Yes, SO please.

Just want to add my 2cents..
Compared to prev version (core1.2, old idmsrv4), ProfileService is being called on every token request and includes the claims, but now the claims are linked to scope, means if your request includes that scope that has required claims ( application special), then the service is being invoked.

http://docs.identityserver.io/en/release/topics/resources.html#defining-custom-identity-resources
and
http://docs.identityserver.io/en/release/reference/profileservice.html

Hi guys,
I understand @germansak question and I understand why the IProfileService is not firing.
The GetProfileDataAsync Method on IProfileService is Invoked when the client request additional claims for the user.
My client(s) make an additional claim and as such fires the IProfileService GetProfileDataAsync when needed.
However I'm little lost on how to do something similar when you login directly to Identity Server. As you're not acting as client, so you're not requesting additional claims. So how would you inject a tenant header to be verified? (why I'm trying to do it).
I appreciate this isn't a bug, but would even appreciate if you drop me a link to a relevant issue/guidance.
@brockallen


Include assets and .git folder in binary releases

The assets folder and .git should be included in the binary releases. Not doing so breaks the hyprland and hyprland-bin AUR packages.

assets i can see why, but .git?

that is because the freedesktop gitlab is dead

can you repack the latest release with the files and send me the tar on discord? i'd update it

Done, check discord

done


fix(serviceMonitor) set 30s as default interval

What this PR does / why we need it:
The default interval should be 30s to support the rate of 1m of the official Kong Grafana dashboard.
Dashboard https://grafana.com/grafana/dashboards/7424-kong-official/
Which issue this PR fixes
N/A
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] PR is based off the current tip of the main branch.
[x] Changes are documented under the "Unreleased" header in CHANGELOG.md
[x] New or modified sections of values.yaml are documented in the README.md
[x] Commits follow the Kong commit message guidelines

Nice catch. We have indeed changed this in our Prometheus operator, so the issue was cased by our setup and not this chart or the Grafana dashboard.
Closing this PR. Thx


Fails on API request failed: cannot get a check monitor

I encountered an error while using shimesaba. The error message is as follows:
2024/02/02 02:34:24 [debug] call GetMonitor(******) # ****** is check monitor's id
2024/02/02 02:34:24 [error] service level objective[id=availability]: create report faileds: API request failed: Cannot get a check monitor

It appears that shimesaba is unable to retrieve the check monitor during the attempt to create a report.
I would like to hear your thoughts on how to treat this error.
Environment

OS version: macOS Sonoma 14.2.1
shimesaba version: v1.4.0

Command
$ shimesaba \
-config "./config.yml" \
-mackerel-apikey "******" \
--debug

After investigating the issue, it appears that Mackerel check monitoring data cannot be obtained through GetMonitor. I plan to address this limitation in the upcoming updates. To avoid this error, I propose not collecting detailed information from the Monitor when dealing with Check monitoring.
I hadn't regularly used Check monitoring, so I was unaware that despite having the MonitorID, the details couldn't be retrieved using GetMonitor.
Thank you for bringing this issue to our attention.

Appreciate the quick fix. Thank you! 😊

Today, will release v1.4.1.


Duration in messages

Hi,
is it possible to add default or optional  #{ model.duration } in notification message for HipChat and HttpPost?
Thanks in advance!

Hi @overstack. Good idea, but not necessarily by default. Not everyone may want it so one personal setting could be annoying to others.
Instead I started working on a way to customize notifiers messages. Taking a bit longer than I had hoped, but you can see my progress so far in #698.
This will allow you to customize your message like so:
notify_by HipChat do |notifier|
  notifier.message = lambda do |model, data|
    "#{ data[:status][:message] } #{ model.label } (#{ model.trigger }) - Duration: #{model.duration}"
  end
end

Try it out and let me know if it works for hipchat and httppost so far, those ones I have updated to use this new option.

It works fine, thanks.


add password manager to easyGPG Tool

task 1 : adding and fixing windows and widgets for password manager
task 2 : creating chrome plugin to have communicate with web sites

Changes committed for Task 1:
Version 0.2 now includes the addition of a password generator with adjustable difficulty through a scroll. Moreover, the password can be copied simply by clicking on it. Easy, right?
About Task 2:
Currently, I am learning JavaScript to tackle this task! :)


failed to parse .ll file

When I run
cargo +nightly call-stack --bin my-binary

I get:

error: BUG: failed to parse .ll file; please submit a bug report. Details:
Error(Code(CompleteStr("…

followed by 177 megabytes of code. Pasting that much into a bug report probably wouldn't be helpful. Besides, this project contains some proprietary code, so I'm not allowed to disclose all of it.
Perhaps you could change this error case to quote the unparsable input more precisely?

Same issue here:
$rustc --version
rustc 1.34.0 (91856ed52 2019-04-10)
$cargo call-stack --version
cargo-call-stack 0.1.3
Error: BUG: failed to parse .ll file; please submit a bug report. Details:
Error(Code(CompleteStr("define internal fastcc void @_ZN7funcmod7funcmod17h4d3d2f225276ade8E(%\"core::result::Result<(),

...........  +23MB of code

One more similar 20MB report: https://vi-server.org/pub/ccs_bugreport.xz

are there any updates or workarounds with respect to this issue?

just in case this is useful, I have this problem even with cortex-m-examples such as fn.rs
cargo call-stack --example fn > cg.dot

Output:
error: BUG: failed to parse .ll file; please submit a bug report. Details:
Error(Code(CompleteStr("define void @main() unnamed_addr #1 !dbg !1220
....

Somehow newer versions seems to be broken. I tried going back to a nightly that depends on LLVM 8.0 (nightly-2018-12-27) and it works!

Reinstall from scratch - Not really necessary
rustup self uninstall
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

install cargo-call-stack
cargo +stable install cargo-call-stack

Use nightly-2018-12-27
rustup toolchain install nightly-2018-12-27
rustup target add thumbv7m-none-eabi --toolchain nightly-2018-12-27

This rustc +nightly-2018-12-27 -V -v outputs:
rustc 1.33.0-nightly (a7be40c65 2018-12-26)
binary: rustc
commit-hash: a7be40c65ae8ace467c9c40b0a22642973e31a13
commit-date: 2018-12-26
host: x86_64-unknown-linux-gnu
release: 1.33.0-nightly
LLVM version: 8.0

Now it works well
cargo +nightly-2018-12-27 call-stack --example fn

Try v0.1.4; it supports the new identifiers that rustc is producing in the llvm ir.
If you run into problems with that version open a new issue including the Rust source code that reproduces the problem. If you want to include the llvm-ir in the bug report include only the first llvm item (e.g. define void .. { .. } that appears in the output.


Develop AWS architecture for "lift-and-shift" of SBN-PSI + EN Tools pipeline

💡 Description

@ramesh-maddegoda is blocked with something on NGAP

For this build B13.1,  the SBN-PDS pipeline will stay on-prem

Descoping from B13.1 per architecture discusses with SBN-PSI

closing this as wontfix since we will do this piecemeal, not one big migration of tools


CPP Executor

Current the executor for cpp scripts is not done yet. The main task is for it to run cli commands to compile and execute a cpp code file with stdin. You can see the java and python executors for example.

Hey, I think I can do it, can you assign it to me.


Enable use on Windows.

Portably create the temporary file and hide the command prompt.

Sorry. Created a new pull request with the fix. Probably not the way I'm meant to do it...

LGTM! Thank you. 👍


[1370] Fix broken manual user creation with CAS [master]

Resolves #1370 on master

Add controller spec for manual user creation with CAS
Fix controller logic

updated based on changes suggested in #1371

merging based on code review in #1371


ConnectionRefusedError: [Errno 111] Connection refused when snakemake --report

Hi,
There is a stderr with ConnectionRefusedError: [Errno 111] Connection refused when I use snakemake --report  command. But the workstation is connected to the network.
Any help is much appreciated.
Thanks.

The same errors occured. I don't know how th fix this error


Column guide

I do a fair bit of editing in Markdown, and I like to hard-wrap blocks of text at column 120 (as opposed to the visual wrapping that happens in VSCode based on the editor.wrappingColumn setting).
It would be really helpful to have a visual guide at a user-defined column number.  This visual guide would affect nothing, it would merely appear as a faintly visible vertical line that shows where the specified column is, such as column 120.  That way, when I'm writing large blocks of text, I don't have to constantly look down to the column number indicator to see where I should be hard-wrapping the text.

duplicate of #1673

My apologies.  I did make an effort to do a search, but I did not find #1673.  Thanks for the heads-up.

no problem at all.


Trying to understand why MiniCssExtractPlugin is manually removed

Hi,
I am looking at the example webpack config here:
https://github.com/CanopyTax/single-spa-angular/blob/b8b4daf87af4100935f6febee31a715d8e7529c8/src/builders/single-spa-webpack-builder.ts
I'm trying to understand the need for
removePluginByName(mergedConfig.plugins, 'IndexHtmlWebpackPlugin');
removeMiniCssExtract(mergedConfig);
I understand that the systemjs import will not work if these plugins are used. However, where is the actual configuration that adds these plugins to begin with? Are they added by default by Angular?

I think they're added to the webpack config by default when generated using the angular-cli. See https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts#L21
I have no idea where this resides in the generated project.

The reason for removing IndexHTMLWebpackPlugin:
single-spa applications do not have their own html files. They all share one html file. This is why it is called "single" spa (there's only one SPA).
The IndexHTMLWebpackPlugin creates an html file for each application, which is not needed nor usable in the single-spa architecture.
The reason for removing MiniCssExtractPlugin:
The MiniCssExtractPlugin creates css files that must be loaded via <link href="/path-to-file.css">. This is generally done by automatically injecting a <link> inside of the html file generated by IndexHTMLWebpackPlugin. As described above, in a single-spa architecture there is only one html file for all applications, and it is not generated by webpack. The decision to remove MiniCssExtractPlugin is so that users of single-spa-angular don't have to manually inject a <link> element to the page to load their css.


instantiate chaincodes Error

root@ubuntu:/smbshare/caliper# node benchmark/simple/main.js
TAP version 13
#######Caliper Test######
docker-compose -f network/fabric/simplenetwork/docker-compose.yaml up -d
Creating network "simplenetwork_default" with the default driver
Creating orderer.example.com
Creating ca_peerOrg1
Creating simplenetwork_peer_1
Creating ca_peerOrg2
Creating simplenetwork_ca_1
Creating peer1.org2.example.com
Creating peer1.org1.example.com
Creating peer0.org1.example.com
Creating peer0.org2.example.com
create mychannel......
ok 1 created mychannel successfully
Sleep 5s......
Join channel......
join mychannel
ok 2 Successfully joined mychannel
install all chaincodes......
info: [packager/Golang.js]: packaging GOLANG from contract/fabric/simple/go
info: [packager/Golang.js]: packaging GOLANG from contract/fabric/simple/go
ok 3 Installed chaincode simple successfully in all peers
Instantiate chaincode......
error: [Peer.js]: sendProposal - timed out after:120000
error: [Peer.js]: sendProposal - timed out after:120000
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/smbshare/caliper/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/smbshare/caliper/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
error: [Peer.js]: sendProposal - timed out after:120000
error: [Peer.js]: sendProposal - timed out after:120000
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/smbshare/caliper/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/smbshare/caliper/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
not ok 4 Failed to instantiate chaincodes, Error: Failed to send instantiate due to error: Error: Failed to send instantiate Proposal or receive valid response. Response null or status is not 200. exiting... at Client.newDefaultKeyValueStore.then.then.then.then (/smbshare/caliper/src/fabric/e2eUtils.js:375:19) at  at process._tickCallback (internal/process/next_tick.js:188:7) at Client.newDefaultKeyValueStore.then.then.then.then.then (/smbshare/caliper/src/fabric/e2eUtils.js:388:15) at  at process._tickCallback (internal/process/next_tick.js:188:7)
operator: fail
at: chaincodes.reduce.then.catch (/smbshare/caliper/src/fabric/instantiate-chaincode.js:60:19)
stack: |-
  Error: Failed to instantiate chaincodes, Error: Failed to send instantiate due to error: Error: Failed to send instantiate Proposal or receive valid response. Response null or status is not 200. exiting...
      at Client.newDefaultKeyValueStore.then.then.then.then (/smbshare/caliper/src/fabric/e2eUtils.js:375:19)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
      at Client.newDefaultKeyValueStore.then.then.then.then.then (/smbshare/caliper/src/fabric/e2eUtils.js:388:15)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)
      at Test.assert [as _assert] (/smbshare/caliper/node_modules/tape/lib/test.js:224:54)
      at Test.bound [as _assert] (/smbshare/caliper/node_modules/tape/lib/test.js:76:32)
      at Test.fail (/smbshare/caliper/node_modules/tape/lib/test.js:317:10)
      at Test.bound [as fail] (/smbshare/caliper/node_modules/tape/lib/test.js:76:32)
      at chaincodes.reduce.then.catch (/smbshare/caliper/src/fabric/instantiate-chaincode.js:60:19)
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

...
fabric.installSmartContract() failed, Error: Fabric: instantiate chaincodes failed
at chaincodes.reduce.then.catch (/smbshare/caliper/src/fabric/instantiate-chaincode.js:61:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[Transaction Info] - Submitted: 0 Succ: 0 Fail:0 Unfinished:0
unexpected error, Error: Fabric: instantiate chaincodes failed
at chaincodes.reduce.then.catch (/smbshare/caliper/src/fabric/instantiate-chaincode.js:61:31)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
docker-compose -f network/fabric/simplenetwork/docker-compose.yaml down;docker rm $(docker ps -aq);docker rmi $(docker images dev* -q)

@aklenik thanks a lot, your kind help came to my rescue。

@aklenik I tried to add up to six minutes, but time out came. Is there any other reason for this problem?

I set up the caliper environment in a VM. I meet the same problem and can't solve it according to your advise. @aklenik

@PoormaJin @cao0507 The timeout error can also mean that an error occurred in your chaincode Init function. Take a look at the chaincode logs: docker logs dev-something
For some reason, this hangs the execution and times out (for Fabric v1.1 at least).

@PoormaJin @cao0507 The timeout error can also mean that an error occurred in your chaincode Init function. Take a look at the chaincode logs: docker logs dev-something
For some reason, this hangs the execution and times out (for Fabric v1.1 at least).

Thank you for your reply, but I have solved the problem. My problem maybe result from the pre-requisites, when i install the node-gyp correctly the benchmark run successfully.

@PoormaJin @cao0507 The timeout error can also mean that an error occurred in your chaincode Init function. Take a look at the chaincode logs: docker logs dev-something
For some reason, this hangs the execution and times out (for Fabric v1.1 at least).

Thank you for your reply, but I have solved the problem. My problem maybe result from the pre-requisites, when i install the node-gyp correctly the benchmark run successfully.

How did you install node-gyp? I am facing the same issue during instantiation of chaincode.

@revobd
$ npm install -g node-gyp

@revobd
$ npm install -g node-gyp

Thanks. I did that but still had the same issue. It finally worked after doubling the timeout.

for newer version (caliper 0.3.2) how do i change the timeout?

@nurhazbiy Here are the config keys you can set for the Fabric adapter: https://hyperledger.github.io/caliper/v0.3.2/runtime-config/#fabric-adapter-settings
You need caliper-fabric-timeout-chaincodeinstantiate, and the one after probably. The peers also have a timeout setting, you should check those too.


Status bar stuck on Cancel

Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have tested that this issue has not been fixed in the latest (beta or stable) release.
[X] I have checked the FAQ section for solutions
[X] This issue is about a bug (if it is not, please use the correct template)

Describe your issue
Just installed one single update, for Powertoys. I noticed that I had accidentally selected more updates so I pressed "Cancel". It had already installed one other update (Zoom)but so far so good.
I then clicked the icon(with no mouseover :)  to refresh the available updates again, made sure that I had only selected "PowerToys" and let WGUI install it. After it finished the status bar says "Successfully installed" but it shows the "Cancel" button instead of the "OK" button. See the attached screenshot.

Steps to reproduce the issue
No response
WingetUI Log
NA

Package Managers Logs
NA

Relevant information
No response
Screenshots and videos
No response

Duplicate of #1491


[vim] Implement vim CTRL-X completion

Vim has its own insert-completion feature with several different varieties of completion. Even if there's already some standard completion in CodeMirror using Ctrl-Space, it would be nice to be able to e.g., complete only words from the current file using i_CTRL-X_CTRL-N, or words from other active buffers using i_CTRL-N.

The vim code is now being maintained at https://github.com/replit/codemirror-vim/ . If this is still important, check whether there is an issue open for it there.


The IntelliSense is not disappeared after inputting space/commas/period in a blank template file

OS: Windows 10 and Mac
Build Version: 20200818.1
Repro Steps:

In VS Code, create a new file but don't save it.
Set language ID to "Azure Resource Manager Template".
Entering "Ctrl+Space" to show the IntelliSense.
Input space/commas/period and check the result.

Expect:
The IntelliSense is disappeared after inputting space/commas/period.
Actual:
The IntelliSense is not disappeared after inputting space/commas/period.

@v-ruizh Thanks for entering.  This might be a little weird, but doesn't hinder the user experience, and I'm not certain it's actually bad behavior.


Community Engagement (Presentations, Workshops, etc.)

Raised in issue ( https://github.com/zarr-developers/zarr/issues/291 ), the topic is how can we engage with others about Zarr (in-person). This ranges from how do we teach people about Zarr to how do we engage with our userbase (particularly in high bandwidth situations). Examples might be giving a talks at large or small conferences or even local Meetups or perhaps workshops in similar situations. Are there common materials we could use for this (e.g. slide deck, figures, etc.) and could we collect these somewhere? Any marketing material that we might want to have (e.g. stickers, mugs, etc.)? How do we report back what we have learned and share with others?

Hi @jakirkham, all Zarr devs and hackers!
I believe one path/direction Zarr might approach potential users is to present Zarr implementation benefits for organizations already employing similar scientific data model. One example is Allotrope Foundation that is based on HDF5 and is targeting at large-scale, high-throughput chemical analysis. They are holding a meeting soon:
https://www.signmeup.com/site/online-event-registration/127677
One idea that shall attract/interest many users (esp. big companies) is Zarr in place of HDF5 for ADF data, which (theoretically) couples powerful higher-level ADF format with Zarr distributed and highly-concurrent access to analytical data. The latter is of pronounced demand, esp. for big and rich Allotrope Foundation members.
What about converting the data to Zarr, accompanying it with general Zarr description and vision, and somehow presenting to Allotrope members?
Allotrope Data Format example files are currently available in private GitLab:
https://gitlab.com/allotrope-review/lc-uv/tree/master/test data
but should be publicly released soon (or, can be readily provided by Allotrope members if demanded).

Hi all, I just wanted to say that I am more than happy for others to give talks on zarr at conferences/meetups/workshops. I submitted an abstract to scipy 2019 but otherwise I was not planning to submit abstracts to any other conferences this year.
If you would like to submit an abstract to talk about zarr, I'd suggest posting a comment here first, just to check if anyone else intends to submit to the same conference. If no-one objects within a couple of days, feel free to go ahead with the submission. Also feel free to re-use any material from the scipy 2019 submission.
cc @jeromekelleher

Cross-posting a couple of previous zarr talks here in case useful to anyone...

Webinar for the ESIP Federation tech dive series
@rabernat's talk at the AGU Fall Meeting 2018

Thanks for the update @alimanfoo! I was thinking of submitting a talk for the Research Software Engineers conference; I was at the conference last year, and I'm sure there will be people interested in zarr there. If anyone else is going and would prefer to talk instead, I'd be happy to defer though!

Just to update, I've submitted for a talk at the RSE conference. I'll report back here with any further news.


[1.12.2] Can't set 5 ticks per operation when using advanced connector

xnet-1.12-1.4.1
Per title.  It goes from 200->5->20.  It quickly jumps from 5 to 20 without stopping at 5.

5? The lowest should be 10 for advanced. Are you using custom configs?

No changes made at all.  All default.
rftools.zip

I can reproduce this

Fixed next release


Devel module dependency undocumented in "Add Drupal VM as a Composer dependency"

When adding Drupal VM as a composer dependency, the docs don't mention the Devel dependency in default.config.yml.
If you follow the docs as-is, the process hangs at TASK [Install configured modules with drush.].
The docs should mention this dependency and specify that either

Devel should be added to composer.json file in the user's own project, or
drupal_enable_modules should be altered in the user's own config.yml file.

Fixed in #793


Move hydra dict conversions before saving dict to disk

We should be saving the final config file on disk that is used by training and not have any changes after it's saved.

Seems like this broke a test, a bit confused why. Will look at soon.


nyc not working with mocha and ts-node

Link to bug demonstration repository
https://github.com/NikolayMakhonin/mocha-ts-nyc-error
Expected Behavior
Work without error and with correct paths to the files
Observed Behavior
Incorrect file paths and error:
C:\projects\mocha-ts-nyc-error\coverage\lcov-report\1\file:\C:\projects\mocha-ts-nyc-error\src\1

Troubleshooting steps
npm i
npm test

you should see this:
C:\projects\mocha-ts-nyc-error>npm test

><EMAIL_ADDRESS>test C:\projects\mocha-ts-nyc-error
> nyc --reporter lcov mocha -r ts-node/register ./src/qwe.test.ts

  test
OK
OK
    √ test

  1 passing (7ms)

Path contains invalid characters: C:\projects\mocha-ts-nyc-error\coverage\lcov-report\1\file:\C:\projects\mocha-ts-nyc-error\src\1
 ELIFECYCLE  Test failed. See above for more details.

Environment Information
  System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
    Memory: 5.27 GB / 15.89 GB
  Binaries:
    Node: 14.19.3 - E:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.17 - E:\Program Files\nodejs\npm.CMD
  npmPackages:
    nyc: ^15.1.0 => 15.1.0
    ts-node: ^10.8.1 => 10.8.1
    typescript: ^4.7.4 => 4.7.4

This might be the issue of ts-node, see the pr https://github.com/TypeStrong/ts-node/pull/1771

This is caused by ts-node recent update. see https://github.com/TypeStrong/ts-node/pull/1771 as reported by https://github.com/TypeStrong/ts-node/issues/1790. Downgrade ts-node to 10.8.0 result the issue for me.

Yes, it working with<EMAIL_ADDRESS>but not working with<EMAIL_ADDRESS>

I just confirmed the fix in ts-node 10.8.2 resolves the issue for me.


Fix the bug between input type and weight type

Input type : torch.FloatTensor
weight type : torch.cuda.FloatTensor
I fix the bug with the codes images = images.to(device)🙂

Thanks!

@LRY89757  Dear LRY89757, Could you show the error log and fixed correct log to archive this issue?

@LRY89757 Dear LRY89757, Could you show the error log and the fixed correct log to archive this issue? Then let's merge this PR :). Thanks

OK, When I run the python mnist_tensorboard.py, Error occurs like:

And it said that the input type and weight type not match. Becourse the images is not be load to GPU, so I add the codes:
      images = images.to(device)   # the 173th line

It could run smoothly!

Thanks!


Enable respondents to see only assigned surveys in their survey listing view

### Tasks

We will want two menus/tables/pages -- one where people see a list of the surveys they can view (e.g. as an analyst)
And another where they see a list of the surveys they can edit


WIP: Trying to fix Coveralls invocation, by adding CI_BUILD_URL env var.

It has been failing with:
W0803 19:24:01.716] Bad response status from coveralls: 422
W0803 19:24:01.716] {"message":"Couldn't find a repository matching this job.","error":true}
W0803 19:24:01.718] make: *** [coveralls] Error 1
W0803 19:24:01.719] Traceback (most recent call last):
W0803 19:24:01.719]   File "/workspace/./test-infra/jenkins/../scenarios/execute.py", line 50, in
W0803 19:24:01.719]     main(ARGS.env, ARGS.cmd + ARGS.args)
W0803 19:24:01.719]   File "/workspace/./test-infra/jenkins/../scenarios/execute.py", line 41, in main
W0803 19:24:01.719]     check(*cmd)
W0803 19:24:01.719]   File "/workspace/./test-infra/jenkins/../scenarios/execute.py", line 30, in check
W0803 19:24:01.720]     subprocess.check_call(cmd)
W0803 19:24:01.720]   File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
W0803 19:24:01.747]     raise CalledProcessError(retcode, cmd)
W0803 19:24:01.747] subprocess.CalledProcessError: Command '('make', '-j', '5', 'test', 'coveralls', 'vet', 'fmt', 'lint')' returned non-zero exit status 2
I0803 19:24:01.752] Makefile:44: recipe for target 'coveralls' failed

This change is

/retest

/retest

cc @anneal.

/lgtm


Supported Python versions.

Available and supported versions of Python available today are Python 3.8+. Python 3.9 has an end of life in 2025. Does this actually only work on Python 3.11, or does it work on Python 3.9+? It seems overly restrictive to lock it to Python 3.11+

Seems like some of the required features are honestly not deployed on the older python versions. Nevermind.


Documentation> Dropzone API> Headings are not appearing in left navigation panel.

Describe the bug
Following headings are not appearing in left navigation panel:

Basic Usage
No Dragging
Inverse
Handle File Processing
Deleting Files
Processing Examples

To Reproduce
Steps to reproduce the behavior:

Go to https://react-magma.cengage.com/version/2.5.7/api/dropzone/
Scroll the left navigation panel
Observe the API> Dropzone in left navigation panel
Verify that above mentioned headings are missing as compared with the heading present on Dropzone API page

Expected behavior
Headings are not appearing in navigation panel.
Screenshots
https://somup.com/c3n6XyZPZH
Desktop:

OS: [Win 10]
Browser [chrome]
Version [Chrome version: Version 98.0.4758.81 (Official Build) (64-bit)]

The issue is fixed.
See Screen-cast : https://www.screenpresso.com/=7Cibg
Hence, Closing the ticket.
Thanks!


treesheets: window-focus issue in i3

Describe the bug
Treesheets forces the main application window to be in focus at all times under i3.
Steps To Reproduce
Steps to reproduce the behavior:

Log in to an i3 X session,
Open at least two windows of some unrelated applications (e.g. terminal emulators),
Make sure the workspace is in tabbed mode (i.e. not stacked or split),
Launch treesheets,
Try clicking the tab/title-bar for one of the other applications.
On multi-monitor setups, also try moving the mouse to the other monitor.

Expected behavior
Able to switch between windows as normal.
Screenshots
This screen capture first demonstrates trying to switch to another window on the same workspace, and then tries to move the mouse off the left side of the screen to the other display (not shown).
https://user-images.githubusercontent.com/2313201/173701466-ab6ac13e-08d9-4c51-9c8a-2179502413dd.mp4
Additional context
Given the complexity of wrapGAppsHook, I decided this should be reported here rather than upstream.
Notify maintainers
@obadz @AveryLychee
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.11, NixOS, 22.11 (Raccoon), 22.11.20220608.e0169d7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.0`
 - channels(aidan): `"nixpkgs"`
 - channels(root): `"nixos"`
 - nixpkgs: `/home/aidan/.nix-defexpr/channels/nixpkgs`

Only after raising this ticket did I eventually find an issue for this in the upstream repo: aardappel/treesheets/issues/183.  Someone commented on that issue with a patch that resolves the problem for them and has resolved the issue for me.

Closing in favour of the upstream issue.


Enable gosec G505

Enabled the G505 check

$ golangci-lint run --config .golangci.ci.yaml -- $(find . -type f -name 'go.mod' -not -path './_bin/*' -printf '%h/... ')
pkg/issuer/acme/dns/rfc2136/tsig.go:25:2: G505: Blocklisted import crypto/sha1: weak cryptographic primitive (gosec)
        "crypto/sha1"
        ^
pkg/issuer/acme/dns/rfc2136/tsig_test.go:25:2: G505: Blocklisted import crypto/sha1: weak cryptographic primitive (gosec)
        "crypto/sha1"
        ^

-- https://github.com/cert-manager/cert-manager/actions/runs/7384493583?pr=6579

Those two imports are in TSIG code which we copied from github.com/miekg/dns and which is used as part of the  DNS01 DNS UPDATE mechanism in the ACME issuer.
SHA1 is allowed by our API so I've added ignore annotations to the two imports...
[ ] but perhaps we should return a deprecation warning if it is used.

https://github.com/cert-manager/cert-manager/blob/833311d278af13e222e55f2507297f37d4e902b2/internal/apis/certmanager/validation/issuer.go#L386-L392
Links

https://cert-manager.io/docs/configuration/acme/dns01/rfc2136/
https://cert-manager.io/docs/reference/api-docs/#acme.cert-manager.io/v1.ACMEIssuerDNS01ProviderRFC2136
https://github.com/cert-manager/cert-manager/pull/4958
RFC 2136: Dynamic Updates in the Domain Name System (DNS UPDATE)
https://github.com/securego/gosec/issues/226
https://github.com/securego/gosec/pull/227

/kind cleanup
NONE

@wallrj I think a warning about future deprecation would be great.

/approve
/lgtm
/hold in case you want to add the warning in this PR.

/unhold


Removed double walls and a wrong cable

About the PR

Fixed some duplicated walls and a light that wasnt working
Why / Balance

Fixes #32587 and fixes #32602
Technical details

Media

Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

be me, engineer
deconstruct wall
wall inside
what

be me, engineer
deconstruct wall
wall inside
what

wallception


format of source code removes all marks

Autoformat of the source code removes all marks.
steps to reproduce in normal mode:
:Autoformat                   //format to make sure the next call does nothing
mm                            //set the mark m
:marks                        //you see the mark m now
:Autoformat                   //does nothing now
:marks                        //now the mark is gone

note, whenever a files changes, and autoread is set, vim keeps marks at the same line number. That is at least better than removing them completely.

Agreed that this should be implemented. Not sure how to do this yet.

clang-format.py does this specialized for the clang-formater and written in python, but it gives you something you can port.

The rust.vim plugin also does this with rustfmt.
I don’t know much vimscript myself, but I believe the functionality is implemented in this file. I hope this helps.

I'm currently going to the list of issues, and made a commit that seems to fix this issue. The branch is write-read-viminfo. @krux02 @tomhoule Care to verify that this solves the issue?

Sorry, but I use emacs now. Can't veryfy anymore.

And I use VSCode :/

Shame ¯_(ツ)_/¯
I use Visual Studio (with vi mode) a lot these days, because it excels at .net languages. But occasionally, for things like python scripting, I fall back to good ol' vim 😄

This is issue isn't solved and I have the latest version of the plugin


Added the animations

issue: #97
I have added the gsap animations and made this website look more better and good and also provides the best user experience.

I have added the GSAP animations now the website looks cool and the user experience will be good. This helps the user to visit this website many times and also by seeing these animations we can feel this looks like the best website


API to make a PropertyId directly from a JavaScript string

Currently to create a property ID from a string passed in from JS, I have to do:
JsCopyString(key_ref, key_string, ...);
JsCreatePropertyId(key_string, key_length, &prop_id);

JsGetPropertyIdFromSymbol() takes a JsValueRef as argument, but that only works for symbols.

Thanks for the feedback @fatcerberus . I am curious why you're creating propertyId from JS strings? Usually hosts know exactly what property they look for and create propertyId from a native string.

My use case is admittedly off the beaten path.  My application, miniSphere, a JavaScript game engine, was originally based on Duktape.  Duktape has a stack-based API like Lua, and in order to avoid rewriting The entire engine when migrating to Chakra, I recreated the Duktape API.
In particular, my jsal_get_prop() function involves pushing a string onto the stack specifying the property to read.  Pushing something onto the stack means creating a JsValueRef from it, so by the time the property read happens, all I have access to is the value ref:
https://github.com/fatcerberus/minisphere/blob/chakra-js/src/shared/jsal.c#L557-L573

Thanks for sharing @fatcerberus . I think this is an API we could consider. Another use case can be when someone wants to iterate an object's properties natively and calls JsGetOwnPropertyNames, which returns a JsValueRef that contains an array of js strings. However, as you pointed out, there's a fairly easy workaround helper you can write to achieve the same goal, so I doubt this is something we'd immediately do unless there's more demand and a potential perf gain. Does that sound fair to you?

Fair enough.  The main reason using the helper bothered me is that I'm copying a string seemingly unnecessarily when the JS engine could easily reuse the one it already has in its string table.  Admittedly I don't know what really goes on under the hood when creating a PropertyId though. :)
In reality though, we're talking about very short strings on average so the overhead of copying a string isn't a big deal most likely.

Yep this is essentially what I'm thinking when I say perf gain. If there's a scenario where the behavior you mentioned happens too often and/or simply costs too much, then it adds more weight to make a change now.

@liminzhu Regarding that perf gain...
We noticed a huge performance regression in miniSphere's API across the board after switching from Duktape to ChakraCore.  Many calls became 2-3x slower for no obvious reason.  With some profiling, we tracked down the cause of the regression to excessive use of JsCopyString:
http://forums.spheredev.org/index.php/topic,1215.msg10552.html#msg10552
After applying the patch below, performance for us improved 20-25%:
https://github.com/fatcerberus/minisphere/commit/ed565a2f64d9767878e0793d79b995805223ec02
Trouble is, that involves calling JsStringToPointer which is deprecated outside of Windows.  Which brings me back to the proposal here... 😉

Thought I'd comment on this briefly as I did a lot of the aforementioned profiling.
To run the helper shown above you have to do:

Find the length of the string: call JSCopyString with no buffer to get the length back (this does one UTf16->UTF8 conversion
Allocate a buffer
Call JSCopy String againg (second conversion)
Now call JsCreatePropertyId passing it the string  -> this converts UTF8 back to UTF16

Considering that ultimately all you're trying to do is find the value of a string already held in UTF16 format within the engine and pass it to JsGetPropertyIdFromName the above conversions and memory allocations seem very excessive.
I don't know how to submit a pull request - (sorry I'm new to the ways of github and in fact online collaboration in general) - I think the below code would work as this proposed api and from a few tests it takes 10-20% of the execution time that the helper takes.
CHAKRA_API JSCreatePropertyIDFromJSString(             _In_ JsValueRef stringValue,             _Out_ JsPropertyIdRef *propertyId) {   const char16* str = nullptr;   size_t strLength = 0;   JsErrorCode errorCode = JsStringToPointer(stringValue, &str, &strLength);   if (errorCode != JsNoError)   {     return errorCode;   }   return JsGetPropertyIdFromName(str, propertyId); }

@liminzhu Further to the above I'd be happy to a) learn how to do a pull request and b) submit one
That is, if this API is wanted. I admit the only usage cases I can think of are
a) miniSphere due to the way its internals are built as Fat Cerberus mentioned above and
b) your suggestion of someone wanting to iterate an objects' own properties with JsGetOwnPropertyNames; if anyone's doing that a lot this API is worth providing for performance reasons.

Thanks for the input @fatcerberus @rhuanjl !
The perf gap between JsCopyString and JsStringToPointer is concerning to begin with. @obastemur are you aware of this?

The perf gap between JsCopyString and JsStringToPointer is concerning to begin with. @obastemur are you aware of this?

Nothing surprising here. ChakraCore stores string variables in multibyte format. JsStringToPointer simply returns a reference to whatever CC has in memory. No copy, no re-formatting.. nothing..
Well, JsCopyString does almost everything... re-format, copy...
We've been doing some improvements to Jsrt and more to come. Yet, I wouldn't expect the performance of JsStringToPointer.
/cc @curtisman @digitalinfinity

Does this issue: https://github.com/Microsoft/ChakraCore/issues/3790
replace this one? @obastemur

@rhuanjl yes. Thanks for tagging.


AttributeError: 'module' object has no attribute 'RNNCell'

I user docker to run based on the guide, but when it failed when running examples, could you help ?
/DeepSpeech/examples/tiny {develop} sh run_train.sh
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
Traceback (most recent call last):
File "train.py", line 9, in
from model_utils.model import DeepSpeech2Model
File "/DeepSpeech/model_utils/model.py", line 23, in
from model_utils.network import deep_speech_v2_network
File "/DeepSpeech/model_utils/network.py", line 62, in
class RNNCell(fluid.layers.RNNCell):
AttributeError: 'module' object has no attribute 'RNNCell'

this issue solved by install latest paddlepaddle

@lamudazh  it works for me

I user docker to run based on the guide, but when it failed when running examples, could you help ?
/DeepSpeech/examples/tiny {develop} sh run_train.sh
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
Traceback (most recent call last):
File "train.py", line 9, in
from model_utils.model import DeepSpeech2Model
File "/DeepSpeech/model_utils/model.py", line 23, in
from model_utils.network import deep_speech_v2_network
File "/DeepSpeech/model_utils/network.py", line 62, in
class RNNCell(fluid.layers.RNNCell):
AttributeError: 'module' object has no attribute 'RNNCell'

You most use PaddlePaddle 1.6.0 or later.

If you're using the Docker container, run the following command to update PaddlePaddle, which should fix the problem. (Python 2.7 + CUDA 10)
python -m pip install paddlepaddle-gpu==1.6.2.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple

Hello,
Any other way to get the file?
 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out. (read timeout=15)",)': /simple/paddlepaddle-gpu/

im in japan and i install

Hello,
Any other way to get the file? I am using the docker file.
``
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out. (read timeout=15)",)': /simple/paddlepaddle-gpu/
ERROR: Could not find a version that satisfies the requirement paddlepaddle-gpu==1.6.2.post107 (from versions: none)
ERROR: No matching distribution found for paddlepaddle-gpu==1.6.2.post107
``

Use this command to quote the indexes for finding that distribution:
'python -m pip install paddlepaddle-gpu==1.6.2.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple`

Why is the docker not up2date?

you should update to 1.8.5 directly, otherwise you may encounter another error #462

you should update to 1.8.5 directly, otherwise you may encounter another error #462


Examples are not working

Hi,
I just tried basic_example.py and it does not seem to work.  Even if we ignore warnings it does not give any output.
/usr/local/lib/python2.7/dist-packages/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
/usr/local/lib/python2.7/dist-packages/chatterbot/adapters/storage/jsonfile.py:19: UnsuitableForProductionWarning: The JsonFileStorageAdapter is not recommended for production application environments.
self.UnsuitableForProductionWarning
How are you?
Even example django app does not look to give any significant  results.
Any suggestion?

I got the same problem

Hi @sjpatil & @EnderShadow , lets take a look at the code for basic_example.py.
The goal of this line is to get a response to the input "How are you?". However, it is important to keep in mind that this chat bot is untrained at this point, so it doesn't know anything about the world or how to communicate. The first thing we do to it is say "How are you?" so now, it knows one thing (that phrase). So, the only thing it can do is respond back with that input.
response = chatbot.get_response("How are you?")

print(response)

Ok, so let's try something else. If we train the bot, it can learn more about the structure of responses.
Here is another example:
from chatterbot.trainers import ListTrainer

chatbot.set_trainer(ListTrainer)

# Tran the chat bot  with an example conversation
chatbot.train([
    "How are you?",
    "I am good",
])

response = chatbot.get_response("How are you?")

print(response)

Now that we have trained the bot with a bit of information, the response it will return when given "How are you" is "I am good".
I hope this helps. Please let me know if you encounter any other issues.

I have written the code:
from chatterbot.trainers import ListTrainer
from chatterbot import ChatBot
bot = ChatBot('Test')
conv = open('chat.txt', 'r').readlines()
bot.set_trainer(ListTrainer)
bot.train(conv)
while True:
request = input('You: ')
response = bot.get_response(request)
print('Bot: ', response)
but bot is not responding
error:
List Trainer: [####################] 100%
You: Hi
Traceback (most recent call last):
File "main.py", line 10, in
request = input('You: ')
File "", line 1, in
NameError: name 'Hi' is not defined
though my chats.txt is perfect

It seems to me the porblems input requests, this reference will give some idea https://stackoverflow.com/a/15190646/358458
My this example will help you https://github.com/gunthercox/ChatterBot/blob/master/examples/terminal_example.py


About SFT

Hi authors,
It seems you do SFT training on the instruction + response, rather than response (p(response|instruction))，right?
Do you know the difference of performance on instruction following it caused?
Thanks.

Hi,
Yes, we followed the SFT trainer logic in the original alignment-handbook repo which trains on all tokens.
We observed mixed results of training on all tokens vs. training on response tokens only, but the differences were not very significant. Due to the simplicity of training on all tokens (no need to mask out prompt tokens), we adopted that implementation.
I hope this helps.
Best,
Yu

Thx


Incorporate DirectionID in trip hash

Small change to use DirectionID in trip hash. I noticed this when I was unable to update the direction of an existing trip in a Transiter unit test (due to the GTFS hash check). I don't think this breaks any assumptions about trip equality, but wanted to double-check before merging.

Good catch! LGTM


The format command adds extra newline

The format command adds an extra newline at the end of the output send to stdout. The format-in-place command does not have this issue.
Here's a simple reproduction:
$ cat src/Example.purs
module Example where

import Effect (Effect)
import Effect.Class.Console as Console

main :: Effect Unit
main = do
  Console.log "hello, world!"

$ purs-tidy format-in-place src/Example.purs
$ cat src/Example.purs
module Example where

import Effect (Effect)
import Effect.Class.Console as Console

main :: Effect Unit
main = do
  Console.log "hello, world!"

$ purs-tidy format < src/Example.purs
module Example where

import Effect (Effect)
import Effect.Class.Console as Console

main :: Effect Unit
main = do
  Console.log "hello, world!"

This causes my editor integration to add extra newlines when saving my files.

The likely culprit here is the Console.log statement:
https://github.com/natefaubion/purescript-tidy/blob/bf6fe6c45478a16c089b5c4abc2936eb1b6267a9/bin/Main.purs#L152

Thanks for the report! This was fixed in 0.2.


Revisit concurrency model in SD sink

The new concurrency model is as follow:

After preparing all requests in ExportData method, the function sendRequests is called asynchronously.
SD requests should be handled e2e in <3 seconds. We want to send all requests to SD within the specified period batchExportTimeoutSec. This means that one worked can handle at least n=batchExportTimeoutSec/3 requests. To have some safety margin we create 5 extra workers.
We have synchronous channel requestQueue to which all requests are written.
When all requests are processed or the timeout happen the channel is closed and all workers are stopped.

This change is

cc @crassirostris @loburm

@mwielgus AFAIU, the latest change was addressing you comment

This is misleading. You can add all requests to the queue but it doesn't mean that the operation completed.

But I think now it's even more misleading. Now the request in-flight will be marked as timed out and the response code will be just dropped. It makes the statistics less accurate without introducing any benefits: the response will still be parsed, so it doesn't reduce the memory/cpu footprint.
By the way, to your original comment -- you cannot dump all requests to the queue, b/c it's non-blocking and the fact that an item went this way means implies a guarantee that it will be sent and the response will be recorded. IMO, without a hard limit, what was before is a better thing to do: sent requests will be completed and their response codes will be recorded, not sent requests will be marked as timed out. Maybe instead of the last change, to make things less confusing, just rename some stuff keeping the logic intact?

@crassirostris
From the concurrency perspective the new version is slightly better but i agree that it doesn't solve the problem completely. My main concern is that we still mix adding things for execution with timeouts. And because of that we still have convoluted logic. The main improvement that was made was logging the timeouted requests in case of small clusters.
I don't understand the second part of your message

/gtm

Comments applied and squashed commits - will merge on green.


Fix epuzanovv merge request for glue_egl branch

epuzanovv EGL
There is an existing merge request against this branch. Bring the glue_egl request from epuzanovv current to the HEAD of the coin repository. Then make merge request against a new synchronization branch that can be used prior to merging it with HEAD.

I created a fork of the coin repository and made a branch that includes the work epuzanovv did to support EGL. The branch is called glue_egl. It resolves the merge conflicts for CMakeLists.txt that are in the current merge request
See https://github.com/magic-lantern-studio/coin/tree/glue_egl,
Instructions for building this branch can be found on the wiki page, https://github.com/magic-lantern-studio/coin/wiki/OpenGL-ES-Investigation.

I am not the maintainer but just thank you for creating the issue. The patches made by epuzanovv and you seems to enable coin3d to work with native Wayland, in particular FreeCAD can now run on this platform. I hope it get merged soon as it is a really nice addition.

Just for understand the context: https://www.qt.io/blog/2014/09/10/qt-weekly-19-qopenglwidget. QtGLWidget has been considered as deprecated since 2014, I don't know if quarter plan to consider dropping support for Qt4 but for now the ifdef are necessary.
An interesting answer from QtForum:

The major changes that created a lot of problems are:
In Qt4.8.4 when an QGLWidget is created, even if it is not displayed, an OpenGL context is created. So, all OpenGL operations are possible. In Qt5 to be able to use the OpenGL operation, with a QOpenGLWidget, the widget must be displayed, or linked to an off-screen surface,
In Qt4.8.4 when a QGLWidget is passed to every other QGLWidget, there is really a single OPenGL Context that is used. In Qt5, force the application to use shared contexts does not mean "a single context". And the impact is that OpenGL activated at one moment (in one context) are not necessarily activated globally. So application that runs well in QT4.8.4 does not necessarily work well with QT5,
And finally QGLWidget in QT5 and QGLWidget in QT4.8.4 are totally uncorrelated. This is the same class name, the same API. But QT has not only marked QGLWidget as deprecated. They also changed the whole implementation. Thus, an application working under Qt4.8.4 may encounter problems in QT5 due to unmanaged hidden QSurface.


Improve Compilation Time

Compilation time is too damn high
Ideas to improve it:

Split up common headers, no longer include everywhere
Especially "constants.hpp" which includes a bunch of STL main stuff should be split up, instead make separate files e.g. "common/vector.hpp" that does "#include  => using std::vector" that can then be included in files that need the vector implementation
For tests, the "catch" framework is very slow to compile because it is a huge header only library. We should use CMake somehow to gather the test code from different files into one file instead of compiling every test as a separate translation unit.

we could use precompiled headers to speed up test compilation

I think this is solved with the unity builds


Rename of configure in ViewController in RxModule

https://github.com/infinum/iOS-VIPER-Xcode-Templates/blob/423c630d98b80d5663f34044c46c0018d95f4455/Templates/Resources/Templates/___FILEBASENAME___ViewController.swift.erb#L48
What should we rename this function name in ViewController?

configure (leave as is)
configureIO
setupView
Add your own idea 😄

bindView 😱

It seems that the winner is setupView.
I'll create a PR with that.


Improve matchmaking

Currently, when battling wild pokemon, the level of the wild pokemon is randomly selected. This leads to situation where your pokemon at level 1 might be put in battle against a level 54 wild pokemon. Though this may simulate the nature of the wild battles very well, it hinders player progression. It would be nice to pit players in battle against pokemon with level of around a similar level as theirs.
Not necessarily the same level as the player pokemon though, SIMILAR. For example, if the player has pokemon in their inventory in the range of levels 1-32, they might be put into battles with wild pokemon in the range of levels 5-43 (something like that).

This project seems pretty cool. Can I take a crack at this issue?

yeah sure!!!

#9 was merged


Adding Namespace level configuration for all litmus-portal components.

Proposed changes
This PR removes hardcoded namespaces and also updates manifests for using configured namespace.
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[ ] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the commit for DCO to be passed.
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[x] I have added necessary documentation (if appropriate)

Dependency

None.

Special notes for your reviewer:
This update is needed urgently.

@gdsoumya PTAL made the suggested changes.

changes:

Remove cluster scope YAML and add only namespace scope YAML(no need to change the name for namespace scope yaml)
Add good resource limit to the self deployer.


chore: allow some hardcoded strings to be translated

Also add pt-PT translation for them

np :+1:


Refresh of Docker container in Kitematic

I'm changing the docker configuration file and I have to remove and rebuild the containers very often. I create and start the containers from the command line with a build script.
The new container does not appear in the containers list in kitematic. I have to close kitematic and reopen it again.
It would be very nice if there is refresh button, which refreshes the local container list.
thx
Max

There is one actually - You can click the 'Containers' title or go to View > Refresh Container List (CMD/CTRL+R shortcut)


Django 1.7+ compatibility

Conditionally set deprecated attribute. See [Django 1.7 release notes for details]
(http://django.readthedocs.org/en/1.7.x/releases/1.7.html#django-core-management-basecommand).

Looks ok.