Support for normal maps including from glTF models

Objective

Support tangent vertex attributes, and normal maps
Support loading these from glTF models

Solution

Make two pipelines in both the shadow and pbr passes, one for without normal maps, one for with normal maps
Select the correct pipeline to bind based on the presence of the normal map texture
Share the vertex attribute layout between shadow and pbr passes
Refactored pbr.wgsl to share a bunch of common code between the normal map and non-normal map entry points. I tried to do this in a way that will allow custom shader reuse.

Oh, I also noticed while refactoring that the shadow calculations were using the world normal from the interpolated vertex attribute and they should have been using the 'N' value I guess. So if there are normal maps, the shadow calculations will now use that normal.

Oh, I also noticed while refactoring that the shadow calculations were using the world normal from the interpolated vertex attribute and they should have been using the 'N' value I guess. So if there are normal maps, the shadow calculations will now use that normal.

It seems like the normal in fetch_directional_shadow() is used only for the normal bias, right? In that case I think using the interpolated one from the vertex attribute would cause less artifacts (for example, a "steep" angle in the normal map would throw off the bias).
Though, using the normal-mapped vector does have an interesting side effect of emphasizing the surface's structure a bit at the penumbra (it doesn't look quite "correct").

Oh, I also noticed while refactoring that the shadow calculations were using the world normal from the interpolated vertex attribute and they should have been using the 'N' value I guess. So if there are normal maps, the shadow calculations will now use that normal.

It seems like the normal in fetch_directional_shadow() is used only for the normal bias, right? In that case I think using the interpolated one from the vertex attribute would cause less artifacts (for example, a "steep" angle in the normal map would throw off the bias).
Though, using the normal-mapped vector does have an interesting side effect of emphasizing the surface's structure a bit at the penumbra (but it doesn't look quite "correct").

Good points!

I need to select the pipeline based on the presence of the tangents in vertex attributes, and add a bit flag for the presence of the normal map texture, in case the vertex attribute is present but the texture is not, so stuff doesn't just break. We'll need to think about how to handle 'error' cases - should the presence of tangents but no normal map texture issue a warning? Or switch to an 'error state' shader like just showing unlit + pink or something?

Done.

bors r+


[Question]: Are there any restrictions on where files can be placed when creating an index from a file?

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Even if you specify the path where the file is located when creating an index from a file, it will not be created successfully.
Will the index not be created unless the file is placed in the data directory under the path where the python file is located?

Hey @Ma-Fukudama,
Thanks for writing in. Are you using https://gpt-index.readthedocs.io/en/stable/examples/data_connectors/simple_directory_reader.html
If so, it should the directory + files should be accessible / exist.
Please feel free to join discord if you have any other questions!


1394-spanish-localize-microservicesarchitecture

Signed-off-by: Mo Figueroa<EMAIL_ADDRESS>Describe your changes
Related issue number #1394
Checklist before opening this PR (put x in the checkboxes)

[ x ] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[ x ] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

Wrong base


Change icon to new site icon

Would change the eye icon to the newer pink circle for favicon / ati.

Was not what I meant, I meant change the favicon or apple touch icon to the new pink one. Not header content


The Month and Year is not displaying as selected.

Hi
@SaturnTeam , I am using the latest version of sat-datepicker/sat-calendar with Angular 9. First of all I would like to thank for this awesome component. The issue that I can see is that in the month and year view,  the selected year and month is not displaying with the selected color.
Its quite hard for the users to understand the previous month and the year that was been selected by them without any selected color in these two views.
The same issue is replicable in the stackblitz examples as well. It will be very helpful if you can look into this issue and provide a fix for the same.

@SaturnTeam Any update on this? Please help me on this

@SaturnTeam Any update on this? Please help me on this

@SaturnTeam can someone please help me with some fix for this issue ?? I am stuck with it for last 5 days


Get Packages issue, When using VisualStudio Nuget Packet Maneger

Hi
At first I appreciate for the great project BaGet.
I'm trying to get packages from a BaGet server we Implemented lastly, using VisualStudio Nuget Packet Manager. These packages are downloaded in Package folder of my project, but they are not added to my references.
Issue is completely shown on the picture below.
please help me to solve this issue.
Regards
Screenshot

Hi, thanks for reaching out. This sounds like an issue with NuGet client. I'd suggest taking a look at their documentation (https://docs.microsoft.com/en-us/nuget/) or asking on stackoverflow.com. I'll close this for now but feel free to add additional comments if you run into problems with BaGet.


Use Java 21 instead of Java 17

Java 21 is the latest LTS
Java is used internally so we can upgrade without external impact. it will allow easier maintenance and more power.

Hi @apupier, I just looked at the failures and seems like the test executors also need Java updated to version 21, these are still on java-version: '17' (all 3 - ff, chrome and edge). Please hava a look - e2e-tests.yml


Add a Quit function

As a user, I expect the app to have a legit way to quit it.
The convenient way to do that is to place this func into the tray icon context menu.

Implemented


Bluetooth: Host: Fix auto-connect/sync establishment on Coded PHY

Cherry-picks the fix from upstream zephyr

Rebased on main as the PR was getting outdated.


GLTFSceneKitSample crashes when you close a window

GLTFSceneKitSample crashes when you close a window. Because the state gets restored, every time you open a new model you get a new window that you can't get rid of.
You can fix this by setting the scnView's scene to nil before the window disappears:
- (void)viewDidDisappear {
	[super viewDidDisappear];
	self.scnView.scene = nil;
}

Hmm, I can't reproduce this. What's your environment (Xcode, macOS)? Does this happen on master? What's the backtrace of the crash?

Interestingly, you need to have more than 1 window open. I was working on a macOS Document-based app that used SceneKit and used to see the same crash. Removing the scene from the view seems to fix it.
Steps to reproduce:

Run GLTFSceneKitSample in Xcode
open a model
open another model, so that 2 windows are on screen
close 1 of the windows, eg with cmd-w

macOS High Sierra 10.13.4
Xcode 9.3
Stacktrace:
2018-05-15 09:01:45.477983+0100 GLTFSceneKitSample[96028:4064468] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bear trap for: <rdar://problem/20935868> -- we are registered with a backdrop, but are resetting its cached value to nil. This makes unregistration with it impossible'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff3f8af32b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fff66f2ac76 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3f8b50c2 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x00007fff419d1340 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
	4   AppKit                              0x00007fff3cde8410 -[NSView(NSInternal) _setContainingBackdropView:] + 241
	5   AppKit                              0x00007fff3cdfe49f -[NSView(NSInternal) _recursivelyNoteBackdropViewChanged] + 69
	6   AppKit                              0x00007fff3cdfe54d -[NSView(NSInternal) _recursivelyNoteBackdropViewChanged] + 243
	7   AppKit                              0x00007fff3cda4973 -[NSView _setSuperview:] + 560
	8   AppKit                              0x00007fff3cda979d -[NSView removeFromSuperview] + 252
	9   AppKit                              0x00007fff3cebd32c -[NSView removeFromSuperviewWithoutNeedingDisplay] + 38
	10  AppKit                              0x00007fff3d66c998 -[NSView _finalize] + 1068
	11  AppKit                              0x00007fff3cdb757a -[NSView dealloc] + 164
	12  libobjc.A.dylib                     0x00007fff66f20087 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 817
	13  libdispatch.dylib                   0x00000001004a99b4 _dispatch_last_resort_autorelease_pool_pop + 27
	14  libdispatch.dylib                   0x00000001004a0894 _dispatch_queue_invoke + 389
	15  libdispatch.dylib                   0x00000001004b001a _dispatch_root_queue_drain_deferred_wlh + 785
	16  libdispatch.dylib                   0x00000001004b4ef3 _dispatch_workloop_worker_thread + 892
	17  libsystem_pthread.dylib             0x0000000100514fd6 _pthread_wqthread + 980
	18  libsystem_pthread.dylib             0x0000000100514bed start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Is this 100% reproducible for you? I still can't reproduce it under those conditions. From the stacktrace and exception message, it seems to be related to visual effect views, but what I find especially disconcerting is that it's happening on a background thread. I wouldn't expect views to be getting deallocated there.
If you delete the visual effect view from AnimationPlaybackView.xib, does this still occur? (All of the controls are subviews of the visual effect view; you can either delete them or move them to the root view for the purposes of this test).

Yes, 100%. I’ll have time later today to try what you suggested.

Yes, removing the visual effects view does stop the crash from occurring. Weird that either doing that, or setting the scene to nil, stops the crash. The exception is raised on the SCNView's sceneKit render thread.


[VL][CI] Fix clang-format version

clang-format-12 is recommended to use, but the version used by CI is 15.
See:
https://github.com/apache/incubator-gluten/blob/main/dev/formatcppcode.sh

@yma11, could you take a look? Thanks!

What's the difference between 12 and 15? 15 is used as consistent with CH backend.

What's the difference between 12 and 15? 15 is used as consistent with CH backend.

Certainly, there are some differences between 12 and 15. It's better to use one uniform version. I think either 12 or 15 is acceptable. If 15 is used, format script and doc needs to be fixed.
@liuneng1994, is there any reason for using 15 for CH cpp code?

clang-format-12 is recommended to use, but the version used by CI is 15.

why use 12?

clang-format-12 is recommended to use, but the version used by CI is 15.

why use 12?

