Restructure for pip install; renames for PEP8 compliance

Resolves #1, resolves #2

Great, thanks for your issues and the PR! Making it pip-installable definitely makes things easier. I'll make sure to get it on PyPI and update the README accordingly when I get some free time.

I took the liberty of setting it up on setuptools_scm while I was in there, which determines the version metadata using git tags. This, in combination with some github actions, means that you can automatically push new versions to pypi from github just by tagging something locally.
I've got an example of that setup here: https://github.com/clbarnes/catmaid_publish/blob/main/.github/workflows/ci.yaml

Sounds good, much appreciated!


Vitis AI on custom board petalinux 2021.1

Hi, I am working on integrating Vitis ai on a custom platform. But petalinux v2021.1 doesn't have it. Are any tutorials integrating Vitis ai on a custom platform. I want to run python code on dpu like tutorials in these repos

hi @mmterkc, are you able to get recipes of vitis ai by esdk? (v2021.1)

Hi @mmterkc
Since we haven't received your reply for a long time, we assume you have solved this issue and I'm going to close it. If you still have any questions, please feel free to reopen it. Thank you very much.


Changed case of E in email for clio in other.yml

@plecavalier If you haven't already, you need to resync your fork again. After your previous PR was merged, you need to make sure your master is up to date.
There should not be 3 commits in this PR that changes a single letter...

Since it's such a small change I changed this directly in  012d998. Closing this PR

Thanks!
On Fri, Mar 27, 2015 at 4:53 PM, Carlgo11<EMAIL_ADDRESS>wrote:

Closed #1040 https://github.com/jdavis/twofactorauth/pull/1040.
—
Reply to this email directly or view it on GitHub
https://github.com/jdavis/twofactorauth/pull/1040#event-267276167.

no problem

@plecavalier See https://github.com/jdavis/twofactorauth/wiki/FAQ_Merge

Oh. Sorry.
On Mar 27, 2015 5:05 PM, "mxxcon"<EMAIL_ADDRESS>wrote:

@plecavalier https://github.com/plecavalier See
https://github.com/jdavis/twofactorauth/wiki/FAQ_Merge
—
Reply to this email directly or view it on GitHub
https://github.com/jdavis/twofactorauth/pull/1040#issuecomment-87091615.


Add MCH CUDA stress test

Fixes #261.

Codecov Report

Merging #514 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #514      +/-   ##
==========================================
+ Coverage   91.39%   91.41%   +0.02%
==========================================
  Files          72       72
  Lines        8749     8749
==========================================
+ Hits         7996     7998       +2
+ Misses        753      751       -2

Impacted Files
Coverage Δ

reframe/core/config.py
84.34% <0%> (+1.73%)
:arrow_up:

Continue to review full report at Codecov.

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

@jenkins-cscs retry dom


Added Furstenburg and Golomb topologies

Added two examples we encountered in my topology course this term

It seems that these two spaces are already covered as examples 58 and 60 in Steen & Seebach (S50 and S52 in pi-base):
https://topology.pi-base.org/spaces/S000050
https://topology.pi-base.org/spaces/S000052

Thanks @prabau.
@jford1906 can you make a new PR that adds these names as aliases to S50 and S52? And double-check that the properties you assert show up on the live site for those examples?


How can I use beam search together with CustomHelper when decoding in a seq2seq model structure?

I know there is a BeamSearchDecoder, but no parameter called helper in this function. Does anyone have idea how to do that? Thanks for the help!

Nagging Assignee @cy89: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @cy89: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@lukaszkaiser can you offer any advice, please?

Sorry, I have no experience with this code, I've never used it. I can only recommend switching to newer things like the tensor2tensor library, but maybe someone can find a real answer?

Nagging Assignee @cy89: It has been 17 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


Documenting error responses of REST API

What article on docs.github.com is affected?
Basically any REST API endpoint which returns HTTP 4xx responses
What part(s) of the article would you like to see updated?
The REST API documentation provides in depth description of responses for successful requests.
However things might not work as expected and then the API responds with HTTP errors. Some of them are predictable (4xx), some not (5xx).
For example, fetching a repository which is affected by DMCA takedown notice ends up with HTTP 451 Unavailable for Legal Reasons
Additional information
As GitHub App developer I would love to have predictable errors as part of the documentation
In order to gracefully handle some errors
When developing GitHub apps which consume REST API
Currently I create pull requests for octokit.rb whenever I identify a type of error which I need to handle. Having the errors documented would make this job much easier.

Thanks for letting us know @stmllr ⚡ The @github/docs-content-ecosystem will take a look at this issue!

Thanks for opening this @stmllr! @imwiss and I have been chatting about improving some of the metadata around these responses, which would help us provide a better output in the documentation. I'd love to talk with you about that project and get your feedback -- would be curious to keep talking with you about that project if you're interested?

sure @simpsoka

@stmllr thanks for opening this up! I agree that it'd be great to make the possible HTTP error codes accessible. In addition to the conversation @simpsoka has started I've created an issue to see if we can collect this information in the public GitHub OpenAPI description.
I'll keep you updated on that discussion! ⚡

Phone number

Phone number

3478851047

It looks like the conversations for this issue have been moved to the appropriate internal teams and are being tracked there. Since there's nothing else for the docs team to do right now, I'm going to close this issue. Thanks so much for your interest in improving the GitHub docs! ⚡


MODIS LST Update

Core work done in #101

Update from v6 to v6.1 done in #145
has been converted to COG output and tested
Tested with Prefect deployments

Only remaining item it to incorporate use of intermediate local dirs for download/processing

2d8040dfb4ea5cedd7de8c147aba6032cb388b0a adds use of temp dir for downloads, but left processing stage write to final dir since it is not an open IO stream that could take an extended period of time

Full test and run for v6.1, just needs ingest (new / updated ingest json as well)
Need to decide whether to remove old dataset in GeoQuery once this is active

Ingested

I modis_lst is in a good spot now, with a recent deployment on nova running smoothly.


Handle dangling images in prune/tag

Requires:

https://github.com/rumpl/moby/pull/100

Changes:

docker image prune deletes dangling (images which were built without a tag) images
docker tag <dangling hash> <new-tag> will remove the old "dangling" image so docker image ls will show only the image with a

The required PR was merged 👍

Rebased and adjusted to work with #101


Minor: small refactoring for ints/floats to timestamps conversions

Is your feature request related to a problem or challenge?
Follow up on #8159 #8193
While implementing fixes for two tickets above there is a small tech debt which needs to be adressed
Describe the solution you'd like
Its needed to do a small refactoring on timestamp conversions

use arrow-rs cast kernel for  Float -> Timestamp conversion
get rid of double cast on Integer -> Timestamp conversion

Describe alternatives you've considered
No response
Additional context
No response

Depends on https://github.com/apache/arrow-rs/pull/5123 to be released

I think this may be fixed now


Write a Decent README

Add some links for references to implementation details and library documentation.
Add build/execution instructions.
Description of overall purpose and flow.

Completed.


nnn fm plugins and icons feature

It would be great to have option to fetch nnn plugins with nxpkgs or with additional package instead of manually fetching it like developer advise.
And second is it possible to implement some option to include icons support from nerdfont to nnn binary file instead of recompiling it?
Thanks.
@jfrankenau

I think this issue was closed preemptively by the Partially fixes #99822. line in the PR, there doesn't seem to be any way to include plugins as of now

nnn seems to expect plugins in $XDG_CONFIG_HOME/nnn/plugins. This might work better as a home-manager module, maybe with the plugins themselves in as an output of nixpkgs. I might take a look at this next week.

I've recompiled nnn with icons, by using unstable branch and overriding nnn-package:
# <...>

