Feature/paas cf support

This commit depends on brooklyn-server#30
Adding PaaS CloudFoundry support to TomcatServer entity.
The drivers for CloudFoundry are added to SoftwareProcess entity and JavaWebAppSoftwareProcess implementation entity.
The final PaaS support is added to TomcatServer entity using a new driver which is focused on CloudFoundryPaaSLocation.
Then, TomcatServer can be started in a Ssh location or in a CloudFoundryLocation.
For example, the following hello-world-sql application has a TomcatServer.
ame: appserver-web-aws
services:
- type: org.apache.brooklyn.entity.webapp.tomcat.TomcatServer
  name: AppServer HelloWorld
  location: <LOCATION>
  brooklyn.config:
    wars.root: https://github.com/kiuby88/brooklyn-library/releases/download/hello-world-sql-paas/brooklyn-example-hello-world-sql-webapp-in-paas.war
    http.port: 8080+
    java.sysprops:
      brooklyn.example.db.url: $brooklyn:formatString("jdbc:%s%s?user=%s&password=%s",
         component("db").attributeWhenReady("datastore.url"), "visitors", "brooklyn", "br00k11n")

- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
  id: db
  location: aws-ec2:us-west-2
  name: DB HelloWorld Visitors
  brooklyn.config:
    datastore.creation.script.url: https://raw.githubusercontent.com/apache/incubator-brooklyn/master/brooklyn-server/launcher/src/test/resources/visitors-creation-script.sql

TomcatServer's location can contains a Ssh- or CloudFoundry-based location. If <LOCATION> is equals to e.g., `aws-ec2:us-west-2, TomcatServer will be deployed on AWS Oregon.
But, it  is a CloudFoundry-based location, for example Pivotal:
  location:
    cloudfoundry:
      user: <user>
      password: <pass>
      org: <org>
      endpoint: https://api.run.pivotal.io
      space: <space>
      address: run.pivotal.io

TomcatServer entity will be deployed using Pivotal Web Services.
Please, note that the yaml is the same for deploying the application on Ssh or CloudFoundry.
Tested Providers
This approach has been tested using:

Pivotal
Bluemix

RoadMap
This is a first approach. If it is accepted a lot of entities could be enabled to operate on CloudFoundry.

@kiuby88 I'm not convinced it is TomcatServer that needs to be deployed to CF.  I think it makes more sense to have a 'CloudFoundryWebApp' which can have a manifest as config.  WDYT?

@robertgmoss thanks a lot for your comment.
It makes sense and it should be very easy to implement. But manifest, it may be very closed to the CloudFoundry web console. I do not know.
But, I wanted to try to start an entity in SSH location and PaaS location depending on the location. So, you have an agnostic yaml plan (blueprint) that you can started on SSH or PaaS easly, it was my idea.
In any case, TomcatCloudFoundryDriver is very simple because all work is carried out by  JavaWebAppCloudFoundryDriver.
So, specific driver, as TomcatCloudFoundryDriver or an future JBossCloudFoundryDriver will focus on provide the required buildpack (e.g., JBoss Buildpack) to JavaWebAppCloudFoundryDriver.
In any case, it was just only my opinion and I can try your proposal.

Awesome @kiuby88 !
However I tend to agree with @robertgmoss this would be better implemented as an entity than a driver for TomcatServer.  The mismatches I'm thinking of are:

with CF I can create several instances, and I'm given a route which goes to any of them -- so it's functionally more similar to a ControlledDynamicWebAppCluster
TomcatServer expects to be able to configure Tomcat and deploy multiple WARs
the driver normally kicks in once a machine is provisioned, which isn't the case here

My inclination would be an abstract CloudFoundryAppForBuildPack entity with a CloudFoundryTomcatApp child.  There is probably no need for a driver so implementation of that should be fairly easy as you note given what you've done, mainly copying some of what TomcatServer does moving existing code around.  Nice if we can loop in some of the existing sensor names from WebAppCluster.
On CloudFoundryAppForBuildPack we can also expose things like the number of instances and the route and download of items -- which would make other items like CloudFoundryRubyApp and CloudFoundryJBossApp also straightforward.
BTW it's very cool what you've done being able to take a DB and configure that against CF directly!

@kiuby88 thanks again for your effort. Same comment made at https://github.com/apache/brooklyn-server/pull/30#issuecomment-289792727 for this PR as well. Would you close this and possibly re-open a new PR, even to a different repo, in case needed?

Sure @andreaturli.
Let me close the PRs. I will always be available to update and re-open these PRs if it is necessary


Runtime & build error: missing symbol ZDICT_trainFromBuffer

FYI: After semver updated my zstd-sys dependency to 1.6.4+zstd.1.5.2, I started getting a runtime error on Linux and a build error on macOS & Windows.
e.g.
OpenLibrary failed: Could not load 'lib/libx.so.2'.  lib/libx.so.2: undefined symbol: ZDICT_trainFromBuffer

or
[2022-03-09T19:32:40.140Z]          liblibrocksdb_sys-cfbd66db62f83f79.rlib(block_based_table_builder.o) : error LNK2019: unresolved external symbol ZDICT_trainFromBuffer referenced in function "private: void __cdecl rocksdb::BlockBasedTableBuilder::EnterUnbuffered(void)"

Adding the following to my Cargo.toml functions as a workaround:
zstd-sys = "=1.6.3+zstd.1.5.2"

Argh right that got moved behind a feature, and rocksDB is using default-features=false. Looks like this needs a new version then.

The builds are working again after 1.6.4+zstd.1.5.2 was yanked.  Thanks for the quick response!


Make the control panel horizontally resizable

Enable the dat.GUI resizable flag, which allows resizing the control panel by dragging the left edge when the panel is open.

We tested in in Drake via https://github.com/RobotLocomotion/drake/pull/20000 to good effect.
@RussTedrake please click the merge button.

I've tested it, too.  Nice!


Duplicate predicted publications

We have noticed that in parser_references/document we see lots of duplicated data.
Size of parser_references/document = 5,228,096
We would want this number to mean there are 5,228,096 references found in all the scraped documents, but we find duplicates amongst this.
Are there duplicates?
Yes, there are many, whether we remove title=Null or not. In one case, from the same policy document we saw 837 references with the same title.

Are the duplicated data added on different dates?
There are different dates, but duplicates for each of these dates.
e.g. for this policy document and title combination there are 9 creation dates each with 93 duplicates in

How many references are there if we remove duplicate title-file_hash?
946,372

How many references are there if we remove duplicate title-journal-authors-etc...-file_hash?
1,131,210