No strong reason. Just note a gluten velox doc recommends to use 12, but CI uses 15. Maybe, we can uniformly use 15. I will fix the inconsistency.

What's the difference between 12 and 15? 15 is used as consistent with CH backend.

Certainly, there are some differences between 12 and 15. It's better to use one uniform version. I think either 12 or 15 is acceptable. If 15 is used, format script and doc needs to be fixed.
@liuneng1994, is there any reason for using 15 for CH cpp code?

There is no special reason. CH initially used clang-format-15.


Enable reuse in src/test/resources/testcontainers.properties file is ignored

Due to Custom configuration
The classpath testcontainers.properties file may exist within the local codebase (e.g. within the src/test/resources directory)
I have added src/test/resources/testcontainers.properties file with the content
docker.client.strategy=org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy
testcontainers.reuse.enable=true

But during running tests locally I got this error
Reuse was requested but the environment does not support the reuse of containers
To enable reuse of containers, you must set 'testcontainers.reuse.enable=true' in a file located at /Users/username/.testcontainers.properties

and on Jenkins pipelines
Reuse was requested but the environment does not support the reuse of containers
To enable reuse of containers, you must set 'testcontainers.reuse.enable=true' in a file located at /root/.testcontainers.properties

So, src/test/resources/testcontainers.properties file is ignored

Duplicate of #3780 and others, please see the comments there


Strategic review of onboarding folder

Summary
Make sure onboarding folder is up-to-date and relevant. Delete duplicate or un-needed files.

Goes into the wiki :)


MainSection component

This component should be consisted of main image (nin wallpaper, weather grafik, ...) and main panel (booking form, weather data, ...)

[ ]  StyledInput.js needs to be styled

[ ]  BookingForm.js needs to be constructed from StyledInputs

[ ]  Weather data fetch functions


feat: Add the Terraform module - apply Gulsum's changes

##Feature
Adding the Terraform module for the mongodb-operator charm.

Could we also add logging_endpoint to output.tf ? Other than that it looks good to me.


Dockerfile.rust: draft

Signed-off-by: Maciej Pijanowski<EMAIL_ADDRESS>

This repo is archived. The rust SDK was moved here: https://github.com/fobnail/fobnail-sdk


Fiona does not flush and sync GeoJSON files for some reason

Expected behavior and actual behavior.
I am using Geopandas. Fiona and GDAL should sync to disk when calling to_file. That does not seem to happen when writing GeoJSON files for some reason.
Steps to reproduce the problem.

Create a non-empty GeoDataFrame
Call gdf.to_file("test1")
Call gdf.to_file("test2", "GeoJSON")

If you break at fiona.collection.py method flush(), you will see that for some reason  self.session.get_length() always returns -1, when it should return the object length, therefore not syncing anything.
code to reproduce:
import geopandas
import shapely
point = shapely.geometry.Point([0, 0, 0])

data_frame = geopandas.GeoDataFrame({"geometry": [], "name": []})
print(data_frame)
data_frame = data_frame.append({"geometry": point, "name": "first"}, ignore_index=True)
print("new")
print(data_frame)
data_frame.to_file("test", "ESRI Shapefile")
data_frame.to_file("test2", "GeoJSON")

Operating system
Linux
Fiona version and provenance
1.7.8 installed via pip

Closed via 98f3ca7

Thanks a lot!
When can I expect a new release?

Target is later today, only #465 stands in the way.


Text vs images

Hey Marc –
I dunno if this should go in here or fontdiffenator, so feel free to tell me to move it if so.
A lot of the output is less useful as GIF images than it would be as csv text, namely kerns and metrics. Can we get those reports as csv (or tab-delimited) text instead?

Actually, it would be useful to get the modified glyphs as text as well so that it's easy to make a filter list and/or color them in Glyphs, then you can grab the source glyphs, paste them into the background of the new glyphs, and check how the outlines differ.


Implementation for the URL Shortener

Looking forward to collaborating on the Implementation of the URL Shortener Embedding for this Extension.

@AnthonyByansi Sounds like a good idea. I'm excited!


PC2: Breath of the Dragon feat from Dragonblood versatile heritage is missing its GrantItem Action

Player Core 2, page 45, right column, Breath of the Dragon 1st level feat should grant a 2-action activity similar to other Dragon Breath things in the system already.
I couldn't find any correct action in the system compendium packs, and obviously no GrantItem rule element on the feat since no action exists to grant.
Thank you very much for your hard work on this! The new content looks great so far!

The feat itself is an action, but it was entered as a passive. That'll be fixed, but keep in mind that it's not automated yet. Probably will be in the next few days.

Sweet! I wasn't sure how you wanted to handle it in the system as far as items go and such. Thanks very much!


Add dynamic target

Thanks for the PR, @noppefoxwolf! 👍
Could you explain for which use case the dynamic library is needed? I don't have much knowledge about static / dynamic libraries and would like to gain some understanding about why this is needed before merging it.

Thank you.
I'm not good at English.
So, I pushed example repository.
https://github.com/noppefoxwolf/DynamicUsecase
This application dependent two frameworks FrameworkA and FrameworkB.
Both frameworks dependent same static framework using SwiftPM.
As you can see from the build error, Xcode cannot link duplicated libraries.
Swift package product 'SFSafeSymbols' is linked as a static library by 'DynamicUsecase' and 2 other targets. This will result in duplication of library code.

To solve this, library needs to link as dynamic.

@noppefoxwolf Thanks for providing an example! Makes sense to me to offer a dynamic variant of SFSafeSymbols. I will now merge your PR and publish a new release 👍


Missing window title in macOS App Exposé

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it
When opening macOS' App Exposé for Zed, there are no window titles below each window, which makes it hard to find the correct window when having multiple Zed windows open at the same time.
Environment
Zed: v0.71.3 (stable)
OS: macOS 13.2.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Here is an example of how Sublime Text windows look in the App Exposé (but applies to basically any other macOS app):

This title is missing for Zed. Zed isn't showing any text at all below each window.
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

I can't say with 100 percent confidence, but I'm assuming that whatever fixes https://github.com/zed-industries/feedback/issues/457 will also fix this?  Anyway, this would be a great bit of polish.

Looks like this got added recently, it works now. Thanks!


[Play] - Final Results - Congratulations Screen

This is the base PR of a two part PR for the Final Results pages. This PR layouts out the Congratulations screen that appears prior to the Leaderboard screen.
PR Structure
[Play] - Final Results - Congratulations Screen #595
--> [Play] - Final Results - Leaderboard Screen #596
Build
For testing, I have built and uploaded the two PRs and added some debug buttons so you can still review  the Phase Results pages from PR593.
You can access this at: play.rightoneducation.com
Storybook
You can access the updated storybook here:
https://64220218d457f84ba4546eb1-tzmumcnlww.chromatic.com/
Screenshots

Figma Reference

https://www.figma.com/file/PadzU8GqyhFLCjIt7rQkpE/RightOn-Apps?node-id=13554-169669&t=Yc5EYaJ3CJRuiTB7-4
@amarax,
I've pulled the images of the monsters holding the signage from:
https://www.figma.com/file/PadzU8GqyhFLCjIt7rQkpE/RightOn-Apps?node-id=13554-169669&t=Yc5EYaJ3CJRuiTB7-4
I think we're getting the same issue with the image size normalization as we had previously. I've added a new screenshot to the existing github issue, if that works for you.
https://github.com/rightoneducation/righton-app/issues/587#issuecomment-1533885790

The monsters are not synchronised with the background colour, need to check if I mixed up the monster index.

@drewjhart for asset exports in future, please do check whether the assets have been prepared on the ASSET EXPORT page on Figma. These assets have been prepared specially to have the correct export settings, everything else is not guaranteed to have that same scrutiny. If it's missing from the page, you may first use the one directly from the Figma file as a placeholder but it may not be set up with the correct settings yet.

The monsters are not synchronised with the background colour, need to check if I mixed up the monster index.

Niec. I've matched the gradients per ASSET EXPORT.


Failed to resolve: org.idpass:smartscanner-android-api:0.0.1-SNAPSHOT

Android studio isn't able to resolve

hello @Fanom2813 👋
Please note that this is still currently unavailable as we are still working on adding this to mavenCentral.
In the meantime what you can do as a work around is by building aars and adding it directly to your own project:

Clone repo and checkout develop branch
Open in Android Studio and in Gradle tab go to idpass-smart-scanner>core-lib>Tasks>build>assemble or you can build it via terminal: ./gradlew assemble
Import newly built aar file which can be found in core-lib/build/outputs  via this  guide into your project
Build your android project and it will be ready for your usage.


feat: support absolute dist paths and use absWorkingDir is present

This PR adds the support for 2 esbuild options:

absolute outdir - if outdir is absolute, it should take it as is, instead of building a new path. The previous behavior simply concatenates the two absolute paths making them and invalid path.
If absWorkingDir option is provided, it should take it instead of process.cwd() - so you can run the build script from an entirely separate location than the built module.

In addition, this PR fixes windows-style paths (with \ separator)

Thank you for the PR @idobh2, will release a new version soon.


[HOC suggestion] withPropsOnDeepChange

See this use case:
Let's say we have these props:
{
  items: [{ id: 1, name: 'foo' }, { id: 2, name: 'bar' }],
  hiddenId: 1,
  someOtherVeryComplexObject: { ... },
}