environment.systemPackages = with pkgs;
    let
      unstable = import (fetchTarball https://nixos.org/channels/nixos-unstab  unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { config = config.nixpkgs.config; };
    in
      [
        (unstable.nnn.override { withNerdIcons = true; })
     ]

# <..>


Fix promise resolution handling

Fix for a bug reported internally.
In wrapper we're overriding context methods, to catch user resolutions, yet same methods are used internally by AWS in case of promise resolution. Additionally, we have dedicated logic to ensure correct resolution if lambda is attempted to be resolved with boith callback and promise, and that one broke those methods for internal AWS resolver.
This patch ensures that for internal AWS resolver those methods work as if not patched

@Danwakeem I've just updated main description with explanations


Dorothy area

It would be great if you made Dorothy's damage zone through particles and not a sprite as it is now. If you know how. I'm just not good at VFX

It would be great if you made Dorothy's damage zone through particles and not a sprite as it is now. If you know how. I'm just not good at VFX

That's the plan. Either that or I'll make Dorothy herself a trail and the bubble into a transparent sprite, so it looks like she's floating with every move.

As discussed in the commit message, I'd like to experiment with graphical effects and really up the level of visual fidelity. Just not for this game jam.


Matrix Integration

Describe the solution you'd like
Telegram integration is excelent, but relying on a 3rd party for a selfhost service is counter productive.
Would it be possible to have a Matrix bot ?
Type of feature
Integrations
Additional context
No response

mark


Mousetrap global-bind plugin integration

It would be great to have the "global-bind" plugin / methods available within react-mousetrap, so that something like this.props.globalBindShortcut('right', this._goToNext) would provide mousetrap bindings that work within input fields.

I've just created pull request #8 with a basic (and seemingly working) implementation.

We had a need for this too -- wondered if @alvinsj had any thoughts on the PR?


Would TLS support be useful?

I have multiple Raspberry Pis in a potentially hostile network. I'd like to use cote for discovery and communication, replicating data across all nodes. I've produced a similar library to cote — odo-journal. I'd rather use something with more people behind it.
Odo Journal currently uses TLS encryption where each node has a ca, key and cert. The ca is so we can rotate keys from an external secret key that is not available on each node. Every node has both the key and the cert so it's not asymmetric encryption, but it does address a man in the middle attack.
I'd see the use of TLS similar to how the environment property works, it would partition the network.
Does this have a place in cote?

Exactly, we’d love to implement TLS — however no one has gone to the length to implement it. If you’d consider contributing, you’d be welcome.

It looks like the heavy lifting would be in axon, in sock.js. At the moment all connections are via net, we'd need to add tls as an option. The changes needed in cote would be passing configuration parameters through.
Are your changes to axon likely to be upstreamed to tj's repo? I'm wondering if we need to line up with that project's vision.

Looking at the pull requests, someone has implemented tls. I haven't had a look, but could this potentially be merged into your branch?
We'd need to review the changes for suitability.

Looks interesting! Some lines seem redundant, but if you can make it work within cote, we can merge it and release as a newer version of @dashersw/axon.

Sorry, didn’t see your previous message. Axon is probably dead at this point, so I would assume not.

@tcoats I would like to see this feature supported by cote as well, let me know if you need/want any help.


Basic description of worker-loader's purpose

I created an issue here https://github.com/webpack/webpack.js.org/issues/1161, but was asked to add to individual projects
I really love the documentation improvements that came with the new webpack 2 website. However, I find it frustrating that some of the promoted plugins/loaders on the webpack website do not have simple descriptions of their purpose.
For example, https://github.com/webpack-contrib/worker-loader states

Worker loader for Webpack.

What is a Worker Loader? Why might I want it?
There is a lot of implicit knowledge that we're expecting developers to have. This makes it hard and intimidating for new users to start using the platform. My suggestion is to make sure that, at a minimum, worker-loader add an easily understandable description of its purpose, such that a layman could make sense of their intended use.

Hi. Good idea. I'll appreciate a pull request with docs improvements.

I would love to @TrySound, but I'm still unsure of what worker-loader's function is. Even after reading the example code, its hard to decipher what its purpose is.
Maybe here is a good place to discuss what the description could be?

Yeah. Let's do this. Do you know what is web worker? It's a code which can be run in different thread to not lock main one with big computations.
So usually it can be run like this
var myWorker = new window.Worker('worker.js');
myWorker.onmessage = function(e) {
  console.log('Message received from worker');
}

But for this we should prepare worker.js and place it in folder near html.
worker-loader let's you just to import worker constructor and place it as usual chunk depending on configuration
import MyWorker from 'worker-loader!../ww/worker.js';
var myWorker = new MyWorker();
myWorker.onmessage = function(e) {
  console.log('Message received from worker');
}

Also there's inline mode which can place your worker inside bundle via string with or without chunks as a fallback.

Looks like this was addressed by #65. Thanks


If not run with root, try to install to ~/.local/bin

We could detect if the script is ran with root and if not, try to install it in to a local path that doesn’t require root.
Originally posted by @fushinari in https://github.com/installer/instl/issues/40#issuecomment-1028841918

Instl no longer requires root/sudo in v1.9.0 🎉


Remove flash detection

Fixes #235
This removes the attempt to detect if flash is available that was added in #26.
Instead, it attempts to initialize ZeroClipboard and also sets up the fallback. ZeroClipboard will be a no-op if flash is not available, in which case the fallback will already be configured. If flash is available, it will put a flash object over the button and the fallback will never get called.
I tested this with both flash enabled and disabled on IE 10 on Windows, and the latest Safari, Chrome and Firefox on the mac.
/cc @jonrohan @XhmikosR

Unfortunately I can't try it locally but if you tried it on IE10 without Flash installed and tabs switching worked it should be OK.

2 additions and 20 deletions.

Always for that. :+1:


investigate potential problem with firefox browsers breaking in asm.js code

related comments from grocy user, with sample barcode https://github.com/grocy/grocy/issues/749#issuecomment-633267729
With testing configured in cypress, we should be able to automate testing in firefox as well, will require some additional setup/configuration...

There may be issues in Chrome as well -- i've occasionally noticed a asm.js error in chrome recently.

I'm not incredibly worried about this, as it doesn't seem to affect the actual results.  If V8 and node are supporting asm.js now, then it'd be a lot easier to diagnose.
@Borvik could you maybe attach here a sample image that reproduces?  I'll add it to the test suite, and either maybe someday I'll figure out ASM.js or we'll have someone run across this that already knows it and can fix it :-D

Understood - yea, figured more info the better.
I think you are correct, it may not be too much of an issue for me, despite the error I am still seeing the barcodes come through.
As for which image is triggering it?  Not sure - we have a batch process that scans a lot of images, most of which don't have barcodes and use the barcodes to figure out where to put the images.  If I can narrow it down to 1 or 2 images, I'll try to post them.

That would be great.  I pretty much only use browser mode with LiveStream, so i'm not usually seeing this kind of stuff.

Ok, so I think it is this image.  This is the raw image I used before pre-processing and sending to quagga.  We actually the pre-processing and try to decode with multiple settings to get the best results.
We user sharp and smartcrop-sharp in pre-processing

Use sharp to do a composite with blend: 'colour-dodge' - helps try to make the barcodes to stand out more
Use smartcrop to crop to try and find the main subject of the photo - namely the barcode
Run through a number of quagga setting to try and get a result

Our base quagga call is:
Quagga.decodeSingle({
      inputStream: {
        mime,
        size: check.size // varied as part of a loop
      } as any,
      locator: {
        patchSize: check.patch, // varied as part of a loop
        halfSample: false
      },
      numOfWorkers: 0,
      decoder: {
        readers: formats
      },
      locate: true,
      src: file as any, // is actually a Buffer
      debug: false
    }, (result: any) => {
      // have result
    });
  });

Our attempts use the follow setting in the above call:
const CHECKS = [
  { size: 320, patch: 'x-large' },
  { size: 320, patch: 'large' },
  { size: 320, patch: 'medium' },
  { size: 400, patch: 'large' },
  { size: 800, patch: 'x-large' },
  { size: 800, patch: 'large' },
];

oh wow, you've done a lot of stuff!  so.. one question, @Borvik  what format is this barcode? :-)

Code 39

^^ above barcode doesn't decode in the Node tests using the default settings, so i'm adding it as another example of #191 where there are slightly different results between browser and node -- same settings work in browser test, apparently.
First EAN test in node, however, DOES present this issue with asm.js:

I just did a brief investigation, and i've found two things -- it's not occuring because of minifying (as we don't minify the node library), although the packing process may otherwise be making it invalid.  since the error doesn't occur on every run, it leads me to believe that something dynamic is failing, but i don't know what yet.
The other thing, is that according to a quick google, there's no hits for anyone else running into this message and wondering about it, or solving it, the only thing I got a link to was the V8 code that spits the error: https://github.com/v8/v8/blob/518ee01d390e26ca757e310b47c5f199b0552940/src/asmjs/asm-parser.cc#L435

... i'm sure someone with some experience in asm could figure this out, but i'm not likely to be the person picking that up -- WASM effectively replaces ASM.JS and ASM.JS is deprecated, so ... as long as it's not breaking anything (which it doesn't seem to do, as browser throws the warning but decodes the file just fine), i'm not touching it unless it's to replace it with something better/modern.
I will happily accept a pull request to repair this section if someone else figures it out, but my time spent maintaining this app is better spent elsewhere right now.

good news re: Asm.js error, sort of: asm.js error is basically a warning.  It just runs the code as javascript since it can't interpret it properly into what it's looking for.  bad news, although i can fix the one in this code, after i fix up several of them, i end up with one that the original author wrote which is also invalid, and i don't have any idea how to fix it, and information about asm.js is pretty sparse these days.

closing this in favor of porting/rewriting skeletonizer to wasm


Use ccm 2.6.0

@mshuler to review
Testing CI here: http://cassci.datastax.com/view/Dev/view/ptnapoleon/job/ptnapoleon-test-upgrade-dtest/1/console
(shouldnt be a serious change, is outside of the path of regular dtest usage)

+1


Operator plugins with Python

This is currently not implemented. It needs to be implemented.

It was implemented a few commits ago, but still needs to be tested, so this should stay open.

Closed through #82


Decrease the amount of generated TS types (performance issues)

Based on Discord conversation https://discord.com/channels/1043890932593987624/1095436601426972822/1095436601426972822

I'm also experiencing this issue. It makes drizzle impossible to work with tPRC in a midsize project.

I'd like to chime in here with the same issue - I'm working in a monorepo with drizzle and zod both (no trpc fyi), and with 7 schemas and ~88 total columns, intellisense takes up to 10s to load up (32gb ram, ryzen 9 5900hs). I think performance issues might be pretty important before the project (i.e. drizzle) gets too big 😅

I've started to have these problems with just 20 tables, maybe 10-15 columns each.

Coming back to check on this again, is anyone using this library on production already? And do they have more than 20 tables? If yes, how do they workaround the slow intellisense issue? Would be really great if we can get some insights here. So far, I'm only seeing lots of YouTubers and tweets talking about how better drizzle is, but it seems all those are just doing a small demo showcase which isn't really practical. Thanks!

We were desperate and tried various approaches:

Turned off all the VSCode extensions, restart and re-enabled the extension 1 by 1, performance didn't improve at all.
Tried WebStorm IDE, the intellisense shows up almost instantly most of the times, and up to 1.5s with a somewhat big schema.
Tried NeoVim, instant intellisense.

Hope this helps.

Same here, I have ~85 tables and Intellisense is suuuper slow in VS Code.

+1 here. Experiencing same issue.
Only have about ~10 tables, and the intellisense is really-really slow.

same here, 5~6 tables and already really slow, tried using the as string approach discused on Discord, but that breaks relations, I've removed it from some tables and then the performance was down again

Update from the Drizzle team: Tweet
"We'll make it a priority on Jul"

+1

How are people using drizzle with typescript running this slow? I keep seeing new projects and I feel like I am doing something wrong because in my experience drizzle is completely useless for a medium sized project

How are people using drizzle with typescript running this slow? I keep seeing new projects and I feel like I am doing something wrong because in my experience drizzle is completely useless for a medium sized project

My best luck has been with Webstorm with 8 or more gigs of ram.

Same here. I'm working with 15+ tables with around 10 columns each and multiple relations. my intellisense and typescript server crashes frequently.

I'd like to chime in here with the same issue - I'm working in a monorepo with drizzle and zod both (no trpc fyi), and with 7 schemas and ~88 total columns, intellisense takes up to 10s to load up (32gb ram, ryzen 9 5900hs). I think performance issues might be pretty important before the project (i.e. drizzle) gets too big 😅