Next steps
Investigation into whether this is a bug in the algorithm or the database needs to be checked out.
There are several other issues which point towards duplicated data in the database (https://github.com/wellcometrust/policytool/issues/48, https://github.com/wellcometrust/policytool/issues/104).

There are 1,447,317 rows in parser_references/document which are Null for all the predicted components.

Thanks @lizgzil for the detailed issue.
@hblanks and @SamDepardieu It is slightly important we have a chat about this and come up with a plan to investigate as this problem comes up every time someone asks for data from the policy tool almost.
It is important to understand whether that is being caused by how we parse and match or how we save in the database so it would be good to ask tasks for both data science and engineering to investigate the relevant parts. Let's have a chat on Monday before weekly planning.

Closing this as @hblanks suggested. Will leave him to give more info on the decision if he wants.


Allow loading rules and edges from multiple configuration folders

Closing this issue. Now users can define the rules via python api (thus split the rules/edges however they feel appropriate)


hotelReservation | 'docker compose up -d' failing to build

Hello!
I recently pulled the latest updates for hotelReservation and I am now having issues getting it to run.
When using docker compose, I am getting this error:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "reservation": executable file not found in $PATH: unknown

Also, in order to get the Google Maps API to load correctly do I just need to provide a personal key at /services/frontend/static/index.html in this line?: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&callback=initMap" async defer></script>
I would really appreciate any input on this. Thanks so much!

Heya @elibakshi, can you try doing ./reservation as the entrypoint for the reservation node?

Hello @Red-GV, fixing the entrypoints that were erroring worked like a charm. Thanks for your help!

Heya @elibakshi, can you try doing ./reservation as the entrypoint for the reservation node?

thanks for your fix! It totally saved the day for me

Hello again, @Red-GV !
So prefixing all of the entrypoints with "./" fixed my issue initially. But after re-building, I ran into another issue that is (maybe?) related:

From this output it seems that the frontend container can't find the config.json file, and thus never exposes port 5000. Would there need to be a line added to the Dockerfile to COPY it over to the directories of the new entrypoints?
Once again, really appreciate your time and help!

Heya @elibakshi, I think it can be done without needing to modify the Dockerfile by modifying the compose file. Haven't tried it as of yet, but this might work (e309d93a95314fcd17d6884c9edfd41d277e2c31):
configs:
      server_config:
        file: ./config.json
        name: config.json

Thanks for the suggestion, @Red-GV. I am not too sure if it's an issue just on my end, but that still didn't fix.
The only way I can get somewhere is if I add COPY config.json config.json (as /workspace) and COPY --from=builder /workspace/config.json . (as /) in the Dockerfile.
At first look at the logs for the frontend container it seems that it can now find the ./config.json and all is well:

However, when attempting to actually connect to the website via. browser, I only get a 404 page Not Found response.

Hmm, alright. I'll try to play with it and see if I come up with a solution that doesn't involve copying that file into the Dockerfile (I'd be kinda surprised if there wasn't a way to modify that). The reason why I'm not completely all for the "copy into Dockerfile" approach is because in the helm chart deployments, the files are placed in with that deployment style. So I don't see why the file needs to be in there twice so to speak.
The browser issue should be fixed by this guy: https://github.com/delimitrou/DeathStarBench/pull/319
The api does work so you can use the wrk2 client in order to talk to the services via the that.

Heya @elibakshi,
I've confirmed on my end that the PR I highlighted last time will solve the 404 issue when you load it from the browser or fire a curl requests against the frontend service. I also think that this change (27f637de6d60198bfcc5c0c35d63d4cdb9d55d44) for the docker-compose.yml should fix things. Doesn't fully play around with podman, but I think it should work fine with the docker cli. Maybe you could give it a spin?

Hi @Red-GV
I've tested the hotel reservation service code, and it seems that the frontend only consists of a basic UI displaying a Google map with some pins. Is this the entirety of the UI for the hotel reservation service?

Heya @elibakshi ,
My suspicions is that there was a conflict between PRs that was not properly resolved. There appeared to have been some back and forth which removed some of the changes I had made in one of the refactors. This resulted in even more issues. I think one of the current PRs should fix the issue once that gets merged. However, I'm not a maintainer of the codebase though, so I don't know when that merge will occur.


Fixed cppguide.xml redirect.

The C++ formatting rules url linked here throws the following error:

This PR fixes the error by adding a redirect template that receives a url to redirect to and a
page title. It also keeps the same best practice of using a BODY onLoad redirect, with a meta-refresh fallback.

I stumbled across this PR while searching for code to create a working meta refresh redirect in XML/XSL, because I’m going to need something similar when I migrate the HTML/CSS Style Guide from XML to HTML.
Is anyone able to merge this?


nzShowQuickJumper,  the pagination changed but table is not change when input a page index number in quick jumper

I'm submitting a...

[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

Expected behavior

when input a page index number, table should change to this page
Minimal reproduction of the problem with instructions

use [nzShowQuickJumper] in nz-table
input number at quick jumper

duplicated #171


How to stop or uninstall

How to stop this process or uninstall

Just stop tor service and remove the tor package.


Decouple the F# language service from AbstractProject

The F# language service presumed that IWorkspaceProjectContext is implemented by an AbstractProject, which is an assumption that isn't safe going forward. This removes that presumption, and tweaks a few other things that should allow F# to continue to function once we further refactor the project system work in Roslyn.

@TIHan I think this might work, but alas enough seems broken on my machine to confirm. Tomorrow if you're able to test this and at least confirm it doesn't break anything, then it'd be great if we can merge this and get it into lab/ml so I can continue to get F# working again from there.

But to be very clear: do NOT merge this without testing. :smile:

I'll be looking at this today.

Was having trouble building, but now I fine. Looking at it again.

I managed to build and run this in dev16 ML - Everything seems to be working as intended, but I fear with the changes in the free-threaded PR, this may not be enough.

@TIHan The goal of this isn't to make this good, it's just to remove some tangly bits that will make it particularly hard to iterate further; my hope is this is "good enough" that I can shim the rest and be able to merge the UI thread change; from there we can continue to iterate and clean things up further.

@brettfo I believe you were saying I should be targeting this against master?

OK, I have better context of what the intent of this is. Basically, we can merge this in now, so we can unblock you from merging the free-threaded PR, which then we can go start fixing stuff up. Makes sense.

Does this affect nightly releases/contributing to master from a released Visual Studio version?

@cartermp Everything should still work as is.


AADSTS50011: The reply url specified in the request does not match the reply urls

I'm getting this error when I attempt to start https://bmft.azurewebsites.net. I'm a c# client/server guy who knows next to nothing about websites so, no surprise, I have not been able to apply the suggestions I've found online to my azure site. Can you walk me thru it? Thanks!
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 'fd0b9734-3ea3-4811-8bbd-62a239519535'.

In the deployment documentation, there are steps for creating and setting up the authorization application. It appears to me as if you need to make sure you did this step

Enter the Redirect Url as "https://{YOUR_DEPLOYMENT_NAME}.azurewebsites.net/signin-oidc"

Thanks, Mohamed. I did see and try that step but clearly did something wrong because whatever string I was trying to apply as the 'reply url' was not accepted as valid.
I will retrace my steps and try again.
Thanks ! Matt

From: Mohamed Mohsen<EMAIL_ADDRESS>Sent: Tuesday, March 5, 2019 8:13 AM
To: Microsoft/Bing-Maps-Fleet-Tracker
Cc: mfritzgh; Author
Subject: Re: [Microsoft/Bing-Maps-Fleet-Tracker] AADSTS50011: The reply url specified in the request does not match the reply urls (#66)
In the deployment documentationhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBing-Maps-Fleet-Tracker%2Fblob%2Fmaster%2FDEPLOYMENT.md%23creating-a-new-deployment&data=02|01||06e1173f8cc149f8bbb908d6a16c56fc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636873884011309428&sdata=MnmdxRQ50LO%2FYAJ4u9Ty3if2UcjWcZAvLLYsBnlKpE8%3D&reserved=0, there are steps for creating and setting up the authorization application. It appears to me as if you need to make sure you did this step
Enter the Redirect Url as "https://{YOUR_DEPLOYMENT_NAME}.azurewebsites.net/signin-oidc"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FBing-Maps-Fleet-Tracker%2Fissues%2F66%23issuecomment-469674602&data=02|01||06e1173f8cc149f8bbb908d6a16c56fc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636873884011319441&sdata=716O54HWu2Ddq6Vka17blYXwOAJP1NexKHNqDgnFDk4%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAt83YNkMkxwp2jJCTYwKFl37xnJfmwAuks5vTm1wgaJpZM4bbGAh&data=02|01||06e1173f8cc149f8bbb908d6a16c56fc|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636873884011329449&sdata=a0gR1v4IQ6cHcOyxC1qsskfi7sy7q%2BMxj1IWBmj2Ufg%3D&reserved=0.


Timezone setting

Timezones are a pain, because not only do they vary per country, but they also change. We currently default to UTC, which is correct for half of the time in the UK. Two possible solutions to this:

A !timezone command which lets an admin set the bot's timezone. The challenge here is making sure that all plugins that use time respect this. You'll likely need some internal timezone helper file that provides plugins with this information (in an IORef?), and this command can mutate that information.
See if we can specify the timezone based on location. This will likely still need an internal timezone helper file like in (1).

Low priority, since the bot is currently used in a UK server only, and many people use relative dates rather than absolute ones for reminders.


Question about the implementation between the two codebase (D2 & Pytorch)

Hello bowen,  thank you for sharing this awesome work. I have a question about the code implementation. Is there any difference except for the dataset (data augmentation ) between this two codebase? I am trying using the old codebase to train a model on COCO dataset with the parameters used in D2. However, I got a very bad result. Could you please give me some advices (use updated 960 MAX_RESIZE_VALUE)? Thank you!
This is my configs. Some configs are modified, please ignore the args with "PRE". Those are the implementation of Vip-deeplab and unactivated when trying on COCO. For other parts, they are consist to your configs in old-version.
`MODEL:
META_ARCHITECTURE: "panoptic_deeplab"
BN_MOMENTUM: 0.01
BACKBONE:
META: "resnet"
NAME: "resnet50"
DILATION: (False, False, False)
PRETRAINED: True
DECODER:
IN_CHANNELS: 2048
FEATURE_KEY: "res5"
INSTANCE_IN_CHANNELS: 2048
INSTANCE_FEATURE_KEY: "res5"
PRE_IN_CHANNELS: 4096
PRE_FEATURE_KEY: "res5_new"
DECODER_CHANNELS: 256
ATROUS_RATES: (3, 6, 9)
PANOPTIC_DEEPLAB:
LOW_LEVEL_CHANNELS: (1024, 512, 256)
LOW_LEVEL_KEY: ["res4", "res3", "res2"]
LOW_LEVEL_CHANNELS_PROJECT: (128, 64, 32)
AUX: False
TCF: False
ADD: True
TCF_SIMPLE: False
INSTANCE:
ENABLE: True
LOW_LEVEL_CHANNELS: (1024, 512, 256)
LOW_LEVEL_KEY: [ "res4", "res3", "res2" ]
LOW_LEVEL_CHANNELS_PROJECT: (128, 64, 32)
DECODER_CHANNELS: 128
HEAD_CHANNELS: 32
ASPP_CHANNELS: 256
NUM_CLASSES: (1, 2)
CLASS_KEY: ["center", "offset"]
PRE_BRANCH: False
PRE:
LOW_LEVEL_CHANNELS: (2048, 512, 256)
LOW_LEVEL_KEY: [ "res4_new", "res3", "res2" ]
LOW_LEVEL_CHANNELS_PROJECT: (128, 64, 32)
DECODER_CHANNELS: 128
HEAD_CHANNELS: 32
ASPP_CHANNELS: 256
NUM_CLASSES: (2,)
CLASS_KEY: ["offset_pre"]
DATALOADER:
TRAIN_SHUFFLE: True
DATASET:
ROOT: "/xiangli/coco/"
DATASET: "coco_panoptic"
NUM_CLASSES: 133
TRAIN_SPLIT: 'train2017'
TEST_SPLIT: 'val2017'
CROP_SIZE: (640,640)
MIRROR: True
MIN_SCALE: 0.5
MAX_SCALE: 1.5
SCALE_STEP_SIZE: 0.25
MEAN: (0.485, 0.456, 0.406)
STD: (0.229, 0.224, 0.225)
SEMANTIC_ONLY: False
IGNORE_STUFF_IN_OFFSET: True
SMALL_INSTANCE_AREA: 4096
SMALL_INSTANCE_WEIGHT: 3
MIN_RESIZE_VALUE: 640
MAX_RESIZE_VALUE: 960
RESIZE_FACTOR: 32
SOLVER:
BASE_LR: 0.0005
WEIGHT_DECAY: 0.0
WEIGHT_DECAY_NORM: 0.0
BIAS_LR_FACTOR: 1.0
WEIGHT_DECAY_BIAS: 0.0
OPTIMIZER: "adam"
LR_SCHEDULER_NAME: "WarmupPolyLR"
WARMUP_ITERS: 0
LOSS:
SEMANTIC:
NAME: "cross_entropy"
IGNORE: 255
TOP_K_PERCENT: 0.2
WEIGHT: 1.0
CENTER:
NAME: "mse"
WEIGHT: 200.0
OFFSET:
NAME: "l1"
WEIGHT: 0.01
OFFSET_PRE:
NAME: "l1"
WEIGHT: 0.01
TRAIN:
IMS_PER_BATCH: 48
MAX_ITER: 200000
DEBUG:
DEBUG: True
DEBUG_FREQ: 100
TARGET_KEYS: ('semantic', 'center', 'offset')
OUTPUT_KEYS: ('semantic', 'center', 'offset')
TEST:
CROP_SIZE: (960,960)
DEBUG: True
EVAL_INSTANCE: True
EVAL_PANOPTIC: True
POST_PROCESSING:
CENTER_THRESHOLD: 0.1
NMS_KERNEL: 7
TOP_K_INSTANCE: 200
STUFF_AREA: 2048
OUTPUT_DIR: "./output/coco_pretrain"
GPUS: (0, 1, 2, 3, 4, 5, 6, 7)
VAL_FREQ: 20000
WORKERS: 1`

Please check the config from log file mentioned in this issue. However, I haven't tried hard to reproduce COCO results with the original code, so I would recommend building your project on the D2 codebase.
One difference is that the D2 version uses even image crop size but for the original Pytorch code base it uses odd image crop size following TensorFlow DeepLab.


add async rejects assertion

This adds the async test assertion rejects to complement the synchronous throws. I needed it for Felt. The tests for rejects might make your eyes glaze over (they did to me), but they're pretty simple - just copy/pasted from the throws tests with async sprinkled in, with two cases added to test promise arguments.
It also cleans up some things and removes some ancient test code that was being ignored.

Here's the commit in Felt that motivated this. https://github.com/feltcoop/felt/pull/29/commits/97eb134f73088d73310c2701da7a3c617fd1f404


core: improve type hints for on_chain_start for BaseCallbackHandler

Description: a description of the change

Issue: The type of the actual value for inputs is inconsistant, and does not correspond to the type hint. I've added two more types (str and AIMessage) but there could be more. Is it a bug and should it always be Dict[str, Any]?
Dependencies: none
Twitter handle: @lunary_hq

Below is an example that shows the type are not consistent with the current type hint:
from typing import Any, Dict, List
from uuid import UUID
from langchain_openai import ChatOpenAI
from langchain_core.runnables import RunnablePassthrough, RunnableConfig
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.callbacks.base import BaseCallbackHandler

class MyCallbackHandler(BaseCallbackHandler):
  def on_chain_start(self, serialized: Dict[str, Any], inputs: Dict[str, Any], *, run_id: UUID, parent_run_id: UUID | None = None, tags: List[str] | None = None, metadata: Dict[str, Any] | None = None, **kwargs: Any) -> Any:
    print("[on_chain_start]")
    print(type(inputs))
    print(inputs)
    print('\n')

  def on_chain_end(self, outputs: Dict[str, Any], *, run_id: UUID, parent_run_id: UUID | None = None, **kwargs: Any) -> Any:
    print("[on_chain_end]")
    print(type(outputs))
    print(outputs)
    print('\n')

handler = MyCallbackHandler()

config = RunnableConfig({"callbacks": [handler]})

prompt = ChatPromptTemplate.from_template(
  "Tell me a short joke about {topic}"
)
output_parser = StrOutputParser()
model = ChatOpenAI(model="gpt-4")
chain = (
  {"topic": RunnablePassthrough()}
  | prompt
  | model
  | output_parser
)

chain.invoke("ice cream", config=config)

[on_chain_start]
<class 'str'>
ice cream

[on_chain_start]
<class 'str'>
ice cream

[on_chain_start]
<class 'str'>
ice cream

[on_chain_end]
<class 'str'>
ice cream

[on_chain_end]
<class 'dict'>
{'topic': 'ice cream'}

[on_chain_start]
<class 'dict'>
{'topic': 'ice cream'}

[on_chain_end]
<class 'dict'>
{'lc': 1, 'type': 'constructor', 'id': ['langchain', 'prompts', 'chat', 'ChatPromptValue'], 'kwargs': {'messages': [{'lc': 1, 'type': 'constructor', 'id': ['langchain', 'schema', 'messages', 'HumanMessage'], 'kwargs': {'content': 'Tell me a short joke about ice cream', 'additional_kwargs': {}}}]}}

[on_chain_start]
<class 'langchain_core.messages.ai.AIMessage'>
content="Why don't ice creams ever get into arguments?\n\nBecause they always stay cool!"

[on_chain_end]
<class 'str'>
Why don't ice creams ever get into arguments?

Because they always stay cool!

[on_chain_end]
<class 'str'>
Why don't ice creams ever get into arguments?

Because they always stay cool!

It could be Any now

It could be Any now. Dict-only was only when it was restricted to objects that subclassed Chain

@hinthornw is there an approximate set of the different types we can expect to receive in the callback you could provide?

on chain_start is really Any since users are free to create an arbitrary RunnableLambda with whatever type they want for the first argument.
Closing this PR now since it hasn't been updated for a while


component/widget

Hi, I dont fully understand- seems like you've added a component nut didn't use it

Fixed and done :)

the code looks great :+1:


Prowlarr

I’m not sure if this is possible quite yet as prowlarr (https://github.com/Prowlarr/Prowlarr/releases/tag/v<IP_ADDRESS>1) is in its infancy, but it seems to be a replacement for jackett.

I'm going to close this out. I have no immediate plans to add prowlarr integration for the following reasons:

it would be a significant amount of work - currently I'm using the private Jackett JSON api, not Torznab. If I were ever to support both I would use Torznab.
In order for Jackett competitors to succeed they need to continuously support hundreds of trackers. Seeing as Prowlarr is very young, I'd like to see it mature into a stable version that supports many trackers and keeps up with maintenance first.
Feel free to reopen or comment again when you think that Prowlarr has proven that its in it for the long haul.

As requested: adding my comments from #104
would likely need to use the /search and /indexer endpoints; no /all exists nor is it planned for an aggregate endpoint to exist
I see https://github.com/mmgoodnow/cross-seed/issues/83 was closed
so to address some of those comments

it would be a significant amount of work - currently I'm using the private Jackett JSON api, not Torznab. If I were ever to support both I would use Torznab.

Indeed.  Anything on the prowlarr side that can be done to make this easier?

In order for Jackett competitors to succeed they need to continuously support hundreds of trackers. Seeing as Prowlarr is very young, I'd like to see it mature into a stable version that supports many trackers and keeps up with maintenance first.
Feel free to reopen or comment again when you think that Prowlarr has proven that its in it for the long haul.

continuously support hundreds of trackers

Yup, we do.

stable version

Betas are rolling along and working in PROD without issue by a few thousand.  and the initial alpha group has been using it in Prod since Feb/March

keeps up with maintenance first.

on top of it

Prowlarr has proven that its in it for the long haul.

It's the Servarr team that brought you Readarr/Lidarr/Radarr (and the Servarr Wiki), so yes.

some search endpoint details
https://github.com/Prowlarr/Prowlarr/issues/427#issuecomment-903293404

@bakerboy448 is there a recommended way to map from jackett string-based tracker ids to prowlarr number-based ids?

@Qstick any additional ideas?
can't really compare jackett <-> prowlarr, too many changes 😥
indexer IDs are going to very for every user and are based on when the user added an indexer.  They're the DB ID entry for the user's configured indexer, but an ID for any specific indexer.
Indexer Names are also input by the user
Your simplest approach would be - similar to the current implementation with jackett - It'd be on the user to input the indexerids they wish to use.

Some examples responses from the prowlarr/indexer endpoint
https://gist.github.com/bakerboy448/437fad13bfe20d92ae7b67cb66e14d0a
https://gist.github.com/bakerboy448/1f90a5eb9e6848ba867aee473e1e917a

I'd also suggest considering searching the exact torrent name; tho an option to replace . with   and vice versa may be useful then

https://wiki.servarr.com/prowlarr/search#search-feed May help as well

well, here we are at christmas and I am definitely hoping we can snag a little bit of prowlarr love now?

lol got a thumbs down from a cocksucker named jerrk.  im my opinion thats a thumbs up.   YOU said christmas, not us.

@bakerboy448 a few questions:

Is there any way we can get some sort of string form of a tracker's name in the torznab response; either search (ideal), caps or both? It could totally be the user-input name. Right now, from Torznab, it seems like it's entirely invisible which tracker is which. The only thing I have to differentiate them is the id in the torznab url. This is important for the logging:

info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker1
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker2
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker3
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker4

secondly, how do guids work in Prowlarr? Are they truly globally unique? I'm seeing things like Gazelle-123456 which seem like they could possibly be unique only within trackers.

@bakerboy448 a few questions:

Is there any way we can get some sort of string form of a tracker's name in the torznab response; either search (ideal), caps or both? It could totally be the user-input name. Right now, from Torznab, it seems like it's entirely invisible which tracker is which. The only thing I have to differentiate them is the id in the torznab url. This is important for the logging:

info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker1
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker2
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker3
info: Found Movie.1999.1080p.BluRay.DD5.1.x264-GROUP.mkv on tracker4

secondly, how do guids work in Prowlarr? Are they truly globally unique? I'm seeing things like Gazelle-123456 which seem like they could possibly be unique only within trackers.

Indexer name you can also get from the indexerapi endpoint.  The IDs are specific for that given instance of an indexer so that won't change
GUID I believe is from the indexer  itself - not calculated by Prowlarr

Indexer name you can also get from the indexerapi endpoint.  The IDs are specific for that given instance of an indexer so that won't change
GUID I believe is from the indexer  itself - not calculated by Prowlarr

Does that mean the ids are not globally unique then? I'll forge ahead but that could definitely cause some subtle bugs

Does that mean the ids are not globally unique then? I'll forge ahead but that could definitely cause some subtle bugs

Looking at both Jackett and prowlarr code - the GUID is from the tracker not from the app itself.

Looking at both Jackett and prowlarr code - the GUID is from the tracker not from the app itself.

In Jackett they just use the comments url as the guid. It ensures uniqueness across trackers (globally) because it contains the tracker's domain name. However this does not seem to be the case with Prowlarr - two trackers both using Gazelle could easily cause GUID collisions.

In Jackett they just use the comments url as the guid. It ensures uniqueness across trackers (globally) because it contains the tracker's domain name. However this does not seem to be the case with Prowlarr - two trackers both using Gazelle could easily cause GUID collisions.

Gazelle GUID is formed based on the release ID from the indexer
https://github.com/Prowlarr/Prowlarr/blob/a5e13ca776b629a432a389981235e77f350a915d/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs#L101

Gazelle GUID is formed based on the release ID from the indexer
https://github.com/Prowlarr/Prowlarr/blob/a5e13ca776b629a432a389981235e77f350a915d/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs#L101

In that case it's definitely a bug, albeit a minor one. Pulling the torrentId straight from the tracker means that, while the guid is tracker-unique, it's not globally unique (which is what guids are supposed to be).
Jackett's guids don't have this problem because the comments urls contain both the torrentId and the tracker's domain name.
This will cause problems in cross-seed because we use guids as dictionary keys in the cache, so in the event of a collision, there's a chance of false positives.
I can file an issue for that in Prowlarr if you'd like.

In that case it's definitely a bug, albeit a minor one. Pulling the torrentId straight from the tracker means that, while the guid is tracker-unique, it's not globally unique (which is what guids are supposed to be).
Jackett's guids don't have this problem because the comments urls contain both the torrentId and the tracker's domain name.
This will cause problems in cross-seed because we use guids as dictionary keys in the cache, so in the event of a collision, there's a chance of false positives.
I can file an issue for that in Prowlarr if you'd like.

Should be an easy fix, go ahead and toss one up so we don't forget

Fixed in Prowlarr nightly

Actually, @bakerboy448/@Qstick, what would you think about making the title tag at xpath /rss/channel/title in the torznab t=search output say the tracker name instead of just "Prowlarr"? It could say something like TehConnection (Prowlarr) if you want to preserve prowlarr's watermark on the feed.
Jackett does it that way, which I realize is not a great reason to do something, but it also seems like a reasonable thing to do, and it would not require special casing across jackett, prowlarr, or other torznab implementations.

Actually, @bakerboy448 / @Qstick, what would you think about making the title tag at xpath /rss/channel/title in the torznab t=search output say the tracker name instead of just "Prowlarr"? It could say something like TehConnection (Prowlarr) if you want to preserve prowlarr's watermark on the feed.
Jackett does it that way, which I realize is not a great reason to do something, but it also seems like a reasonable thing to do, and it would not require special casing across jackett, prowlarr, or other torznab implementations.

It’s on the list, but needs some refactoring on our side to do

got an issue link I can follow along to? Alternatively feel free to just ping me when it's done.

I'd also suggest considering searching the exact torrent name; tho an option to replace . with and vice versa may be useful then

Just tried it; seems to be too restrictive. I also tried doing this with Jackett way back in v1 and most tracker search functionality just doesn't do well with exact-string searching. Gonna go ahead and do the same reformatting we were using for Jackett, that looks like it works well for Prowlarr as well

Time for user testing! Head on over to the PR here.


Updating the maintainers information for the federation operator

/lgtm

@sohankunkerkar no problem. While you are at it - do you want to add examples for your CRs as proposed in #242 ? It's the reason why the CI is failing.


Combine Datasets

Combine the datasets for hoop and basketball.
If possible find more hoop images (Focusing on only hoop) and merge these with the above

I have committed a version of the notebook that combines the datasets


fix(docs): fix open components in a new tab #1641

#1641

Actually the issue refers to our docs and internal section links, not the demo application.


Typo in comparison semantic token type

This typo seems to happen across the board in that PR.

I might be able to fix that one. Today :)


Implemented path to user detail

This PR addresses issue #119, and in the process of coding, we realized there were actually two sort of paths to a profile. One led to a view that allowed one to change their name and update email. Another led to a profile page that any user can access, and if the own user accesses this page, they can change their name, but if a separate user accesses this page, they can send a friend request.
What we decided to do was implement a link in the nav bar that links to a user's personal information or a personal "profile" and will display the user's personal information. It's made such that only the user of that information can access it, and no one else can access this view. Before, the user_detail view can only be accessed by knowing the URL, but this way, a user can access it by clicking a link. Also, if a user goes to "My Profile" in the nav bar, after editing their name, they will be taken to this page, and will be able to update their name or email.

From what I understood, this is the test case:
def test_authenticated(self, user: User, rf: RequestFactory):
request = rf.get("/fake-url/")
request.user = UserFactory()
response = user_detail_view(request, pk=user.pk)
But since this user is not the same as the user we are trying to view, the test_func will return False, and the PermissionDenied exception will be raised.
If we were to change the test case, wouldn't we have to talk to Borja about it since he implemented it?

From what I understood, this is the test case: def test_authenticated(self, user: User, rf: RequestFactory): request = rf.get("/fake-url/") request.user = UserFactory() response = user_detail_view(request, pk=user.pk) But since this user is not the same as the user we are trying to view, the test_func will return False, and the PermissionDenied exception will be raised. If we were to change the test case, wouldn't we have to talk to Borja about it since he implemented it?

oh ok I thought we added that test. But still maybe we need to fix that test but that should be another issue.

Update: removed nav link since it'll be more confusing.

Update: I addressed the review comments by removing the page from nav bar, and it can now be accessed through user profile. I removed the password option as the django built in doesn't really have a viable reset password unless you're in the admin view page and can manually change it. I also updated the view that if a user isn't an admin, it doesn't say anything about being an admin, and it now properly displays a list of friends and if a user has no friends, it says "no friends yet". The path should also be fixed to path("account/", include("django.contrib.auth.urls")).

Good catch, I should address that in my code. I just implemented it, and should work now.

Closing comment: At the start, the goal was to create a link in nav bar, and have personal information displayed that only the user of that information can access. That goal changed because it would be too confusing for a user to have a profile and account in the nav bar, so the link for account can be accessed through the user profile. I also added information in the account view page, such as name, a link to changing name, email, a link to changing email, bio, and it highlights if a user is an admin of chigame.

Issue Score: Excellent
Comments:
Nice work!


Fix stalebot

Apparently a message is required or it will skip these issues.

Oh, this appears to be fixed by #61.


Comments on Single session based storages for multiple TelegramClients

Currently you can try to use asyncpg|async session as a backend telethon. It must not affect any garnet feature, except some typing parts related.
In upcoming update(big one :smile:), I'll make sure different backend can be used.

Currently you can try to use asyncpg|async session as a backend telethon. It must not affect any garnet feature, except some typing parts related.
In upcoming update(big one smile), I'll make sure different backend can be used.

wrong link has been added to

it's no longer an issue since telethon_asyncpg is just a garnet-like patch for existing telethon.
Haven't tested integration tho. Feel free to reopen.


Fix bugs around null termination bytes

I wasn't accounting properly for null termination bytes in my original implementation. I now explicitly include space for them, so e.g. ASCIIDType(5) actually has 6 byte elements.
I've also added tests and fixed some bugs around making sure data are truncated properly at array creation time and casting time if the dtype is too narrow to contain the full input data.

Just to note, NumPy's string/bytes does not store that null terminator, there is an implicit null terminator behind things.  Of course you have to be very careful to not copy it.

I think this is wrong: the dtype itemsize should match the name.

Now it doesn’t store the null characters anymore and getitem will pad the result with null.
I also realized the contiguous casting loop isn’t terribly useful because almost all casts aren’t aligned, so I’ve made it so there’s only one casting loop.

because almost all casts aren’t aligned

In particular, I found that the check for whether a cast is aligned does npy_uint_alignment(dtype->elsize), which only returns true dtypes that are 1, 4, 8, or 16 bytes wide.

Eeek, the copying code has additional alignment for the purpose of complex loops...  Because we copy complex64 (two 32bit floats) via uint64 which has a lrger alignment.
None of that is ideal, but due to that the alignment passed in is larger than you would think.


[SITES] www.example.com

python -m newspaper --url="https://edition.cnn.com/2023/11/17/success/job-seekers-use-ai/index.html" --language=en --output-format=json --output-file=article.json Traceback (most recent call last):   File "<frozen runpy>", line 189, in _run_module_as_main   File "<frozen runpy>", line 148, in _get_module_details   File "<frozen runpy>", line 112, in _get_module_details   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/newspaper/__init__.py", line 17, in <module>     from .api import (   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/newspaper/api.py", line 10, in <module>     import newspaper.parsers as parsers   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/newspaper/parsers.py", line 18, in <module>     import lxml.html.clean   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/lxml/html/clean.py", line 18, in <module>     raise ImportError( ImportError: lxml.html.clean module is now a separate project lxml_html_clean. Install lxml[html_clean] or lxml_html_clean directly.
getting this issue on python 3.11.8

i think this is related to #639
The pull request by @changchiyou  should fix this


Week 4: CPU Power and Frequency Scaling

Week 4: Prepare GitHub Markdown Documentation

Topics: Document the steps involved in your automation deployment
Tasks:

Prepare user documentation for someone else to be able to reproduce your steps

@nyameko we wanted to know if we can have a meeting maybe tomorrow or sunday as we are experiencing a little bit of confusion and want to ask you regarding all the matters we are experiencing including to know more about the charts and graphs about the project that needs to be on the poster

@nyameko we wanted to know if we can have a meeting maybe tomorrow or sunday as we are experiencing a little bit of confusion and want to ask you regarding all the matters we are experiencing including to know more about the charts and graphs about the project that needs to be on the poster

Sure, we can meet from14:00 - 16:00 on Sunday.
Are you all on the SCC Slack?

Sure, we can meet from14:00 - 16:00 on Sunday.
Are you all on the SCC Slack?

@nyameko 14:00 is okay. Yes we've joined the SCC Slack

If you are still having some difficulties, use the Arch Linux Wiki which has a lot of useful information around this topic.

Hi Team,
In less than two weeks time, you'll be traveling to Gqeberha to participate in the Student Cluster Competition at the CHPC National Conference.
By this stage you should have a dedicated plan in place to tackle the Competition Benchmarks. You MUST KNOW HOWTO:

Configure and deploy your Operating Systems on your bare-metal clusters,
Configure and deploy your Infrastructure, Networking and Software Stack (drivers, environments, lmod, compilers, mpi, etc, etc...)

You have VM's to practice all of this. Make use of a private GitHub repo. You are strongly encourage to invite me, Mmabatho and / or your project mentors to assist and review your progress on your private repos.

Assign a project manager (does not have to be the team lead or technical lead) to make sure everyone is doing what they are supposed to be doing and to keep track of progress from now and throughout the competition.
Ensure that you have practiced deploying and installing the known benchmarks:

Synthetics

HPCC

LINPACK

HPCG

LAMMPS
NWCHEM
RegCM
MILC
MATLAB
Secret Applications

You will be interacting with CSIR Staff, High School, University Undergraduate and Postgraduate, as well as full time employed working students, and general industry professionals. Use this opportunity to network, engage and meet prospective contacts that may assist you in your own careers.
To help you introduce and present yourselves to all of the prospective guests, delegates and judges that may pass by your booths, in addition to your posters, you are strongly encouraged to prepare a slide-deck and associated lightning talks, briefly covering aspects of your journey from the Selection Round up until the Competition Floor at the CHPC Conference. Your slide deck should be brief and succinct and include:

1 Slide with a group photo, with names, degrees, year of study of all members including mentor - indicate Team Name and Institution on this slide,
1 Slide with a picture very briefly covering your experience of the Selection Round and the Build-Up to Nationals,
1 - 3 Slides describing your project:

Not everyone who comes by your booth will have a technical background in the specific topic you've been assigned,
Make sure you explain the task you were given,
Explain the challenges you encounters,
Explain the results you've obtained,
Explain the additions (if any) that you've made to the SCC Selection Round Training Content,
Remember that  a "GOOD" picture or diagram is worth a thousand words...

1 - 2 Slides describing your cluster design:

motivate your decisions,
explain the pros and cons,
explain your networking and interconnectivity,
explain you choice of OS and software stack
having prometheus and grafana dashboard "might" impress some judges...

1 slide per application with:

DO NOT COPY AND PASTE GENERAL INFO FROM WIKIPEDIA OR THE APPLICATION PAGE,
At most, have one short sentence briefly describing the benchmark,
Describe how you installed it, frameworks, software stacks used, dependencies
Get to reporting your application benchmark results quickly,
Briefly describe challenges faced, improvements planned or implemented,
If you have a "meaningful" diagram, image or graph, this can go on a 2nd slide for the application.

Final slide, with a general project plan overview of:

What are you currently working on,
What have you completed,
Where are you stuck,
What is you plan to get unstuck

This may seem like a daunting amount of information, but it is here to assist you in succeeding in the competition. Everybody in the group needs to demonstrate to the judges that they've ALL CONTRIBUTED to the success of the team.
There is not much time left. You should be finalizing your posters and preparing your presentations.
I will available myself tomorrow and maybe Friday for an hour between 15:00 - 16:00 for a general Teams Call for anyone to come and ask questions about anything related to the competition.


Write a set of code solutions: "mongodb install" (mongodb)

Please write code solution for this topics:
mongodb install (technology: mongodb)
Fast way
Just write the code solution(s) in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to install MongoDB on Ubuntu?
How to install MongoDB on Windows?
How to install MongoDB on Mac?
How to install MongoDB on Debian?
How to install MongoDB on CentOS?
How to install MongoDB on Fedora?


SecuritySchemes does not inject issuer and scopes into openIdConnect Plugin with OpenAPI-2-Kong

Expected Behavior
When using securitySchemes the scopes and the openIdConnectUrl should be injected into the Kong OpenIdConnect plugin configuration.
Actual Behavior
When using security schemas with x-kong-security element, the scopes and issuer are not applied to the routes and it results in a schema violation when applying the configuration.
while processing event: {Update} plugin openid-connect for route XXXXX failed: HTTP status 400 (message: "schema violation (config.issuer: required field missing)")

Reproduction Steps
components:
  securitySchemes:
    openId:
      type: openIdConnect
      openIdConnectUrl: https://idp-endpoint.example.com/.well-kown # This should be injected into the kong-plugin configuration as the issuer
      x-kong-security-openid-connect:
        config:
          auth_methods:
            - bearer
        enabled: true
        protocols:
        - http
        - https

paths:
  /example/path:
    get:
      security:
        - openId:
            - example-scope # This should be injected into the kong-plugin configuration as the scopes required

Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
It seems this occurs because of this line. The plugin configuration is replacing the security configuration.
https://github.com/Kong/insomnia/blob/develop/packages/openapi-2-kong/src/declarative-config/security-plugins.ts#L114
Insomnia Version
2.4.1
What operating system are you using?
Other Linux
Operating System Version
redhat
Installation method
binary
Last Known Working Insomnia version
No response

Hi I think I have identified what is causing this issue and have a potential solution:
https://github.com/Kong/insomnia/blob/develop/packages/openapi-2-kong/src/declarative-config/security-plugins.ts#L114
Instead of
plugin.config = kongSecurity.config

Use something like this:
plugin.config = Object.assign(plugin.config, kongSecurity.config)
plugin.enabled = kongSecurity.enabled

This way we can specify other configurations from the openid-connect plugin like auth_methods, extra_jwks_uris etc


Updater endpoint url placeholder not replaced

Describe the bug
The target and current_version placeholders aren't replaced by the actual values, therefore the updater request always ends up in a 404.
Furthermore the url is logged like this: https://example.com/v1/update/%7B%7Btarget%7D%7D/%7B%7Bcurrent_version%7D%7D
Same for atto and request btw.
Reproduction
No response
Expected behavior
No response
Platform and versions
I'm on my phone right now so I'll fill this out tomorrow. But everything is on the latest rc versions on Windows 10.

Stack trace
No response
Additional context
No response

I'm on my phone right now so I'll fill this out tomorrow. But everything is on the latest rc versions on Windows 10.

This is an interesting error message from the cli 🤔 never seen it before 😉


users when logged in can see all projects, not the ones assigned to them

This issue was solved today.


Add xdg-config exception of dev.k8slens.OpenLens

Related to https://github.com/flathub/dev.k8slens.OpenLens/issues/146

Does it actually need xdg-config or can ~/.config/gcloud work? I can't find where the path is defined, presumably some closed source google's component that the app is bundling?

I'm actually requesting for xdg-config/gcloud and I thought it was a more resilient way to write ~/.config/gcloud?

xdg-config will mount the directory to the XDG_CONFIG_HOME directory inside flatpak. If the program doesn't search relative to XDG_CONFIG_HOME but hardcodes $HOME for example, you don't need that and ~/.config/gcloud is enough.

I assume this won't be needed anymore. But feel free to reopen or ping me, if it is needed.


Colour of choice is not visable in non-edit mode

The configured colour of choice (custom field) shown in edit mode, but not in normal view mode.
Desired behaviour:  Colour of choice is shown in view mode.
Other issue related to choice: #3804

Other cutom field types also needs to be checked if they may need clearing.

Duplicate of #3799


Sharing the official repo

Hi @lucidrains!
This is Mohamed, one of the authors of the streaming deep RL paper. I came across your repo, and I see that you're working on reproducing our Stream Q(λ) algorithm. I appreciate your interest! I just wanted to share with you that we released our code a few days ago in case you want to use it as a reference. I'm happy that you're trying to integrate Stream Q(λ) into more complex setups. Please let me know if you have any questions. Thanks!
https://github.com/mohmdelsayed/streaming-drl

oh hey Mohamed! this is a very cool paper! 🙏
I had no idea you open sourced it, must have missed the link in the paper. I will add a link to your official repo, but will bring it to completion here to see if I can modularize some logic for use in q-transformers
Thank you!

@mohmdelsayed have you read the SimBa paper and seen their running statistics normalization?

I haven't read this paper yet; it's on my list. Thanks for sharing! They compute the variance incrementally using the standard incremental form. In our paper, we use Welford's algorithm, which is considered to be more numerically stable when computing the running variance than the standard method.


Display an error when uploading a project to a file share

Build Version: 20200329.1

Does this occur consistently?  Yes
Repro steps:

Open a project in VS Code --> Right click the project --> Select "Upload to Azure Storage..." from the context menu --> Select one applied subscription --> Select a storage account --> Select File Share.
Check the result.

Action: azureStorage.uploadToAzureStorage
Error type: Error
Error Message: Error uploading "c:/Users/VSCodetest/Desktop/dist/static/css/app.d41d8cd98f00b204e9800998ecf8427e.css": The specified parent path does not exist.
RequestId:0c258e96-a01a-0048-077a-065a9a000000
Time:2020-03-30T10:06:35.2481592Z
Version: 0.9.1-alpha
OS: win32
OS Release: 10.0.17763
Product: Visual Studio Code - Insiders
Product Version: 1.44.0-insider
Language: en

Call Stack
Object.<anonymous> extension.bundle.js:157:132413
rejected extension.bundle.js:157:131773
processTicksAndRejections task_queues.js:85:5

More Info:

Succeed to upload the same folder to a blob container.

Succeed to upload the special file to a file share.

@v-dantch did you right-click and select "Upload to Azure Storage..." on a workspace folder like "my_directory" in this example?

Or does "project" mean something different in this context?


No available model on aichat 0.17.0

Describe the bug

To Reproduce

Expected behavior

Screenshots/Logs

Configuration

Environment (please complete the following information):

os version: [e.g. Ubuntu 20.04]
aichat version: [e.g. 0.9.0]
terminal version: [e.g. GNOME Terminal 3.44.0]

Additional context

You need to reconfigure the clients parts in your config.yaml file.
Before version 0.17.0, AIChat defaulted to using the OpenAI client if it detected an OPENAI_API_KEY.
However, this led to confusion. #448 and #461.
So this feature was removed in version v0.17.0
If you're using OpenAI, you'll need to add the configuration below to your config file.
clients:
  - type: openai
    api_key: xxx        # Delete this field if you set the OPENAI_API_KEY environment variable

To find the configuration file path, run the command aichat --info | grep config_file.


Naming of current beta file

This is a suggestion to create the following files to allow for scripted/ansible rclone updates based on the latest available beta version. It would also be cool if there was changelog to identify what to look at for.

http://beta.rclone.org/rclone-beta-latest-linux-amd64.zip
http://beta.rclone.org/rclone-beta-latest-linux-amd64.md5
http://beta.rclone.org/rclone-beta-latest-linux-amd64.version
http://beta.rclone.org/rclone-beta-latest-linux.changelog

Good idea.
The changelog for rclone is hand made by me at each rclone release - I don't want to do that for the betas.  However I could put the git log in which is what I generate the changelog from.

I completely understand - take a look at this -https://pypi.python.org/pypi/gitchangelog, should be able to automate it.

This is done in
http://beta.rclone.org/v1.35-128-g86cc9f3/ (uploaded in 15-30 mins)
I made the links as per your suggestion and put a git-log.txt file in the zip

Foo, I see I've put the files in the wrong place!

Second attempt: http://beta.rclone.org/v1.35-129-g980cd5b/ (uploaded in 15-30 mins)


AttributeError: 'str' object has no attribute '_credentials'

Hi, I'm trying the example code and it's failing with the following exception:
>>> c = error_reporting.Client(project='<my-project-str>')
>>> try:
...   raise NameError
... except Exception:
...   c.report_exception()
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "/opt/python/3.6.0/lib/python3.6/site-packages/google/cloud/error_reporting/client.py", line 348, in report_exception
    user=user)
  File "/opt/python/3.6.0/lib/python3.6/site-packages/google/cloud/error_reporting/client.py", line 277, in _send_error_report
    self.report_errors_api.report_error_event(error_report)
  File "/opt/python/3.6.0/lib/python3.6/site-packages/google/cloud/error_reporting/client.py", line 162, in report_errors_api
    self._report_errors_api = make_report_error_api(self._project)
  File "/opt/python/3.6.0/lib/python3.6/site-packages/google/cloud/error_reporting/_gax.py", line 39, in make_report_error_api
    client._credentials,
AttributeError: 'str' object has no attribute '_credentials'

Reading the source, this seems like a rather obvious error:
https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/error_reporting/google/cloud/error_reporting/client.py#L162
self._project is a string and at https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/error_reporting/google/cloud/error_reporting/_gax.py#L29 it's treated like a client object. Is this not the case?

I would agree, it does seem like a rather obvious error. Thanks for reporting!
In the meantime, you can avoid this by setting GOOGLE_CLOUD_DISABLE_GRPC=True, but we'll get a fix out.

/cc @waprin @jonparrott

Thanks for catching this. Please can you roll 0.23.1 so we can deploy this fix?

@lukesneeringer I can setup the release for this if you want?

Yes please.

@robhaswell google-cloud-error-reporting 0.23.1 is up on PyPi.

Wonderful, thank you.
On Wed, 8 Mar 2017, 6:01 p.m. Thomas Schultz<EMAIL_ADDRESS>wrote:

@robhaswell https://github.com/robhaswell google-cloud-error-reporting
0.23.1 https://pypi.python.org/pypi/google-cloud-error-reporting/0.23.1
is up on PyPi.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3071#issuecomment-285118032,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZW_pwtZBpDVO5j_SXNW62m5mSPV6FBks5rjuzygaJpZM4MMJt8
.


Update replace_item optional parameters

based on replace_item signature, pre and pos triggers are optional

Docs Build status updates of commit 1191cac:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-autogen/azure-cosmos/azure.cosmos.container.ContainerProxy.yml
:warning:Warning
View (azure-python)
Details

docs-ref-autogen/azure-cosmos/azure.cosmos.container.ContainerProxy.yml

Line 7, Column 3: [Warning: xref-not-found] Cross reference not found: 'builtins.object'.
Line 80, Column 19: [Warning: xref-not-found] Cross reference not found: 'str,str'.
Line 96, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 100, Column 31: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 122, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 160, Column 19: [Warning: xref-not-found] Cross reference not found: 'str,str'.
Line 176, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 200, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 204, Column 31: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 219, Column 7: [Warning: xref-not-found] Cross reference not found: 'azure.cosmos.ThroughputProperties'.
Line 232, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 236, Column 7: [Warning: xref-not-found] Cross reference not found: 'Iterable'.
Line 236, Column 47: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 269, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 273, Column 7: [Warning: xref-not-found] Cross reference not found: 'Iterable'.
Line 273, Column 47: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 292, Column 7: [Warning: xref-not-found] Cross reference not found: 'ItemPaged'.
Line 292, Column 24: [Warning: xref-not-found] Cross reference not found: 'Dict'.
Line 292, Column 48: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 345, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 349, Column 7: [Warning: xref-not-found] Cross reference not found: 'Iterable'.
Line 349, Column 47: [Warning: xref-not-found] Cross reference not found: 'Any'.
Line 374, Column 19: [Warning: xref-not-found] Cross reference not found: 'str,str'.
Line 378, Column 7: [Warning: xref-not-found] Cross reference not found: 'Callable'.
Line 382, Column 31: [Warning: xref-not-found] Cross reference not found: 'Any'.

This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Reason for the discrete distribution

From the code, Sophia does the following

the default step:

line 5 from Algorithm 1 from Sophia paper
gets gradients from training set

the hessian step (every k iterations)

part1:

gets the logits and loss from training set
computes the gradients

part2:

gets logits from training set without label
samples "labels" from the logits with discrete distribution (line 4 in Algorithm 2 from Sophia paper)
compute loss between "labels" and logits
update hessian

I could not find a reason for using such discrete distribution over the prediction. This is the CE between the samples over the prediction and the prediction. Could you provide some intuition about the need of such distribution, please. Why not getting it from training data? Are there some computational advantages or something more basic that I am missing?
Thanks for your work!
cc @Liuhong99 @tengyuma

Thanks for the interest in the paper! The resampling of labels is to make the estimate of the Gauss-Newton diagonal terms unbiased. The derivation is in page 8 of our paper (https://arxiv.org/abs/2305.14342). As also noted by Kunstner et al, if the labels are from data distribution, then the estimate is no longer unbiased (termed empirical fisher).
Kunstner, F., Hennig, P., and Balles, L. Limitations of the empirical fisher approximation for natural gradient descent


No suggestions at start of a line in contenteditable

The start of a line is the start of an element.

Experiencing the same issue here.

I had the same issue.  I found a workaround, but it's a hack.  The underlying problem is, window.getSelection().toString() often returns false for the first word in a text field, so the code never gets into the block that populates the suggestions array.  Skip that check, and it works.  But there is a side effect.  From the sample code:
// Prime the context menu with spelling suggestions _if_ the user has selected text. Electron
// may sometimes re-run the spell-check provider for an outdated selection e.g. if the user
// right-clicks some misspelled text and then an image.

So if you skip the window.getSelection().toString() check and always populate the suggestions array, you may run into this issue.  My workaround is to more aggressively clear out the array, i.e. call resetSelection() both on mousedown, and after contextmenu as well.
I hope this helps someone.


runtest.py: Fix traceback print

Close this PR since it hasn't been updated for a long time, and the changes seem unneeded.


Support attaching video

There doesn't seem to be a way to attach a video.
This probably belongs inside the image-picker flow -- just enter the flow the same way you'd attach a still photo, and find the video in the camera roll there. If you try that in the current app, any videos you have just don't appear in the picker.
This is probably a natural follow-on to #2887 . That PR switches to a new library for the image picker, which has other nice features; this one might even come along for free.

yes please. major annoyance!

Any updates on this, still can't attach a video to a post in Zulip.. (iOS)

Closing as a duplicate of https://github.com/zulip/zulip-mobile/issues/3624, to focus conversation there, speeding up a solution.


build: add webpack-dev-server and enable HMR for development

Summary
This PR means to help with using webpack-dev-server and hot module reloading for javascript and styiling during development. Most changes are confined to when using the new make target, dev. Outside of that, there is some light refactoring. When using the new target, the files for the build are not created and instead, a proxy is created on port 9005 tha serves the built files from static, and sends the rest to the server as normal.
Technical
react-hot-loader is added as a plugin even for production, but that is as expected when using this project - it hides itself when in production.
App is a new component that  only wraps a piece of code that was already present. This is a necessary due to how HMR works and its requirements for top-level components. Functionally, no changes are expected. There was an attempt to avoid this, but between the natural complications with HMR and how the webapp is structured at the top level, this was the least amount of changes achieved while still having HMR work.
The CSP header was removed from root.html into the webpack build configuration. The reason is HMR with react-hot-loader requires eval to be allowed. The CSP remains the same for production, only moved some lines below it's previous place, because that is where the Html plugin decides to put it.
Goal
With it all working correctly, a change in a components .jsx file should be reflected in an opened tab at the proxy port in a few seconds. If the change fails to happen, either an overlay with the error, or a full page reload is expected. For certain use cases, it becomes easy to change the webpack script to full reload instead of HMR.
@sudheerDev @reflog

@krjn LGTM other than the one comment and Thanks for the awesome contribution


[Feature] Encryption

It would be quite useful if PN made it so that notes protected with a password/PIN were encrypted, especially with the existence of cloud sync
A second useful encyption feature could be to give the user the ability to lock the whole application with a password/PIN and encrypt all of its contents, like for example:
Silence
or
AndOTP

I was thinking about a master pin/password for notes, altho it is really hard to implement as of now (or at least I didn't find a proper way yet). For the note encryption thing, I should do it for every note and store an aes key or something that is user specific and that should be pretty easy to do

Encryption is wip on branch https://github.com/HrX03/PotatoNotes/tree/feature/encryption


Get rid of extraneous dependencies to resurrect the ---asseteditor page

This looks way, way, scarier than it actually is! All this PR does is move things around a bit to make our dependency graph a little less complicated. Basically, the /---asseteditor page broke a while back when the cloudsync stuff went in. Obviously the cloudsync stuff shouldn't even be in the  /---asseteditor page at all, so I had to untangle our imports a bit.
The big culprit was fireClickOnEnter which we use all over the place and is exported by sui.tsx (which itself requires app.tsx). I factored that out into a new file along with some of the asset editor utils that were also drawing in package.ts for no good reason.
To fix this, I wrote a script to trace the dependency graph and figure out the culprit. Here's how the dependency graph looked for the package.ts issues:
cloudsync-> /dialogs.js-> /container.js-> /headerbar.js-> /app.js-> /cloud.js-> /auth.js-> /core.js->
/compiler.js-> /workspace.js-> /package.js-> /components/assetEditor/store/assetEditorReducer.js->
/components/assetEditor/assetCard.js-> /components/ImageFieldEditor.js-> /assetEditor.js

@riknoll what is the status of this?

I need to resolve the conflicts, but i've been busy.
I'll close this and resurrect it later


DOC-440 | Add interface examples for APIs and GUI

Description

[x] Databases
[x] Collections
[x] Views
[ ] Documents

Upstream PRs

3.10:
3.11:
3.12: arangodb/enterprise:3.12.3
3.13:

/generate

/generate


feat: support files other than js to be ESM

Summary
Fixes #9860. See that issue for some discussion.
We could have an option somewhere for transformers to decide, but then we'd have have some forking logic in jest-runtime. Just having a top level option seems easier to reason about to me. Open to being convinced otherwise, tho! 👍

Test plan
E2E test added, plus unit tests for the config verification.

If we're running in ESM mode, shouldn't we treat all moduleFileExtensions (maybe except json) as modules then? I just wonder if we could get away without adding a new config option.

How would ESM mode be "triggered"? Also, it's perfectly fine to use import on CJS from ESM or import() on ESM from CJS so being in "one mode" is not really possible unless your entire dependency tree is uniform.

I'm thinking we can land this so people can test this, and if we figure out a better approach in the future we can revert

I think custom transformer guidance also needs updating ?

I think custom transformer guidance also needs updating ?

Done in #10834 - this PR doesn't change that fact


Is it working?

Hi there! So I was playing around with this cool application, and after following all the steps, I came across some errors when running npm run scrape. Any help? Or is this normal?
The terminal output is in the textfile named "fbrunscrape.txt"
fbrunscrape.txt

That's the same thing I get. I think the urls changed or something... :/


Document file system catalog

Usage, syntax and examples

registry documentation not tracked here. use amalgam8.io


problem with installing mmcv

 conda env create -f conda-extras.yaml fails with  error message
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 23.7.4
  latest version: 23.9.0

Please update conda by running

    $ conda update -n base -c conda-forge conda

Or to minimize the number of packages updated during conda update use

     conda install conda=23.9.0

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: \ Ran pip subprocess with arguments:
['/opt/conda/envs/dinov2-extras/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/jovyan/code/dinov2/condaenv.786udvr2.requirements.txt', '--exists-action=b']
Pip subprocess output:
Looking in indexes: https://pypi.org/simple, https://pypi.nvidia.com
Collecting git+https://github.com/facebookincubator/submitit (from -r /home/jovyan/code/dinov2/condaenv.786udvr2.requirements.txt (line 1))
  Cloning https://github.com/facebookincubator/submitit to /tmp/pip-req-build-4xumvgau
  Resolved https://github.com/facebookincubator/submitit to commit e8600a2b9e9cbe05751ab433bbaba2ae960d8ac2
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting cuml-cu11 (from -r /home/jovyan/code/dinov2/condaenv.786udvr2.requirements.txt (line 3))
  Using cached https://pypi.nvidia.com/cuml-cu11/cuml_cu11-23.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1081.8 MB)
Collecting mmcv-full==1.5.0 (from -r /home/jovyan/code/dinov2/condaenv.786udvr2.requirements.txt (line 4))
  Using cached mmcv-full-1.5.0.tar.gz (530 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

Pip subprocess error:
  Running command git clone --filter=blob:none --quiet https://github.com/facebookincubator/submitit /tmp/pip-req-build-4xumvgau
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /tmp/pip-install-pa3tzeja/mmcv-full_26c44a3cfd544d1f80c1a675007fd507/setup.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        from pkg_resources import DistributionNotFound, get_distribution
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-pa3tzeja/mmcv-full_26c44a3cfd544d1f80c1a675007fd507/setup.py", line 422, in <module>
          ext_modules=get_extensions(),
        File "/tmp/pip-install-pa3tzeja/mmcv-full_26c44a3cfd544d1f80c1a675007fd507/setup.py", line 326, in get_extensions
          ext_ops = extension(
        File "/opt/conda/envs/dinov2-extras/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1048, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/opt/conda/envs/dinov2-extras/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1179, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/opt/conda/envs/dinov2-extras/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2223, in _join_cuda_home
          raise EnvironmentError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

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

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

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

failed

CondaEnvException: Pip failed

I am installing on AWS Sagemaker studio, with a base conda env as attached.
cuda is installed via conda.

base_env.txt

And if I try installing using pip I get the following error

Same here. Have you found a workaround @nagitam ?

@BrianPulfer  No. I ended up updating the dinov2 code base to work with the latest version of mmcv, mmseg and mmengine (for the inference part only).

Hi @nagitam I am working on updating mmcv to latest version. Could you share your code?

pip install mmcv==1.7.1

@Sycamorers

pip install mmcv==1.7.1

This will end up the error like this `Output exceeds the size limit. Open the full output data in a text editor---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[3], line 1
----> 1 from mmseg.apis import init_segmentor, inference_segmentor
File ~/anaconda3/envs/dinov2-extras/lib/python3.9/site-packages/mmseg/apis/init.py:2
1 # Copyright (c) OpenMMLab. All rights reserved.
----> 2 from .inference import inference_segmentor, init_segmentor, show_result_pyplot
3 from .test import multi_gpu_test, single_gpu_test
4 from .train import (get_root_logger, init_random_seed, set_random_seed,
5                     train_segmentor)
File ~/anaconda3/envs/dinov2-extras/lib/python3.9/site-packages/mmseg/apis/inference.py:9
6 from mmcv.runner import load_checkpoint
8 from mmseg.datasets.pipelines import Compose
----> 9 from mmseg.models import build_segmentor
12 def init_segmentor(config, checkpoint=None, device='cuda:0'):
13     """Initialize a segmentor from config file.
14
15     Args:
(...)
23         nn.Module: The constructed segmentor.
24     """
File ~/anaconda3/envs/dinov2-extras/lib/python3.9/site-packages/mmseg/models/init.py:2
...
125             break
126         level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'`
How did you solve it?


[Question] Is there any way to use GEM_HOME and GEM_PATH variables for system Ruby and rbenv at the same time?

I want to customize where gems of system Ruby are installed and at the same time don't conflict with rbenv. I tried to use hook for version-name command but it didn't help.
It was something like that:
$ cat $(rbenv root)/rbenv.d/version-name/gem-path.bash

if [ -z "$RBENV_VERSION" ] || [ "$RBENV_VERSION" = "system" ]; then
    [ "$GEM_HOME" != "$KRAUTCAT_GEM_HOME" ] && export GEM_HOME="$KRAUTCAT_GEM_HOME"
    [ "$GEM_PATH" != "$GEM_HOME" ] && export GEM_PATH="$GEM_HOME"
else
    unset GEM_PATH
    unset GEM_HOME
fi

Is there any way to seamlessly integrate redefinition of this variables only for system Ruby within rbenv, possibly its' hooks, or no?
Currently I came up with shell function which does the same thing.
# --------------------------------------
# --- Ruby. ----------------------------
# --------------------------------------
export KRAUTCAT_GEM_HOME="$KRAUTCAT_LOCAL/lib/ruby/gems/$(ruby -e 'print RUBY_VERSION')"
PATH="$KRAUTCAT_GEM_HOME/bin:$PATH"

export RBENV_ROOT="$KRAUTCAT_ENV_PATH/rbenv"
PATH="$RBENV_ROOT/bin:$PATH"

eval "$(rbenv init - bash)"

function ruby-system-gems() {
    if ! hash -v rbenv 2>/dev/null && [ "$(rbenv version)" = "system" ]; then
        [ "$GEM_HOME" != "$KRAUTCAT_GEM_HOME" ] && export GEM_HOME="$KRAUTCAT_GEM_HOME"
        [ "$GEM_PATH" != "$GEM_HOME" ] && export GEM_PATH="$GEM_HOME"
    else
        unset GEM_PATH
        unset GEM_HOME
    fi
}

@krautcat I think you would need an exec hook, not a version-name hook. The exec hook has a chance to set environment variables that affect every spawned ruby process, including gem.


Figma design for Cookie Consent

Summary
Design the 'Cookie consent' for the 'Le Jardin' website on Figma. Refer to the material in Readme to write the policy.
Acceptance Criteria:

Web Accessibility:

Follow the Web Content Accessibility Guidelines (WCAG) to ensure the website is accessible to all users.

Design Material:

Write material for cookie consent. Refer to material in Readme.md.

Add Links:

Add links to read the policy.

Add Buttons:

Add buttons to Accept and Decline the Cookie terms.

Component Library:

Utilize a Component Library like MUI and NextUI for a consistent and effective design.

Brand Archetype:

Adhere to the Brand Archetype persona 'Explorer' in the Hero Section design.

Color Selection:

Use the Adobe color wheel for selecting colors for the website components. Refer to Adobe Color Wheel.

Note: Ensure that the Cookie Consent aligns with accessibility standards, the brand identity, and provides an engaging and visually appealing user experience.

Design Added:

figma link: https://www.figma.com/file/puog0pDY0mW5VGzuivGCi1/Final-Group-Project--Bakery?type=design&node-id=156%3A44&mode=design&t=zaekSFpEtOfopwZt-1


PR chat participant: Fails trying to list my issues

Testing #6321
The query seems to contain <del>?

This seems to be related to the search issues tool. More specifically looking at the query in the grey message, it would seem the query contains the  tag which is not correct. Pinging @alexr00 about it.

Wow, it's the ~info-needed label. The ~ is the <del> tag in markdown.


Update dependencies

I've been looking at how best to package licenses for packages distributed by conda-forge. See https://github.com/conda-forge/conda-forge.github.io/issues/1052
As conda-forge globally uses OpenSSL 1.1.1 I needed to update the dependencies to get this to build. This PR contains the changes that were needed, it's my first time writing rust so there may be some amateur mistakes.
I've also included a couple of changes to make cargo-license-hound work better when inspecting itself.
Would be you happy to accept more follow-up PRs to make support more packages? For now I'm thinking of using the spdx crate to properly parse the license expressions and adding support for manually passing license files for packages that don't have one.

Hi @chrisburr! Thanks for this :)
This pull request contains several unrelated changes, and some related changes are split into multiple changesets. That makes it hard to accept. At first sight, it looks like this PR should have been four different ones.
Please split this pull request:

An update of a dependency that also requires code changes should go in one isolated PR. Other dependencies should not be updated in the same PR, unless required to get the code working again
One PR may contain updates of multiple dependencies if none of them require code changes
Distinct features (license filenames, additional licenses) go in distinct PRs

I'm open for discussing other changes and considering further PRs, but I should note that I will not be able to spend much time on this :) For new features, I recommend starting with an issue describing the problem and proposed solution to get potential issues illuminated early on. Thanks again!


chore(main): release 1.1.0

:robot: I have created a release beep boop
1.1.0 (2022-10-30)
Features

NIH-16 Deploy Jenkins Service via GitHub Pipeline (#3) (c58a80a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/devhalos/nihil-jenkins/releases/tag/v1.1.0 :sunflower:


Duplicate text after insertion

I have a slight issue that I've only been able to track to this plugin, however it might still be in my cmp config.
For example if I have
import numpy
numpy.array(|)

The cursor being the | character, the copilot suggestion is numpy.array([1, 2, 3]), however when I insert this suggestion, I obtain:
import numpy
bumpy.array([1, 2, 3]))

It duplicates the closing parentheses, this is both with Insert and Replace behaviour in cmp.

Sorry this took so long to get back about. I added an option to address this called clear_after_cursor. If it seems stable enough I will set it to be the default, but for now it is opt in. Try it out and let me know how it goes.

Yes, this solves the issue I was having. Thanks!


Integrate KnpMenuBundle

I saw your project and I found it interesting to integrate knpMenu

Can you update a PR and resolve conflicts before merging your changes? Otherwise it must be manually merged.
Accept: project composer.lock, parameters_heroku.yml
Merge: config.yml
It's possible that you get an error with missing parameters_heroku.yml.

Done! I updated but  I see conflicts


Rancher-Compose: Cross Stack target services in Load Balancers should look at link alias instead of service name.

The labels used for target services relies on the service name instead of link alias.
lb:
  ports:
  - 80
  links:
  - web1:web1a
  external_links:
  - stackb/web2: web2a
  labels:
    io.rancher.loadbalancer.target.web1: '91'
    io.rancher.loadbalancer.target.web2: '90'

We should change to Link Alias.
lb:
  ports:
  - 80
  links:
  - web1:web1a
  external_links:
  - stackb/web2: web2a
  labels:
    io.rancher.loadbalancer.target.web1a: '91'
    io.rancher.loadbalancer.target.web2a: '90'

If we make this change, we should add the ability to create aliases in the UI so the generated docker-compose.yml would be correlated. It also allows the services of the same name to be used but with different aliases.

Closed in favor of #1693


[2] Create Item class based on class diagram #All Team Members

All Item class properties visible in the diagram should be defined and set up in the constructor method. Exception: properties for the 1-to-many relationships should NOT be set in the constructor method. Instead, they should have a custom setter method created.


Added json header to API response

I've just started to play with your API. Using Postman, I've discovered that the application/json header is missing:

So I've added the following headers to the response:
header('Cache-Control: no-cache');
header('Content-type: application/json');

It tells the browser to not cache the response and that the response is in json format. Now Postman recognize it:

Great catch, thanks!

Your welcome :)


bug(mat-divider): The divider does not display

Bug, feature request, or proposal:
Bug
What is the expected behavior?
The divider should display independent of the the "mat-list"
What is the current behavior?
The divider does not display in on the page unless I add atleast one "mat-list" in the app.
What are the steps to reproduce?

Demo with WRONG BEHAVIOR
Demo with CORRECT BEHAVIOR

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 5.0.0
Angular Material 5.0.4

mat-divider is still invisible

Still facing this issue can only see vertical mat-divider inside mat-toolbar. Any fixes available?


Add a test to verify Configuration initialization paths.

When initializing a Configuration with the default initializer,
it should have the same values as one decoded from an empty JSON
dictionary. Testing this lets us verify that the default values
assigned for missing keys match the default values assigned when
creating a new configuration.
This change also makes Configuration into a value type instead
of a class.

👍  The switch to a value type is nice. I’ve been encoding and decodnig just to get a distinct copy.


Question

Could you please put show me an example of how to run this? I can't figure it out :(

Could you please put show me an example of how to run this? I can't figure it out :(

Could you please describe what do you want to do with this software?


Adding more metadata during training process.

Adding more metadata that gets automatically added to the model during training. It should be an almost exhaustive description of the model.

I haven't tested this at all or written any tests for this yet. I'm too tired right now, I'll double back soon. I'll ping you prem with this is ready to go.

@pseeth, do you have a lot of models trained currently? It might be easier to break them and make a migration script than to support them going forward.

Can you describe the migration process? I can retrain more models but I can't speak for anyone that used this to train anything...

The migration process would just make older models compatible with the new code, instead of supporting models from many different versions of nussl as it matures. Right now I've only rearranged the metadata that gets stored on disk when the model's saved, so this script would just reformat the old model's metadata so it matches the new format (with unknown fields left blank).

And it would be part of nussl, so anyone could use it.

Still todo:

[ ] Fix existing tests.
[ ] Write migration tests and tests for new metadata.
[ ] model.print_metadata() function.
[ ] Figure out how to attach eval (meta)data to the model.
[ ] Document.

This looks good to me - it's out of date with master at the moment though, so maybe update it to make sure tests pass?

Yup, and I also want to capture our offline conversation on this, mainly that the last TODO is that the metadata should be attached to the model, not the separation object.

lgtm, let's wait for tests.


Add tensorflow-datasets dependency

It seems that SLSA for models workflows fails when building TF models (example run:
https://github.com/mihaimaruseac/model-transparency/actions/runs/7794330107/job/21255472664). Apparently, when we added the workflow to freeze dependencies we forgot to add this dependency.

This also replaces #124


Register l2jsource.localplayer.dev

Added l2jsource.localplayer.dev using the CLI.

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

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

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

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

I don’t understand what I need to change and where to change it


added recap csv

Add new export format for Recap tax service https://recap.io

great stuff!
One thing I might comment is probably to change type to some other name like cur_type because type is a python keyword.
Not a biggie--I'll probably change this myself if you don't get to it.  Give me a day or two to merge this and test within recap.io, only because I'm in the middle of developing something.

Merged as part of https://github.com/hodgerpodger/staketaxcsv/pull/108 with the tiny additional change.
Thanks!
(tiny note: I might have botched a merge somewhere along the line; hopefully I get it all sorted out)


feat: add language parsing library

Language Parsing Library is TIR's built-in parser combinator library, similar to nom, winnow or chumsky. It is aimed at providin flexible yet performant interfaces for any built-in DLS within TIR domain.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

234 of 441 (53.06%)  changed or added relevant lines in 9 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-4.0%) to 81.71%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lpl/src/combinators/predicate.rs
23
24
95.83%

lpl/src/err.rs
3
6
50.0%

lpl/src/parse_stream.rs
23
35
65.71%

lpl/src/lib.rs
37
75
49.33%

lpl/src/combinators/text.rs
12
52
23.08%

lpl/src/combinators/monadic.rs
15
69
21.74%

lpl/src/combinators/repeat.rs
41
100
41.0%

Totals

Change from base Build<PHONE_NUMBER>3:
-4.0%

Covered Lines:
2962

Relevant Lines:
3625

💛  - Coveralls


Add channel reciprocate option

Add channel reciprocate option under Manage Channels
Detailed Description
Add an option to reciprocate channel with adjustable capacity under Channels -> Manage to easily "open back" to the 2nd peer without the need to look up for pubkey and do it manually.
Context
I feel it would tempt me to reciprocate :D
Moar channels, moar liquidity :)
Possible Implementation
The best would be to put a second button next to red "Close Channel" imo.
Your Environment

Zap version:
Operating System and version:

Thanks for the suggestion @elkimek. I can see this improvement as being quite useful!

I wouldn't mind taking this on. How do you go about these requests that have "needs design" as status? Do I just come up with something simple to start with, submit that and iterate from there?

@bolatovumar yes I'd suggest building out and focusing on the functionality and add a simple UI that does the job and fits in with our existing design patters as much as possible. Getting a working MVP will spur on additional conversation and enable us with a starting point to further iterate from.

@mrfelton as I understand it in order for others to open a channel with me first (so I can reciprocate from the UI) I need to run an LND instance of my own rather than relying on Neutrino, right? Or does Zap allow others to open a channel with out of the box?
I'm currently spinning up a BTCPay VM so I can have LND running on testnet which I can connect to through Zap. This sounds like it should work, right?

generally speaking that is correct. There is one exception to this though - if you connect to a peer first, then that peer should be able to open a channel back to you - even to our neutrino nodes. Obviously though in the real world it is unlikely that people would be opening channels directly to neutrino nodes since it requires an outgoing connection to be established from the neutrino node first.
For remote nodes there should be less of an issue since the likelyhood is that the remote nodes are advertising themselves to the network and therefore opening channels to those nodes should be more straightforward.

I got my BTCPay Server with LND up and running so I should be able to start working on this now.

@bolatovumar I think maybe we should discuss more in Slack and gather consensus. I wouldn't want anyone working on something that won't get merged or that doesn't have consensus on what it will look like when merged, especially when there are lower hanging issues to knock out in the meantime

@JimmyMow sure, I haven't really started on this anyway. desktop-dev channel on Slack?
In the meantime your reckon any of the issues marked with v0.6.0-beta should be good to work on?


DataFrame groupby apply returns unexpected duplicated MultiIndex

import pandas as pd
import dask.dataframe as dd
df = pd.DataFrame([[1, 2], [2, 3], [3, 4]], columns=['a', 'b'])
# df = df.astype({'b': 'category'})
df = dd.from_pandas(df, npartitions=1).set_index('a')
df = df.groupby('a').apply(lambda d: d.copy())
df.compute()

returns a dataframe with a MultiIndex where both levels are just copies of the original index:
     b
a a
1 1  2
2 2  3
3 3  4

Providing the right meta object does not change the result. Interestingly, if I convert column 'b' to 'category' dtype (uncomment the line # df = df.astype({'b': 'category'})), I get the right result:
   b
a
1  2
2  3
3  4

Pandas has some inconsistencies here when the input  is (maybe) mutate in side an apply.
In [17]: df.groupby('a').apply(lambda d: d)
Out[17]:
   a  b
0  1  2
1  2  3
2  3  4

In [18]: df.groupby('a').apply(lambda d: d.copy())
Out[18]:
     a  b
a
1 0  1  2
2 1  2  3
3 2  3  4

I'd recommend searching on the pandas issue tracker to see if this is the expected behavior, and maybe make a PR fixing it if not.

Ah okay. It appears to be expected behavior in Pandas, a result of Pandas .groupby(group_keys=True) being the default. If group_keys=False the result is what we would want:
>>> df.groupby('a', group_keys=False).apply(lambda d: d.copy())
   a  b
0  1  2
1  2  3
2  3  4

So the fix here would be to expose group_keys in dask.

It's not clear to me that the difference between the two pandas outputs
(mutate vs. not) is intentional.
On Thu, Mar 14, 2019 at 3:10 PM Brian Chu<EMAIL_ADDRESS>wrote:

Ah okay. It appears to be expected behavior in Pandas, a result of Pandas
.groupby(group_keys=True) being the default. If group_keys=False the
result is what we would want:

df.groupby('a', group_keys=False).apply(lambda d: d.copy())
a  b
0  1  2
1  2  3
2  3  4

So the fix here would be to expose group_keys in dask.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/4592#issuecomment-473041010, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABQHIsDgg6PlF_L73rVhwukRHKIiHi3wks5vWqzGgaJpZM4bzBTx
.

It does appear to be a pandas bug (https://github.com/pandas-dev/pandas/issues/22546). But the "correct" Pandas behavior is the behavior exhibited by df.groupby('a').apply(lambda d: d.copy()) (the grouping index gets added).
So I suppose this is more of a feature request for supporting .groupby(group_keys)

It looks like it might not be terribly difficult to add support for the group_keys= keyword.  I think that this needs to be passed in here:
https://github.com/dask/dask/blob/d8a4f3be9a6ec685261ed043a45ecc019055ec0d/dask/dataframe/groupby.py#L144-L150
You would have to follow how the keyword arguments get passed into that function, which might go back a few levels.  But I suspect that there is a 50+% chance of that working.
I know it's been a little while @bchu, but do you have any interest in trying this out?

Yep, I'll take a look.