And we want to do something like this:
withPropsOnChange(
  (props, nextProps) => {
    const subset = ['items', 'hiddenId']
    // Lodash 'isEqual' provides deep comparison
    return !_isEqual(_pick(subset, props), _pick(subset, nextProps))
  },
  props => ({
    itemsWithoutHidden: _filter(({ id }) => id !== props.hiddenId, props.items),
  })
),

It would be nicer to write it like this:
withPropsOnDeepChange(
  ['items', 'hiddenId'],
  props => ({
    itemsWithoutHidden: _filter(({ id }) => id !== props.hiddenId, props.items),
  })
),

I'm happy to make a pull request for this, but let's see first if other people find this valuable too.

Hi,
In most cases you can avoid using deep equality checks, just operate with your data in immutable manner. IMO even we all use deep equality checks sometimes I can say that for me it's really rare operation, so two-three additional lines like in your first example is not a big code overhead vs just withPropsOnDeepChange.
Also this suggestion is somehow similar to this https://github.com/acdlite/recompose/pull/120

just operate with your data in immutable manner

You mean that as long as I only do reassignments when data actually changes, object references will stay the same and will pass shallow comparison? Why didn't I realise that before :')


review reorg

Hi Alice! I believe I've made all the changes we discussed to reorganize the main branch. Therefore, I'm creating this pull request so you can review them.

Looks good. Thanks!


java.lang.AbstractMethodError with 7.4.0

Using Vaadin 7.4.0 errors like this occur, while hovering over nodes.
Using 7.3.3 it works just fine.
java.lang.AbstractMethodError: org.vaadin.visjs.networkDiagram.NetworkDiagram$5.call(Lelemental/json/JsonArray;)V
	at com.vaadin.server.JavaScriptCallbackHelper$1.call(JavaScriptCallbackHelper.java:80)
	at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:168)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:118)
	at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:291)
	at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:184)
	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:92)
	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1408)
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:350)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
	at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

Vaadin has changed their implantation of JavaScriptFunction. will have to stop devaloping if they continue to break the api like this. i have to change the base of the plugin to work with vaadin 7.4. this may take a while because im developing 3dGraph section right now.

Agreed, I am complaining to vaadin for breaking your wonderful addon :(

We at Vaadin do try hard to avoid breaking API when possible, but sometimes it cannot be avoided. Our policy is that

in maintenance versions (e.g. 7.4.7), there shouldn't be anything that breaks public API (which isn't marked as internal in the javadoc) unless unavoidable for fixing an important bug, and we try hard to minimize the breaking changes even then
minor versions (e.g. 7.4.0) may introduce new features and API and may in some cases break existing API, but we try to minimize breaking changes; if there are breaking changes, a change that breaks compilation is preferred over changes that would silently break an application at execution time
major versions may break API, but we try to ensure an easy migration path; the previous major version stays supported for a long time in parallel with a new one for those who don't want to migrate

For every release build of the framework, we do compare the public and protected API with the previous version and any changes must be explicitly approved by the product owner.
Many parts of the core API have essentially stayed unchanged (although have been expanded upon a lot) since 2009, some parts of the server side API since the early 2000s apart from a package name change that took place when the product was renamed Vaadin in 2009.
As for the specific change here, the change in JavaScriptFunction was the result of us needing to change the JSON library that we use. Unfortunately, there are some places in the public API of Vaadin where the library is exposed to the user, but fixing these in add-on or application code should be trivial.

I got it all fixed, with help from vaadin community.
You can pull my changes from
https://github.com/Swoorup/visjs

changes are merged to master. thanks for the pull Swoorup.

fixed in version <IP_ADDRESS>


[Docs][Concurrency] Fix documentation about cancellation, copy docs to a few methods

While adding documentation in https://github.com/apple/swift/pull/63956 I noticed that some of the docs are wrong, e.g. the docs mentioned that "cancelled tasks are silently discarded" which isn't true, they run as usual.
This does a cleanup pass wrt. cancellation semantics and makes it clearer and correct.
Added docs in a few spots where we didn't copy them over; sadly this API is riddled with tons of overloads which makes such mistakes possible.

@swift-ci please smoke test


[BUG] The loading of sharded checkpoints with BitBLAS is currently not supported.

Hello, thanks for your great work to make AutoGPTQ more useable.
I want to load GPTQ model and inference with BitBLAS backend.
The corresponding model loading code is:
model = GPTQModel.from_quantized(args.model, device_map='auto',torch_dtype=torch.float16, quantize_config=quant_config,backend=get_backend('BITBLAS'))

Such manner works on small models （4-bit 7B or 2-bit 13B）. However, it failed with large model, such as 4-bit 13B. The raised error is:

@ChenMnZ  We will check again if BITBLAS has recently added sharding support.

Fxed by https://github.com/ModelCloud/GPTQModel/pull/270

Need to re-open this. The fix pr was reverted as the unit-test was incorrectly passing when it should have failed for sharding+bitblas.

When initializing a BitBLAS quant linaer, fixed values of N and K are required. However, the shard runtime dispatches the shard shape to the runtime kernel. It might be beneficial to draw insights from VLLM, which allows initialization to be cognizant of shard information.

Fixed with PR #316


Typo correction on azure-sdk-authentication.md

Code example AZURE_TENANT_ID="<active_directory_tenant_id" under Service principal with certificate is missing its closing > for both PS & Bash examples
(this is my first contribution to any repo on github that I don't already own, apologies in advance if I've missed something!)

@Duffney,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

LGTM. :)

#sign-off


Neural Strategy Trade Signals Possibly Inverted

System information

Have I written custom code (as opposed to using zenbot vanilla): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 7
Zenbot version: 4.0.5
NodeJS version: v8.9.3
Python version: Python 2.7.5
Exact command to reproduce: n/a

Describe the problem
The description for the Neural Strategy is "Buy = mean(last 3 real prices) < mean(current & last prediction)" I understand this to be that if the real mean is 5 and the predicted mean is 10 then it should buy because the price is low now and predicted to go up. But the code for the strat seems to do the opposite.
Line 91 of the strategy code says that global.sig0 is true if the predicted mean is less than the current mean. If true then buy, if false then sell... In my example above the real mean is 5 and the predicted mean is 10 so this code would actually trigger a sell signal.
It seems that it needs to be changed to read "global.sig0 = global.meanp > global.mean". Running this in the sim does not yield the expected results and I am not sure why, but the basic logic behind what I am saying seems sound.
Am I missing something obvious? or is the code backwards?
Source code / logs
Lines 90-104 of zenbot/extensions/strategies/neural/strategy.js
//something strange is going on here
        global.sig0 = global.meanp < global.mean
        if (
           global.sig0 === false
           )
           {
            s.signal = 'sell'
           }
        else if
           (
           global.sig0 === true
           )
           {
           s.signal = 'buy'
           }

Tested STDDEV with reversed b/s signals = 3.57% profit, maybe all the b/s signals need to be reversed?

i tested the STDDEV strategy with standard signals with some profit too :/

lets test longer

atm i get a javascript heap OOM error
but 2 days ago i tested with a lot of simulations, all with profit (with STDDEV and Neural)

what about live trades? Anyone trying that? Profit in sims don't guarantee live profit, and that's where it counts!

simulation doesn't guarante profit because you are not waiting someone to fill your order (like in real trading)
but at least you must have the right (buy and sell) signals

Try these settings in sim: zenbot sim gdax.BTC-USD --strategy neural --buy_pct 99 --sell_pct 99 --markup_sell_pct 0.33 --markdown_buy_pct 0.33 --period 8s  --max_sell_loss_pct 10 --sell_stop_pct 20 --buy_stop_pct 20 --neurons_1 100 --depth 4 --min_periods 200 --min_predict 20 --learns 200 --profit_stop_enable_pct 50 --profit_stop_percent 50 --max_slippage_pct 5 --poll_trades 6000 --order_poll_time 3000 --order_adjust_time 3000 --rsi_periods 14

With the change I can't get profits in sim easily, but in live it seems to be buying low and selling high more often than not.

Are you using the settings above for the live trading with reverse strat?

This issue was moved to highvelocityspace/zenbot#25

This issue was moved to highvelocityspace/zenbot#55

yes

@luponata
What was the results of your extensive tests with neural and stdev, care to share your results? i'm very interested.
Did you reverse signals on any of the tests?

Still testing, i'll update you, in 2 days (too busy now)
happy new year!

Hi guys, I also think there signal are inverted, I have done a couple of weeks of live trading, trying different configuration.. in the end the only time that trade are made is when I change this "global.sig0 = global.meanp < global.mean" to this "global.sig0 = global.meanp > global.mean". I am using this settings: ./zenbot.sh trade --neurons_1=1 --min_periods 500 --min_predict 200 --learns 200 --depth 4  gdax.ETH-EUR --activation_1_type relu, but even with the default or other combination the results are the same.. I will attach 2 screenshot the first one with the default signal and the other one with the reversed signal.

With the default signal it is clear that the bot try to buy when the price go up and sell when the price go down so it never trade, with the reversed signal I actually achieved to trade but I think that it doesn't actually use the prediction in the right way, but it at least trades are made with the right timing.. This is my humble opinion.. hope this will help.. keep up the great work!

@luponata Do you have the results from your testing?

Dem test tho...

Also curious about this and if there has been any updates to the code? Seems --reverse flag might be trigger needed to actually make this strategy work?