bump it up to 128gb of ram

Well I guess I will hold off on migrating to drizzle, fearing it will be a waste of time if I can't work on the project once implemented 🫤

We've picked https://github.com/drizzle-team/drizzle-orm/issues/800 issue to be a tracking issue, so will close this on favour  of #800


RPC error: [create_index], <MilvusException: (code=1100, message=create index on 104 field is not supported: invalid parameter[expected=supported field][actual=create index on 104 field])>, <Time:{'RPC start': '2024-06-14 13:38:35.242645', 'RPC error': '2024-06-14 13:38:35.247294'}>

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
from pymilvus import (
Collection,
CollectionSchema,
DataType,
FieldSchema,
WeightedRanker,
connections,
)
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import PromptTemplate
from langchain_core.runnables import RunnablePassthrough
from langchain_milvus.retrievers import MilvusCollectionHybridSearchRetriever
from langchain_milvus.utils.sparse import BM25SparseEmbedding
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
import logging
logger = logging.getLogger("gunicorn.error")
texts = [
"In 'The Whispering Walls' by Ava Moreno, a young journalist named Sophia uncovers a decades-old conspiracy hidden within the crumbling walls of an ancient mansion, where the whispers of the past threaten to destroy her own sanity.",
"In 'The Last Refuge' by Ethan Blackwood, a group of survivors must band together to escape a post-apocalyptic wasteland, where the last remnants of humanity cling to life in a desperate bid for survival.",
"In 'The Memory Thief' by Lila Rose, a charismatic thief with the ability to steal and manipulate memories is hired by a mysterious client to pull off a daring heist, but soon finds themselves trapped in a web of deceit and betrayal.",
"In 'The City of Echoes' by Julian Saint Clair, a brilliant detective must navigate a labyrinthine metropolis where time is currency, and the rich can live forever, but at a terrible cost to the poor.",
"In 'The Starlight Serenade' by Ruby Flynn, a shy astronomer discovers a mysterious melody emanating from a distant star, which leads her on a journey to uncover the secrets of the universe and her own heart.",
"In 'The Shadow Weaver' by Piper Redding, a young orphan discovers she has the ability to weave powerful illusions, but soon finds herself at the center of a deadly game of cat and mouse between rival factions vying for control of the mystical arts.",
"In 'The Lost Expedition' by Caspian Grey, a team of explorers ventures into the heart of the Amazon rainforest in search of a lost city, but soon finds themselves hunted by a ruthless treasure hunter and the treacherous jungle itself.",
"In 'The Clockwork Kingdom' by Augusta Wynter, a brilliant inventor discovers a hidden world of clockwork machines and ancient magic, where a rebellion is brewing against the tyrannical ruler of the land.",
"In 'The Phantom Pilgrim' by Rowan Welles, a charismatic smuggler is hired by a mysterious organization to transport a valuable artifact across a war-torn continent, but soon finds themselves pursued by deadly assassins and rival factions.",
"In 'The Dreamwalker's Journey' by Lyra Snow, a young dreamwalker discovers she has the ability to enter people's dreams, but soon finds herself trapped in a surreal world of nightmares and illusions, where the boundaries between reality and fantasy blur.",
]
from langchain_openai import AzureOpenAIEmbeddings
dense_embedding_func: AzureOpenAIEmbeddings = AzureOpenAIEmbeddings(
azure_deployment="",
openai_api_version="",
azure_endpoint="",
api_key="*****",
)
dense_embedding_func = OpenAIEmbeddings()
dense_dim = len(dense_embedding_func.embed_query(texts[1]))
logger.info(f"DENSE DIM - {dense_dim}")
print("DENSE DIM")
print(dense_dim)
sparse_embedding_func = BM25SparseEmbedding(corpus=texts)
sparse_embedding = sparse_embedding_func.embed_query(texts[1])
print("SPARSE EMBEDDING")
print(sparse_embedding)
connections.connect(uri=CONNECTION_URI)
connections.connect(
host="",  # Replace with your Milvus server IP
port="",
user="",
password="",
db_name="*************"
)
print("CONNECTED")
pk_field = "doc_id"
dense_field = "dense_vector"
sparse_field = "sparse_vector"
text_field = "text"
fields = [
FieldSchema(
name=pk_field,
dtype=DataType.VARCHAR,
is_primary=True,
auto_id=True,
max_length=100,
),
FieldSchema(name=dense_field, dtype=DataType.FLOAT_VECTOR, dim=dense_dim),
FieldSchema(name=sparse_field, dtype=DataType.SPARSE_FLOAT_VECTOR),
FieldSchema(name=text_field, dtype=DataType.VARCHAR, max_length=65_535),
]
schema = CollectionSchema(fields=fields, enable_dynamic_field=False)
collection = Collection(
name="IntroductionToTheNovels", schema=schema, consistency_level="Strong"
)
print("SCHEMA CRAETED")
dense_index = {"index_type": "FLAT", "metric_type": "IP"}
collection.create_index("dense_vector", dense_index)
sparse_index = {"index_type": "SPARSE_INVERTED_INDEX", "metric_type": "IP"}
collection.create_index("sparse_vector", sparse_index)
print("INDEX CREATED")
collection.flush()
print("FLUSHED")
entities = []
for text in texts:
entity = {
dense_field: dense_embedding_func.embed_documents([text])[0],
sparse_field: sparse_embedding_func.embed_documents([text])[0],
text_field: text,
}
entities.append(entity)
print("ENTITES")
collection.insert(entities)
print("INSERTED")
collection.load()
print("LOADED")
sparse_search_params = {"metric_type": "IP"}
dense_search_params = {"metric_type": "IP", "params": {}}
retriever = MilvusCollectionHybridSearchRetriever(
collection=collection,
rerank=WeightedRanker(0.5, 0.5),
anns_fields=[dense_field, sparse_field],
field_embeddings=[dense_embedding_func, sparse_embedding_func],
field_search_params=[dense_search_params, sparse_search_params],
top_k=3,
text_field=text_field,
)
print("RETRIEVED CREATED")
documents = retriever.invoke("What are the story about ventures?")
print(documents)
Error Message and Stack Trace (if applicable)
RPC error: [create_index], <MilvusException: (code=1100, message=create index on 104 field is not supported: invalid parameter[expected=supported field][actual=create index on 104 field])>, <Time:{'RPC start': '2024-06-14 13:38:35.242645', 'RPC error': '2024-06-14 13:38:35.247294'}>
Description
I am trying to use hybrid search in milvus database using langchain-milvus library.
But when I created index for sparse vector field, it gives an error -
RPC error: [create_index], <MilvusException: (code=1100, message=create index on 104 field is not supported: invalid parameter[expected=supported field][actual=create index on 104 field])>, <Time:{'RPC start': '2024-06-14 13:38:35.242645', 'RPC error': '2024-06-14 13:38:35.247294'}>
I have tried milvusclient for create collection as well but that also gives me same error.
We have commited the implementation of hybrid search after finding langchain's document but it gives an error, we are stuck in middle now, so please resolve it as soon as possible.
System Info
pip freeze | grep langchain -
langchain-core==0.2.6
langchain-milvus==0.1.1
langchain-openai==0.1.8

Platform - linux

python version - 3.11.7

python -m langchain_core.sys_info
System Information

OS:  Linux
OS Version:  #73~20.04.1-Ubuntu SMP Mon May 6 09:43:44 UTC 2024
Python Version:  3.11.7 (main, Dec  8 2023, 18:56:57) [GCC 9.4.0]

Package Information

langchain_core: 0.2.6
langsmith: 0.1.77
langchain_milvus: 0.1.1
langchain_openai: 0.1.8

Packages not installed (Not Necessarily a Problem)
The following packages were not found:

langgraph
langserve

Aby Update on this?

Yes @KevinTsai0808 When upgraded to milvus docker to 2.4.x, the issue is resolved.

having the same issue with milvus lite. how can I fix?


Response object

Is your feature request related to a problem? Please describe.
Currently the REST/AJAX APIs only return raw data. REST responses are converted to JSON automatically.
Describe the solution you'd like
A consistent Response object to be able to return raw arrays and have them automatically converted into JSON etc.
Describe alternatives you've considered
Writing json_encode within the controllers
Additional context
Laravel returns a response object that automatically converts to JSON, HTML etc as required. Also a response helper method with the ability to add additional headers.

duplicated by #132


Postgresml and plpython3u cannot coexist

Tried both with my laptop (Apple silicon) homebrew postgresql-15 (with latest postgresml, master tip) and with the ghcr.io/postgresml/postgresml:2.8.2 image (also arm64).
Giving the docker steps:
docker run \
                   -it \
                   -v postgresml_data:/var/lib/postgresql \
                   -p 5433:5432 \
                   -p 8000:8000 \
                   ghcr.io/postgresml/postgresml:2.8.2 \
                   sh

apt update
apt install postgresql-plpython3-15
sudo -u postgresml psql -d postgresml

create extension plpython3u;
CREATE FUNCTION basic() RETURNS text AS 'return "hello"' LANGUAGE plpython3u;

And the Postgres server crashes
server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
The connection to the server was lost. Attempting reset: Failed.
!?>

I did not suspect the interaction at first, so I got deep into plpython; the crash happens in PLy_initialize, at the moment of calling PyImport_ImportModule("plpy"). Setting up memory debug says there is an allocation without holding the GIL. Importing any module crashes in the same way, and we never get to the plpy initialization function.
My suspicion is that the interpreter created by pyo3 and the one created by plpython use the same structures.

ah forgot to give the server log:
2024-05-26 15:25:54.722 UTC [111] postgresml@postgresml STATEMENT:  create extension plpython3u;
2024-05-26 15:26:43.614 UTC [28] LOG:  server process (PID 111) was terminated by signal 11: Segmentation fault
2024-05-26 15:26:43.614 UTC [28] DETAIL:  Failed process was running: CREATE FUNCTION basic() RETURNS text AS 'return "hello"' LANGUAGE plpython3u;
2024-05-26 15:26:43.614 UTC [28] LOG:  terminating any other active server processes
2024-05-26 15:26:43.618 UTC [115] postgresml@postgresml FATAL:  the database system is in recovery mode
2024-05-26 15:26:43.622 UTC [28] LOG:  all server processes terminated; reinitializing
2024-05-26 15:26:43.630 UTC [28] FATAL:  Can't attach, lock is not in an empty state: PgLwLockInner
2024-05-26 15:26:43.631 UTC [28] LOG:  database system is shut down

