Cocopod 1.1 doesn't output colors

Using Xcode 7.3 cocopods. I added Rainbow in the Podfile per your README. I also remembered to import RaindobowSwift (vs Rainbow). Now, when I try to use it, type-ahead shows me the colors so I know the class is being read. However, no text comes out colored. (ie print("hello myself".red) just prints "hello myself" in the normal console color. I feel like xcode is somehow overriding the coloring maybe.
Ideas?
PS I am in a bridged obj-c/swift project if that's a clue. However, I am only trying this from the Swift side without luck...

Did you try to output the string into a console (like Terminal or iTerm) or just use it inside the Xcode?
If you are using it in Xcode, you may need an Xcode plugin to enable the color rendering inside Xcode's console panel. You could find more in the first paragraph and the "Question" section in the read me file.

Thank you for your help thus far:

I am only using it inside Xcode. No 3rd party console.
I am not using XCodeColors plugin, so why do I need the environment variable?

The console of Xcode does not support colorize the log by default, so you need a third party plugin (XCodeColors) to render colorful output in Xcode.

It just doesn't work, idk problem in pod or in XcodeColor plugin. Xcode Version 7.3.1, no 3rd party consoles.


Export / Download Fail when project has no features

On creating a "clean" data collection in QGIS (e.g. a GeoPackage with fields and a attributes form created but no features), it is possible to covert the project to a QFieldCloud project using the "Convert currently open project to cloud project (recommended)" OK. However, it is not possible to download this project to QField with app displaying a download error. The Jobs on QFieldCloud for the failed Export report:
WARNING:QGIS_STDERR:QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
INFO:__main__:Failed to obtain the project extent from project layers.

However, if I create a feature in QGIS and sync with QFieldCloud all works fine. There might have been a step in project creation which I've missed here.
@nirvn - I've added you to "simple-project" in QFieldCloud which demonstrates this in case you want to take a closer look.

Hey, @jmad1v07, seems you can already download you project on your QField device? Thanks for reporting this, please reopen if you find new issues. Thanks for testing QFieldCloud.

Hey, @jmad1v07, seems you can already download you project on your QField device? Thanks for reporting this, please reopen if you find new issues. Thanks for testing QFieldCloud.


docs(theme): add alpha color pallets

📝 Description
Adds color pallets for Social Media from the default theme that were missing in the docs.
📝 Additional Information
Awaiting PR #452 to be merged before updating search-meta.json

Hi @TylerAPfledderer! We plan on removing these colors in the future versions. That means we don't need to document them for the time being. Let me confirm with the team and I'll get back to you.

@TylerAPfledderer confirmed. We're going to remove the social colors in the next major release. You can add the Alphas, but I'd also recommend to add a line of text below the "Alphas" title saying "Toggle the site's color mode to see the colors.", because the white alphas on light mode don't have any effect.

@TylerAPfledderer is this ready to be reviewed?

@TylerAPfledderer is this ready to be reviewed?

I can unlock it for review. Can't update the search meta until the PR for that filepath fix is merged.

@nikolovlazar this is fine now to review. I manually updated the search-meta regen so it is up-to-date. 👍🏼 ⚡

Awesome! Looks like it's ready to be merged. Just take care of the conflicts first and let me know.

I'm sorry, @TylerAPfledderer. Your other PR produced new conflicts 😅

Try again @nikolovlazar!


Make scale methods per trigger internal

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Microsoft.Azure.WebJobs.Extensions.EventHubs


Fixed cli terminated problem on Windows

This issue is caused by execa settings.
On Windows, do not create a new console window. Please note this also prevents CTRL-C from working on Windows.

Hi @motopods thank you for the PR. Could you fix the CI? The PR title must be prefixed.


gateway request size limit 1024B because netty default limit 1024,how to solve it?

my log:
2018-10-02 09:29:34.344 [reactor-http-server-epoll-23] DEBUG reactor.ipc.netty.http.server.HttpServer - [id: 0x76395002, L:/<IP_ADDRESS>:30001 - R:/<IP_ADDRESS>:45976] REGISTERED
2018-10-02 09:29:34.344 [reactor-http-server-epoll-23] DEBUG reactor.ipc.netty.http.server.HttpServer - [id: 0x76395002, L:/<IP_ADDRESS>:30001 - R:/<IP_ADDRESS>:45976] ACTIVE
2018-10-02 09:29:34.345 [reactor-http-server-epoll-23] DEBUG reactor.ipc.netty.http.server.HttpServer - [id: 0x76395002, L:/<IP_ADDRESS>:30001 - R:/<IP_ADDRESS>:45976] READ: 1024B
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 50 4f 53 54 20 2f 73 65 72 76 69 63 65 31 2f 61 |POST /service1/a|
|00000010| 75 74 68 2f 6f 61 75 74 68 2f 74 6f 6b 65 6e 20 |uth/oauth/token |
|00000020| 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 |HTTP/1.1..Host: |
...
...
|000003c0| 5a 77 3d 3d 0d 0a 55 73 65 72 2d 41 67 65 6e 74 |Zw==..User-Agent|
|000003d0| 3a 20 50 6f 73 74 6d 61 6e 52 75 6e 74 69 6d 65 |: PostmanRuntime|
|000003e0| 2f 37 2e 33 2e 30 0d 0a 41 63 63 65 70 74 3a 20 |/7.3.0..Accept: |
|000003f0| 2a 2f 2a 0d 0a 0d 0a 7b 22 63 6f 64 65 22 3a 22 |*/*....{"code":"|
+--------+-------------------------------------------------+----------------+

my code:
@Override
	public GatewayFilter apply(Object config) {
		return (exchange, chain) -> {
			ServerHttpRequest request = exchange.getRequest();
                        ...
			String code=null;
			String randomStr=null;
			String clientId=null;
			MultiValueMap<String, String>  paramsMap = request.getQueryParams();
			if("POST".equalsIgnoreCase(request.getMethodValue())
					&& (paramsMap ==null || paramsMap.isEmpty())
					) {
				Flux<DataBuffer> body = request.getBody();
				AtomicReference<String> bodyRef = new AtomicReference<>();
				body.subscribe(dataBuffer -> {
					log.info("dataBuffer:");
					CharBuffer charBuffer = StandardCharsets.UTF_8.decode(dataBuffer.asByteBuffer());
					DataBufferUtils.release(dataBuffer);
					bodyRef.set(charBuffer.toString());
					log.info("charBuffer:"+charBuffer.toString());
				});
				String bodyStr = bodyRef.get();
				log.info(bodyStr);  //here is  {"code":"
				log.info(request.getHeaders().get(HttpHeaders.CONTENT_LENGTH).toString());
				JSONObject json = JSONUtil.parseObj(bodyStr); //here is JSONException, because data is truncated

I want read  data from request exactly, but I only read a piss of data which is incomplete.
have i any other method to solve this?

It's only the default chunk size. Any amount of data may be streamed. You've not given enough context as to what you are going and what you expect to happen.

It's only the default chunk size. Any amount of data may be streamed. You've not given enough context as to what you are going and what you expect to happen.

Hi,I have updated my ISSUE. I want read  data from request exactly, but I only read a piss of data which is incomplete. have i any other method to solve this?

Hi , I also have this problem. Have you solved it?

Hi , I also have this problem. Have you solved it?

The code above assumes the subscribe method is only called once and is not called asynchronously which is not true.  There are filters in the gateway that read and manipulate the body already.  Why can you not use those?

how to use ModifyRequestBodyGatewayFilterFactory and ModifyRequestBodyGatewayFilterFactory.config？you give me is the source code,not a case.
I made a mistake in using it.

Show us how you tried using it via a sample and then we can try and help.

https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-sample/src/main/java/org/springframework/cloud/gateway/sample/GatewaySampleApplication.java

How to get the get / post parameter values simultaneously in this case.readBody only supports post
@ryanjbaxter @spencergibb

Take the code you have and place it in a complete application that we can run and either put it in a git repo or attach it as a zip.

How to get the get / post parameter values simultaneously in this case.readBody only supports post

Why would a GET request have a body?

Custom filter can not read body, readBody method can not read get parameters, how to read post / get data in a filter.
Thank you

We've pointed you at the samples. A custom filter can read the body and parameters. I'm not sure what else we can do to help.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

ServerRequest serverRequest = new DefaultServerRequest(exchange);
Mono modifiedBody = serverRequest.bodyToMono(String.class).map(s -> {
//修改body
return s;
});
BodyInserter bodyInserter = BodyInserters.fromPublisher(modifiedBody, String.class);
HttpHeaders tempHeaders = new HttpHeaders();
tempHeaders.putAll(exchange.getRequest().getHeaders());
tempHeaders.remove(HttpHeaders.CONTENT_LENGTH);
CachedBodyOutputMessage outputMessage = new CachedBodyOutputMessage(exchange, tempHeaders);
return bodyInserter.insert(outputMessage, new BodyInserterContext()).then(Mono.defer(() -> {
Flux body = outputMessage.getBody();
AtomicReference bodyRef = new AtomicReference<>();
body.subscribe(buffer -> {
String re = new BufferedReader(new InputStreamReader(buffer.asInputStream()))
.lines().collect(Collectors.joining(System.lineSeparator()));
bodyRef.set(re);
});
DataBuffer buffer = response.bufferFactory().wrap(bodyRef.get().getBytes());
Flux fluxBack = Flux.just(buffer);
ServerHttpRequestDecorator decorator = new ServerHttpRequestDecorator(exchange.getRequest()) {
@Override
public HttpHeaders getHeaders() {
long contentLength = headers.getContentLength();
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.putAll(super.getHeaders());
if (contentLength > 0) {
httpHeaders.setContentLength(contentLength);
} else {
httpHeaders.set(HttpHeaders.TRANSFER_ENCODING, "chunked");
}
return httpHeaders;
}
@Override
public Flux getBody() {
return fluxBack;
}
};
//bodyRef.get() 下面做业务处理
return chain.filter(exchange.mutate().request(decorator).build());
}));


⚠ Adacta-fintech.com has degraded performance

In 9bbeff9, Adacta-fintech.com (https://www.adacta-fintech.com) experienced degraded performance:

HTTP code: 200
Response time: 2488 ms

Resolved: Adacta-fintech.com performance has improved in 3013746.


use anonymous interceptor

Why?

@sahat why polute the namespace?

Ok, I just couldn't understand why change it without any sort of description. The satellizer.js file is going to be replaced by new typescript branch soon.
https://github.com/sahat/satellizer/blob/typescript/src/httpProviderConfig.ts
https://github.com/sahat/satellizer/blob/typescript/src/interceptor.ts
In this case would I need to replace 'SatellizerInteceptor' string with an actual Intereceptor.js class import reference?
constructor(private $httpProvider: angular.IHttpProvider) {
    $httpProvider.interceptors.push('SatellizerInterceptor');
}

@sahat yes.


Support pnpm audit

I have a PNPM Monorepo. When I run ash on it, it uses npm audit which requires a package-lock.json which my project does not have. I have a pnpm-lock.yaml. Please support PNPM projects and use pnpm audit. Thank you!

Hey @bestickley, ASH should now use pnpm when appropriate with PR #66. Please clone the latest changes and try again when you get a chance.

Thank you, @awsntheule, I'll try to get to this next week.

@bestickley, have you had a chance to confirm your issue is fixed?

Confirmed this worked by seeing aggregated_results.txt:

Begin pnpm audit output for /src >>>>>>

No known vulnerabilities found
<<<<<< End pnpm audit output for /src <<<<<<
Thank you, @awsntheule !


[ENH] Add Full ETS forecaster

Reference Issues/PRs
See also #2244

What does this implement/fix? Explain your changes.
Adds full functionality to ETS model. Adds additional tests for this. Removes default argument form BaseForecaster.forecast method, as it is required to call BaseForecaster.fit(). Add code to verify ETS Forecaster against stats model.

Does your contribution introduce a new dependency? If yes, which one?
It uses the statsforecast package to test against, it is optional

Any other comments?

PR checklist

For all contributions

[x] I've added myself to the list of contributors. Alternatively, you can use the @all-contributors bot to do this for you.
[x] The PR title starts with either [ENH], [MNT], [DOC], [BUG], [REF], [DEP] or [GOV] indicating whether the PR topic is related to enhancement, maintenance, documentation, bugs, refactoring, deprecation or governance.

For new estimators and functions

[ ] I've added the estimator to the online API documentation.

@TonyBagnall


Display owners of projects as "channels"

Requested by @hsauro
We should make it easy to filter for projects associated with specific "channels" such as

Model repositories
Scientific consortium
Institutions

Only specific accounts should be able to post content to specific channels. E.g., only BioModels should be able to publish to the BioModels channel.
One option is to associate channels with a subset of accounts that are granted a specific permission (e.g., channel:Projects). These accounts can either be users or machine accounts. This would limit each project to being a member of a single channel.
Alternatively, we could make this more flexible so that projects could belong to multiple channels. To prevent accounts for publishing into each other's channels, we'd have to grant accounts permissions to publish to specific channels. This seems more complicated. This also seems like it would mix up ownership, topic, and/or curation I think are best left separate.

Handled this using Auth0 organizations. Model repository and other users and clients can be assigned to organizations and their names will now be displayed in https://biosimulations.org. Auth0 doesn't directly support organizations for clients. This information is stored in custom metadata.

Organizations have been created for model repositories. Additional organizations could easily be created with a few button clicks. Added FAQs about how to request an organization.

:tada: This issue has been resolved in version 7.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


How to replace the database name of where condition of query according to Java configuration variables before generating SQL?

How to dynamically replace the table name of where condition during execution?

As stated in the issue template, we use GitHub Issues only to track bugs and feature requests.
Please post your question to the mailing list or Stack Overflow.
And when you do, you should show some code or an example project to help other users understand what you are trying to achieve.
Stack Overflow has an excellent guide: https://stackoverflow.com/help/how-to-ask
Thank you!


Final tasks iS2S

Here is the final list of iS2S

[ ] Making variations in the hyperparameters are important to determine which parameters are contributing to making generalizations. Please, don't forget to experiment with different parameters.
[ ] Please generate a set of recommendations to enhance the AutoEncoder architecture. Do we need to train more? Do we need to train better? Is there any aspect of the Code2Vec research that we can employ at all?
[ ] Could you please elaborate on the idea of using AutoEncoders to embed non-compiled code? In which scenarios these AutoEncoders are useful?
[ ] The paper should reflect the topics explained in your presentation. Make sure to include the main aspects that you explain there in the discussion section.

Thank you for letting me know. I will try to address as many as tasks as I can.
However I am currently focusing on the other project (deadline also on Monday morning), as well as grading students' homework, I will try my best.


Trying to load mesh_semantic_semantic.ply instead of mesh_semantic.ply

❓ Questions and Help
I am trying to get the data from the semantic sensor but it seems that the simulator is loading a mesh file with a different name. Hence, the loading is failing. I am correctly passing the file name in the source file. Can you please point out where I might be going wrong? The error log is mentioned below.
W1030 21:54:12.197676 15167 ResourceManager.cpp:310] ResourceManager::loadScene : Not loading semantic mesh - File Name : data/scene_datasets/replica/apartment_0/habitat/mesh_semantic_semantic.ply does not exist.

 The legacy importer is expecting you to load the RGB render asset: mesh.ply which will be modified with the additional _semantic.ply to search for the semantic asset.

For replica, this is fine/expected.  The semantic annotations are baked into the render mesh (when not using PTex).

A stage configuration file can also be used to explicitly specify the assets and prevent this automated path searching.

Thanks, erikwijmans and aclegg3. The loading issue doesn't make any difference and the output looks fine. But the problem is while I am trying to get the semantic annotations using semantic_annotations(), the semantiLevel returns an empty list. So, there are no annotations available in this.
I am using the print_scene_recur function from  to display the values. Could you please let me know what might be the issue? I am doing this for Replica dataset.

There aren't level annotations for the replica dataset, just object annotations.

Thanks, erikwijmans for the reply. Could you please provide the exact syntax to get the object annotations? I am trying to adapt the function available here but I am unable to do.

scene.objects will give you the list of all the objects in the scene.

I am using the following code to get the objects.
for obj in scene.objects:         print(             f"Object id:{obj.id}, category:{obj.category.name()},"             f" center:{obj.aabb.center}, dims:{obj.aabb.sizes}"             )
But it seems the obj are NoneType as I am getting the following error.
AttributeError: 'NoneType' object has no attribute 'id'

Just skip those.  The object IDs in Gibson aren't contiguous (like MP3D and replica), but it is convenient if list index == object id, so we padded Gibson with None

Thanks, erikwijmans for the reply. I think there is confusion. I am using Replica, not Gibson. But still, I am getting None.

It seems the objects ids aren't contiguous for Replica as well. I skipped the None type id and still, there was some None type in the semantic category as well. After skipping both of them, I could get the category name. Here is the workaround which worked for me.
for obj in scene_annot.objects:                     if obj != None:                         if obj.category != None:                             print(f"Object id:{obj.id}, category:{obj.category.name()},"                             f" center:{obj.aabb.center}, dims:{obj.aabb.sizes}"                             )
Thanks, erikwijmans for the help.

I a confused if I am doing everything correctly. The semantic ouptut and the labels I am getting doesn't seem to match. I am getting the semantic map, rgb image and depth as displayed below. But I am getting a long list of semantic labels for the output which seems to not appear in the image. The labels are:
{'faucet', 'rug', 'basket', 'cushion', 'refrigerator', 'indoor-plant', 'blinds', 'pillow', 'mat', 'sink', 'door', 'window', 'lamp', 'comforter', 'wall', 'toilet', 'switch', 'bed', 'wall-plug', 'bathtub', 'book', 'shower-stall', 'picture', 'floor', 'cooktop', 'panel', 'bottle', 'desk', 'vase', 'cabinet', 'major-appliance', 'pot', 'nightstand', 'cup', 'countertop', 'wall-cabinet', 'handrail', 'stool', 'rack', 'ceiling', 'table', 'plate', 'chair', 'vent', 'base-cabinet', 'stair', 'sofa', 'plant-stand', 'curtain'}

Please guide me if I am interpreting something incorrectly.

How are you getting the labels?  scene.objects is not updated based on current agent position.

I see. I might be getting the wrong labels. By the way, I am getting the labels by accumulating all the object's category.name() from the scene.objects. What are these labels signify then?
If I want to get the labels of the object only that the agent can see depending upon the current position, what should I do?

Those are all the labels of all the objects in the entire environment
object_ids_in_view = np.unique(semantic_sensor_output)

Many Thanks, Erik!
I think I can get the required labels now.


Which image is default?

I am building x86 image ant it has a few version in the download page: generic-ext4-combined-efi; generic-ext4-combined ; generic-squashfs-combined-efi etc
Which ones equivalent is built? ext4 or squashfs; efi or non efi variant? Is there a way of setting it in the profile section or anywhere else?

It depends on the ImageBuilder image (https://hub.docker.com/r/openwrt/imagebuilder/tags) that is derived from the profile you set.
I only played with the ARM images so far but can patch the default .config using config.sed file. You can find an example in this repo that excludes ext4 image for ARM (to speed up the build).
When you build the image it should list all the generated file in the console.
I can point you to the right places if you share a repo.


fix run tests

cc @ohanhi some how cat never failed and didn't work correctly on my machine. would you mind testing this on your machine?

hmmm. travis is sad.

I'm going back to hard code the number again (for now).


[bzip2] Build error on x64-windows-static

Copy issue body from C:/tools/vcpkg/installed/vcpkg/issue_body.md
vcpkg install tesseract:x64-windows-static
Computing installation plan...
The following packages will be built and installed:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>vcpkg-cmake-config:x64-windows@2022-02-06#1
vcpkg-cmake-get-vars:x64-windows@2023-12-31
<EMAIL_ADDRESS><EMAIL_ADDRESS>Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static...
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\EM\AppData\Local\vcpkg\archives in 581 us. Use --debug to see more details.
Installing 1/20<EMAIL_ADDRESS>Building<EMAIL_ADDRESS>-- Using cached bzip2-1.0.8.tar.gz.
-- Cleaning sources at C:/tools/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/tools/vcpkg/downloads/bzip2-1.0.8.tar.gz
-- Applying patch fix-import-export-macros.patch
-- Using source at C:/tools/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean
-- Configuring x64-windows-static
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/tools/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
Working Directory: C:/tools/vcpkg/buildtrees/bzip2/x64-windows-static-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-dbg-CMakeCache.txt.log
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-rel-CMakeCache.txt.log
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
ports/bzip2/portfile.cmake:20 (vcpkg_cmake_configure)
scripts/ports.cmake:170 (include)
error: building bzip2:x64-windows-static failed with: BUILD_FAILED
Elapsed time to handle bzip2:x64-windows-static: 1.5 s
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+bzip2
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[bzip2]+Build+error+on+x64-windows-static&body=Copy+issue+body+from+C%3A%2Ftools%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Error code: 1
See logs for more information:
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-dbg-CMakeCache.txt.log
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-rel-CMakeCache.txt.log
C:\tools\vcpkg\buildtrees\bzip2\config-x64-windows-static-out.log

Please provide the complete log file.


use query-don + usage in the browser

Use query-dom for parsing instead of a homegrown DOM.
R = @iefserge
T = patch

@kesla why are the node names capitalized? what's the advantage of this? I'd argue this makes it harder to read, and easier to mistype 'a' instead of 'A'.

@iefserge it's to be compatible with the browser dom. Might not be needed for the getElementsByTagName stuff - but for .tagName I think it makes sense to be compatible with the browser dom.

@kesla I just tried in Firefox document.querySelector('html').tagName and got html as a result.

@iefserge hey, thanks a lot for looking up. That's super weird. I'll update this with something nice.

@iefserge RFR

@iefserge hey! Would love it if you could review this :)
Not only is this using query-don now - it's also compatible with the browser! :dancers:

@kesla  looks great!

Thank you sir!


Dynamic USB enum and Wifi tab crash fix

I`ve reverted the Wifi crash fix, Rachit seems to have a wider crash coverage on a different pull request


DiffText is too similar to Search

Is your feature request related to a problem? Please describe.
DiffText looks exact same as Search which can get really confusing
Describe the solution you'd like
Want DiffText highlight to be changed. I think it should be markedly different from other common highlights like Search. May be to something purple-y or blue-y.
Describe alternatives you've considered
I am able to override in my config to an (ugly) purple that I chose myself. But I would like someone with a professional eye to choose a color and benefit the entire user base.
Additional context
Here's the problem in a diff (invoked by git fugitive):

The DiffText highlight is surrounding the vf (I added spacing around it).
The Search higlight is sf (I search for sf using /)

Notice how it is super confusing at first glance because you don't know which is which without thinking and checking.

moving this to the diff discussion


Touch handling frequency on iOS sometimes 30Hz

Issue details
Frequently, the frequency at which touchDragged events can be triggered on iOS seems to drop to 30Hz, even if graphics are rendering at 60fps. It can make the framerate of an app feel slow, even though the rendering isn't the problem.
It appears somewhat random whether or not the events come at ~30 or 60 "frames per second".
It seems to be a known challenge, even beyond libgdx: https://forums.developer.apple.com/thread/62315
Reproduction steps/code
Move a Sprite 1:1 with a touch.
Count touch events via:
boolean processedTouch;
float nextFrameTouchCountSave = 1f;
int frameTouchCountPerSecond;
int frameTouchRunningCount;

@Override ... touchDragged(...) {
  processedTouch = true;
}

draw() {
  // Check if any touchDragged events were passed since the last draw()
  if (processedTouch) {
    processedTouch = false;
    frameTouchRunningCount++;
  }

  nextFrameTouchCountSave -= deltaTime;
  if (nextFrameTouchCountSave <= 0f) {
    // We've counted for 1 second. Save the current running count, and start a new count.
    frameTouchCountPerSecond = frameTouchRunningCount;
    frameTouchRunningCount = 0;
    nextFrameTouchCountSave += 1f;
  }
}

Constantly drag the object in circles on your iPhone.
See that "frameTouchCountPerSecond" could sometimes be ~30, sometimes ~60, even if Gdx.graphics.getFramesPerSecond() returns 60.
Version of LibGDX and/or relevant dependencies
1.9.6
Please select the affected platforms
iOS (robovm)

Trying to debug this with a simple standalone iOS app, it seems the rate slowdown is introduced once you have a CADisplayLink (with preferredFramesPerSecond at 60) telling the GLKView to display().
    let displayLink = CADisplayLink(target: self, selector: #selector(MainViewController.executeRunLoop))
    displayLink.preferredFramesPerSecond = 60
    displayLink.add(to: RunLoop.current, forMode: RunLoopMode.defaultRunLoopMode)

...

func executeRunLoop() {
    glkView.display()
}

func glkView(_ view: GLKView, drawIn rect: CGRect) {
    glClearColor(0, 0.5, 0, 1)
    glClear(GLbitfield(GL_COLOR_BUFFER_BIT) | GLbitfield(GL_DEPTH_BUFFER_BIT))
}

I can also easily repro with a similarly simple CAMetalLayer example.
Running out of ideas of how this could be fixed :(

I think in the meantime, I'll just not try to move things 1:1 with touches, and instead have them move quickly towards the touch instead.
I'm still holding hope that there may be some clever way to ensure iOS always delivers the touchesMoved at 60Hz, though.

I also re-summarized everything I've tried in this StackOverflow post (including other details I didn't post here): http://stackoverflow.com/a/42797101/1593999

Closing as it's an old issue and as OP says it's probable iOS related.


feat(app): Add login prompt to profile settings and make page responsive

The page seems to be fully responsive, the only issue I am noticing is that the size of the headers + subeheaders need to be smaller. They currently do not fit on smaller screens.
I also noticed a bug. It seems that if the cap of the number of preferences has been reached, then it is not possible to edit a preference and save the changes. Currently, one has to first delete one, and then add a new one.

The page seems to be fully responsive, the only issue I am noticing is that the size of the headers + subeheaders need to be smaller. They currently do not fit on smaller screens.
I also noticed a bug. It seems that if the cap of the number of preferences has been reached, then it is not possible to edit a preference and save the changes. Currently, one has to first delete one, and then add a new one.

This issues are resolved now.


⚠ Bofrost.at has degraded performance

In c82d6bd, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1418 ms

Resolved: Bofrost.at performance has improved in d57fffd.


Initial support for the HIAC Liquid Particle Counter

This PR adds initial support for the HIAC Liquid Particle Counter.

@chrisfriedline-benchling is possible to confirm whether this output is coming from the PharmaSpec software?
PharmaSpec is the software that is used in conjunction with the HAIC particle counter. Keeping with the adapter naming convention this should be the "PharmaSpec" adapter rather than the "HAIC particle counter" adapter.

@LimulusPolyphemus - it's PharmSpec v3.0.

@chrisfriedline-benchling going back to the old comment, we should update the name to beckman_pharmspec for consistency with the other adapters.

@chrisfriedline-benchling going back to the old comment, we should update the name to beckman_pharmspec for consistency with the other adapters.

Done.

@chrisfriedline-benchling let me know if it is helpful to meet and discuss the calculated data document and data source document

I think this should be good now.

@chrisfriedline-benchling the calculated data documents look good.
The only issues I see are that (i) The data source feature should be the keyword for the value being referenced as an input (e.g. particle size, cumulative count, cumulative particle density)
(ii) The calculated data name should include the label column header for the average, e.g. "Average_Particle_Size" instead of just "Average" since this will present challenges for distinguishing between the Average values when converting these back to a .csv

Fixed.


Fix error in ockam_transport_tcp docs

The following lines should be deleted, as there is no bind method in the TcpRouter struct:
https://github.com/ockam-network/ockam/blob/develop/implementations/rust/ockam/ockam_transport_tcp/src/router/mod.rs#L206-L207

The crate layout has changed quite a lot so I've also committed a fix for this in the antoinevg/ga_review_ockam_transport_tcp branch


Proxy sync broken by SDS changes

https://github.com/istio/istio/pull/50183#issuecomment-2030188128
I assume from https://github.com/envoyproxy/envoy/commit/907e48ef5a48d2cfce2b4050c0e1d4498372c0e7
Looks like we are sending removes for SDS, and the cluster ends up stuck warming.
We assert Secret is not supplied by SDS, but we get no healthy upstream. I think the UH is because we switch from EDS to STRICT_DNS, but remove the endpoints from EDS (oops? might be its own subtle bug).
cc @ericvn @keithmattix

istiod sends a remove because the sidecar doesn't have k8s rbac access to the secret so it's signaling to the sidecar/sds client that the secret is unavailable. Before https://github.com/envoyproxy/envoy/commit/907e48ef5a48d2cfce2b4050c0e1d4498372c0e7, this indeed would've resulted in the "Secret is not supplied by SDS" error, but now the cluster would just remain warming. I'll update the tests

In SotW why does it get "Secret is not supplied by SDS" instead?
If we did not send a 'delete' but just never responded, would it be 'Secret is not supplied by SDS' for Delta?

This is TLS origination with a DR cert coming from istiod; wouldn't that be the delta flow?

I mean prior to 2 months ago when we used SotW everywhere
On Mon, Apr 1, 2024 at 1:43 PM Keith Mattix II @.***>
wrote:

This is TLS origination with a DR cert coming from istiod; wouldn't that
be the delta flow instead of SotW?
—
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/issues/50186#issuecomment-2030523432, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXKL7QDHFCDREHNU2FTY3HBH3AVCNFSM6AAAAABFR6FN62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGUZDGNBTGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ah yeah SotW would result in that error even now. The SotW version of the SDS request looks like resources: [] which results in the missing SDS secrets error. Now that we're using delta, this looks like: updated: [], removed: [kubernetes://...] which is ignored

Behavior on the test:
SotW: UH for 15s, not cert after
Delta pre-change: no cert provided immediately
Delta post change: UH forever
This seems unexpected

envoyproxy/envoy#33362 should fix this

This is fixed


Update Readme with URL options

The Readme would be more clear with the baseurlinput options. This could be added below the runinput options.
- `urlbaseinput`: An integer selecting the overall data source. Options include:
  - 0: "",  # Empty
  - 1: "https://nomads.ncep.noaa.gov/pub/data/nccf/com/nwm/prod/",  # NOAA hosted operational output
  - 2: "https://nomads.ncep.noaa.gov/pub/data/nccf/com/nwm/post-processed/WMS/",  # not functioning
  - 3: "https://storage.googleapis.com/national-water-model/",  # authenticated access to Google buckets
  - 4: "https://storage.cloud.google.com/national-water-model/",  # open-access to Google buckets
  - 5: "gs://national-water-model/",
  - 6: "gcs://national-water-model/",
  - 7: "https://noaa-nwm-pds.s3.amazonaws.com/",  # 4 week rolling AWS short range
  - 8: "https://ciroh-nwm-zarr-copy.s3.amazonaws.com/national-water-model/",  # operational Kerchunk json archive

README.md is updated with url options


Remove the extension-client and default loader for Extensions

This is the first, small, step of many for Extensions moving forward. This one is easy as we'll be slightly re-defining how loaders work and for the initial release not supporting the Extension Service as it is today and abstracting it out in very much the same way we're doing for all other clients.
The changes to NextVersion.md will be wrapped up in the larger updates happening in Extensions which are WIP but in the meantime cleaning up.

Please remove fdt add extensionService from frontend-devtools' README.

@pmconne thanks, done.


can you add support for the redis sub pub or give an example?

I would like to trace the spread between redis sub pub but I do not know how to start.

I solved it.


nodePackages.hyextract: init at 0.3.2

Motivation for this change
hyextract is a utility that makes it easier to import archives into hydrus.
Note
7z seems to be failing to extract any files... when run via NixOS?
The permissions on the standalone 7z executable the application seem to be incorrect (0444 root:root), but seem to be valid on WSL2 for some reason..? (1365 evanjs:evanjs)
I have no idea what is happening here.
We might want to patch the standalone 7z out, anyway.
I am primarily using Hydrus on Windows right now but will see if I can get a basic instance on a NixOS desktop up for testing if nobody else does.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Adding new packages to nodePackages is highly discouraged because of it's size and unmaintainable status. Please use buildNpmPackage instead which is easier and significantly faster to use and does not rely on codegen.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:40: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:40: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:40: missing_description: The recipe is missing a description
ERROR: /tmp/abs_f1uuacgtc8/clone/recipe/meta.yaml:40: missing_license_family: The recipe is missing the about/license_family key.
Errors were found


using a period in the URI

If I have a period in the value of a json name/value pair, and that value is a string that "looks like" a floating point number...then I cannot filter on it.
For example:  In the example on github if you use the string "123.45" for the value of the title, you cannot find that title with http://localhost:3000/posts?title=123.45
{   "posts": [     { "id": 1, "title": "123.45", "author": "typicode" }   ],   "comments": [     { "id": 1, "body": "some comment", "postId": 1 }   ],   "profile": { "name": "typicode" } }
Result of GET /posts?title=123.45
[]
Before someone says to just make the value of "title" a number and not a string, we cannot do this because it really isn't a number...it is a string representing in my case the identification of a group of widgets.  Sometimes there are letters in this string for example, it just happens in this case the string consists of all numbers.

Hi @Dashman99.
json-server treats all values that could be convert to number as number. So "/posts?title=123.45" match "title": 123.45(Number) not "123.45"(String).
It means that we can't use strings like "123.45".
I think, it's a problem. We should fix it and I have some ideas.

Use ==/!= operator not ===/!=== to filter
Treat quoted values(like "123", '123') as string

cc @typicode

Hi @Dashman99,
That's correct and I agree with @zakuro9715.
I like the suggestions, need to think about it.


Small Errors Will Abort Webpack Dev Server

When I'm editing a javascript file that is compiled with babel, and there's a minor syntax error when I save it the first time, an error is thrown and webpack-dev-server is taken down. Is there a way to report these errors but not take the entire server down?

adding new webpack.NoErrorsPlugin(), to plugins in webpack.config.js seems to help some but it doesn't catch everything

@nthitz after taking apart the plugin and rebuilding, I was able to fix the issue by having errors be appended to webpack's error handler instead of thrown globally.
https://github.com/qimingweng/static-render-webpack-plugin/blob/master/index.js#L88


Why the AGD model does not exist in the optimizer

The Training parameters are only encoder and decoder

sorry for this stupid error. I will modify it immediately.

done

done

Thanks for your reply

Should the AGD module also need be initialized before training like the decoder？

We don't try this.


Failed to update spreadsheet with csv file

is there a way to use Resumable uploads described here https://developers.google.com/drive/api/guides/manage-uploads?

Updating dfbgfbdfbdfb with dfbvgdfvd.csv
Error: Failed to update file: Http status indicates failure: Response { status: 413, version: HTTP/2.0, headers: {"x-guploader-uploadid": "fvgdvdsvdvdvdvd", "access-control-allow-credentials": "true", "cache-control": "private, max-age=0", "content-type": "application/json; charset=UTF-8", "date": "Mon, 20 Mar 2023 09:24:32 GMT", "expires": "Mon, 20 Mar 2023 09:24:32 GMT", "server": "ESF", "vary": "Origin, X-Origin", "x-content-type-options": "nosniff", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "0", "content-length": "215", "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"}, body: Body(Full(b"{\n  \"error\": {\n    \"code\": 413,\n    \"message\": \"Request Too Large\",\n    \"errors\": [\n      {\n        \"message\": \"Request Too Large\",\n        \"domain\": \"global\",\n        \"reason\": \"uploadTooLarge\"\n      }\n    ]\n  }\n}\n")) }

Resumable uploads are used for files that are larger then the selected chunk size (~32MB per default).
How large is you file?
Are you trying to update a google document?

hello, the largest file i'm trying to update  is around 220mb. And yes it is a google sheet file. I can upload it as normal file not google doc.

files import does not support update yet, but it seems like this works for updating spreadsheets:
gdrive files update --mime application/vnd.google-apps.spreadsheet <file_id> <path_to_file>

Well it is working without mime type, but large files still does not works.

Aha, then my guess would be that you are hitting some limitation in the api: https://support.google.com/drive/answer/37603?hl=en
Are you able to convert the same csv when uploading through the drive ui?

Well you might be onto something, I'll close it here, I'm pretty sure that it hits one of these limits...


User Object Implementation

Question : Not able to retrieve the correct value for user objects.
Description : I have to implement user object 0x1F80 (Setting/Getting NMT state) and have followed the approach given in this documentation (https://canopen-stack.org/docs/usecase/dictionary) but not able to retrieve the correct values. Attaching the link of PCAN view in which I am getting the error (https://drive.google.com/file/d/1zumtuZ8tVzuNXLxdaKzHgN7x1OlVudn5/view?usp=drivesdk)
Support Needed : Any specific way to implement these objects and why I am getting this error.

Thanks for using the stack. As far as I see in your image you do:
CAN TX: 40 80 1F 01 00 00 00 00  => send a SDO expedited upload requrest for reading the object entry 1F80h subindex 01h
CAN RX: 80 80 1F 01 20 00 00 80  => receive the SDO abort code CO_SDO_ERR_TOS
When searching the occurance of this error code in the stack, I found two relevant places. All other places relates to other SDO request types:

in COSdoGetSize() : Error occurs, when getting the size of the object fails
in COSdoUploadExpedited() : Error occurs, when reading the value is not returning CO_ERR_NONE

As you write, that you are implementing a user object, we would need to see your implementation for further investigations.
Some hints where you can look:

have a look to your size function, which must return the size in bytes
return CO_ERR_NONE from your reading function; just have a look to the following tiny example (written without tests) as a orientation how a function could look like:

CO_ERR MyTiny32BitRead (struct CO_OBJ_T *obj, struct CO_NODE_T *node, void *buf, uint32_t len)
{
    CO_ERR result = CO_ERR_NONE;

    // get object entry value
    // TODO: adjust this to your user object entry type
    uint32_t objectValue = (uint32_t)(obj->Data);
    uint8_t num = CO_LONG;

    // copy the value into the given buffer
    uint8_t *src = (uint8_t *)&value;
    uint8_t *dst = (uint8_t *)buf;
    while ((len > 0) && (num > 0)) {
       *dst = *src;
       src++;
       dst++;
       len--;
       num--;
    }

    // return successfull operation (no failure considered in this tiny function)
    return (result);
}

If this doesn't help, you should provide your type definition and all your type functions - so I can have a look ;-)

Thanks Michael, It works for me.

Great. Good to hear ;-)


Support css prop with emotion

We should support emotion's css prop for one-off styling. This will probably require using emotion's jsx pragma within our own.

https://emotion.sh/docs/css-prop

Correct, @ericclemmons. I’ll add some documentation around this in this PR.


Python scripts in I2C.bme280.oled are broken

There's a number of python scripts in I2C.bme280.oled that are broken with the latest update to the ajax.php endpoint.  We should fix this!

fixed! ;)


Training the Image Embedder

I would like to perform large scale image retrieval. How do I retrain the Image Embedder?
I have clustered the images into multiple folders by clustering based on the pose and trained the ImageClassifier thinking that I can use it as a model to extract the embedding. Unfortunately the loss is not reducing at all. Is there any specific way to train for image retrieval?

+1

@Zumbalamambo do you have already a pipeline or some code to take a look at?

+1 still a problem

Hi @Zumbalamambo Could you provide some more details about the issue? If the loss isn't reducing for your classification data then it's possible that it's just not a very solvable problem. Have you been able to train effectively on this data outside of flash?


Make it citeable!?

Please

login to zenodo and link this repo
cut a "release" e.g. 0.1.0 via creating it in github repo

This would simplify citeability of this effort.
attn @jbpoline to facilitate

Ideally add a citation.cff file to easily pass metadata to zenodo.

there you go

Closed by https://github.com/neurodatascience/nipoppy/pull/105 and https://github.com/neurodatascience/nipoppy/pull/106.


[Bug]: Nvidia NIM Reranker HTTPError: 400 Client Error

Bug Description
I'm trying to use a reranker NIM to replace a HiggingFace model. The NIM service works properly from curl. Example:
more test_re-ranker.sh
curl -X "POST" \
  "http://<IP_ADDRESS>:8010/v1/ranking" \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
"model": "nvidia/nv-rerankqa-mistral-4b-v3",
"query": {"text": "which way should i go?"},
"passages": [
{"text": "two roads diverged in a yellow wood, and sorry i could not travel both and be one traveler, long i stood and looked down one as f
ar as i could to where it bent in the undergrowth;"},
{"text": "then took the other, as just as fair, and having perhaps the better claim because it was grassy and wanted wear, though as for th
at the passing there had worn them really about the same,"},
{"text": "and both that morning equally lay in leaves no step had trodden black. oh, i marked the first for another day! yet knowing how wa
y leads on to way i doubted if i should ever come back."},
{"text": "i shall be telling this with a sigh somewhere ages and ages hense: two roads diverged in a wood, and i, i took the one less trave
led by, and that has made all the difference."}
],
"truncate": "END"
}'

$ bash test_re-ranker.sh
{"rankings":[{"index":0,"logit":0.7646484375},{"index":3,"logit":-1.1044921875},{"index":2,"logit":-2.71875},{"index":1,"logit":-5.09765625}]}

When I try this reranker, I get HTTPError: 400 Client Error: Bad Request for url: http://<IP_ADDRESS>:8010/v1/ranking
Version
llama-index  0.10.58 /  llama-index-postprocessor-nvidia-rerank  0.1.5
Steps to Reproduce
db_cfg = config.postgresql
connection_string = (f"postgresql://{db_cfg.user}:"
                     f"{db_cfg.password}@{db_cfg.db_host}:{db_cfg.port}/{db_cfg.default_db}")
url = make_url(connection_string)

# Open the connection to the Vector Store
vector_store = PGVectorStore.from_params(
    database=url.database,
    host=url.host,
    password=url.password,
    port=url.port,
    user=url.username,
    table_name=db_cfg.tables.std_rag,
    embed_dim=EMBEDDING_SIZE, # embedding model dimension
    cache_ok=True,
    hybrid_search=True,
)

# Initialize the index object
index = VectorStoreIndex.from_vector_store(vector_store)

# Initialize the re-ranker of retrieved chunks
rerank_cfg = config.ml_models.re_ranker
re_ranker = NVIDIARerank(
        model=rerank_cfg.model,
        base_url=rerank_cfg.api_base,
        top_n=rerank_cfg.rerank_top_n,
)

# Set the index as query engine
h_search = ast.literal_eval(db_cfg.pgvector.pgvector_kwargs)
query_engine = index.as_query_engine(
    similarity_top_k=db_cfg.pgvector.sim_top_k,
    node_postprocessors=[re_ranker],
    vector_store_kwargs=h_search,
    response_mode=config.llama_index.std_rag.response_mode
)

test_set_cfg = config.data_files.test_sets
active_set = eval(f"test_set_cfg.{test_set_cfg.active_set}.current")
test_set_dir = test_set_cfg.base_path + active_set
test_set = os.listdir(test_set_dir)[0]
test_set = test_set_dir + test_set

test_set_df = pd.read_csv(
        filepath_or_buffer=test_set,
        usecols=['query', 'reference_answer'],
        nrows=test_set_cfg.sample_size
)

# Run inference on the Q/A pairs and keep the responses
# for future comparison vs.other RAG approaches.
responses = generate_responses_dict(
    query_engine=query_engine,
    test_set_df=test_set_df
)

Relevant Logs/Tracbacks
HTTPError                                 Traceback (most recent call last)
File <timed exec>:16

File ~/DataspellProjects/VMware-generative-ai-reference-architecture/Starter-Packs/Improved_RAG/05-RAG_Variants/01-Simple_Retrieval/../../utils/helpers.py:112, in generate_responses_dict(query_engine, test_set_df)
    101 def generate_responses_dict(query_engine, test_set_df):
    102     """
    103     Returns a dictionary containing the responses generated by 'query_engine'
    104     to the queries provided by the test_set_df dataframe. The dictionary also
   (...)
    110              evaluation frameworks like DeepEval
    111     """
--> 112     responses = [query_engine.query(q)
    113                  for q in tqdm(test_set_df['query'].to_list())]
    114     answers = []
    115     contexts = []

File ~/DataspellProjects/VMware-generative-ai-reference-architecture/Starter-Packs/Improved_RAG/05-RAG_Variants/01-Simple_Retrieval/../../utils/helpers.py:112, in <listcomp>(.0)
    101 def generate_responses_dict(query_engine, test_set_df):
    102     """
    103     Returns a dictionary containing the responses generated by 'query_engine'
    104     to the queries provided by the test_set_df dataframe. The dictionary also
   (...)
    110              evaluation frameworks like DeepEval
    111     """
--> 112     responses = [query_engine.query(q)
    113                  for q in tqdm(test_set_df['query'].to_list())]
    114     answers = []
    115     contexts = []

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/instrumentation/dispatcher.py:230, in Dispatcher.span.<locals>.wrapper(func, instance, args, kwargs)
    226 self.span_enter(
    227     id_=id_, bound_args=bound_args, instance=instance, parent_id=parent_id
    228 )
    229 try:
--> 230     result = func(*args, **kwargs)
    231 except BaseException as e:
    232     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/base/base_query_engine.py:52, in BaseQueryEngine.query(self, str_or_query_bundle)
     50     if isinstance(str_or_query_bundle, str):
     51         str_or_query_bundle = QueryBundle(str_or_query_bundle)
---> 52     query_result = self._query(str_or_query_bundle)
     53 dispatcher.event(
     54     QueryEndEvent(query=str_or_query_bundle, response=query_result)
     55 )
     56 return query_result

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/instrumentation/dispatcher.py:230, in Dispatcher.span.<locals>.wrapper(func, instance, args, kwargs)
    226 self.span_enter(
    227     id_=id_, bound_args=bound_args, instance=instance, parent_id=parent_id
    228 )
    229 try:
--> 230     result = func(*args, **kwargs)
    231 except BaseException as e:
    232     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/query_engine/retriever_query_engine.py:189, in RetrieverQueryEngine._query(self, query_bundle)
    185 """Answer a query."""
    186 with self.callback_manager.event(
    187     CBEventType.QUERY, payload={EventPayload.QUERY_STR: query_bundle.query_str}
    188 ) as query_event:
--> 189     nodes = self.retrieve(query_bundle)
    190     response = self._response_synthesizer.synthesize(
    191         query=query_bundle,
    192         nodes=nodes,
    193     )
    194     query_event.on_end(payload={EventPayload.RESPONSE: response})

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/query_engine/retriever_query_engine.py:145, in RetrieverQueryEngine.retrieve(self, query_bundle)
    143 def retrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]:
    144     nodes = self._retriever.retrieve(query_bundle)
--> 145     return self._apply_node_postprocessors(nodes, query_bundle=query_bundle)

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/query_engine/retriever_query_engine.py:138, in RetrieverQueryEngine._apply_node_postprocessors(self, nodes, query_bundle)
    134 def _apply_node_postprocessors(
    135     self, nodes: List[NodeWithScore], query_bundle: QueryBundle
    136 ) -> List[NodeWithScore]:
    137     for node_postprocessor in self._node_postprocessors:
--> 138         nodes = node_postprocessor.postprocess_nodes(
    139             nodes, query_bundle=query_bundle
    140         )
    141     return nodes

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/postprocessor/types.py:56, in BaseNodePostprocessor.postprocess_nodes(self, nodes, query_bundle, query_str)
     54 else:
     55     pass
---> 56 return self._postprocess_nodes(nodes, query_bundle)

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/core/instrumentation/dispatcher.py:230, in Dispatcher.span.<locals>.wrapper(func, instance, args, kwargs)
    226 self.span_enter(
    227     id_=id_, bound_args=bound_args, instance=instance, parent_id=parent_id
    228 )
    229 try:
--> 230     result = func(*args, **kwargs)
    231 except BaseException as e:
    232     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/llama_index/postprocessor/nvidia_rerank/base.py:234, in NVIDIARerank._postprocess_nodes(self, nodes, query_bundle)
    232     url += "/ranking"
    233 response = session.post(url, headers=_headers, json=payloads)
--> 234 response.raise_for_status()
    235 # expected response format:
    236 # {
    237 #     "rankings": [
   (...)
    243 #     ]
    244 # }
    245 assert (
    246     "rankings" in response.json()
    247 ), "Response does not contain expected 'rankings' key"

File ~/miniconda3/envs/impv_rag/lib/python3.11/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
   1016     http_error_msg = (
   1017         f"{self.status_code} Server Error: {reason} for url: {self.url}"
   1018     )
   1020 if http_error_msg:
-> 1021     raise HTTPError(http_error_msg, response=self)

HTTPError: 400 Client Error: Bad Request for url: http://<IP_ADDRESS>:8010/v1/ranking

The documentation dosubot is recommending is wrong, for instance this cant be right:
from llama_index.llms.nvidia import NVIDIA

# connect to a rerank NIM running at localhost:1976
reranker = NVIDIARerank(base_url="http://localhost:1976/v1")

The LlamaIndex documentation about the NIM class needs revision, perhaps the implementation of that module also requires corrections.

There must be something wrong with either the NIM client implementation or the documentation I have double-checked my code and all looks the way @dosu indicates"
re_ranker = NVIDIARerank(
        model="nvidia/nv-rerankqa-mistral-4b-v3", # rerank_cfg.model,
        base_url="http://<IP_ADDRESS>:8010/v1",# rerank_cfg.api_base,
        top_n=4 # rerank_cfg.rerank_top_n,
)

and I still get the same error.

Hi, @logan-markewich. I reproduced the following tutorial from Nvidia: https://docs.nvidia.com/nim/nemo-retriever/text-reranking/latest/playbook.html. My local NIM setup works properly when using the LangChain re-ranker so there must be something                                                                       wrong with LlamaIndex's from llama_index.postprocessor.nvidia_rerank import NVIDIARerank.
Thanks
Enrique

Hi,
FYI @logan-markewich and @dosu. I watched the traces from the re-ranker NIM and this is the error:
2024-08-15T18:21:40Z ERROR: root - Uncaught InferenceServerException: [StatusCode.INTERNAL] in ensemble 'nvidia_nv_rerankqa_mistral_4b_v3', Input length 1024 exceeds maximum allowed token size 512; Request: <starlette.requests.Request object at 0x7f646014d180>

The solution would be to let the NVIDIARerank initialization pass the truncate flag to the re-ranker just like it is possible to do with the NVIDIAEmbedding module.
I tried this fix at NVIDIAReran's base.py module. I made a couple of additions (commented as vcorro):.

Added an extra header as indicated in Nvidia's documentation:

_headers = {
            "Authorization": f"Bearer {self._api_key}",
            "Accept": "application/json",
            'Content-Type': 'application/json', # vecorro

        }

Added the truncated value at the end of the payload:

payloads = {
                    "model": self.model,
                    "query": {"text": query_bundle.query_str},
                    "passages": [
                        {"text": n.get_content(metadata_mode=MetadataMode.EMBED)}
                        for n in batch
                    ],
                    "truncate": "END", # vecorro
                }

Given the small token limit supported by most Nvidia models shipped with embedding and re-ranking NIMs (512), I think it'd be good that LlamaIndex's integration modules define the {"truncate": "END:} as the default so things work correctly.
I'm part of the VMware/Broadcom team working with customers to implement our Private AI solutions with Nvidia, and it would help those customers fond of LlamaIndex get this fix implemented. Thanks


Error when running v2.0.0 in Windows XP ( "phantomjs.exe is not a valid Win32 application")

I cannot seem to run phantomJS 2.0.0 under Windows XP.
An error window "phantomjs.exe is not a valid Win32 application" pops up and an "Access is denied." is being reported on the console (cmd.exe).
Version <IP_ADDRESS> (last installed) worked perfectly fine.
Any help?

@Vitallium do you think it's a duplicate of another similar issue (I can't recall which)?

@ariya I don't think so. I don't remember any similar issue.

We have the same issue on all our WIndows XP selenium runners, we upgraded to 2.0.0 from 1.9.8 and get this same error

@mjblue can you run Dependency Walker on the executable file on any machine running Windows XP?

Hi @Vitallium Runnig Dependency Walker shows that MPR.DLL is failing to find MSJAVA.DLL

Whoops..
http://blogs.msdn.com/b/vcblog/archive/2012/06/15/10320645.aspx

The C++ runtime and libraries that accompany Visual Studio 2012 contain dependencies on several Windows API functions that exist only on Windows Vista and higher versions of the OS.  This means that applications built with Visual Studio 2012’s C++ compiler will fail to load and execute on Windows XP.

/cc @ariya @mjblue

ah yes.. from my olden days we had to keep an old machine with VS2010 just for this exact reason.. Is it possible to reassemble on VS2010 or are you removing XP support for the prebuilt binary?

we are using file version <IP_ADDRESS> and upgraded to 2.0 now its not working in windows 2003.

I don't think Windows XP support is too important, but Windows 2003 is also broken due to this. You can target XP/2003 using VS2012 but not VS2013 -- some fiddling is required. I use cross-compiled MinGW-w64 builds for targeting the old OS versions in wkhtmltopdf.

So does anyone has a binary thats currently working on Windows Server 2003 yet ?

Do we have an update on this?
No sign of some love for WinXP or WinServer2003 users?

Considering that Windows XP is not supported and Windows 2003 is over 12 years old, I don't think it is a priority for the developer team. You can try installing VS2010 Express and doing the compilation yourself if it is a blocker (after all, this is an open source project).

XP can't run PhantomJS and Vista is specified as the minimum in the documentation.

Really a great pity that our target OS is winXP, so is there any workaround for making phantomjs work on winxp? Thanks so much!

@xeoshow You can try to build it and compile it yourself.

I tried the latest release and used the Dependency Walker , it tells IESHIMS.DLL and WER.DLL is missing, can I just find the 2 dll files and put it somewhere and then it works? This way seems simpler.

Thanks for reply!
I am new to phantomjs, and sorry to ask if there is any wiki or link for how to build?

@xeoshow if you need PhantomJS 2 for Windows XP you have to compile it by yourself from sources.
But remember you also need a special setup for it: http://doc.qt.io/qt-5/windows-issues.html
How to build PhantomJS: http://phantomjs.org/build.html

@Vitallium Got it, thank you v much!

Sorry still one more question: phantomjs 1.9.8 should support winxp out of the box? Thanks!

@xeoshow yes, PhantomJS 1.9.8 supports Windows XP. But we don't support this version.

Got it. Really a great pity that the newest version does not support winxp. Just tried 1.9.8 but seems some feature not supported.
How and where can I get the 2.1.2 to support winxp service? I tried to build it by myself but got various errors. I could pay for it personally ...
Great thanks!

@ashkulz  By cross-compiled MinGW-w64 builds, do you mean you have the phantomjs 2.1.1 windows xp build? Could you please kindly help to share? Thanks a lot!

@xeoshow: that's for wkhtmltopdf, a different project ... and it too doesn't support XP/2003 these days, though you can compile from source to get support.

@ashkulz Thanks!
And below is from the build link, looks like some accurate info missing, such as the version of Perl, Python, Ruby, and Git, and which windows OS are OK for setup such build env? WinXP, windows 7 or 8, 32bit or 64bit?
Sorry for those newbie questions, but really need further help. Hopefully there could be some good documentaion for building targeted winxp since it is not supported out of the box ...

Windows requirements
Supported toolchains: MSVC2012 and MSVC2013.
You must have Perl, Python, Ruby, and Git on PATH. Also, note that Git comes with it’s own version of perl.exe. If you have both Git and a separate perl installation in your PATH, please make sure that you separate Perl install’s bin folder comes before the git’s bin folder in your PATH.
Please also add the folder \src\qt\3rdparty\gnuwin32\bin to your PATH, as required tools such as bison, flex, and gperf will not be found otherwise. Ex: SET PATH=%CD%\src\qt\3rdparty\gnuwin32\bin;%PATH%
Run the build script from Visual Studio Command Prompt.
Tip: Enabling incremental linking will make the linkage process faster.

@xeoshow, hello, are you compile 1.9.7 version for win XP?


Added logging of JSON config in success case

This adds logging of the configs for CreateContainer and CreateProcess.
Signed-off-by: Darren Stahl<EMAIL_ADDRESS>

Hi @darrenstahlmsft, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Darren Stahl). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

LGTM. Thanks!


Enable "managed" Policy Assignment parameters for custom Management Group hierarchies

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description
Is your feature request related to a problem?
Hello team,
In my use case, I decided to use custom org structure and have little different names. So instead of e.g. org-identity, I would like to have custom name e.g. mysuffix-identity-mypostfix. Exactly this same for Identity and management. Everything is working fine when I inject my structure over custom landing zones, but I also want to use your out-of-the-box archetypes. Which is also working, the only problem is with assignments of the policies, in your code you have e.g.
locals {
  archetype_config_overrides = {
    &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;${local.root_id}-identity&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot; = {
      parameters = {
        Deny-Public-IP = {
          effect = &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;Deny&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
        }
        Deny-RDP-From-Internet = {
          effect = &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;Deny&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
        }
        Deny-Subnet-Without-Nsg = {
          effect = &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;Deny&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
        }
        Deploy-VM-Backup = {
          effect            = &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;deployIfNotExists&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
          exclusionTagName  = &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
          exclusionTagValue = []
        }
      }
      enforcement_mode = {
        Deny-Public-IP          = local.deploy_enable_deny_public_ip
        Deny-RDP-From-Internet  = local.deploy_enable_deny_rdp_from_internet
        Deny-Subnet-Without-Nsg = local.deploy_enable_deny_subnet_without_nsg
        Deploy-VM-Backup        = local.deploy_enable_deploy_azure_backup_on_vms
      }
    }
  }
}

Where you are assuming that name of the connectivity will be based on root_id (same for management and connectivity).
I would like to have option to overwrite it with my own name for management group id.
Describe the solution you'd like
So would be nice to have option in advance settings to pass my own:
management, identity, connectivity management group names or at least prefix and suffix similar as you have for resources in advance options.
Additional context

Something like code below and I will add this same for connectivity and management.
locals {
  enabled  = var.enabled
  root_id  = var.root_id
  settings = var.settings
  identity_management_group_name = coalesce(var.custom_identity_mg_name, "${local.root_id}-identity")
}

# Logic to determine whether specific resources
# should be created by this module
locals {
  deploy_identity                          = local.enabled && local.settings.identity.enabled
  deploy_enable_deny_public_ip             = local.deploy_identity && local.settings.identity.config.enable_deny_public_ip
  deploy_enable_deny_rdp_from_internet     = local.deploy_identity && local.settings.identity.config.enable_deny_rdp_from_internet
  deploy_enable_deny_subnet_without_nsg    = local.deploy_identity && local.settings.identity.config.enable_deny_subnet_without_nsg
  deploy_enable_deploy_azure_backup_on_vms = local.deploy_identity && local.settings.identity.config.enable_deploy_azure_backup_on_vms
}

# Archetype configuration overrides
locals {
  archetype_config_overrides = {
    "${local.identity_management_group_name}" = {
      parameters = {
        Deny-Public-IP = {
          effect = "Deny"
        }
        Deny-RDP-From-Internet = {
          effect = "Deny"
        }
        Deny-Subnet-Without-Nsg = {
          effect = "Deny"
        }
        Deploy-VM-Backup = {
          effect            = "deployIfNotExists"
          exclusionTagName  = ""
          exclusionTagValue = []
        }
      }
      enforcement_mode = {
        Deny-Public-IP          = local.deploy_enable_deny_public_ip
        Deny-RDP-From-Internet  = local.deploy_enable_deny_rdp_from_internet
        Deny-Subnet-Without-Nsg = local.deploy_enable_deny_subnet_without_nsg
        Deploy-VM-Backup        = local.deploy_enable_deploy_azure_backup_on_vms
      }
    }
  }
}

Sorry, no idea how / if possible to highlight something with custom color in code snippet xD

Hi @mlomat ... seems a relatively straightforward and sensible addition, and great that you've already thought this through with some pointers as to how it might be implemented,
I'll discuss with the team and see what we can do around this. Thank you

Trigger ADO Sync

Trigger ADO Sync

This should be a capability provided as part of addressing the following issue:

#115

Just leaving a note here for consideration...
Would it work to remove the scope element completely for managed policies and just make the managed policy parameters available to all scopes by default?
The module already quietly discards (or rather ignores) parameters for policies which aren't applicable at the current scope. This would negate the need to worry about additional logic as all of our managed policies [currently] are only assigned to a single scope.
Also, custom specified parameters at individual scopes take precedence over those managed within the module, so customization will still be possible.
cc: @mlomat, @jtracey93, @matt-FFFFFF

AB#26868

Part of v.next


smack tests: push test binaries to /tmp instead of /usr/bin

Changed the test binaries copyTo path to /tmp/ from /usr/bin.
Adapted affected scripts to look for test binaries in PATH, and
if they are not found, check in /tmp/, or fail otherwise.

What is the motivation for this change? The "why" part is missing in the commit message.
Long term it would be better to introduce a distro variable for the location of additional binaries. For example, /tmp might be mounted noexec, rendering it useless for running binaries.

For IMA tests, we plan to check all binaries in /bin and /usr/bin. Pushing test binaries there is not desirable, as they will not have signature in place, potentially failing the test.

Please add this explanation to the commit message.

Updated commit message.


Unify name and description fields

This PR implements what was discussed in https://github.com/LI3DS/pg_li3ds/issues/2.
Note: after merging this, both api_li3ds and  micmac_li3ds need updates for the new model.

The tests now pass. @ldgeo, @mbredif do you agree with these changes?

yes agree.
@elemoine It should be easier if you make branches directly on LI3DS instead of your account, we could test it without adding a new remote repository.


Why I can't use firebase

I try to add these get data from Firebase realtime db in electron/main.ts and never get the data from it
electron/main.ts
// Test active push message to Renderer-process.
  win.webContents.on("did-finish-load", async () => {
    const snapshot = await firebase.database().ref("version").get(); // **it not work**
    const version = snapshot.val() as string; // **never reach to this point**
    console.log(`Version: ${version}`);
  });

but if I use it in the render process, it will work
App.tsx
function App() {
  const firebaseApp = firebase.initializeApp(firebaseConfig);
  const db = firebaseApp.database();
  const versionRef = db.ref("version");
  const [version, setVersion] = useState("0.0.0");

  useEffect(() => {
    versionRef.get().then((snapshot) => setVersion(snapshot.val() as string)); // **it's work!**
  });

  return (

Version: {version}

  )
}

Do I need to set up or config something? Thank you

I not sure what you wath.
The following line not log output in your App?
// Test active push message to Renderer-process.
  win.webContents.on("did-finish-load", async () => {
    const snapshot = await firebase.database().ref("version").get(); // **it not work**
    const version = snapshot.val() as string; // **never reach to this point**
+   console.log(`Version: ${version}`);
  });

yes, nothing happens after await to get the data.
and if I create a project in another way. like using npm init electron-app@latest my-new-app -- --template=webpack-typescript the firebase code in main.ts will work.

Can you provide a minimal reproduction repo?

Can you provide a minimal reproduction repo?

https://github.com/onemanking/electron-vite-firebase
here you go

Works on my local machine

Works on my local machine

it only log for firebase object. You should try to access to database or another function and see if it works

This requires using a firebase account, I do not have a firebase account available.

Works on my local machine

it only log for firebase object. You should try to access to database or another function and see if it works

Works on my machine too


Install cifs-utils package

This will allow us to mount Samba shares for database backups
http://talk.manageiq.org/t/schedule-db-backup-samba-issue/1209
https://bugzilla.redhat.com/show_bug.cgi?id=1313958
@gtanzillo @jvlcek

:+1:

Looks good :+1:

:tada:

:+1:


Brand/logo does not load

App starts fine from ./webapp
$ mvn jetty:run -D jetty.port=9090
However:
img alt="Brand" src="/images/todoapp-logo-header.png"
is not found from the login view to the all other views
It is here:
http://localhost:9090/todoapp-webapp/images/todoapp-logo-header.png

Awesome! Thank you Dan :)


Gemini Pro didn't work [Bug]

Describe the bug
I installed the latest version(2.10.1) of Chatgpt-next-web app locally, and input
Google url and APikey according to your instructions. But when I use it in conversation, I encounter an error like:
{
  "error": true,
  "message": "The string did not match the expected pattern."
}

To Reproduce
Steps to reproduce the behavior:

Go to setting and select model as Google
input google url and apikey
go to chat and input some words like "Hi"
See error

Expected behavior
response normally
Screenshots

Deployment

[ ] Docker
[ ] Vercel
[ ] Server

Desktop (please complete the following information):

OS: MacOS
Browser chrome
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional Logs
Add any logs about the problem here.

I have the same issue.

Me too

the example url is not correct, just updated the instructions in https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/3719, plz remove the path in your url

示例 url 不正确，刚刚更新了#3719中的说明，请删除 url 中的路径
不行的，删除还是提示：

{
  "error": true,
  "message": "The string did not match the expected pattern."
}

the example url is not correct, just updated the instructions in #3719, plz remove the path in your url

No, it still raises the same error on the desktop browser even though I removed the path. Further, for some people who want to use a proxy site instead of a Google official site, it will be a big issue.

So please reopen the issues


Archive this repository?

@yurydelendik, I stumbled across this repository looking for https://github.com/bytecodealliance/wasmparser. Is this an old version of that and, if so, should we archive it?

@abrown That's JS take on the same library. Actually it was Rust's version prototype.


[BUG] Failed to install WIDEVINE components - Windows 10

Trying to install on windows 10. Getting this error.
The version is 2.5.

Try completing a clean installation

So you did follow the guide?

So you did follow the guide?
Yes,I did.

I have same issue too.

I have same issue too.

I think the problem is chinese network

Try using the Apple Music website, for the time being, I'm not sure of any other methods.

Closing for now


Add scalbn[f|l]function to libc math

Summary
function:
scalbnf:get a float number of x*2^n
The implementation of the function borrows from musl
Impact
Testing
float number1 = scalbnf(2, 10);
printf("%f\n", number1);
number1 = scalbnf(3, 100000);
printf("%f\n", number1);
number = scalbnf(4, 100);
printf("%f\n", number1);
number = scalbnf(5, 1000);
printf("%f\n", number1);
number = scalbnf(12, -10000000);
printf("%f\n", number1);
number = scalbnf(22, 1090000);
printf("%f\n", number1);
number = scalbnf(2075, 10867564);
printf("%f\n", number1);
number = scalbnf(265, -108766);
printf("%f\n", number1);
number = scalbnf(22, -1320);
printf("%f\n", number1);

please rebase to the last master to fix macOS ci break.

Please rebase to the last mater to fix ci broken.

let's ignore temp ci failure(Documentation and macOS).

@xiaoxiang781216 @flyingfish89 @jerpelea since this file is based on musl and uses BSD license, its should include an entry in the file NOTICE. BTW, the commit msg "1" should be avoided.

@flyingfish89 please add musl copyright to https://github.com/apache/nuttx/blob/master/LICENSE. Please update your commit message carefully in the new patch.

@acassis @xiaoxiang781216 @flyingfish89
Unfortunately the merged commit message cannot be changed without messing up everyone's forks/clones (unless someone knows a git trick that I don't know about).
Fortunately the new PR to add copyright/NOTICE can include a new commit message.
For example:
libc/math: Add copyright/NOTICE for scalbnf()

The scalbnf() implementation from musl C library was added to NuttX in commit 035656661e2c626e337f0e85ea99d742c9d85c62 (GitHub PR 7850).

or something like that.
Thanks!

Yes, we cannot rewind the git because git could break things for everybody that already synced with the upstream. When we do "git push -f" in our fork it doesn't rewind the upstream branch because the PR area is like a hidden branch.

Here is the patch to add musl copyright: https://github.com/apache/nuttx/pull/7963


1 Controller can connect to more than 1 Worker in Kubernetes ?

HI everyone ,
now I'm running uReplicator non-federated mode with Kubernetes :
1 Controller , 3 Worker ( replicas : 3 )
and this is log i check , 2 worker is not working . Just only 1 Worker connected and replicate ( anyway 1 worker can working fine with resource :
        resources:
          requests:
            cpu: 100m
            memory: 1500Mi

Log Worker 1 - FAIL TO CONNECT  :
2019-10-23T08:34:12.872+0000: Total time for which application threads were stopped: 0.0266896 seconds, Stopping threads took: 0.0000626 seconds
[2019-10-23 08:34:12,903] INFO instance: testHelixMirrorMaker01 auto-joining uReplicatorDev is true (org.apache.helix.manager.zk.ParticipantManager:131)
[2019-10-23 08:34:13,014] WARN found another instance with same instanceName: testHelixMirrorMaker01 in cluster uReplicatorDev (org.apache.helix.manager.zk.ParticipantManager:184)
2019-10-23T08:34:13.754+0000: Total time for which application threads were stopped: 0.0003128 seconds, Stopping threads took: 0.0000342 seconds
2019-10-23T08:34:20.755+0000: Total time for which application threads were stopped: 0.0001660 seconds, Stopping threads took: 0.0000352 seconds
2019-10-23T08:34:21.755+0000: Total time for which application threads were stopped: 0.0002317 seconds, Stopping threads took: 0.0000356 seconds
2019-10-23T08:34:22.756+0000: Total time for which application threads were stopped: 0.0001658 seconds, Stopping threads took: 0.0000311 seconds
2019-10-23T08:34:25.756+0000: Total time for which application threads were stopped: 0.0002344 seconds, Stopping threads took: 0.0000351 seconds
2019-10-23T08:34:26.757+0000: Total time for which application threads were stopped: 0.0001314 seconds, Stopping threads took: 0.0000402 seconds
[2019-10-23 08:34:48,049] ERROR instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev (org.apache.helix.manager.zk.ParticipantManager:244)
2019-10-23T08:34:48.052+0000: Total time for which application threads were stopped: 0.0004388 seconds, Stopping threads took: 0.0000706 seconds
[2019-10-23 08:34:48,050] ERROR fail to createClient. (org.apache.helix.manager.zk.ZKHelixManager:496)
org.apache.helix.HelixException: instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev
	at org.apache.helix.manager.zk.ParticipantManager.createLiveInstance(ParticipantManager.java:245)
	at org.apache.helix.manager.zk.ParticipantManager.handleNewSession(ParticipantManager.java:112)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSessionAsParticipant(ZKHelixManager.java:900)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:866)
	at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:493)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:531)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
[2019-10-23 08:34:48,053] ERROR fail to connect testHelixMirrorMaker01 (org.apache.helix.manager.zk.ZKHelixManager:534)
org.apache.helix.HelixException: instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev
	at org.apache.helix.manager.zk.ParticipantManager.createLiveInstance(ParticipantManager.java:245)
	at org.apache.helix.manager.zk.ParticipantManager.handleNewSession(ParticipantManager.java:112)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSessionAsParticipant(ZKHelixManager.java:900)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:866)
	at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:493)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:531)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
[2019-10-23 08:34:48,054] INFO Is not shutting down; call cleanShutdown() (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:48,054] INFO Start clean shutdown. (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:48,054] INFO Flushing last batches and commit offsets. (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:48,055] INFO Flushing producer. (kafka.mirrormaker.WorkerInstance:66)
Exception in thread "main" java.lang.NullPointerException
	at kafka.mirrormaker.WorkerInstance.maybeFlushAndCommitOffsets(WorkerInstance.scala:346)
	at kafka.mirrormaker.WorkerInstance.cleanShutdown(WorkerInstance.scala:385)
	at kafka.mirrormaker.WorkerInstance$WorkerZKHelixManager.disconnect(WorkerInstance.scala:328)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:535)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
2019-10-23T08:35:04.055+0000: Total time for which application threads were stopped: 0.0001446 seconds, Stopping threads took: 0.0000401 seconds
2019-10-23T08:35:08.056+0000: Total time for which application threads were stopped: 0.0001423 seconds, Stopping threads took: 0.0000332 seconds
2019-10-23T08:36:13.065+0000: Total time for which application threads were stopped: 0.0003642 seconds, Stopping threads took: 0.0001302 seconds
2019-10-23T08:38:09.082+0000: Total time for which application threads were stopped: 0.0003055 seconds, Stopping threads took: 0.0002081 seconds

Log Worker 2 - FAIL TO CONNECT:
   [Eden: 24576.0K(24576.0K)->0.0B(65536.0K) Survivors: 8192.0K->8192.0K Heap: 29812.9K(120.0M)->9444.5K(120.0M)]
 [Times: user=0.02 sys=0.01, real=0.05 secs]
2019-10-23T08:34:12.220+0000: Total time for which application threads were stopped: 0.0548126 seconds, Stopping threads took: 0.0000321 seconds
[2019-10-23 08:34:12,269] INFO instance: testHelixMirrorMaker01 auto-joining uReplicatorDev is true (org.apache.helix.manager.zk.ParticipantManager:131)
2019-10-23T08:34:12.273+0000: Total time for which application threads were stopped: 0.0003265 seconds, Stopping threads took: 0.0000291 seconds
[2019-10-23 08:34:12,398] WARN found another instance with same instanceName: testHelixMirrorMaker01 in cluster uReplicatorDev (org.apache.helix.manager.zk.ParticipantManager:184)
2019-10-23T08:34:13.274+0000: Total time for which application threads were stopped: 0.0001932 seconds, Stopping threads took: 0.0000356 seconds
2019-10-23T08:34:17.275+0000: Total time for which application threads were stopped: 0.0001489 seconds, Stopping threads took: 0.0000422 seconds
2019-10-23T08:34:22.276+0000: Total time for which application threads were stopped: 0.0001529 seconds, Stopping threads took: 0.0000294 seconds
[2019-10-23 08:34:47,437] ERROR instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev (org.apache.helix.manager.zk.ParticipantManager:244)
Exception in thread "main" java.lang.NullPointerException
	at kafka.mirrormaker.WorkerInstance.maybeFlushAndCommitOffsets(WorkerInstance.scala:346)
	at kafka.mirrormaker.WorkerInstance.cleanShutdown(WorkerInstance.scala:385)
	at kafka.mirrormaker.WorkerInstance$WorkerZKHelixManager.disconnect(WorkerInstance.scala:328)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:535)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
[2019-10-23 08:34:47,439] ERROR fail to createClient. (org.apache.helix.manager.zk.ZKHelixManager:496)
org.apache.helix.HelixException: instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev
	at org.apache.helix.manager.zk.ParticipantManager.createLiveInstance(ParticipantManager.java:245)
	at org.apache.helix.manager.zk.ParticipantManager.handleNewSession(ParticipantManager.java:112)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSessionAsParticipant(ZKHelixManager.java:900)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:866)
	at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:493)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:531)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
[2019-10-23 08:34:47,442] ERROR fail to connect testHelixMirrorMaker01 (org.apache.helix.manager.zk.ZKHelixManager:534)
org.apache.helix.HelixException: instance: testHelixMirrorMaker01 already has a live-instance in cluster uReplicatorDev
	at org.apache.helix.manager.zk.ParticipantManager.createLiveInstance(ParticipantManager.java:245)
	at org.apache.helix.manager.zk.ParticipantManager.handleNewSession(ParticipantManager.java:112)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSessionAsParticipant(ZKHelixManager.java:900)
	at org.apache.helix.manager.zk.ZKHelixManager.handleNewSession(ZKHelixManager.java:866)
	at org.apache.helix.manager.zk.ZKHelixManager.createClient(ZKHelixManager.java:493)
	at org.apache.helix.manager.zk.ZKHelixManager.connect(ZKHelixManager.java:531)
	at kafka.mirrormaker.WorkerInstance.addToHelixController(WorkerInstance.scala:340)
	at kafka.mirrormaker.WorkerInstance.start(WorkerInstance.scala:250)
	at kafka.mirrormaker.MirrorMakerWorker.main(MirrorMakerWorker.scala:109)
	at com.uber.stream.kafka.mirrormaker.starter.MirrorMakerStarter.main(MirrorMakerStarter.java:44)
[2019-10-23 08:34:47,443] INFO Is not shutting down; call cleanShutdown() (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:47,443] INFO Start clean shutdown. (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:47,443] INFO Flushing last batches and commit offsets. (kafka.mirrormaker.WorkerInstance:66)
[2019-10-23 08:34:47,444] INFO Flushing producer. (kafka.mirrormaker.WorkerInstance:66)
2019-10-23T08:35:03.282+0000: Total time for which application threads were stopped: 0.0002168 seconds, Stopping threads took: 0.0001056 seconds
2019-10-23T08:35:52.290+0000: Total time for which application threads were stopped: 0.0001672 seconds, Stopping threads took: 0.0000682 seconds
2019-10-23T08:37:58.309+0000: Total time for which application threads were stopped: 0.0001976 seconds, Stopping threads took: 0.0000903 seconds

I have some question :
1 - anyone know the recommend resource ?
2 - how can i use 1 controller with multi worker to make sure it's work everytime and increase performance ?

@yangy0000  @xhl1988 can you clarify my issue ?

you need to use different instanceId for different workers.

@yangy0000  hi , it's work , but i have cretical issue about message lost :
Run uReplicator in Kubernetes with 1 Controller + 2 Worker , it's working fine when all pod UP .
But when delete worker pod - the newest pod UP but topic is not replicate anymore .

solution is : graceful shutdown Worker .
set prestop in k8s with shell command to kill pid and all Worker restart is okay , it's replicate correctly the lag message to destination topic