Enable redis server as coordination backend for platform development

A lot of workflow use cases that contain parallel branches, join task, and with items task require coordination service to be configured to be executed properly. For platform development, setup coordination service using redis server as backend by default to avoid confusion in troubleshooting and debugging workflows.

I feel like this opens a can of worms. For example, how will we test that things continue to function where coordination is not present. If we are developing for the other?
JP Bourget / @punkrokk

On Oct 4, 2020, at 10:51 PM, W Chan<EMAIL_ADDRESS>wrote:

A lot of workflow use cases that contain parallel branches, join task, and with items task require coordination service to be configured to be executed properly. For platform development, setup coordination service using redis server as backend by default to avoid confusion in troubleshooting and debugging workflows.
You can view, comment on, or merge this pull request online at:
https://github.com/StackStorm/st2/pull/5052
Commit Summary
Enable redis server as coordination backend for platform development
File Changes
M Makefile (5)
M conf/st2.dev.conf (2)
Patch Links:
https://github.com/StackStorm/st2/pull/5052.patch
https://github.com/StackStorm/st2/pull/5052.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@punkrokk I'm not sure I know what you mean. Coordination service is really a requirement given that the number of workflow use cases that depends on it to work correctly. The only workflow use case that does not require coordination service are sequential workflows. For sequential workflows, the workflow engine does not invoke the coordination service whether it is configured or not. So configuring the coordination service has no bearing on testing these workflows.

I think in the documentation at the moment then it states that the coordination service is only required for the concurrency policy or HA.
I don't think it states it is needed for the other examples that have been listed, so do we also need a doc update?

Indeed coordination was really documented to be a requirement for Policies and HA only.
If the reality now that [coordination] is required for any normal Orquesta Workflow execution, - apart of just documentation update it should be added to the default StackStorm architecture and all the installers/deployment methods we have.

It really is required for any non-sequential workflows to function properly. The documentation should be updated.  We will save a lot of user headaches just including a coordination service backend as part of the StackStorm install.  For this PR here though, which is specifically to ensure development environment is setup properly at least, I'm proposing redis server as the backend.

YES omg YES. I have been wanting this as well.  Orquesta workflows don't work correctly if they are non-sequential without a coordination backend.

Ok, I see your point. I am also seeing situations where concurrency is enabled absent coordination and the scheduler service is very unhappy. (@m4dcoder )

Eugen is correct.
JP Bourget / @punkrokk

On Apr 1, 2021, at 1:26 PM, Eugen Cusmaunsa @.***> wrote:

@armab commented on this pull request.
I believe we'll need to include redis in main pip requirements https://github.com/StackStorm/st2/blob/master/requirements.txt
Besides of that, it's all good as the target is to ship the Redis as a default st2 coordination backend in v3.5.0 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add soilProfile check to Site schema.

It doesn't seem to be possible to define a condition based on a parent schema.
Begs the question: does the Australian National Soil Information System really need a LandsurveySite?


Feature: Flow Proxy Lightning Component

New component that binding CMDT records can reference in their To field. The actual flow that is displayed via a dynamically created lightning:flow tag is based on a <c:injectorAttribute name="flowName" value="yourflow"/>. This can be completely handled at the binding CMDT level when/if we add ability to specify parameters, which I'm excited about.
To try this out, add the flowProxyDemo custom component onto an Account record page. You'll know the magic has worked if when the record page loads you see something like the below screen shot:

Roadmap
Currently only supports string c:injectorAttributes to pass into the flow input variables. Next step is to add logic to injectorFlowProxyController.js to map the lightning component attribute data types to the flow variable data types to support boolean, number, date, date/time, etc

@douglascayers great work!
I added a new Flow Binding type which allows the injector to utilize the Binding.To as the actual Flow name. Thus permitting the Flow Name to be expressed externally from the point of injection. I also added support (untested as yet) to the Apex Injector.
I've got some ideas on adding declarative params to all the injectors in general, we can discuss on our team catchup. Meanwhile, let me know what you think about my changes.
Thanks, Andy

@afawcett thanks for the feedback and edits. I've committed some more changes to bring in an simple way to embed a flow in visualforce (caveat, currently only supports flows that don't need input variables, but I'm working on new approach for that too)


Fixed issues found in add-network-partition CLI command

Fixed issues found in add-network-partition CLI command

Thanks for the fix Dinithi.


Blog app - Add forms

PR checklist :

[x] Use preprocessed HTML file with embedded Ruby code.
[x] Use layouts and templates for shared content.

@peterrobert  yes I am repeating the module, that's why it's already approved and merged.


Remake VehiclePhysicsControl and WheelPhysicsControl

VehiclePhysicsControl and WheelPhysicsControl are a 1-to-1 match of the vehicle and wheels PhysX parameters. As Chaos is now used for UE5, these have to be changed to match the new parameters

In fact, in UE4 version of the CARLA project, the carla.VehiclePhysicsControl class in the PythonAPI also lacks some PhysX dynamic parameters.
For example, the differential parameters shown below
Official Document:

The red box surrounds the missing parameters:


Password reset for accounts using OTP (phone number as usernames)

Bug report
There doesn't seem to be a way to reset passwords for accounts made using phone number (OTP) based log in.
Describe the bug
See above
To Reproduce

Create an account using phone number (OTP) auth
Try to reset the password

Expected behavior
Password reset works with phone number based auth (i.e. situations where we don't have the user's email)
Additional context
This is quite vital for mobile apps

Hi @alexreyes, I'm not sure I understand the problem. OTP based login is a passwordless login method. There is no password stored for the user. Each time a person needs to log in, a new, random and unguessable password is generated (thus called One Time Password) and sent to their SMS.
Forgot password does not apply in this case.

@hf My bad, what I meant is: password reset is needed for accounts which use a phone number as the username. Currently password reset is only supported for email based accounts


Testing environment for CLI

It's become clear that our Travis setup isn't currently adequate for testing our CLI or more specifically the unreleased work we do on it.
The problem lies in the fact that Travis when provisioning is installing sass-lint globally for CLI testing purposes but this obviously means it's only installing it at the last released version which at the time of writing is 1.2.0.
Some of the work I've done for 1.2.1 #170 and 1.3.1 #152 is currently blocked with tests failing on Travis. Locally they are working fine but this is just because I've symlinked my globally installed sass-lint to my development copy.
This doesn't affect testing of non CLI work at all but is leading to quite a few false positives in the CLI tests.
Any thoughts on how to progress or how we'd like to modify our Travis setup.

As a temporary fix, do you think something like the following would work on Travis CI? It looks like it's working locally for me:
var command = path.resolve(__dirname, '../bin/sass-lint.js') + ' -h';

I'm open to all suggestions, personally I'd rather it wasn't code we add directly to sass-lint and we just get some way of making sure the CLI global install is up to date with development for testing, with pluggable rules on the cards I can see some fairly big core additions and CLI changes coming.
Definitely need to get this sorted soon though, 1.2.1 has a lot of very useful hotfixes in that we need to get out.

Nice one @mven


scrolling to bottom?

is there a call to scroll to the bottom of the stack?

Hi!
The timeline view inherits from UIScrollView so you are able to simply call .setContentOffset(contentOffset: CGPoint, animated: Bool).
The following snippet should work 😉
let bottom = CGPointMake(0, timeline.contentSize.height - timeline.bounds.size.height)
timeline.setContentOffset(bottom, animated: true)


Option to polyfill color inputs

Add an option to polyfill native color input fields
Resolves issue https://github.com/josedvq/colpick-jQuery-Color-Picker/issues/29

By default this fix prevents the native colorpicker default event. You may set polyfill to true, so the plugin activates only if no native solution is available.


Getting a GemRequireError with a default app

I've been playing around with the demo app and now decided to try building one myself so just started a new rails project, added the gem to Gemfile, ran bundle install, and then ran rails s. But it's throwing an error. Below is the entire log from when i start the project till I run the server where it actually throws the error (This is the simplest version but i have also tried generating scaffold before this attempt and it failed the same way)
Any idea what I might be doing wrong?
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 2.0.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using bundler 1.13.7
Using byebug 9.0.6
Using coffee-script-source 1.12.2

  1 source 'https://rubygems.org'
Using execjs 2.7.0
Using method_source 0.8.2
Using thor 0.19.4
Using debug_inspector 0.0.2
Using ffi 1.9.18
Using multi_json 1.12.1
Using rb-fsevent 0.9.8
Using puma 3.8.2
Using sass 3.4.23
Using tilt 2.0.7
Using sqlite3 1.3.13
Using turbolinks-source 5.0.0
Using tzinfo 1.2.2
Using nokogiri <IP_ADDRESS>
Using rack-test 0.6.3
Using sprockets 3.7.1
Using websocket-driver 0.6.5
Using mime-types 3.1
Using coffee-script 2.4.1
Using uglifier 3.1.9
Using rb-inotify 0.9.8
Using turbolinks 5.0.1
Using activesupport 5.0.2
Using loofah 2.0.3
Using mail 2.6.4
Using listen 3.0.8
Using rails-dom-testing 2.0.2
Using globalid 0.3.7
Using activemodel 5.0.2
Using jbuilder 2.6.3
Using spring 2.0.1
Using rails-html-sanitizer 1.0.3
Using activejob 5.0.2
Using activerecord 5.0.2
Using spring-watcher-listen 2.0.1
Using actionview 5.0.2
Using actionpack 5.0.2
Using actioncable 5.0.2
Using actionmailer 5.0.2
Using railties 5.0.2
Using sprockets-rails 3.2.0
Using coffee-rails 4.2.1
Using jquery-rails 4.2.2
Using web-console 3.4.0
Using rails 5.0.2
Using sass-rails 5.0.6
Bundle complete! 15 Gemfile dependencies, 62 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
         run  bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