Take a look at  #931. We'll need to add a Mac config to use lld.

Ah, thanks for the prompt response! I searched for plpython in issues but not in PRs.
Puzzled, though, that it affects the ubuntu docker image, which #936 explicitly targets (even on aarch64)?

Tried on the Mac side to set
linker = "/opt/homebrew/opt/llvm/bin/lld"
rustflags = ["-C", "link-args=-undefined dynamic_lookup"]

and the behaviour is the same.

I'm not an expert on this, but pretty sure this is how you pass those args: https://github.com/postgresml/postgresml/pull/931/files#diff-baaeadb5ff4f591645577d7c7dd11631c67c4a6bdd23aca709d086c158fc4ed7R9

Yes, I passed the flags this way, I can tell they were used, and it did not solve the problem.

@PostgresML Team:
It seems that you are not experiencing the described issue.
Question:
Is there a docker file or docker yaml  or can you provide a script on how to build the extension correctly on Debian 12.5?
The documentation is a bit weak on many aspects.
I understand that you primarily want to sell your services, but community help is really appreciated.

Hi there,
Currently, we only support Ubuntu 22.04 for open source deployments due to limited resourcing on our side (we're a relatively young startup). For all other environments, we welcome contributions from the community (as well as for Ubuntu).
For the plpython3u issue specifically, there was a fix in the past that has been applied and seemingly worked at the time. None of us use plpython3u regularly (not since PostgresML 1.0 anyway), so we haven't had a chance to take a look at the problem. For this issue as well, we'd welcome a contribution from the community to trace the bug and submit us a patch.
Thanks!

Thanks for the open feedback. That's great!
Well I think that your extension could be an easy welcome for people touching ML for the first time, because it eliminates the fiddling around Python itself.
Before I can contribute to the project further than testing, I need to have it at least up and running on my side.
Two question:

Can you provide a docker file for building your complete ubuntu 22.04 docker images? Or is it already downloadable somewhere?
Will there be any functional differences between this MIT project here and your final commercial version?

Cheers,
James


Upgrade to Cypress 11

Description 📝
What does this PR do?
Upgrades Cloud Manager to use Cypress 11.
It doesn't seem like much has changed between Cypress 10 and 11, and most of the changes are focused on component testing rather than e2e testing.
How to test 🧪
yarn cy:run

I've run Cypress 11 locally and confirmed that our tests are still passing.

@mjac0bs I ran the tests one more time on this branch and didn't get any timeouts, so I'm going to assume those timeouts were unrelated to the Cypress 11 upgrade.
I do think Cypress itself is contributing to some of the slow network request issues we've been having, so this is something I'm continuing to look into!


Update harness-platform.md

Added DEL notes for January 5, 2022. The notes may be further modified based on PM/team review and the contributions of other writers.
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Hi @pratmit . If the next release is next week, we definitely have time. I have no intention to publish them tonight. I wrote the note so that a date could be swapped in if the relnotes need to go out the door sooner, but a specific date would certainly be better.

Moving this content into   to avoid merge conflicts and to publish all the Platform content at the same time. Closing this PR without merging it.


Add test for parameter sweep

Currently, if the developer does something "wrong" such as naming a flowsheet file differently than the ui export filename, parameter sweep in the UI will fail, showing the above error message. However, if the developer never tried running the sweep tool while tinkering with the UI, this would be an unknown issue and slip through the cracks.
While I know there aren't any tests in place yet for parameter sweep, rather than propose comprehensive testing, I think we should start with at least a test that (1) runs parameter sweep across some arbitrary variable on a flowsheet to make sure no exception is raised or (2) check file naming to make sure parameter sweep would run if invoked in the UI; we can assert that naming is in expected format (i.e., UI code filename matches flowsheet filename within same directory).

It might make sense to address the source of this issue directly rather than creating a test to enforce the rule.
The error occurs because of how we currently import the solve function from flowsheets. On the UI backend, we have access to the flowsheet export module, but not the flowsheet module itself. I was attempting to dynamically import the original flowsheet by taking the flowsheet export module and removing the “_ui” part of the file name. So if a flowsheet export file doesn't follow the _ui.py naming convention, an error is thrown.
I was under the impression that it was necessary to send the original solve function as a parameter in order to run the sweep (ie, the solve function inside the flowsheet module). However, it appears that I can use the flowsheet export’s solve function instead, so this dynamic import of the original flowsheet is unnecessary.
Rather than enforcing the naming convention by adding a test, I suggest that I make the change in the parameter sweep file to use the flowsheet export's solve function, removing the import of the original flowsheet.

handled in #129 and #133


False positive: invalid return type

{
    "fileName": "/vendor/spryker/spryker/Bundles/Search/src/Spryker/Zed/Search/Business/SearchFacade.php",
    "description": "\n      Zed Business Layer - Facade: The Spryker\\Zed\\Search\\Business\\SearchFacade::searchKeys() is using an invalid return type \"\\Elastica\\ResultSet|mixed|array Deprecated: Only `mixed` will be supported with the next major.\" which violates the rule \"Every Facade should only return native types or transfer objects.\"\n    ",
    "rule": "FacadeReturnValueRule",
    "ruleset": "Spryker Zed",
    "priority": "1"
},

is not true as deprecated code should not throw this issue

Soft deprecatio, I guess we cannot work around this for now


Bump Meta

Bump the meta repo version to include:
qiskit-terra==0.10.0
qiskit-aer==0.3.1

I've tagged this as on hold because I'd like to get an aer 0.3.2 out with: Qiskit/qiskit-aer#401 applied so we don't break a ton of people running with pip < 19.0. Also we need a new aqua release added to this that removes the terra cap so we can co-install aqua and terra 0.10.0.

Removing on hold, this should be good to go now with the aer 0.3.2 release


HDFS-16996. Fix flaky testFsCloseAfterClusterShutdown in TestFileCrea…

…tion

Description of PR
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 57s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
33m  3s

trunk passed

+1 :green_heart:
compile
1m 14s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
compile
1m  9s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
checkstyle
1m  7s

trunk passed

+1 :green_heart:
mvnsite
1m 20s

trunk passed

+1 :green_heart:
javadoc
1m  7s

trunk passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
1m 34s

trunk passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
3m 14s

trunk passed

+1 :green_heart:
shadedclient
22m 33s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
1m  4s

the patch passed

+1 :green_heart:
compile
1m  8s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javac
1m  8s

the patch passed

+1 :green_heart:
compile
1m  1s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
javac
1m  1s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 51s

the patch passed

+1 :green_heart:
mvnsite
1m  8s

the patch passed

+1 :green_heart:
javadoc
0m 49s

the patch passed with JDK Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1

+1 :green_heart:
javadoc
1m 23s

the patch passed with JDK Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

+1 :green_heart:
spotbugs
3m  5s

the patch passed

+1 :green_heart:
shadedclient
22m 14s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
246m 47s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
0m 50s

The patch does not generate ASF License warnings.

346m 55s

Reason
Tests

Failed junit tests
hadoop.hdfs.TestRollingUpgrade

hadoop.hdfs.server.datanode.TestDirectoryScanner

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5697/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/5697

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux c84549588336 4.15.0-206-generic #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 63d9955967a59dd3775ec7d00744b96419670e08

Default Java
Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.19+7-post-Ubuntu-0ubuntu120.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u372-ga~us1-0ubuntu1~20.04-b09

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5697/1/testReport/

Max. process+thread count
3212 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5697/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


Log/Auditing Service

This will be a very useful feature. Looking forward to this.
Please add any description or ideas or expected flow/outcomes on this issue.
Is it something related to where " we can manage all tenant-related logs from a single location"?
Thank you


Is there a limit of ten words for the test? How do I test text with more than 10 words?

Hi. When I ran the provided example, it works. But when I try to enter more words to test, the following error appears：
Traceback (most recent call last):
File "/Users/huxinyue/Documents/Programming/temphxy/datapreprocess/eval_npmi_etc.py", line 85, in
cp = palmetto.get_coherence(words, coherence_type="cp")
File "/Users/huxinyue/opt/anaconda3/envs/spherecluster/lib/python3.7/site-packages/palmettopy/palmetto.py", line 104, in get_coherence
return self._get_coherence(words, coherence_type)
File "/Users/huxinyue/opt/anaconda3/envs/spherecluster/lib/python3.7/site-packages/palmettopy/palmetto.py", line 91, in _get_coherence
coherence = self._request_by_service(words, coherence_type)
File "/Users/huxinyue/opt/anaconda3/envs/spherecluster/lib/python3.7/site-packages/palmettopy/palmetto.py", line 33, in _request_by_service
raise EndpointDown(request_uri)
palmettopy.exceptions.EndpointDown: http://palmetto.aksw.org/palmetto-webapp/service/cp?words=cake apple banana cherry chocolate chocolate chocolate chocolate chocolate chocolate chocolate

The web service that we host is limited to a maximum number of 10 words.
If you need coherence values for larger word sets, you need to host your own Palmetto service and configure it accordingly. Please have a look at the Palmetto wiki, especially at the part about the configuration.


Adding content and documentation on ANN , CNN and RNN

there should be three seperate folders for ANN, CNN and RNN in deep learning  which should include their documentation , functioning , hyperparameters and along with examples

I have some  examples and documentation. Can you please assign me so that I can pull request
please label it gssoc


Two apps with Firestore running at the same time crash Unity because of DB Lock

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.2.0b14.3668
Firebase Unity SDK version: 7.0.1
Source you installed the SDK: .unitypackage
Problematic Firebase Component: Firestore
Other Firebase Components in use: App, Auth, Analytics, Firestore, Storage
Additional SDKs you are using: None
Platform you are using the Unity editor on: Windows
Platform you are targeting: Editor (Android and desktop)
Scripting Runtime: (Editor) IL2CPP

[REQUIRED] Please describe the issue here:
I have 2 Unity Projects with 2 Firebase Apps: Android Client and Desktop Windows "Server". Both use Firestore DB.
If i try to run them simultaneously, the one that runs later will crash because the first one locks the Firebase Project Database files.
Steps to reproduce:

Create two projects.
Install Firestore to both of them.
Run both of them in parallel.
Observe a crash

100% repro rate?
Unity editor log:
ERROR: FIRESTORE INTERNAL ASSERTION FAILED: z:\build\work\80921a29dd0738241effef99016713332897\google3\third_party\firebase\ios\Releases\FirebaseFirestore\core\src\core\firestore_client.cc(187) void __cdecl firebase::firestore::core::FirestoreClient::Initialize(const class firebase::firestore::auth::User &,const class firebase::firestore::api::Settings &): Failed to open DB: Internal: Failed to open LevelDB database at C:\Users\USER\AppData\Local\firestore__FIRAPP_DEFAULT\firebase-project-name\main: LevelDB error: IO error: C:\Users\USER\AppData\Local\firestore__FIRAPP_DEFAULT\firebase-project-name\main/LOCK: Process can not get access to the file, because it's locked by another process
(expected created.ok())

Temporary workaround is to disable Persistence with:
FirebaseFirestore.DefaultInstance.Settings.PersistenceEnabled = false;

Temporary workaround is to disable Persistence with:
FirebaseFirestore.DefaultInstance.Settings.PersistenceEnabled = false;

Duplicate of #928
I think this is the same issue to #928. I'll close this issue as duplication. Please follow the other thread for updates.

Duplicate of #928
I think this is the same issue to #928. I'll close this issue as duplication. Please follow the other thread for updates.


Brew install failing

I'm not able to install landscape using brew. I'm getting the following error:
current directory: /usr/local/homebrew/Cellar/terraform_landscape/0.2.2/libexec/gems/string_undump-0.1.1/ext/string_undump
make "DESTDIR=" clean

current directory: /usr/local/homebrew/Cellar/terraform_landscape/0.2.2/libexec/gems/string_undump-0.1.1/ext/string_undump
make "DESTDIR="
make: *** No rule to make target `/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h', needed by `string_undump.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /usr/local/homebrew/Cellar/terraform_landscape/0.2.2/libexec/gems/string_undump-0.1.1 for inspection.
Results logged to /usr/local/homebrew/Cellar/terraform_landscape/0.2.2/libexec/extensions/universal-darwin-18/2.3.0/string_undump-0.1.1/gem_make.out

Sorry for the delay in response. Yes, you need Ruby 2.5 or newer so that String.undump is available.


When will proguard be upgraded to 7.4? It seems that it cannot support jdk 21 now.

https://github.com/JetBrains/compose-multiplatform/blob/abfd6c92e5441863ab07b5e235f1f8ac541ea22c/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/ProguardSettings.kt#L15

You can change the version in your build.gradle.kts using ProguardSettings.version property:
https://github.com/JetBrains/compose-multiplatform/blob/abfd6c92e5441863ab07b5e235f1f8ac541ea22c/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/ProguardSettings.kt#L20

Duplicate of #3818

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Search dialog should keep a history of searches

VSCode Version: 1.3.1
OS Version: Windows 8.1

Steps to Reproduce:

Go to the search dialog
Type something and search
Type something else and search
Try to type the first letters of the first thing you searched for

What is expected to happen?:
The text box should be a dropdown instead just like in VS2015's search box, or at least do some autocompletion according to your previous searches.

Related to #5508.

duplicates #5508


yolov4-tiny custom weights issue

Hi @jkjung-avt . I hope you are doing well. I am trying to convert my custom trained **yolov4-tiny model** but I am getting following error. I attached a cfg file. Can you help me with this ?
root@1bf3cb8ffb41:~/FastMOT/tensorrt_demos/yolo# python3 yolo_to_onnx.py -c 12 -m yolov4-tiny
Traceback (most recent call last):
  File "yolo_to_onnx.py", line 955, in <module>
    main()
  File "yolo_to_onnx.py", line 884, in main
    w, h = get_input_wh(args.model)
  File "/usr/src/app/FastMOT/tensorrt_demos/yolo/plugins.py", line 29, in get_input_wh
    h = w = int(yolo_dim)
ValueError: invalid literal for int() with base 10: 'tiny'

yolov4-tiny.txt

Please git pull the latest code of this repo.  You should not encounter such a problem with the latest code.
By the way, you could refer to this blog post of mine: TensorRT YOLO For Custom Trained Models (Updated).


Function annotation not supported?

https://github.com/obfuscator-llvm/obfuscator/wiki/Functions-annotations

It should work, I test it on llvm 7.
The inter-procedural obfuscation may not work for those functions that have annotation, so for better obfuscation result, you should not use those annotations.

Enable obfuscate globally will make our program runs very slow, obfuscate the sensitive part is strong enough for our case.

#define IROBF_ENABLE_FLATTENGING             __attribute((__annotate__(("fla"))))
#define IROBF_ENABLE_INDIRECT_BRANCH         __attribute((__annotate__(("indbr"))))
#define IROBF_ENABLE_INDIRECT_CALL           __attribute((__annotate__(("icall"))))
#define IROBF_ENABLE_INDIRECT_GLOBALS        __attribute((__annotate__(("indgv"))))

int b = 1;
int test(int a)
IROBF_ENABLE_FLATTENGING
IROBF_ENABLE_INDIRECT_BRANCH
IROBF_ENABLE_INDIRECT_CALL
IROBF_ENABLE_INDIRECT_GLOBALS
{
    if (a >= 0) {
        printf("a >= 0\n");
    } else {
        printf("a < 0\n");
    }
    return a + b;
}

clang -O2 -mllvm -irobf demo.c

You have to pass "-mllvm -irobf" to goron to enable the obfucation pass,then function annotation will do the trick. You still need to pass "-mllvm -irobf-cse" if you want to encrypt all c strings.

It works well. btw, is it easy to add clang 6.0 support?

It should be very easy to support clang 6, but I don't want to maintain too many branches.
One suggestion for getting stronger protection, you can compile you sensitive codes to a static library with all obfuscation passes enabled, configure your project to use this obfuscated library, then build your project with the official toolchain.


First run build_database.py then run bot.py
build_database.py will auto-generate the database for you

Delete the database.
First run build_database.py then run bot.py
build_database.py will auto-generate the database for you

He is first running build_database.py though? ( according to his post).
Am having the same issue.
have confirmed everything needed to be filled in is. All the checks i can do to confirm the details entered work.
But when i run build_databases.py i get the error
sqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) 1049 (42000): Unknown database 'informer_db'
If i create the DB myself i get
alchemy.exc.DatabaseError: (mysql.connector.errors.DatabaseError) 1007 (HY000): Can't create database 'informer_db'; database exists
So build_database.py isnt creating the database nor does it like one created for it.
@v1nc Did you find the problem since you closed the issue? I'm quite sure i must be doing something wrong or missing some detail


Update README claims

The README makes a number of performance claims which haven't been updated in 7 years, in the meantime the standard library has seen a number of improvements made to core concurrency primitives.  It would be nice to provide a more up-to-date description of why one may or may not want to use parking_lot.
Particularly this section

This library provides implementations of Mutex, RwLock, Condvar and Once that are smaller, faster and more flexible than those in the Rust standard library, as well as a ReentrantMutex type which supports recursive locking. It also exposes a low-level API for creating your own efficient synchronization primitives.

When tested on x86_64 Linux, parking_lot::Mutex was found to be 1.5x faster than std::sync::Mutex when uncontended, and up to 5x faster when contended from multiple threads. The numbers for RwLock vary depending on the number of reader and writer threads, but are almost always faster than the standard library RwLock, and even up to 50x faster in some cases.

As it's not clear whether those claims are still true.

They probably aren't true any more, at least on Linux and Windows where the standard library has a new implementation. If you're willing to re-run the benchmarks, I'll happily accept a PR which rewords the README.

Meanwhile without such benchmarks, it would be more honest to remove the claims than leave them stand, IMO.


Fix issue #2120

Caused since GeometryRefiner::FindInRGeom was not properly finding the cached refined geometries for points or segments, because of an inconsistent ETimes value.

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


Use app_type to be able to use Pgh kernels in pebbles

refs #49

Job VTB Documentation on d814bcd wanted to post the following:
View the site here
This comment will be updated on new commits.


onBlur event not triggered on dropdown close

Description
As the title says, the event onBlur is not triggered when closing the multi-select dropdown. The event fires once on page load but not again after
Repro Steps
Working - browser default - http://jsfiddle.net/m4ge2c3L/2/
Not working - materialize - http://jsfiddle.net/77bdofd9/2/

Catch the close event
https://github.com/Dogfalo/materialize/blob/master/js/forms.js#L652
http://codepen.io/anon/pen/xdgjyL


File scroll.d.ts is empty.

This type exports nothing. The file is empty.
https://github.com/CorpGlory/types-grafana/blob/master/app/core/components/scroll/scroll.d.ts
This is causing following error for me.
ERROR [karma]: Error: No source found for<EMAIL_ADDRESS>