es-MacBook-Pro:Examples e$ cd jrailsexample/
es-MacBook-Pro:jrailsexample e$ ls
Gemfile		README.md	app		config		db		log		test		vendor
Gemfile.lock	Rakefile	bin		config.ru	lib		public		tmp
es-MacBook-Pro:jrailsexample e$ vim Gemfile
es-MacBook-Pro:jrailsexample e$ bundle install
Resolving dependencies...
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 2.0.1
Using nio4r 2.0.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using bundler 1.13.7
Using byebug 9.0.6
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using method_source 0.8.2
Using thor 0.19.4
Using debug_inspector 0.0.2
Using ffi 1.9.18
Using multi_json 1.12.1
Using rb-fsevent 0.9.8
Using puma 3.8.2
Using sass 3.4.23
Using tilt 2.0.7
Using sqlite3 1.3.13
Using turbolinks-source 5.0.0
Using tzinfo 1.2.2
Using nokogiri <IP_ADDRESS>
Using rack-test 0.6.3
Using sprockets 3.7.1
Using websocket-driver 0.6.5
Using mime-types 3.1
Using coffee-script 2.4.1
Using uglifier 3.1.9
Using rb-inotify 0.9.8
Using turbolinks 5.0.1
Using activesupport 5.0.2
Using loofah 2.0.3
Using mail 2.6.4
Using listen 3.0.8
Using rails-dom-testing 2.0.2
Using globalid 0.3.7
Using activemodel 5.0.2
Using jbuilder 2.6.3
Using spring 2.0.1
Using rails-html-sanitizer 1.0.3
Using activejob 5.0.2
Using activerecord 5.0.2
Using spring-watcher-listen 2.0.1
Using actionview 5.0.2
Using actionpack 5.0.2
Using actioncable 5.0.2
Using actionmailer 5.0.2
Using railties 5.0.2
Using sprockets-rails 3.2.0
Using coffee-rails 4.2.1
Using jquery-rails 4.2.2
Using web-console 3.4.0
Using rails 5.0.2
Using sass-rails 5.0.6
Using jasonette-rails 0.1.1
Bundle complete! 16 Gemfile dependencies, 63 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
es-MacBook-Pro:jrailsexample e$ rails s
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'jasonette-rails'. (Bundler::GemRequireError)
Gem Load Error is: uninitialized constant Jasonette
Backtrace for gem load error is:
/usr/local/lib/ruby/gems/2.4.0/gems/jasonette-rails-0.1.1/lib/jasonette/core/properties.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/jasonette-rails-0.1.1/lib/jasonette.rb:5:in `require_relative'
/usr/local/lib/ruby/gems/2.4.0/gems/jasonette-rails-0.1.1/lib/jasonette.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/jasonette-rails-0.1.1/lib/jasonette-rails.rb:1:in `require_relative'
/usr/local/lib/ruby/gems/2.4.0/gems/jasonette-rails-0.1.1/lib/jasonette-rails.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
/usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
/Users/e/Documents/Projects/Jason/Examples/jrailsexample/config/application.rb:7:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
/Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/rails:9:in `require'
/Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/rails:9:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
/usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
/usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
/Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Bundler Error Backtrace:
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
	from /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
	from /Users/e/Documents/Projects/Jason/Examples/jrailsexample/config/application.rb:7:in `<top (required)>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
	from /usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
	from /Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/rails:9:in `require'
	from /Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/rails:9:in `<top (required)>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
	from /usr/local/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
	from /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Users/e/Documents/Projects/Jason/Examples/jrailsexample/bin/spring:15:in `<top (required)>'
	from bin/rails:3:in `load'
	from bin/rails:3:in `<main>'
es-MacBook-Pro:jrailsexample e$

That's odd.  I'll have to try it myself and see what the problem is.

Found the problem.  Jasonette module was being referenced in properties.rb before it was declared.  Not sure why it works in existing apps, yet breaks in new apps, but nevertheless it's fixed and updated gem released.
bundle update jasonette-rails

Installing jasonette-rails 0.1.2 (was 0.1.1)
Bundle updated!

Thanks! That worked!


promu doesn't respect GOPROXY env

promu doesn't respect GOPROXY env.
See below, packages are not downloaded from GOPROXY
export GOPROXY=https://goproxy.cn
promu build --prefix prometheus

go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/prometheus/common v0.15.0
...

false alert closing

false alert closing

have you solved it?
How to set GOPROXY in promu crossbuild


Full year

Hello,
Is it possible to show 2019 instead of 19?

Hi,
I'm wondering the same, it would really appreciated to have a little help with that
thanks


Error: Text strings must be rendered within a  component.

Similar to the issue posted here:.
import {PortableText, toPlainText, PortableTextComponents} from '@portabletext/react'
import type {PortableTextBlock} from '@portabletext/types'

...

const blocks = [
  {
    "_key": "13adecf97214",
    "_type": "block",
    "children": [
      {
        "_key": "0914e35531130",
        "_type": "span",
        "marks": [],
        "text": "Under IDEA law, an "
      },
      {
        "_key": "41ac34580ba5",
        "_type": "span",
        "marks": [
          "c2a8881bef79"
        ],
        "text": "IEP"
      },
      {
        "_key": "734c9644b508",
        "_type": "span",
        "marks": [],
        "text": " is a legal..."
      }
    ],
    "markDefs": [
      {
        "_key": "c2a8881bef79",
        "_type": "link",
        "href": "https://www.../"
      }
    ],
    "style": "normal"
  }
]

...
<PortableText value={blocks} />
Gives error:
Error: Text strings must be rendered within a  component.
This error is located at:
in p (created by normal)
in normal (created by ae)
in ae (created by WordViewBody)
in RCTView (created by View)
in View (created by WordViewBody)
in WordViewBody (created by WordView)
in RNCSafeAreaView
in Unknown (created by WordView)
in WordView (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by SceneView)
in RCTView (created by View)
in View (created by DebugContainer)
in DebugContainer (created by MaybeNestedStack)
in MaybeNestedStack (created by SceneView)
in RNSScreen (created by AnimatedComponent)
in AnimatedComponent
in AnimatedComponentWrapper (created by Screen)
in MaybeFreeze (created by Screen)
in Screen (created by SceneView)
in SceneView (created by NativeStackViewInner)
in RNSScreenStack (created by ScreenStack)
in ScreenStack (created by NativeStackViewInner)
in NativeStackViewInner (created by NativeStackView)
in RCTView (created by View)
in View (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by NativeStackView)
in NativeStackView (created by NativeStackNavigator)
in Unknown (created by NativeStackNavigator)
in NativeStackNavigator (created by Navigation)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by Navigation)
in Navigation (created by App)
in WordContextProvider (created by App)
in BookmarkContextProvider (created by App)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by App)
in App (created by ExpoRoot)
in ExpoRoot
in RCTView (created by View)
in View (created by AppContainer)
in DevAppContainer (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent)
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:95:4 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:141:19 in handleException
at node_modules/react-native/Libraries/Core/ReactFiberErrorDialog.js:52:4 in showErrorDialog
at hooks/useTerms.ts:36:16 in

Looks like you're importing from @portabletext/react, not @portabletext/react-native?

That was it, thanks!


Ability to use a private key for maven-publish plugin.

Expected Behavior

As stated on https://issues.gradle.org/browse/GRADLE-3472 it would be great if we could publish to maven using sftp and a private key.
https://issues.gradle.org/browse/GRADLE-3473
Current Behavior

As stated by @mark-vieira on the forums it only supports username and password auth
Context

Adding this feature would make it so we don't have to put a username and password in a gradle.properties to be able to publish to a remote maven.
Steps to Reproduce (for bugs)

Your Environment

Build scan URL:

I can't wait for this to happen. That will make my job easier and I will be able to not allow passwords only keys for users again.

any updates on this feature?

Looks like #1263 is a dupe of this issue and there's a PR associated it with it. Not sure if it's made it into a release build or not yet.

Closing as a duplicate of #1263, which is a little more general but would encompass this use case.


Example with custom webpack config

I might have missed it, but didn't find an example showing the use of custom webpack config (except for the short snippet in the README). I'm trying to figure out how to stub 'fs' client-side so that I can still require that module server-side (https://github.com/zeit/next.js/issues/1091).

Does this do: https://github.com/zeit/next.js/blob/master/examples/with-webpack-bundle-analyzer/next.config.js
It shows how you can set custom options to webpack @sedubois

Yes that's a start 👍 Would be worth linking from the README section on custom webpack config then. @timneutkens


Feedback to user when action failed

When adding an appointment or removing existing one - action failed because of bad server response - show some feedback to user like toast notification saying - Error - can not access server - or whatever

How are we going to test this?

For example open the page, edit appointment and before saving disconnect from the web, or temporary change path to endpoint in appointmentService


#77 added feedback to form handler

Description of changes
added "Loading..." text to the button when the user submits their information and waits on a response from the server.
Issue Resolved

Fixes #77

I'm not sure if I did this right. Would love to know how I can improve my code. Thanks!


Update .ci.yaml to include google test

So Frob can send the test results to the dashboard.

For the ci.yaml error: I sent https://flutter-review.googlesource.com/c/infra/+/25560 to fix it (it's an issue with the starlark generator)
For the test owners, you'll need to add a TESTOWNERS line (\cc @keyonghan would be able to help since this doesn't follow the standard format)


Refining build process for map tiles #8

https://github.com/throneless-tech/piecewise/issues/8

This issue doesn't need to be here. Duplicate of #151


Memory error in Raylib

So, when i try to run the application, a console window open, and, after about 1 second of loading, this show up:

I don't really know what's happening, and, since the only modifiable file is the MyBot.cs, i don't think it would be fair for me to try to fix this myself...
I'm using visual studio 2022, i installed the C# (.NET) development and the desktop development with C# (I don't I'm missing something)

(it's in Portuguese and it says:
Desktop development with .NET (left one) and
Universal Windows platform development (right one))

I have the same. I'll try to figure out a workaround but I have really no idea what's going on. And yes on Visual Studio 2022.

If I set SDF_ENABLED I get the same memory error but from LoadFontEx... 🤔

@zment4 something is definitely wrong XD
You're using Windows 11?

Windows 10 Home
su 23. heinäk. 2023 klo 4.26 EverRak @.***> kirjoitti:

@zment4 https://github.com/zment4 something is definitely wrong XD
You're using Windows 11?
—
Reply to this email directly, view it on GitHub
https://github.com/SebLague/Chess-Challenge/issues/75#issuecomment-1646717346,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVICFMZJ5JOEOJC3HMZXMDXRR4TFANCNFSM6AAAAAA2TFVIQI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@zment4 ok... so the problem is not windows

I tested with a base raylib project, and it fails on creating a GL window. My current thesis on the problem is that my laptop's GPU is not supported by raylib 😢

oh no... That's probably my problem too... i don't really have a GPU so...

Talking with people on raylib discord we found the problem was OpenGL version support. Raylib defaults to OpenGL 3.3, but my laptop GPU doesn't support that high. Raylib can be compiled with an earlier version, so they made a test for OpenGL 2.1 and that worked just fine. I'm currently in the process of figuring out how to do it on my own so I can maybe share that if I get it working.

@zment4 Yeaaah! Thank you dude :D

Alright, managed to finally test the project with a Raylib DLL built for OpenGL 2.1. After building, the raylib.dll needs to be replaced with this one at location Chess-Challenge\bin\Release\net6.0\runtimes\win-x64\native and in case the problem was no support for OpenGL 3.3, this should make it run now.
If I understand the build system correctly, the raylib.dll will get replaced after every build, so it's a bit of a chore, but I'll try to figure out a way to either make the replacing automatic (post-build copy action maybe?) or replace the DLL where it gets copied from in the first place.
raylib_ogl21.zip

@zment4 Perfect, do you want to let the issue open?

I don't mind either way. Seeing as this more a workaround than a fix it might as well be left open.
Oh and btw setting up a post-build step for copying the dll to the correct folder like so copy /Y $(ProjectDir)..\raylib_ogl21.dll $(OutDir)runtimes\win-x64\native\raylib.dll made building and running the program so much easier.

I don't mind either way. Seeing as this is more a workaround than a fix it might as well be left open.
Oh and btw setting up a post-build step for copying the dll to the correct folder like so copy /Y $(ProjectDir)..\raylib_ogl21.dll $(OutDir)runtimes\win-x64\native\raylib.dll made building and running the program so much easier.

So, you found a "usable" fix for now?
Until now i made nothing except for thinking about what to do because i couldn't run the project :,)

Yes, replacing the Raylib-cs provided raylib.dll (which use OpenGL 3.3) with one that was compiled targeting OpenGL 2.1 (the one I linked) fixes the issue for me. With the post-build step copy it's also pretty seamless, after setting it up it works after every build without unnecessary manual copying.

I will test it to see if i get something to work

@zment4 - Well, it seems like my computer is worst than i expected... After doing what you said, and even after that, fixing some more things, i still didn't get it to work...

I'm also getting the same error. I tried replacing the .dll file after building and that still didn't work for me. Also, for some reason I don't have the Chess-Challenge\bin\Release\net6.0\runtimes\win-x64\native directory. Instead of 'Release', it's 'Debug'.

I'm building the project and replacing the file, and when I run it, it gives me the same error. It looks like it's re-building itself every every time it's run. I looked at the file after I replaced it (showing that the modified time was just a few minutes ago), and when I run it, the file (raylib.dll) is suddenly replaced with an older version (from 2023) which is probably the original.
Is there a fix for this?
I'm using Windows 10, but have a Core i3, which I don't know if it's causing the problem or not.

Never mind. I looked further into (at least my) the dotnet command lines and used
dotnet run Chess-Challenge.csproj --no-build to run the project and it worked without error. You still have to replace the "raylib.dll" file every time, but that can be fixed from one of the comments from @zment4 .


Fix precommit scripts on OSX

JerryScript-DCO-1.0-Signed-off-by: François Baldassari<EMAIL_ADDRESS>

LGTM

LGTM

(After the else fix).

Added the else clause and rebased on master.


beautiful output drops off unexpectdly

I have a strange issue where I see the beautiful output at the start of the trace and then it stops for the rest of the trace starting at (#24 below).  The line numbers are present but the surrounding lines and the coloring are not.   I don't know if this has something to do with gtest or how it's getting channeled through some standard library calls.
#25 | Source "/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/std_function.h", line 291, in __invoke_r<int, int (*&)(int, char**), int, char**>
    |   289:       _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
    |   290:       {
    | > 291: 	return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor),
    |   292: 				     std::forward<_ArgTypes>(__args)...);
    |   293:       }
    | Source "/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/invoke.h", line 113, in __invoke_impl<int, int (*&)(int, char**), int, char**>
    |   111: 					std::forward<_Args>(__args)...);
    |   112:       else
    | > 113: 	return std::__invoke_impl<__type>(__tag{},
    |   114: 					  std::forward<_Callable>(__fn),
    |   115: 					  std::forward<_Args>(__args)...);
      Source "/opt/rh/devtoolset-10/root/usr/include/c++/10/bits/invoke.h", line 60, in _M_invoke [0x50f3e3]
         57:   template<typename _Res, typename _Fn, typename... _Args>
         58:     constexpr _Res
         59:     __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args)
      >  60:     { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
         61:
         62:   template<typename _Res, typename _MemFun, typename _Tp, typename... _Args>
         63:     constexpr _Res
#24 | Source "../../util/gtest/utest/GTestMain.cc", line 8, in RUN_ALL_TESTS
      Source "../../third_party/gcc/10.2.1/gtest/1.12.1/include/gtest/gtest.h", line 2293, in gTestMain [0x50f2b4]
#23   Object "/home/erik/src/interpreta/out/debug/lib/libgtest.so.1.12.1", at 0x7fc9c268ddb1, in testing::UnitTest::Run()

It most likely fails to open the source files with relative path. You must run your binary with a "current working directory" that matches the relative paths. Another option is to configure your build system to include absolute paths to the source code.
The trace #23 doesn't include source file information. That is why only the Object information are printed out.

Yes that is it.  Everything works as expected when I run the binary from the same directory it was compiled in.  I'm checking to see if absolute paths are possible with the GN build tool that we use.
Is there any runtime mechanism, like a source directory, that could be specified to reference the source from a specified directory? It might make a nice enhancement for build tools that naturally want to use relative paths.

There is no such mechanism. But feel free to fork and adapt it to your needs. The Printer uses the filename from the debug info verbatim. You could add some logic in there to probe multiple locations. Based on some environment variables if you wish to do so.

I was able to create my own Printer where I can use a source directory to adjust for the path.  In my case, I'm using information from argc[0] to determine what the path should be so that there is no need for additional parameters (environment variables or otherwise).   I have to replicate all of the formatting in backward::Printer but a bigger issue is that SignalHandling is hardwired backward::Printer so I will have to lift that class too for signal based traces.
There is an interesting response to my related question on the GN dev list.
https://groups.google.com/a/chromium.org/g/gn-dev/c/DwpCMMivOb8


Don't promote putting stuff other than lyrics into

The verse number is encoded in @n, IMO it has no place in <syl>.

I agree.


IOS 8 : xCode 6 : Unknown type BOOL Error

On line 14 of simplePopUp.m, I keep getting this error....
 typedef void (^completion)(BOOL success);

any idea what I can do to fix it?  I've sourced out your h and m's into a test project. I changed the above line to:
typedef void (^completion)();

and the app compiles and runs without error.  Question:  Did I break something I don't know about by modifying the block?
Thanx in Advance

Any updates?

I had the very same issue, and found that I just had to include these two imports:
#import <QuartzCore/QuartzCore.h>
#import <Accelerate/Accelerate.h>


RabbitMQ Java Client 4.0 is released

http://www.rabbitmq.com/blog/2016/11/24/rabbitmq-java-client-4-0-is-released/
Looks like a major release that contain useful features, any plan to upgrade?

We are about to release the first milestone of Spring AMQP 2.0 and it is based on the 4.0.0 client.

We will also be releasing 1.7.0 with Spring Boot 1.5 and it, too, will be compatible with 4.0.0.


Ability to deduplicate rolltable added items, just increasing the quantity instead

Silly Example

Would be nice if it looked first to see if the item existed and added to quantity? I can see other people wanting different behaviour so probably best to make that a swappable behaviour.
Dropdown of options like:
Ignore Duplicates - Don't add Items, Don't Add Quantity.
Deduplicate - Don't add Items, Do add to Quantity.
Duplicate - Add Items, Don't add to quantity (original behaviour)

Totally agree but this doesn't seem straightforward to do as every item added gets a unique ID, even if it's the same item.

could you maybe iterate over the items with a .map, returning the same item with +1 quantity if the names match ? I haven't looked at the code, but it should be moderately easy if you have a list of items as I presume, I'll see if I can give it a look later!

Technically yes, though matching by name.... yuck :)

On Dec 15, 2020, at 3:36 AM, ccjmk<EMAIL_ADDRESS>wrote:

could you maybe iterate over the items with a .map, returning the same item with +1 quantity if the names match ? I haven't looked at the code, but it should be moderately easy if you have a list of items as I presume, I'll see if I can give it a look later!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Well, yes, if you are worried about performance, you could work around something like adding stuff into a binary tree for searching or something, but it honestly sounds a little overkill for what, 50+ items tops?

Technically yes, though matching by name.... yuck :)
…
On Dec 15, 2020, at 3:36 AM, ccjmk @.***> wrote:  could you maybe iterate over the items with a .map, returning the same item with +1 quantity if the names match ? I haven't looked at the code, but it should be moderately easy if you have a list of items as I presume, I'll see if I can give it a look later! — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Yeah, I think matching by name is the right thing to do here. If it's the performance that you're objecting to, I'm the IDs are strings anyway so if you're already checking for duplicates by ID somewhere you're doing string matching (or it's looking them up in a hash, I guess). Also, what @ccjmk said: I don't think it's not enough items to worry about.

Yeah, I think matching by name is the right thing to do here. If it's the performance that you're objecting to, I'm the IDs are strings anyway so if you're already checking for duplicates by ID somewhere you're doing string matching (or it's looking them up in a hash, I guess). Also, what @ccjmk said: I don't think it's not enough items to worry about.

This is now default behaviour.

This is now default behaviour.


Dist stylesheets and minification

I'm submitting a topic for discussion.
Short description of the issue/suggestion:
When upgrading dev dependencies locally, I had to replace the PostCSS plugin for minification, postcss-clean, as it basically broke and errored the build process.
It wasn’t hard to find another one but, given times have changed and we’re now seeing people advise to even distribute sourcemaps so that it can be easier to debug, I’m wondering whether we should even minify the dist stylesheets in the first place and just let users do it on their own if they see it necessary.

my take: let consumers of ReadiumCSS do it themselves. Nowadays I would use LightningCSS anyway, not PostCSS
https://github.com/parcel-bundler/lightningcss

I agree with @danielweck - users of this project should take care of the minfication themselves. We should burden ourselves with being responsible for this, as there are two many possibilities to take into account. Would we include a sourcemap in the minified bundle? What format would the sourcemap be? What dependency would we use for this? etc.
The bundles should definitely still be made in my opinion, they are very helpful.

The bundles should definitely still be made in my opinion, they are very helpful.

Yep, I agree.


Use of GridKt.expectRow with a custom renderer

We have a ComponentRenderer that creates a Div and then Spans within for multi-line presentation.  There are cases where testing the actual renderer output is desirable, due to manipulations which may occur there.
Previously with the default ColumnPathRenderer we were able to extract the actual value.  Now with our custom renderer the output comes out as "Div[]" which isn't very helpful for testing.
Do you have any suggestions for us (other than implementing a custom solution where we might enhance Grid.kt getPresentationValue method to deal with our custom renderer)?
A simple solution could be for the ComponentRenderer block of getPresentationValue to be enhanced to do a deeper representation than component.toPrettyString() does currently.  Though I suppose that would break backward compatibility.
Or perhaps there could be some sort of abstraction, registered with the renderer type, for navigating the expected renderer component tree and return a value.
Thanks

Hi, I think I may have exactly what you need; I just forgot to document it :-D
It's now documented, please see https://github.com/mvysny/karibu-testing/tree/master/karibu-testing-v10#customizing-dump-for-your-components for more details. Please let me know whether that solves your issue.

That worked great!

Excellent, I'm happy to hear that :) Closing as fixed.


Fix asserts in multiplexer plugin.

[approve ci autest]

[approve ci]

[approve ci]

@randall I think this is really done now.
https://movieboozer.com/wp-content/uploads/2014/08/lucy-football.jpg

Cherry-picked to v9.1.x branch.


NIFI-7833 - Add Ozone support in Hadoop components where appropriate

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Enables X functionality; fixes bug NIFI-YYYY.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically main)?

[ ] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Tested against a cluster where Ozone 1.1.0 was installed with Kerberos enabled.

Added core-site, and ozone-site XML files as configuration files
Ensured that the proper properties are indicated in core-site.xml

<property>
  <name>fs.AbstractFileSystem.o3fs.impl</name>
  <value>org.apache.hadoop.fs.ozone.OzFs</value>
</property>
<property>
  <name>fs.defaultFS</name>
  <value>o3fs://bucket.volume</value>
</property>

It's important to note that for the FetchHDFS processor, it's important to specify the fully qualified path and not just the relative path to the bucket. In other words, ListHDFS will list a file with path equal to / and name equal to foo.txt, if leaving the default property for FetchHDFS, you might get this error:
2020-09-25 11:16:24,155 WARN org.apache.nifi.controller.tasks.ConnectableTask: Administratively Yielding FetchHDFS[id=c04a869b-0174-1000-0000-00003e0aa21b] due to uncaught Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1931)
	at org.apache.hadoop.fs.ozone.BasicOzoneFileSystem.pathToKey(BasicOzoneFileSystem.java:748)
	at org.apache.hadoop.fs.ozone.BasicOzoneFileSystem.open(BasicOzoneFileSystem.java:212)
	at org.apache.nifi.processors.hadoop.FetchHDFS$1.run(FetchHDFS.java:161)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1710)
	at org.apache.nifi.processors.hadoop.FetchHDFS.onTrigger(FetchHDFS.java:140)
	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
	at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

You'll need to change the property in the FetchHDFS processor to use o3fs://bucket.volume/${path}/${name} instead of the default ${path}/${name}.

Looks good, will merge, thanks!


Google PubSub Subscriber does not fail on Unauthenticated exception

Thanks for stopping by to let us know something could be better!
Please include as much information as possible:
Environment details

OS: Mac and Ubuntu-Linux
Java version: 8
google-cloud-java version(s): 1.40.0

Steps to reproduce

Run com.google.cloud.pubsub.v1.Subscriber as usual using FixedCredentialsProvider
Delete the credential
I am expecting it to fail, but it does not seems to fail, just printing lots of error messages, is this by design?

Stacktrace
io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
	at io.grpc.Status.asRuntimeException(Status.java:526)
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:420)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:403)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:459)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:546)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:467)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:584)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Code snippet
I am running in Scala, but I doubt it matters
      val subscriber = Subscriber
        .newBuilder(subscriptionName, messageReceiver)
        .setCredentialsProvider(credentialsProvider)
        .setFlowControlSettings(flowControl)
        .build()

      val done = subscriber.startAsync()
      done.awaitTerminated()

Thanks!

Have you tried implementing a listener on your subscriber to handle the state?
subscriber.addListener(...)
You could also try checking the status of the subscriber after starting the async worker.

Hi @kolea2
I've tried adding listener, but it was not triggered as well, I think the subscriber does not enter FAILED state

Hi @qingwei91, I tried reproducing this and was able to get this to enter the failed state. I created a subscriber with valid credentials, saw no errors. I then deleted the credentials, reran, and saw the same error you did and it entering the failed state. To highlight, here's a piece of my listener code (in Java):
subscriber.addListener(new Subscriber.Listener() {
        @Override
        public void failed(ApiService.State from, Throwable failure) {
             System.out.println("Failed");
        }
        ...

My error message is the same as what you posted above, and I can see "Failed" being printed to the console. Any other information or steps I could be missing to help debug this?

@kolea2 Thanks for putting in effort, can you try to let it continue running instead of rerunning it ?
I can confirm the program throws exception when it starts with invalid credentials, but what if I remove the credentials without restarting the program?
so far my observation is that it prints out error message, but it does not fail the main program even after 5 minutes

Sure - I ran again with valid credentials, no issues, deleted them, and then did get into the failure state with the UnauthenticatedException stack trace (without stopping and rerunning). I noticed you're using version 1.40.0 - can you try upgrading the library? I'm using version 1.56.0 for Pub/Sub. Hope that helps!


Template instance not found on GCP (eratically)

Current Behavior
When installing a new connector I get the following error:
The resource 'projects/xxx/zones/europe-west1-c/instances/scrapoxy-template-instance' was not found
I can see in gcp that the instance is trying to create. I can see no errors in the gcp console. After a few seconds the instance is gone and the error is thrown.
Expected Behavior
Connector is installed correctly
Steps to Reproduce
For me it occured after uninstalling a connector and then trying to install it again

Install connector with fresh scrapoxy deployment (typically works)
Uninstall the connector (works)
Install another connector (does not work with error0

Failure Logs
I cannot see that there are any usable logs besides the error in my deployment. I use the helm chart on Kubernetes (which is awesome in general btw)

Scrapoxy Version
latest (4)
Custom Version

[X] No
[ ] Yes

Deployment

[ ] Docker
[ ] Docker Compose
[X] Kubernetes
[ ] NPM
[ ] Other (Specify in Additional Information)

Operating System

[X] Linux
[ ] Windows
[ ] macOS
[ ] Other (Specify in Additional Information)

Storage

[ ] File (default)
[ ] MongoDB & RabbitMQ
[ ] Other (Specify in Additional Information)

Additional Information
I changed the commander to LoadBalancer to have an accessible external IP. But that should have no impact afaik.
It also does not work with docker Anymore :(

Good to know that can happen.
Envoyé Scrapoxy !

Is there a known solution for this issue? I'm coming across the same problem as OP.


Allow v0.9.0 to silent install via netboot with kernel&initrd issue #56

Hi all,
I really needed silent install functionality via iPXE/Netboot functionality so looked into this old issue. Have documented the issues I was running into in #56
While this does work and i'm able to silent install v0.9.0 via netboot by setting the k3os.install.iso_url kernel arg, I'm concerned a lot of people are potentially using the k3os.install.iso_url flag to point the installer to their own customized ISO's in non-netboot scenarios, and the flag may be used beyond it's description in the docs? If so, maybe a new k3os.install.netboot=true flag to hide this type of "extra download step" functionality behind?
PS, first PR to the project, build process with make and dapper was super painless and easy to understand. Made getting involved easier than expected, thanks for all the hard work!

@metahertz looking into this further, and running through a silent install via qemu without the iso mounted, I think these changes are too early in the process and ultimately not necessary.
Here is how I run qemu to "replicate" (its not netboot, afterall) your silent install setup:
exec qemu-system-x86_64 -m 2048 -machine accel=hax:kvm:hvf:tcg -nographic -serial mon:stdio -rtc base=utc,clock=rt \
-kernel dist/artifacts/k3os-vmlinuz-amd64 \
-initrd dist/artifacts/k3os-initrd-amd64 \
-drive if=virtio,media=disk,file=build/state/k3os-dev/vda.img \
-append 'console=ttyS0 loglevel=4 printk.devkmsg=on \
  ssh_authorized_keys=github:dweomer \
  k3os.mode=install \
  k3os.install.silent \
  k3os.install.device=/dev/vda \
  k3os.install.power_off=true \
  k3os.install.iso_url=https://github.com/rancher/k3os/releases/download/v0.9.1/k3os-amd64.iso \
'

and here is the console output:
Started bpfilter
 *  Welcome to k3OS v0.9.1-1-g794ce9f-dirty
chpasswd: password for 'rancher' changed
 *  Bootstrapped
 *  Running mode: install
mount: /.base: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
 *  Waiting for USB for 1 seconds
mount: /.base: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
 *  Waiting for USB for 2 seconds
mount: /.base: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
 *  Waiting for USB for 3 seconds
mount: /.base: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
 *  Waiting for USB for 4 seconds
mount: /.base: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
 *  Waiting for USB for 5 seconds
 *  Booting system

   OpenRC 0.42.1.d76962aa23 is starting up Linux 5.0.0-37-generic (x86_64)

 * /proc is already mounted
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Caching service dependencies ... [ ok ]
 * Remounting devtmpfs on /dev ... [ ok ]
 * Starting udev ... [ ok ]
 * Generating a rule to create a /dev/root symlink ... [ ok ]
 * Populating /dev with existing devices through uevents ... [ ok ]
 * Loading hardware drivers ... [ ok ]
 * Checking local filesystems  ... [ ok ]
 * Remounting filesystems ... [ ok ]
 * Mounting local filesystems ... [ ok ]
 * Loading modules ... [ ok ]
 * Setting system clock using the hardware clock [UTC] ... [ ok ]
 * Starting busybox acpid ... [ ok ]
 * Configuring kernel parameters ... [ ok ]
 * Migrating /var/lock to /run/lock ... [ ok ]
 * Creating user login records ... [ ok ]
 * Starting System Message Bus ... [ ok ]
 * Starting open-vm-tools ... [ ok ]
 * /run/connman: creating directory
 [ ok ]
 * Starting connman ... [ ok ]
 * Starting RNG Daemon ... [ ok ]
 * Setting hostname ... [ ok ]
 * Starting issue ... [ ok ]
 * Starting busybox syslog ... [ ok ]
 * Starting open-vm-tools ... [ ok ]
 * Starting issue ... [ ok ]
 * Starting open-vm-tools ... [ ok ]
 * Checking to see if the network is online ... [ ok ]
 * Starting ccapply ...
Running k3OS configuration
mount: /run/k3os/iso: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   605  100   605    0     0   1443      0 --:--:-- --:--:-- --:--:--  1443
100  450M  100  450M    0     0  1941k      0  0:03:57  0:03:57 --:--:-- 2514k
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00508881 s, 206 MB/s
mke2fs 1.45.5 (07-Jan-2020)
/dev/vda1 contains a ext4 file system labelled 'K3OS_STATE'
	last mounted on /run/k3os/target on Tue Mar  3 15:36:38 2020
Discarding device blocks: done
Creating filesystem with 170752 4k blocks and 42720 inodes
Filesystem UUID: 64fad9ab-9e77-4571-a26f-c5e964db6c9d
Superblock backups stored on blocks:
	32768, 98304, 163840

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

k3os/
k3os/system/
k3os/system/config.yaml
k3os/system/k3os/
k3os/system/k3os/current
k3os/system/k3os/v0.9.1/
k3os/system/k3os/v0.9.1/k3os
k3os/system/k3os/v0.9.1/k3os-install.sh
k3os/system/k3s/
k3os/system/k3s/current
k3os/system/k3s/v1.17.2+k3s1/
k3os/system/k3s/v1.17.2+k3s1/k3s
k3os/system/k3s/v1.17.2+k3s1/k3s-install.sh
k3os/system/kernel/
k3os/system/kernel/5.0.0-37-generic/
k3os/system/kernel/5.0.0-37-generic/initrd
k3os/system/kernel/5.0.0-37-generic/kernel.squashfs
k3os/system/kernel/current
Installing for i386-pc platform.
Installation finished. No error reported.
[  258.139993] reboot: Power down

As you can see, the ISO does get downloaded (and yes, the mount /.base stuff is noisy). I think for some setups, your netboot one included, that the silent install tries to download the ISO before connman has finished setting up the network. There are some built-in mechanisms (that you can augment with kernel params, see https://github.com/rancher/k3os/issues/386#issuecomment-593709271) to wait on the network to be "ready" but by default this race condition is in play.
Can you share the console logs of the failures to download in your netboot setup?

@metahertz additionally, as per my comment above, I expect a netbooted system to have a working NIC and if connman encounters a NIC that it expects to manage that is already "up" it won't do anything with it. This means that DNS resolution on the system may not always be working as expected when it comes time to download the ISO. If this is what you are running into the logs should say.

Thanks @dweomer, just looked at your new comments in #386. Will test this out when i get a second (likely tomorrow i'm afraid) with and without my changes and report back.
However, when netbooting with just kernel and the initrd, we get dropped to an initrd recovery shell if /.base isn't mounted on 0.8.0 and higher. And the only place in the codebase that I can see the pulls the ISO is install.sh which is called way later than our failure. (unless it's in a compiled binary which is already in the initrd base, i'll have missed that, so will double check and report back as above).

Managed to get an ipxe boot working using the args dweomer provided against v0.9.1
https://github.com/leigh-j/k3os-ipxe/blob/master/boot.ipxe

Given the below comments, I don't believe that this change is necessary:

https://github.com/rancher/k3os/pull/384#issuecomment-604759300
https://github.com/rancher/k3os/issues/449#issuecomment-628282143

Please re-open if you feel I have closed this in error.

I am using that same boot.ipxe and my Agents do work when connected to 1 of my switches but when connected to a different switch I get the same result as here where it fails to connect to github and results in the base install where I need to sudo k3os install to get it going again which it will.
https://github.com/rancher/k3os/issues/449#issue-610686856

I am using that same boot.ipxe and my Agents do work when connected to 1 of my switches but when connected to a different switch I get the same result as here where it fails to connect to github and results in the base install where I need to sudo k3os install to get it going again which it will.
#449 (comment)

I've tried to debug this more by even bringing down the 3 files locally and changing the PXE to grab the kernel,init and ISO from there. It grabs the init and kernel fine but fails still in the same place where it should grab the ISO. I get the Could not resolve host: gitlab.domain.com

I am using that same boot.ipxe and my Agents do work when connected to 1 of my switches but when connected to a different switch I get the same result as here where it fails to connect to github and results in the base install where I need to sudo k3os install to get it going again which it will.
#449 (comment)

I've tried to debug this more by even bringing down the 3 files locally and changing the PXE to grab the kernel,init and ISO from there. It grabs the init and kernel fine but fails still in the same place where it should grab the ISO. I get the Could not resolve host: gitlab.domain.com

So I was able to resolve this issue although I am not sure how this worked. But basically I disconnected my nodes from the main Smart Switch to a dumb switch that was then connected to the main Smart Switch.