@passionintellectual  I can`t support this repo yet.
I suggest you jest


ussd_advanced default setting subscriptionId -1

hello, I use your package but to select default setting of the sim it does not work. could you help me?

please ,it's urgent

@jonyCodeur I'm stuck on the same problem... let me know if you've fixed it


I want to save the processed photos to the album

This is a very good framework, I want to save the processed photos to the album, but can't find the corresponding method, I see the code is directly loaded View:
           let image = ImagePIX()
            image.image = self.myImage
            let edge = EdgePIX()
            edge.input = image
            edge.strength = 3
            edge.view.frame = myImageView.bounds
            self.view.addSubview(edge.view)

Can't get image information of edge.view

Hi, thanks!
You can get a UIImage from the .renderedImage method of a PIX.
Save code:
guard let image: UIImage = edge.renderedImage else {
    print("image not avalible")
    return
}
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil)

If the image is not available, you might need to wait until the image is loaded, like this:
edge.nextTextureAvalible {
    // save code here
}

Remember to add NSPhotoLibraryUsageDescription to your info.plist.

is very good!👍🏻


macos build error

Regarding the macos build error, since canvas does not handle the arm architecture, it cannot be built under macos.
Action error: https://github.com/XiaoDaiGua-Ray/ray-template/actions/runs/8998847301/job/24719784979#step:7:33
Related issue: https://github.com/Automattic/node-canvas/issues/2290

fixed now, please update code.


Generate hashid using string as input

Is it possible to create a short unique hashid from a string?
I need to generate a short id from uuid like 2b8b9396-0cdf-4b9c-a03d-b25e1d93601b

A UUID can be represented by an integer or a tuple of integers.
Never convert UUIDs to strings unless you really have to.

@fabiocaccamo If you are generating a shorter id from a larger string, won't that break the one-to-one assumption of encode/decode since multiple uuids will map to the same id.

@pmsoltani I understand the security reasons, but I think that security is a problem of the developers and not of this library.
If a developer stores a password in plain text or using hashid it is no longer a problem of the framework neither of the library.
For example, in django if you have a model where the primary key is a uuid, you could need to hashid it if you don't wont to expose it directly, so this feature would be just a plus.

@pjdon don't forget that a uuid is an hex string and contains only a-f0-9 characters.

@fabiocaccamo That's a good point, the uuid can be shortened. But, you then have to supply a description of the input format to the encoder.
I guess you've already solved the problem, you can convert the uuid to a unique integer and hash and id from that.

@pjdon why you should supply the input format? A 36 or 32 (without -) chars length hex string could be easily detected using a RegExp.

@fabiocaccamo I deleted my comment because I realized I had nothing substantial to add.
You would have to pass a regexp to the encoder so that it knows to ignore the dashes and treat each character as a hex. I think string conversion is useful but it's too much overhead for the devs, and taking only integers is a better entry point.

@fabiocaccamo I understand your point, but unfortunately, not everyone knows enough about security to even know that they are doing something unsafe. Hence, I agree with the developers' decision.
Regarding the use case you mentioned:

For example, in django if you have a model where the primary key is a uuid, you could need to hashid it if you don't wont to expose it directly, so this feature would be just a plus.

As I understand it, exposing the primary key can be a bad choice, usually because it may leak internal business logic to the users; e.g. http://example.com/checkout?order=1223, from which an attentive user can infer some information about the size of the business. But UUID is obscure enough and does not have the weakness mentioned, so why not expose it?

@fabiocaccamo Sorry for never responding here. I will not add any additions that aren’t generally supported by other implementations.
Since a UUID is basically a 128bit number, you could pass it as suggested by @thedrow.
Thoughts? I will close this for now.


Got 401 with correct creds\url

Hi! Im new in vscode, and previously worked with android studio. I tried to configure gerrit for my project, but unsuccessful, got Unauthorised.
There is my vscode config:

There is my android studio config with successful result:

And there is vscode connection check result:

I found that plugin makes get request to http://gerritadress/a/config/server/version (found it in logs):

But i have no access to this endpoint with my account.. And i dont understand why plugin tries to reach this endpoint, because AS plugin requested only url from config.
Can you help me with this?

I'm pretty sure you should always have access to ${yourGerritURL}/a/config/server/version if you have configured your username and password correctly. As far as I know, any logged-in account has access to that endpoint. This is the reason why it's requested, to check whether you have API access at all, without potentially making a request to something that might be access-restricted.
Can you check whether you can access the URL in your browser? It should work since gerrit remembers your logged-in account. If not, can you check whether you can access ${yourGerritURL}/a/changes/ (remember the trailing /). You should definitely be able to make this request since that just shows you your changes.

I'll close this issue since it seems to be stale

I get the same message (401 unauthorized) as mikitakalinovsky.
From a browser, ${yourGerritURL}/a/config/server/version downloads a version.json file, and ${yourGerritURL}/a/changes/ downloads a download.json file, which is a .json summary of my changes. We may have an additional layer of security that is needed for vscode v the browser

Are you sure your username and password are correct? Can you maybe replicate the request in something like postman to isolate what is going wrong? Could indeed be that there's an additional layer of security but theoretically the /a endpoint uses the exact same logic as the HTTP API.

I've tried to login about 50 times with the same creds I use to login using the browser, so I think I've gotten that right at least once. We have SSH keys setup for our server, and my experience with other IDEs and their plugins has been the SSH key password is required to complete the connection. I also tried this (vscode) plugin with a password-less ssh key setup, with the same negative result. I do understand this is a simple http get test, so I'm not sure why it would fail either. If time permits, I'll try to diagnose with postman, as you suggest, but I'll need to get postman installed by our IT team first. Lastly, our gerrit server is apparently 3.3.3, and I see this plugin supports gerrit 3.4 or later (https://github.com/SanderRonde/VSCode-Gerrit/issues/35)

Are you sure the password you use to log in to gerrit is also the password used for the HTTP credentials (so the one over at /settings/#HTTPCredentials)? It is indeed possible the use the SSH key too, but functionality of the SSH API is very limited compared to the HTTP API. Indeed the minimum version is 3.4, maybe 3.3.3 works too but I'm not too sure since I haven't tested it.


Provide setting to ignore .gitignore for Go To File (Quick Open)

I have looked at existing issues. #70595 is similar, but I believe it may have been marked as duplicate by mistake, as it's slightly different.
I would like to be able to define a setting which allows for "Go To File" (Quick Open) to include indexing files excluded by my .gitignore files.
I have a global config to ignore node_modules and other files, but I also have some data files our project generates, which we don't want to commit. They are included in our .gitignore, and I'd like to be able to find them when using Quick Open.
Related to https://github.com/Microsoft/vscode/issues/70595
Not asking for a button, but a setting.
I wish to change this setting on a workspace basis.

See also #15604 though unlike yours that one isn't for a per-workspace setting.

I assumed any setting could also be per-workspace. Is that not the case?

Also, I don't want to turn off ALL exclusions, just those in my .gitignore. I still want the ones defined in settings to apply.

Does search.useIgnoreFiles work for you?

Let me check that and get back to you today.

This works. My worry was that this would then go ahead and index node_modules, but it seems to not be doing that.

Those are excluded by default in the search.exclude setting.


home-assistant extraComponents "starlink" fails at runtime because of missing "starlink_grpc" dependency

Describe the bug
A clear and concise description of what the bug is.
Steps To Reproduce
Steps to reproduce the behavior:

Configure home-assistant

  services = {
    home-assistant = {
      enable = true;
      openFirewall = true;
      configWritable = true;
      config = {
        default_config = {};

        http = {
          server_host = [
            "<IP_ADDRESS>"
          ];
        };
      };

      extraPackages =
        python3Packages:
          with python3Packages; [
          ];

      extraComponents = [
        "starlink"
      ];
    };
  };

nixos-rebuild
check home-assistant logs

Setup failed for 'starlink': Unable to import component: No module named 'starlink_grpc'
Traceback (most recent call last):
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/setup.py", line 322, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/loader.py", line 996, in async_get_component
    self._component_future.result()
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/loader.py", line 976, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/aav6i2sih47qjwz0shpl4mmpp877v16k-python3-3.12.3/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/loader.py", line 1036, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/util/loop.py", line 144, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/aav6i2sih47qjwz0shpl4mmpp877v16k-python3-3.12.3/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/components/starlink/__init__.py", line 10, in <module>
    from .coordinator import StarlinkUpdateCoordinator
  File "/nix/store/xmd4wgr1imr96431h81ral37v5aqxkq8-homeassistant-2024.5.0/lib/python3.12/site-packages/homeassistant/components/starlink/coordinator.py", line 11, in <module>
    from starlink_grpc import (
ModuleNotFoundError: No module named 'starlink_grpc'

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
nix-shell -p nix-info --run "nix-info -m"
/nix/store/558iw5j1bk7z6wrg8cp96q2rx03jqj1v-stdenv-linux/setup: line 114: sopsImportKeysHook: command not found
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.30, NixOS, 24.05 (Uakari), 24.05.20240505.25865a4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/3pif36ks3f56py4wb1dkq6sh0nkf3ygj-source`

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

I was planning on submitting this, but haven't had time to clean it up for inclusion. If anyone wants to run with it, feel free!

starlink user here, what needs to be done to fix this issue? any ideas?

Here's a link to the stuff I had: https://github.com/qbit/xin/blob/d1891e7dd0066cd1a46daf57f1e65ceced510f3a/pkgs/starlink-grpc.nix
I don't have starlilnk anymore, but that should be enough to get someone started :D


[api] Allow setting different basepath to adapt to running in a reverse proxy environment.

Allow setting different basepath to adapt to running in a reverse proxy environment.

Implemented as part of #1104


nacos_manager.go,line:77, maybe you could delete this line?

fmt.Println("config changed group:" + group + ", dataId:" + _dataId)

fmt.Println("config changed group:" + group + ", dataId:" + _dataId)

You can post this PR.


Only gltf import 3D model can work!

Godot version:3.2.1 stable
OS/device including version: window
Issue description:
Godot import Blender model really gets big pain !!!!
So many issues!
I try many ways, only gltf can work, fbx or dae can not work!
But gltf not work perfect, when I import animation I made in Blender, it just fill the wrong key frame on animation!!!
And I need to disable the rigfy add-on in Blender!!! To rig Character step by step on hands!
When I reimport the glb file in godot at many times, the 3D model will disappear!
It just let me feel some hopeless, I don't understand, Godot Engine seem not work well on 3D Character!!!
Steps to reproduce:
Once you made a easy 3D model in Blender, and try to make animation export to Godot Engine.

@wijat Please upload a minimal reproduction project to make this easier to troubleshoot.

If you drop a blender file, I could find time to debug the gltf2 export.

@wijat Please upload a minimal reproduction project to make this easier to troubleshoot.

I uploaded it.

I cannot export a gltf from blender 2.83 dailies. I think the problem is related to rigify needed to bake animation and remove itself.

I use Blender 2.82

I work it on with Blender Riggify add-on, It needs to give material and need to select the rig and mesh when export gltf. But the animation still not same as Blender, It still will change a little position on Godot.
Here my situation:

There are two possible bugs that can cause this.
One is for 2.83 and the other is for 2.9.
https://github.com/KhronosGroup/glTF-Blender-IO/issues/700
https://github.com/KhronosGroup/glTF-Blender-IO/pull/880

I tried using Blender 2.9 and a branch that was based on a recent version of godot engine 3.2.

Can you still recreate the bug?

I can't reproduce the bug on Blender 2.9 and a branch that was based on a recent version of godot engine 3.2.


How to connect auth with OpenAPIHono ?

I'm trying to do it this way:
const create = createRoute({
  tags: ["auth"],
  method: "post",
  path: "/api/auth/**",
  request: {
    body: {
      content: {
        "application/json": {
          schema: {
            name: z.string(),
            email: z.string().email(),
            password: z.string(),
          },
        },
      },
      description: "Register user",
      required: true,
    },
  },
  responses: {
    200: {
      description: "Registered user",
      content: {
        "application/json": {
          schema: z.object({
            id: z.string(),
            name: z.string(),
            email: z.string().email(),
          }),
        },
      },
    },
  },
});

const app = new OpenAPIHono<AppBindings>({
    strict: false,
    defaultHook,
  });

app.openapi(routes.create, auth.handler(c.req.raw));

But I still have TS errors in the last line:
Argument of type 'Promise<Response>' is not assignable to parameter of type 'Handler<AppBindings, "/api/auth/**", {}, MaybePromise<TypedResponse<{ name: string; email: string; id: string; }, 200, "json" | "text">>>'.
(...)

Has anyone tried to glue this together yet?

You shouldn't do that. Instead, use the OpenAPI plugin provided by Better Auth. If you want to merge them, you can merge the objects instead.

Thanks for the advice, is there a way I can somehow connect this to my endpoints? I also use the Scalar library and keep everything under /api/reference it would be nice to have the endpoints from auth as well

Hi, I'm working with the same stack and I'm not 100% sure how to achieve merging the 2 objects... How can I retrieve the schema object from better-auth OpenAPI plugin?
@Malin88 have you achieved a good result? Thanks in advance!

@Bekacru a small mistake in the documentation. This function in the code is called openAPIGenerator

@Bekacru a small mistake in the documentation. This function in the code is called openAPIGenerator

oh sorry about that. we should rename it to generateOpenAPISchema in the next release tho.


Make consistent types reported by the runtime with the types in the Suggestions Database

related #6715
Runtime type representation report static types with the .type suffix. In contrast, the suggestions database has the is_static flag instead. This creates inconsistencies in the language server API.
TODO

Append .type suffix to static types in the Suggestions Database
Verify that search/completion works with .type suffix when asked for the statics methods
(Optional) Remove the is_static field as not needed anymore

Given https://github.com/orgs/enso-org/discussions/6762#discussioncomment-5992601 is this task still valid?

I updated the description.

TODO section still mentions adding .type to the Suggestion Database.

After the discussion with @Frizi, we decided that besides the method pointer, the IDE needs to know the list of arguments expected by the function.
I updated the task description

The #6903 should fix expression updates for partially applied constructors.


Create FunctionLeafPreImage class for serialisation

This class will serve as the mirror class to FunctionLeafPreImage in c++. It is used for serialising data in the computation of function tree leaves.

Closing as this is now moved to done


Workspace - Plaid process auto starts after adding a personal bank account

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: Team can not verify production
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Navigate to https://staging.new.expensify.com/
Create a workspace
Navigate to settings - wallet
Click on the "Enable wallet" button
Complete the process with Chase bank
Navigate to the workspace settings
Click on the "Bank account" button

Expected Result:
Plaid process shouldn't start without clicking on it's button.
Actual Result:
Plaid process auto starts after adding a personal bank account.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/be51e2ff-732e-402f-967c-799a11d4dc43
View all open jobs on GitHub

Seems a backend issue where for wallet OpenPlaidBankAccountSelector api it sets the unwanted reimbursementAccount BankAccountStep data.

As OpenPlaidBankAccountSelector common for reimbursementAccount bank account setup and wallet bank account flow, we can pass an extra param which can help to decide whether to set reimbursementAccount BankAccountStep or not.

Seems a backend issue where for wallet OpenPlaidBankAccountSelector api it sets the unwanted reimbursementAccount BankAccountStep data

This is an old change though (~ 1 year) so I would guess either the same happens on production or a more recent frontend change causes this.
A code comment says:

If there are accounts, then return the processed list of bank accounts as well as the owners in case of withdrawal setup.

Sounds like the expectation is that we would just land in the Add bank account page with the accounts already available in the selector? cc @nkuoch who might remember for sure.
The frontend for this has not been changed since the last deploy so I think this is a non-blocker. The last material changed looks to be here. So, maybe we introduced some regression about how this works.

Checking in VIP-Split


[2.2.0] modules/sdl.so: undefined symbol: sdl_window_to_zval

$ php -n -d extension=modules/sdl.so -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/sdl.so' (tried: modules/sdl.so (modules/sdl.so: undefined symbol: sdl_window_to_zval), /usr/lib64/php/modules/modules/sdl.so.so (/usr/lib64/php/modules/modules/sdl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.22 (cli) (built: Aug 28 2019 03:01:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

I am not seeing any of that @remicollet .
With stock php:
santiago@optiplex:~/workspace/phpext/sdl$ php -n -d extension=modules/sdl.so -v
PHP 7.3.8-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Aug  7 2019 09:52:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies

With my debug version of PHP:
santiago@optiplex:~/workspace/phpext/sdl$ php -n -d extension=modules/sdl.so -v
PHP 7.3.8 (cli) (built: Aug 28 2019 00:35:50) ( ZTS DEBUG )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies

Bear in mind I am using PHP7.3 and not 7.2 as you are. Although in the package.xml PHP7.2 is the minimum declared version I am really targeting 7.3 and that reference should be updated.

Vanilla build use RTLD_LAZY, so undefined symbol will raise segfault on runtime (when used)
My build (RPM) use RTLD_NOW, so undefined symbol raise this error sooner, at load time.
$ grep sdl_window_to_zval *
glcontext.c:	sdl_window_to_zval(SDL_GL_GetCurrentWindow(), return_value);
keyboard.c:	sdl_window_to_zval(SDL_GetKeyboardFocus(), return_value);
mouse.c:	sdl_window_to_zval(SDL_GetMouseFocus(), return_value);
window.h:zend_bool sdl_window_to_zval(SDL_Window *window, zval *z_val);

You can see this symbol is defined in window.h, and used, but doesn't exist.
P.S. also see https://derickrethans.nl/undefined-symbol.html
P.S. starting with 7.4, you can build using --enable-rtld-now which is useful for dev / debug build.

Bear in mind I am using PHP7.3 and not 7.2 as you are.

Same issue with 7.3.9

This should no longer be a problem with v2.2.2. Thanks for reporting this!


Sme improvements for the training part source code

Hello,
In the main function in "turtlebot3_machine_learning/turtlebot3_dqn/nodes/turtlebot3_dqn_stage*_", there are some possible improvements for the code:

The code line if e % 10 == 0: could be better outside the loop for t in range(agent.episode_step), otherwise only the last operation would be valid since the e value has no change.

https://github.com/ROBOTIS-GIT/turtlebot3_machine_learning/blob/017741602c4356827eb09ca5caa2c84dc01d74fa/turtlebot3_dqn/nodes/turtlebot3_dqn_stage_1#L183

In the original code, the update of the target network happens once the episode is done but not every target_update. Thus it is better to move rospy.loginfo("UPDATE TARGET NETWORK") to if done:. Or if we need to update it every target_update, the code line agent.updateTargetModel() should be need to be moved after if global_step % agent.target_update == 0:.

https://github.com/ROBOTIS-GIT/turtlebot3_machine_learning/blob/017741602c4356827eb09ca5caa2c84dc01d74fa/turtlebot3_dqn/nodes/turtlebot3_dqn_stage_1#L209
https://github.com/ROBOTIS-GIT/turtlebot3_machine_learning/blob/017741602c4356827eb09ca5caa2c84dc01d74fa/turtlebot3_dqn/nodes/turtlebot3_dqn_stage_1#L192

Thanks in advance! :)
Nan

Hi @nanli42,
Thanks for your contribution.
I will test it and tell you.
Thank you for your interest.
Gilbert.

@nanli42
Thank you for your comments. We will take them into consideration when we release the next update (ROS 2 Dashing Diademata)
Thank you very much,
Ryan


Examples not working properly with Oculus

Environment

Source of VRTK: I think Github, been a while since I downloaded it.
Version of VRTK: 3.3
Version of Unity3D: 2018.1.0f2
Hardware used (e.g. Vive/Oculus): Oculus
SDK Oculus Utilities 1.27

Steps to reproduce
I loaded up the constructor scene. Then I opened up the straight pointer scene.
Expected behavior
Thought pointer would follow the hand position.
Current behavior
The pointers appear when I touch the top of the Oculus joystick. They do not follow the controllers, rather appear to be coming out from behind me, straight at the robot.   The same happens when I try the BezierPointer example.  The pointers seem to be coming out from behind my head.
Are there specific versions that we need to be using?
Vive seems to be working Ok.

Have a look at this issue
https://github.com/thestonefox/VRTK/issues/1819

Constructor scenes is examples only and has been removed in the latest master AFAIK.
Warnings about missing scripts in the example scenes come from you not importing all supported SDKs (the example scenes are set up to work with everything). Ignore them in there but set up your SDK Manager properly in your own project.
For additional help join  because you can instantly get answers instead of waiting on here. It's also way easier for troubleshooting in general. GitHub issues are only useful for proper bug reports with steps to reproduce in an example scene like the Issue Template requires.

Hi bddckr
I've tried to get help on Slack, not getting a lot of attention on my post. I'm really sorry for continuing to post here.
I propably should have have said that I have been working on an app using VRTK.  I have my app working with Vive.  But, when I plugged in my Oculus, that's when I started to see odd behavior.  Which is why I started trying to look at the sample scenes.  In both my app and the example scenes, the Oculus controllers are not tracking properly. I have ensured that my Oculus is setup properly and ran a different Oculus app. Seemed to work fine.
Is there possibly a setting, or a method to configure Oculus that I may have missed?  Or am I wrong in my assumption that I can unplug my Vive, plug in my Oculus and the example scene ( straight pointer ) should just work without any modifications?
From my understanding I have everything I need.

Version of VRTK: 3.3
Version of Unity3D: 2018.1.0f2
Hardware used (e.g. Vive/Oculus): Oculus
SDK Oculus Utilities 1.27

I greatly appreciate your help!!!

If you're having config issues, then you need to use slack or stack overflow with the vrtk tag. This is for bug reports

Fixed in latest github master


Batch small changes

Only 2 changes worth mentioning

[Tooltip] Reduce enterDelay to 100ms 3770a99: The motivation is first to reduce the impact of the initial change from 0ms to 200ms. The second motivation is to match Ant Design and the feeling I get from the Material Design specification. I initially didn't take the delay JS runtime (React) and the animation introduces into showing the tooltip.
Improve the GitHub issue template 41d65c1:

removes the following label:

removes an intermediary link when using the "Support" item, similarily to what Next.js has

Thanks @timneutkens for the tip on Twitter.

[Tooltip] Reduce enterDelay to 100ms

Separate PR please since it affects actual components.


Fixing code typo found by Evan

https://twitter.com/EvanitoJ/status/978351108858015745
What's changed, or what was fixed?

fixing typo in code (missing brace)

Fixes: #issue
Target Live Date: YYYY-MM-DD

[ ] This has been reviewed and approved by (NAME)
[ ] I have run gulp test locally and all tests pass.
[ ] I have added the appropriate type-something label.
[ ] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 2 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/fundamentals/media/capturing-images/index.md#L48 - Common typo found: 'android' Should it be 'Android'? See: https://developers.google.com/style/word-list#android
src/content/en/fundamentals/media/capturing-images/index.md#L5 - WF Tag 'wf_updated_on' must be within the last 7 days.

:tada: This has been pushed live to https://developers.google.com/web/


Add display surface support

This stack of changes allows the atw_vulkan demo to run on PowerVR devices.
It's not the greatest rework in the world because building for DisplaySurface is not possible at the same time as, e.g. xcb. I'll do some more work in the future to allow runtime-selection of the presentation.
I've split the pull request into a few commits so if you start with the oldest commit and review them one-by-one it should make life easier.

 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.


USB support in WSL2

Is your feature request related to a problem? Please describe.
I'm always frustrated when i connect a USB and i want to use USB and its is not supported
Describe the solution you'd like
When i plug any USB it should work as normal. Like i can access any file stored in it.
Describe alternatives you've considered
NOPE
Additional context
Need support in USB on Insiders preview latest on 11/07/2020
Version	10.0.20161 Build 20161

Microsoft says specifically in here that there is NO USB SUPPORT FOR WSL
So you could stop trying and use real Linux instead :))
there are some hack such as USB-over-IP but may not work on some devices.
I also am desperately looking for a way to use joystick in my ROS Gazebo but there is no way :'(

either they close this issue or but this in back log
lets see

/dupe #2195


Numexpr as optional dependency

I think a lot of the CPU side of inference and training could be sped up by using numexpr (https://github.com/pydata/numexpr) instead of plain numpy. I have some simple benchmarks in this notebook that indicate that 2x-20x speedups are possible on larger arrays:
https://mihirparadkar.github.io/numexpr/Python array computations and the need for speed.html
From the numexpr documentation, the speed-ups come mainly from not allocating temporary arrays for every numpy function, and from being able to use multiple threads. It's another dependency, but I think it could be an optional one like CuPy. I also don't believe there should be any breaking API changes.
I'll be working on a PR, but I wanted to hear some feedback first.

Being implemented in #4395.


Simplify namespace

This change consolidates the two maps on the namespace into one while preserving the O(1) add/delete operations. I realized after introducing the linked list the second map was no longer needed.
I've also added an atomic to track the closed state and the namespace no longer allocates a new map when being closed per suggestion by @codefromthecrypt. addModule has been renamed to setModule and its signature updated to return an error because its no longer safe to add a module who's name has not already been created. The rest of the methods which did not return an error have become no-op after the namespace is closed. Happy to revise that if they should be updated to return errors.
Added test cases for closed namespaces to ensure namespace.go still has 100% coverage.

fyi there's a bug in the GHA workflows, and now fixed on the main branch, so could you rebase onto main so we can run all the jobs on the CI?


static interfaces completely broken

This code results in backend errors:
class Foo {
    shared static interface Bar {}
    shared new() {}
}

Ceylon backend error: modifier static not allowed here

Perhaps the problem is that the backend is adding a static modifier, when that is implicit in Java.

I can't reproduce. That example works for me.

@FroMage Try in Eclipse.

Works for me in Eclipse with the 1.3.2 plugin.

I'm using the 1.3.3 snapshot.

I don't see how the IDE could have broken this between 1.3.2 and now. Especially when the backend works.

I'll try though, but it's super weird.

An additional data point: it only happens on clean builds, not on incremental builds.

That's even weirder.

I mean, it's self-contained, there's no other type to make incremental different.

My bad: to reproduce the bug it is necessary to have a .java source file somewhere in the project. Mine had no class defined in it, so I figured it was irrelevant.

OK let's try.

OK that makes a lot more sense then, I know where it can be.

fixed.

Thanks.


Deprecate FO_Planner

We would like to deprecate the FO_Planner in favor of a more unified and performant way of doing How Learning. There are several issues related to the FO_Planner's continued existence.

Here is a start: https://github.com/DannyWeitekamp/numbert

Although this solution will have a couple non-critical hiccups until these get fixed in numba:
https://github.com/numba/numba/issues/5723
https://github.com/numba/numba/issues/5713

We decided that we are not going to deprecate the FO Planner for now but we will discourage using it going forward.


Background color is not interpreted correctly

Hi,
the background color is not interpreted correctly.
For example, when the background color is white (#FFFFFF), it is interpreted as #FDFDFD.
I would like to know how to get a completely white background.
Does anyone know what can happen?
html2pdf().from(innerHtml).set({
	            margin: 1,
	            filename: fileName+'.pdf',
	            image: { type: "jpeg", quality: 1},
	            jsPDF: {orientation: 'portrait', unit: 'in', format: 'letter', compressPDF: false},
	            pagebreak: {mode: ['avoid-all']}
            }).save().then(function () {
            	console.log("finish!");
            });

Thanks!
web.pdf

So the html element is:

Content of this pdf

PDF: #FDFDFD

So the html element is:

Content of this pdf

PDF: #FDFDFD

Right!

any progress? got same issue.It seems will happen to last node. for me, the background turns to
#fdfdfd
Dashboard Report(20190905) (6).pdf

I'm seeing the same issue with colors not loading.  For example, I have  items rendering down the page all with the same styling from a stylesheet, but it seems to run out of steam and the  elements just lose all their styling.  Is there a solution for this?

I'm seeing the same issue with colors not loading.  For example, I have  items rendering down the page all with the same styling from a stylesheet, but it seems to run out of steam and the  elements just lose all their styling.  Is there a solution for this?

The solution from @Bagu3tte saved my day
90% of the css applied correctly after turning down scale to 1

I'm seeing the same issue with colors not loading. For example, I have

items rendering down the page all with the same styling from a stylesheet, but it seems to run out of steam and the
elements just lose all their styling.  Is there a solution for this?

I'm seeing the same thing! I have a card with a background color that doesn't render at the bottom of the PDF but does render at the top!


std::sync::ONCE_INIT is deprecated

std::sync::ONCE_INIT is deprecated which leads to warnings when building.
Would be great, if this could be replaced.
Built with
rustc 1.38.0-nightly (6e310f2ab 2019-07-07)
Reproducible by building the example from readme.md.
This results in the following warning:
warning: use of deprecated item 'lazy::std::sync::ONCE_INIT': the new function is now preferred   --> src/inline_lazy.rs:14:9    | 14 | pub use self::std::sync::ONCE_INIT;    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^    |    = note: #[warn(deprecated)] on by default

ONCE_INIT won't actually be deprecated for another two releases.
We should just add a targeted allow(deprecated) to its use of ONCE_INIT. There's not much point in bumping the MSRV from 1.24 to 1.31 just so Once::new can be used.

Sorry for commenting on a closed issue...
I am  wondering whether you considered using https://github.com/dtolnay/rustversion
So if the rustc version is 1.31 or newer use Once::new otherwise use ONCE_INIT
Or something.
Thanks for maintaining lazy_static


Fix mellon metadata generate command

Modify this link to include the branch name, and possibly the page this PR modifies:
https://osc.github.io/ood-documentation-test/develop/authentication/adfs-with-auth-mellon.html
Add your description here
Relevant discussion in https://discourse.osc.edu/t/ood-1-8-and-saml2-and-adfs-authentication/1137

Thanks! I'm so sorry I forgot about updating this.

No worries. Finally found myself some time.


Added initial support for Int8 Quantization and AbsmaxQuantizedLinear

Added initial support for int8 quantization using absmax method
The quantize method is separate but added a check in setattr to auto convert the weight if its not int8.
Partially address #13

Is there already some internal work for quantization? Was looking to start messing with gguf methods, but since this pr hasn't seen any comments from maintainers I am wondering if theres something else happening

@dc-dc-dc Thanks for this PR. We are working on some lower level quantization operations. And the API for using them is still a bit TBD so that's why we haven't merged this.  Also, we observed in early testing that without a proper kernel you don't get much gain from quantization.  Have you done any performance benchmarking (memory use / speed) with your quantization layers?
As for this PR we can leave it open for now and revisit once we have the ops ready, but I'll leave that up to you. It might be better for you to wait on the ops before adding more quantization stuff to avoid us stepping on your toes. But if you aren't worried about that, feel free to keep at it, happy to keep looking at any contributions related to quantization!

Makes sense, yeah this quant method is a low hanging fruit, reduces the memory consumption of llama on my M2 a good amount. Q4_0 would have to be done in C++, with a kernel for dequant/matmul but given that it requires more changes I wanted to check in before trying to push something. Will wait to see what the api looks like and go from there

Closing this as we added something similar in #230 (if you have any suggestions / comments on that let us know!)