Add config server

Introduce simple dynamic configuration server and client.
This is an initial solution that uses @cescoffier vertx-configuration
It adds a simple singleton based solution to facilitate the configuration of specialized handlers every-time there is a configuration initialization or update. I've added a Log4j configuration service handler as an example.
Issue #9

@sczyh30, this build will fail in Travis because @cescoffier vertx-configuration has no public releases yet. Make sure you checkout his project and build the snapshot first.
Once you have done that, build this project branch.
The docker-composer will launch an httd server mounted with an external volume to ./docker/config-server.
As an example, a configuration service was added to the inventory-microservice. When the microservice starts, a ConfigurationService is setup with a HTTP store to check the __http://configserver:80/inventory-microservice/docker.json__ on 20 seconds intervals.
Handlers will be called for:

Initialization - first time the configuration is fetched from the server
Updates - subsequent times whenever a configuration change is detected from the server

The inventory-microservice is set with the log4j handlers that look for the "log4j.config.uri" configuration property. Try changing this property in ./docker/config-server/inventory-microservice/docker.json to either log4j-console.xml or log4j-gelf.xml and watch how log4j appenders are reconfigured without having to restart the server.
I've added a log to "inventory-microservice/:product" REST call to facilitate visualization. Just hit:
"http://:8086/foo" to emit a log entry to the currently configured appender.

Just pushed the configuration service to  https://oss.sonatype.org/content/repositories/snapshots/

@cescoffier, thanks.
@sczyh30, I've added Sonatype's snapshot repo to project's main pom.
Travis should pass now.

After having a second look into the implemented helper it just made sense to provide a Rx Observable that emits new configs to interested subscribers. A Log4J subscriber was added to process Log4J changes.
The code becomes much simpler and cleaner.

@sczyh30 , Is there any plan to do session tracking? In other words, is anyone aware if Vertx provides a way to track session requests through logging the eventbus message submission/reception, etc.
It would be nice to get to Kibana and quickly visualize the "tracks" of a given session throughout an application.

Many thanks! I'll update the documentation these days.


Add pagination to proposals list

[ ] Open https://test.opensquare.io/space/polkadot?tab=all&page=3
Switch to "Pending" tab,
Switch back to "All Proposals" tab, "&page=3" is disappeared from the URL.


Converting Spacenet building labels into bounding boxes to comply with Kitti label standard

@jbarker-nvidia Say, I had a hopefully easy question for you. So according to the Kitti label standard, columns 5,6,7, and 8 are the coordinates of the box around some labeled item. For example:
Car 0.00 0 1.78 369.61 179.47 427.19 222.47 1.49 1.54 2.54 -7.80 1.75 26.65 1.50
Car 0.00 1 1.70 422.06 178.75 452.47 197.00 1.48 1.97 4.33 -14.70 2.00 61.51 1.47
This means that in this image there are two cars. The first car is at box coordinates [369.61 179.47 427.19 222.47], and the second car is at location [422.06 178.75 452.47 197.00].
Now the Spacenet geojson files give polygons surrounding the buildings instead of boxes. These boxes require more than 4 coordinates to specify them.
So the question was, did you have to just find the coordinates of the squares that best fit the polygons, and then use those newly computed squares as the labels? That seems like the only way to be compliant with the standard.
Just wanted to check and make sure I was on the right track, before spending a lot of time generating new box coordinates and labels.

Yes, I believe @allykgray used the minimum enclosing rectangle around the polygon

Excellent. Thanks.


Visualizing the output of an intermediate layer

Ref Link from keras documentation: http://keras.io/getting-started/faq/#how-can-i-visualize-the-output-of-an-intermediate-layer
I referred to the keras documentation to visulaize the intermediate output. PFB my code snippet below,
get_3_layer_output = K.function([model.layers[0].input, K.learning_phase()],[model.layers[3].output])
print np.shape(get_3_layer_output([X_train, 1])[0])
#Taking 2 Images
for i in xrange(len(get_3_layer_output([X_train, 1])[0])):
    #Saving  32 Activation maps outputs
    for j in xrange(len(get_3_layer_output([X_train, 1])[0][i])):
        cv2.imwrite(location+"layer_3_"+str(j)+".jpg",get_3_layer_output([X_train, 1])[0][i][j])`

This is the training phase. I am getting the correct shapes for my layer outputs as expected from my CNN model.
ex: layer output (2, 32, 32, 32) - 2 images 32 activation map of matrix size 32x32.
Problem:  When I am writing the intermediate result, all that I am getting is black images for all the activation maps.
Keras dist: https://github.com/joelthchao/keras (Supports locally connected layer)
**Theano:**Theano-0.9.0.dev0-py2.7.egg-info (latest)

Are you using ReLUs as activations for that layer? Getting all zeros could mean your preactivations are all negative so your activations are all zeros. Outputs of ReLU layers tend to be sparse in some models, so maybe you're getting just a few "pixels" that have non-zero values? Check the matrices to see if you have non-zero values instead of plotting to images directly (e.g., with np.any). When you plot to JPG, if your activation maps are very sparse, the JPEG encoder might smooth those activations out (because they look like noise). You could also try saving to BMP instead of JPEG so there'll be no encoding.
By the way, you should use learning_phase=0 if you're trying to see what your model is generating in practice as opposed to during training.

@jfsantos I am using ReLu as my activation function. I printed outputs from the layer and I am getting really low values.
I now loaded my trained model and made my learning phase 0, also used bmp format for saving, still getting black images only.
[[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]
[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]
[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]
...,
[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]
[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]
[ 0.00019351  0.00019351  0.00019351 ...,  0.00019351  0.00019351
0.00019351]]
Code Snippet

get_0_layer_output = K.function([model.layers[0].input, K.learning_phase()],[model.layers[0].output])

	print np.shape(get_0_layer_output([X_train, 0])[0])

	for i in xrange(len(get_0_layer_output([X_train, 0])[0])):
		print "The complete matrix : " + str(i) + "\n \n "
		print "Shape is :" + str(np.shape(get_0_layer_output([X_train, 0])[0][i])) + "\n\n"
		print get_0_layer_output([X_train, 0])[0][i]

		for j in xrange(len(get_0_layer_output([X_train, 0])[0][i])):
			print "Individual matrix : " + str(j) + "\n \n "
			print "Shape is :" + str(np.shape(get_0_layer_output([X_train, 0])[0][i][j])) + "\n\n"
			print get_0_layer_output([X_train, 0])[0][i][j]
			cv2.imwrite("./intermediate_result/l0/layer_comv_0_op_"+str(i)+str(j)+".bmp",get_0_layer_output([X_train, 0])[0][i][j])

That's what your model is getting, then, and there's nothing wrong with Keras. Is the model giving you meaningful predictions? Do you get this for the entire training set? If that's the case, I would assume your model is not learning anything meaningful.

I was giving the input in a wrong manner and have changed my weights to the model in which I got best predicitions.
Now I am getting intermediate results but I still finding few activation maps (filter outputs) completely black.
Do you have any suggestion for me ?


Any plan to make next-auth-sanity to be compatible with Next Auth v4?

Hi Fedeya,
Wishing you well and happy new year!
Since Next Auth was updated to v4 last month (I think) which has some breaking changes, do you have any plan to update this library as well to be compatible with Next Auth v4?
I encountered some error using the next-auth-sanity library with next-auth v4.
Cheers mate.

Yeah I've just encountered errors on next-auth v4 as well. Unusable while it errors, unfortunately. Here's what I'm getting @kmelve @Fedeya

Hello @danielvanc @AeroFiTech in this days i see the changes on next auth and update the library, any pr is welcome!

already make the changes, all works without failures!, i only need to update the docs for the merge

Awesome, thank you for the speedy fix @Fedeya ! 🥇

@Fedeya any news on the merge? I see that the PR is ready but have not been merged.

@Fedeya any news on the merge? I see that the PR is ready but have not been merged.

sorry i forgot to do the docs, i already made that and merge and publish to npm

@Fedeya Awesome.. Let me have a spin on this soon! You're the best!


Automation Example for Unit Testing

record an automation example video and enter a test case into the spreadsheet

Edit this video down and upload it to youtube


proposal: Go 2: Single line if variant for returns and other jump statements

Author background
Would you consider yourself a novice, intermediate, or experienced Go programmer?
Intermediate to experienced
What other languages do you have experience with?
C#, JS/TS, Python, Ruby
Related proposals
Has this idea, or one like it, been proposed before?
I've dug around through the past issues quite a bit, haven't seen this specific kind of proposal yet.
The closest proposals have been to preserve existing syntax, but change gofmt to allow single-line if statements.
Does this affect error handling?
It does not meaningfully alter the error handling pattern, though it is largely motivated by an interest in reducing lines of error handling code
How does this differ from previous error handling proposals?
This approach aims to not introduce any new syntax specific to errors. Instead it focuses on a more concise way to conditionally exit a function (and other jump types). I believe there are no fundamental issues in the error handling paradigms in go, there is only noise due to the required 3 additional lines of code in every site where an error needs to be checked and returned.
Is this about generics?
No
Proposal
What is the proposed change?
The proposal is to introduce a new variant of if statement syntax that allows replacing the statement block with one of the control flow keywords that interrupt execution flow, i.e. return, break, continue, or goto. Example:
if err != nil return err

This kind of jump condition would be the only form of if that is allowed to display on a single line.
Who does this proposal help, and why?
This helps reduce noisy boilerplate in code that distracts from the essential behavior of a function. It allows representing common conditional control flow jumps as a single line of code, a considerable improvement over the current requirement of 3 lines for an if statement. It aims to do so with a syntax that is immediately clear to readers, and without introducing magical characters, new keywords, or significant changes to existing control flow and error handling paradigms.
Please describe as precisely as possible the change to the language.

This new form of if syntax would allow replacing a block statement with a single jump statement (return, break, continue, or goto) without brackets. This would have to be written on a single line.
This form of if statement would not allow a trailing else statement. An else statement in this context serves no purpose. If the condition is true, the flow of execution will be transferred to another location. If not, execution continues.
My personal preference would be to not allow an assignment before the condition in this if variant. I am a bit biased against this style in general though, I feel it adds too much horizontal complexity, and would be even more so with a return statement included on the line. I am flexible on this though, could be open to allowing it and leaving its use to developer judgment.

What would change in the language spec?
// original spec
IfStmt = "if" [ SimpleStmt ";" ] Expression Block [ "else" ( IfStmt | Block ) ] .

// shorthand for eligible control flow jump statements
JumpStmt = BreakStmt | ContinueStmt | GotoStmt | ReturnStmt

// proposed if statement syntax isolated from existing syntax
IfJumpStmt = "if" Expression JumpStmt .

// proposed syntax combined with existing syntax
IfStmt = "if" ( [ SimpleStmt ";" ] Expression Block [ "else" ( IfStmt | Block ) ] ) | ( Expression JumpStmt ) .

// alternate option, if we want to allow a SimpleStmt before the Expression in the new syntax
IfStmt = "if" [ SimpleStmt ";" ] Expression ( ( Block [ "else" ( IfStmt | Block ) ] ) | JumpStmt ) .

Please also describe the change informally, as in a class teaching Go.
A common critique of golang is the verbosity of handling errors. Go requires every method that can fail to be handled manually by the caller, and every site of error handling requires an if statement that occupies 3 lines of code, since gofmt does not allow single line if statements. This change provides a new way to write if conditions specifically for return statements and other control flow commands on a single line, which can reduce the lines of code dedicated to this kind of boilerplate by up to 66%.
Is this change backward compatible?
Yes
Code Example - Before
result, err := something()
if err != nil {
    return err
}

result2, err = something2(result)
if err != nil {
    return err
}

for _, item := range result2.Items {
    result3, err := something3(item)
    if err != nil {
        return err
    }

    if result3.Name == "skip-me" {
        continue
    }

    result4, err = something4(result3)
    if err != nil {
        return err
    }

    if result4.Name == "finish-after-me" {
        break
    }

    if result4.Name == "fail-me" {
        return errors.New("example error")
    }
}

Code Example - After
result, err := something()
if err != nil return err

result2, err = something2(result)
if err != nil return err

for _, item := range result2.Items {
    result3, err := something3(item)
    if err != nil return err

    if result3.Name == "skip-me" continue

    result4, err = something4(result3)
    if err != nil return err

    if result4.Name == "finish-after-me" break

    if result4.Name == "fail-me" return errors.New("example error")
}

Orthogonality: how does this change interact or overlap with existing features?
Fairly isolated addition, only adds to the syntax of if conditions. Does change how people will write error handling code, but only insofar as they'll be able to write fewer lines of code using the same patterns.
In terms of readability/scannability, I think this code will still aid quick identification of jump conditions. As the only kind of if condition that displays on a single line, eyes will quickly adjust to recognizing these as conditional control flow points.
Is the goal of this change a performance improvement?
No
Costs
Would this change make Go easier or harder to learn, and why?
Admittedly it would be another variation of valid if syntax to learn, though a modest one and entirely optional. If encountered in code by someone previously unfamiliar, it should be quite clear what it does.
What is the cost of this proposal? (Every language change has a cost).
The compiler and parsers would have to be updated to recognize it as valid syntax, but I would expect this effort to be relatively modest compared other syntax additions (though I'm no expert on this subject).
How many tools (such as vet, gopls, gofmt, goimports, etc.) would be affected?
Most of the above I would imagine. Syntax highlighting still works as expected for me, would imagine goimports would not need modification (speculating here - again, not an expert in these parsing tools).
What is the compile time cost?
I'm speculating again, but I imagine it would be negligible. Maybe even faster if it can skip parsing the block of statements?
What is the run time cost?
Should be none
Can you describe a possible implementation?
This is a bit outside my wheelhouse, but imagine it would entail having parsers supporting seeking an occurrence of one of the supported control flow key words after an if keyword, instead of only seeking an opening { bracket.
Do you have a prototype? (This is not required.)
No

Given the similarities to #33113 and #57645, there doesn't seem to be that much different with this besides requiring new syntax?

Previous proposals have been around implementing single line returns via gofmt, which I think is non-ideal for a few reasons.
First, how clever should gofmt be about deciding what deserves to be on one line or multiple? Should every return statement be placed on one line, regardless of how complex their return value expression is? Should it only do this for error returns where the other values are nil/empty? Those kinds of decisions feel a bit too nuanced for a formatter. I think giving developers a little leeway to make a judgment call on using a more concise form where warranted would be very beneficial, and this would be a way to do it without fighting against gofmt.
Second, I think having a explicit syntax for this brings some benefits:

Easier to enforce rules like not allowing else blocks, which have no relevance in an if statement where the true path is a jump statement.
Provides an opportunity to restrict use of assignment before the condition in this variant, to reduce horizontal complexity (my preference, though I did intentionally leave this open for discussion)
Makes these kind of jump conditions more visually distinctive (and less cluttered) by removing brackets, which at least in my opinion helps address past critiques around quickly identifying conditional control flow.

The problem with laying out code like this is that the most important part of the line, the action (return, break, etc.) is hidden in the middle of a long line of text rather than the first thing one sees.

short line will be nice, i think it can used to only "if err!=nil{return err} " Statement :)

The idea of making error checks a single line has been proposed several times, such as in #38151, and always declined.  This proposal is slightly different in that it omits the curly braces, but it's not very different.  This would also be the only place where a block is permitted but optional.  Also the emoji voting is not in favor.  Therefore, this is a likely decline.  Leaving open for three weeks for final comments.

I think following the benefit of S in SOLID principles: just keeping one line of code for handling one thing, in this case just for condition only, makes code clear and readable

No change in consensus.


Movie are not getting recommended

I cloned the repo, installed PostgreSQL, configured settings.py to point at my PSQL installation, setup a TMDb API key and added the key with the appropriate format into a new .prs file.
I did "makemigrations" and "migrate --run-syncdb", both of them went through successfully, I even double checked through pgAdmin and all of the tables were created successfully.
Afterwards I ran "populate_moviegeek.py", the script threw out an error due to a size difference between one of the columns in the dataset and the DB, thus I resorted to use the 100K version of the MovieTweetings dataset, I copied the URL and pasted it as the default parameter for the download_movies function, and rerun the script, everything went through beautifully! All of the movies were added into the Database successfully.
Since I got the 100K version of the MovieTweetings Dataset, I also got the ratings for them, changed the URL inside "populate_ratings.py" and ran the script, everything worked here as well.
Last but not least I ran "populate_logs.py" and it worked as well.
Finally I ran the server using "python manage.py runserver" and I tried accessing the webpage, no issues here, however!
No recommendations were being shown! The analytics page didn't work at all! The console showed diffferent kinds of errors, and I tried getting into the details page of a movie maybe I would get a "Movies similar to ..." recommendations, but didn't aswell.
All in all, I am desperately trying to get the script to work but I can't!
@kimfalk your help would be greatly appreciated!
My current python version: 3.7.7
Windows 10 Pro x64
All of the packages installed successfully using "pip install -r requirements.txt"

Hi Saad Sawash,
This site is described in the book Practical Recommender Systems, you should refer to that. But if you are looking to make the recommendations work have a look in the builder folder where all the algorithms for recommendations are.
The scripts to get the movietweetings should be working though so I will have a look at that.

Thanks for the quick resposne @kimfalk
I actually have bought your book, but still haven't started reading through it, I wanted to test out the website and see the recommendations in action before diving in.
Waiting for your update on the MovieTweetings issue.


no date shown for articles

is it on purpose that the feedly theme shows no timestamp/date for single articles?

Hi @yafp,
the timestamp/date should always be visible in all the different view modes.
Could you please post a screenshot? Also, which browser are you using, and which version?

Hey,
sorry for the delay.
Screenshot is attached.

I assume the issue is not a general effect, but related with my setup:

Firefox (63.0.3) on Linux
Old tt-rss version (v1.12)

Maybe i can debug it myself ...which css section is responsible for the timestamps/dates?

Oh, this looks pretty broken. You're right, https://github.com/levito/tt-rss-feedly-theme/releases/tag/v1.1.0 is the theme version you should use.
But I'd suggest to update tt-rss itself and use the theme from master so you get all the fixes in tt-rss and a dark mode (feedly-night) for the theme.


Cannot unroll the circuit to the given basis, ['u1', 'u2', 'u3', 'rz', 'sx', 'x', 'cx', 'id', 'unitary']

While using RawFeatureVector() as a feature map, I am getting the following error when I try to call VQC.fit():
Cannot unroll the circuit to the given basis, ['u1', 'u2', 'u3', 'rz', 'sx', 'x', 'cx', 'id', 'unitary']. Instruction ParameterizedInitialize not found in equivalence library and no rule found to expand.
Can somebody help me with this?

It is incompatible with the transpiler until all parameters are bound.
RawFeatureVector introduces a placeholder for parameters and this placeholder can't be transpiled since the parameters are not bound at the transpilation time. This is a limitation of the state preparation algorithm, it works only when all state parameters are defined. So, what is happening internally: VQC passes a parameterized circuit that consists of a feature map and an ansatz to Sampler along with an array of parameters. Sampler tries to transpile the circuit (and here the problem is), bind the parameters and then execute the transpiled circuit as many times as the number of samples in the dataset. At this moment parameters are being bound to the transpiled circuit, so after that the state preparation algorithm should have been executed. But it was invoked earlier, at the transpilation time, when the circuit should have been defined completely. Apparently, RawFeatureVector is compatible with the Qiskit primitives only when transpilation is not required.
There's no a simple solution here. A new state preparation algorithm is required for amplitude encoding that is based on parameterized circuits. And let's put aside inefficiency of such an algorithm.

So can I use Sampler separately? and rather than directly passing it to the VQC, can I train the model with some different library, say PyTorch?

If you pass a fully bound circuit to Sampler, then it will work.


Can't Login

Start
make start

But ,MySQL don't have data.And it's empty

The Same

Same issue here

Same issue here, if there is anything I can do to help let me know.

Hi! I got the same problem I think, I got the login page but nothing happen if I try any creds even if I run setup.php.
I tried to lower the PHP version to 7.1 and it worked, so maybe PHP 8.1 is not compatible with the code... Try to use older version of PHP by changing the tag as explained in the doc.

Yes, can confirm its working fine if you change the PHP version to 7.1 ! Thanks @tolfsh

Im building upon the k8s setup, and bumped down the image in deployment-dvwa.yaml image php-7.1 s. It howed these errors on login page and after you try login using admin:password

For future references : if you're directly building in k8s, something is breaking in the docker image, use this image until it's fixed :

vulnerables/web-dvwa (change contaner image in k8s/deployment-dvwa.yml)

I haven't tried to locally build and test if it works then. If I get time , I might, will keep you posted.

it´s work with PHP 7.1

delete or comment line 102 in html/dvwa/includes/DBMS/MySQL.php

and
delete or comment line 14 to 20 in html/setup.php

all issue will be fixed


v1.11.3 breaks signout for me

In my code I use
  userManager.removeUser();
  userManager.signoutRedirect().finally(null);

to logout the user. This does not work after updating to v1.11.3.
The Chrome network tab showed this for v1.10.1:

After the update I get:

Some kind of redirect seems to be triggered now, cancelling the actual logout call.

In all of my tests, signout is working, so it's hard to say. Can you debug into it more and report back?

Also, you don't need to call removeUser-- it's called from inside ofsignoutRedirect`.

Thank you for the hint. Will remove the obsolete call and do some debugging…

@Snaptags, have you found solution. Similar issue occurs for me.

Actually: I cannot reproduce the issue using the latest v1.11.4…

BUT: removing removeUser breaks it again for me.

Hmm, then I"m not sure -- you'd have to debug if you wanted to get to the bottom of it. But if it's now working again, then perhaps there's nothing to do here.

Ok, I'll close for now. If there's something else on this then please reopen.


Doesnt work with grunt-contrib-concat

Doesn't work with https://github.com/gruntjs/grunt-contrib-concat
Initialized the config side by side with the my other tasks and when called with the command it doesn't start, when register it in the grunt.initConfig it works as written.

@gkkirilov is it still an issue?


Membrane error page returns 400 Bad Request but body message is always a fixed "Internal Server Error"

As explained in #759

Will be fixed for rewriter only by utilizing problem json


Add support for multiple AI providers

When running unit tests, the process fails with the following error:
...
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.ai.chat.ChatClient' available: expected single matching bean but found 2: azureOpenAiChatClient,openAiChatClient
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveNotUnique(DependencyDescriptor.java:218) ~[spring-beans-6.1.4.jar:6.1.4]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1420) ~[spring-beans-6.1.4.jar:6.1.4]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353) ~[spring-beans-6.1.4.jar:6.1.4]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:907) ~[spring-beans-6.1.4.jar:6.1.4]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:785) ~[spring-beans-6.1.4.jar:6.1.4]
	... 110 common frames omitted

This issue was introduced with 02fc2d8946f4160b8a3d946644be53aae77572ee.

Reproduced in the GitHub Actions run.

Having more than one Spring AI starter seems to be the root cause of this issue.
I disabled AWS Bedrock Lllama2 and Azure OpenAI by default by removing those starters in bb5ec558f6bdc39fcd05756ec382bcd2d63f389c: unit tests now work as expected (see GitHub Actions run for details).
We should be able to include the right dependencies using a Maven profile. Also, we may have to use a Spring Profile or a Conditional configuration to tune app properties depending on the AI provider.

I'm exploring the use of Maven profiles to support multiple AI providers in 0aa108e011339325011d360972472d918c3c3baf.

I wonder if it's preferred to keep all 3 dependencies in the pom.xml and choose the right bean at runtime based on Spring profiles. Not entirely "clean" but perhaps makes more sense, kind of like having both H2 and MySQL dependencies in petclinic but choosing the correct repository based on config.

Seems like it should work when passing --spring.profiles.active to the executable, but I haven't validated it. Based on https://stackoverflow.com/questions/75242495/profile-specific-application-properties-not-picked-by-spring-boot-3-native-execu

AWS Bedrock supports many AI implementations so perhaps the the @Configuration class should be BedrockLlama2AIConfig.

Added a branch features/multi-ai-providers-all-mvn-deps to try out support for all 3 dependencies in pom.xml.
In this version, the newsFactoryChatClient @Bean is instanciated based on a @ConditionalOnProperty settings in application.properties.
For some reason, it works for OpenAI and AzureOpenAI, but fails with BedrockLlama2 @Configuration. If you can figure out what caused this to refuse to load the 3rd one it would be great.

That's great work!
I'm trying to see if we can make a single ChatClient available, overriding instances coming from auto-configuration classes. I wish we could remove the @Qualifier in user code like this:
    AINewsletterFactory(ContentSummarizer summarizer,
    					@Qualifier("newsFactoryChatClient") ChatClient cs,
    					NewsletterProps np,
    					AIResources aiResources) {
        this.summarizer = summarizer;
        this.cs = cs;
        this.np = np;
        this.aiResources = aiResources;
    }

We're looking good: we don't need @Qualifier anymore with d426dec17baf7585f80eabb8467f2e50a9f3cb34!

For some reason the tests fail for me locally although they do pass with Github actions.
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.ai.chat.ChatClient' available: expected single matching bean but found 3: chatClient,azureOpenAiChatClient,openAiChatClient

Is AzureOpenAiChatClient the @Primary Bean for a reason or just an arbitrary choice?

Also running mvn spring-boot:run fails with the below:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.broadcom.tanzu.newsfactory.impl.ContentSummarizer required a single bean, but 3 were found:
	- chatClient: defined by method 'chatClient' in class path resource [com/broadcom/tanzu/newsfactory/impl/openai/OpenAIConfig.class]
	- azureOpenAiChatClient: defined by method 'azureOpenAiChatClient' in class path resource [org/springframework/ai/autoconfigure/azure/openai/AzureOpenAiAutoConfiguration.class]
	- openAiChatClient: defined by method 'openAiChatClient' in class path resource [org/springframework/ai/autoconfigure/openai/OpenAiAutoConfiguration.class]

This may be due to missing parameter name information

Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

Ensure that your compiler is configured to use the '-parameters' flag.
You may need to update both your build tool settings as well as your IDE.
(See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention)

Weird. It works on my machine™. And GitHub Actions.
Also: I have no issues with mvn spring-boot:run.
Regarding @Primary: you're right, this line of code is not required.

@odedia Did you have a chance to validate that the branch is working fine on your side?

The application boots but it seems like it is always taking OpenAI bean. Were you able to verify it works with other AI providers?

Not yet.
At this point I think we should merge this branch back into main, as we have pending issues depending on this new architecture model.
If any AI provider is broken then, let's create a new issue.

The branch features/multi-ai-providers-all-mvn-deps has been merged into main.
Closing this issue.


ci: update python versions

Remove ancient versions from CI build.

Coverage remained the same at 100.0% when pulling 7db4c6e2c388546de52bff8133d74be86d5e4fc7 on ci-python-versions into d6f3fa71072f99334a4c1d2a3f062fa93982797f on master.


Sections in which the playground code does not compile

This is a list of compiler errors that the default playground snippets have, in cases where they are probably not intended.
(I would have submitted a pull request, but I couldn't find the source for the snippets in this repository as promised)
I am new to the language and went through the tour as a newcomer, then noticed one of the examples didn't work.
I spent 45 going through the whole tour again and found what I think are unintended compilation errors.
I'm not trying to criticize the tour or anything! If any these are supposed to be fixed by the reader, I'm sorry.
(These are retrieved from http://tour.dlang.org/tour/ from Wednesday, May 18th around 14:30 EST, clicking the run button)

[x] Basics/3 - Memory http://tour.dlang.org/tour/basics/3

The example with pointer arithmetic is missing a valuable p. Perhaps pass it into the method?
void unsafeFun()
{
    int* fiddling = p + 5; // onlineapp.d(12): Error: undefined identifier 'p'
}

[x] Basics/4 - Storage Classes http://tour.dlang.org/tour/basics/4

The playground is complaining about the asserts. Is the syntax wrong?
onlineapp.d(6): Error: found ';' when expecting ')' following template argument list
onlineapp.d(6): Error: found ')' when expecting ';'
onlineapp.d(11): Error: found ';' when expecting ')' following template argument list
onlineapp.d(11): Error: found ')' when expecting ';'
onlineapp.d(21): Error: found ';' when expecting ')' following template argument list
onlineapp.d(21): Error: found ')' when expecting ';'
onlineapp.d(25): Error: (arguments) expected following immutable(int)
onlineapp.d(25): Error: found ';' when expecting ')' following template argument list
onlineapp.d(25): Error: found ')' when expecting ';'

[x] Basics/5 - Control Flow http://tour.dlang.org/tour/basics/5

Another undeclared variable p. Was this meant to be a different case match?
    switch(5) {
        case 0: .. case 9:
            writeln(c, " is within 0-9"); // onlineapp.d(10): Error: undefined identifier 'c'
            break; // necessary!

[x] Basics/8 - Arrays http://tour.dlang.org/tour/basics/8

Assertion at line 38 fails. Does the algorithm work as expected?
    writeln("Before: ", toBeEncrypted);
    auto encrypted = encrypt(toBeEncrypted, 16);
    writeln("After: ", encrypted);

    // Make sure we the algorithm works
    // as expected
    assert(encrypted == [ 'm','u','b','s','e', // core.exception.AssertError@onlineapp.d(38): Assertion failure
            'c','u','j','e','t' ]);

[x] Gems/2 - Scope Guards http://tour.dlang.org/tour/gems/2

This was the first issue I came across which prompted me forking this project, but I couldn't find the source of the examples.
You're missing a cast on malloc:
    // scope guards allow placing allocations
    // and their clean up code next to each
    // other
    import core.stdc.stdlib;
    int* p = malloc(int.sizeof); // onlineapp.d(24): Error: cannot implicitly convert expression (malloc(4LU)) of type void* to int*
    scope(exit) free(p);

[x] Gems:7 - Functional Programming http://tour.dlang.org/tour/gems/7

This one's over my head, but it looks like it would be awesome if it compiled:
   // memoize caches the result of the function
    // call depending on the input parameters.
    // pure functions are great for that!
    alias fastMedian = memoize!(median!int);

    writeln([7, 5, 3].fastMedian); // onlineapp.d(23): Error: no property 'fastMedian' for type 'int[]'
    // result will be cached!
    writeln([7, 5, 3].fastMedian); // onlineapp.d(25): Error: no property 'fastMedian' for type 'int[]'

[x] Gems:8 - Contract Programming http://tour.dlang.org/tour/gems/8

Not sure what's wrong, but a month invariant fails:
    invariant() {
        assert(year >= 0);
        assert(month >= 1 && month <= 12); // core.exception.AssertError@onlineapp.d(18): Assertion failure
        assert(day >= 1 && day <= 31);
    }

I tried to ignore all the errors that were meant to be filled in by the reader (i.e. with Vector3 in basics/7).
Perhaps if you fix #57 and auto-test the examples before publishing updates these issues wouldn't happen.

Thank you for your very thorough report and the time you invested in checking all examples for compiling! I am very sorry about that. Currently there is no automatic checking for the code examples (you mentioned #57 already) and I just didn't do a thorough checking of the latest changes. This is quite embarrassing and should not be something a newcomer should be exposed to as it gives a bad impression on the language. I fixed all compilation errors but two:

Basics/8 is an exercise so the assertion is "by design" if the according function isn't implemented.
Gems/8 is actually something that is triggered by the example code. There is a comment in the main() function which explains that the next line will make the invariant fail.

Again thank you very much for your work. With this issue, #57 will definitely get a high priority and any other code examples changes will be verified very carefully.

Btw. it might take about 15 minutes until you will see the code example changes actually online.


[Bug]: Rendering issues

Bug Description
With the current version of shimmering focus i have rendering issues on my mac ( see image )
I've used a clean vault without plugins & with standard settings.
Relevant Screenshot

(spacing top left to small)
To Reproduce
I've used a clean vault without plugins & with standard settings.
Obsidian Version
0.14.2
Installer Version
0.14.2
Which editor are you using?

[X] New Editor
[ ] Legacy Editor

In which mode(s) does the problem occur? (if applicable)

[X] Source (Edit)
[X] Reading (Preview)
[X] Live Preview

Which operating system?

[X] macOS
[ ] Linux
[ ] Windows
[ ] iOS
[ ] Android

Plugin-Specific Problems

[ ] I took note of the specific instructions regarding those plugins.

Checklist

[X] I updated to the latest version of the theme (Settings → Appearance → Themes - Manage → Update).
[X] I made sure that the issue is related to this theme by checking that the problem does not occur with the default theme.
[X] In case I am missing an UI element, I have checked that it cannot be re-enabled with the Style Settings plugin.
[X] If the bug occured after updating the theme, I read the last couple of entries in the changelog to make sure the bug is not an intentional change. (In that case, there will most likely be a style setting to turn it off again.)

I am also using a Mac and have no issues there. I assume it has to do with screen resolution maybe?
Could you tell me your screen resolution? And also your font size setting (Settings ➞ Appearance ➞ Font Size)?

I have a m1 macbook air with standard display settings ( 2560-by-1600 ). My font size is standard too ( 16 )

weird. I have the same resolution and font size and it looks correct here 💀
Any unusual font you are using? lots of zoom-in or zoom-out? 🤔

Also, could you use the following css snippet and adjust the value until it looks fine on your end? Probably easier than me blindly tweaking the value without knowing how it looks on your end.
body {
	--mac-traffic-light-padding: 1rem; // add/substract values in ~0.05 steps
}

With 1.25rem it looks right

1.5rem has the same height as the title bar of the note

nah, wasting a few pixels on my display, but fine, is fixed 😝


Shows an Message "File Format Not Supported"

Hi , I am using the latest version of flutter_share_file flutter_share_file: ^1.1.4+1  and I am sharing a .png file , it says that "The file format is not supported"

Is this issue solved?


(1.0.2 win standalone) couchapp push testdb: thread isn't a socketpool backend

Hi
I get an error when attempting to push my first couchapp 'helloworl' back to couch:
_2016-02-09 01:20:27 [CRITICAL] thread isn't a socketpool backend
Traceback (most recent call last):
File "couchapp\dispatch.pyc", line 45, in dispatch
File "couchapp\dispatch.pyc", line 92, in _dispatch
File "couchapp\commands.pyc", line 72, in push
File "couchapp\config.pyc", line 159, in get_dbs
File "couchapp\client.pyc", line 219, in init
File "couchapp\client.pyc", line 66, in init
File "restkit\resource.pyc", line 72, in init
File "restkit\client.pyc", line 136, in init
File "restkit\session.pyc", line 18, in get_session
File "socketpool\pool.pyc", line 53, in init
File "socketpool\util.pyc", line 71, in load_backend
ImportError: thread isn't a socketpool backend
Note:

I have installed CouchApp for Windows 'Standalone Executable 1.0.2'
I have not installed python or anything else than couchdb
couchdb works fine (incl. html attachments)
I have created a simple hello world application (as explained here: http://couchapp.readthedocs.org/en/latest/couchapp/gettingstarted.html)

Do you have any suggestions to how I proceed?

Hi @kastrup312 !
Err... That's my fall ... maybe i missed something to package with windows standalone exe.
I fixed it. please give a try for the new exe build. If it works fine, we will do a new release. (I need a brown-bag ...

Hi
Thanks for the reply and the update in git. I could not find a updated windows installer, so I tried to build one myself. Unfortunately I ran into a problem.
After installing all the prerequities I was able to run 'python setup.py build -c mingw32' without any problem. When running 'python setup.py py2exe -b 2' Immediately after that, I got the error below.
Can you give me any advice on that, or even better if anyone could build the windows installer, as I have no python experience.
Regards, Kent
Error (output of running 'python setup.py py2exe -b 2'):
C:\couchapp build\couchapp-master>python setup.py py2exe -b 2	running py2exe	running build_py	running egg_info	writing requirements to Couchapp.egg-info\requires.txt	writing Couchapp.egg-info\PKG-INFO	writing top-level names to Couchapp.egg-info\top_level.txt	writing dependency_links to Couchapp.egg-info\dependency_links.txt	reading manifest file 'Couchapp.egg-info\SOURCES.txt'	reading manifest template 'MANIFEST.in'	warning: no files found matching '*' under directory 'doc'	writing manifest file 'Couchapp.egg-info\SOURCES.txt'	running build_scripts	creating C:\couchapp build\couchapp-master\build\bdist.win32	creating C:\couchapp build\couchapp-master\build\bdist.win32\winexe	creating C:\couchapp build\couchapp-master\build\bdist.win32\winexe\collect-2.7	creating C:\couchapp build\couchapp-master\build\bdist.win32\winexe\bundle-2.7	creating C:\couchapp build\couchapp-master\build\bdist.win32\winexe\temp	creating C:\couchapp build\couchapp-master\dist	*** searching for required modules ***	Traceback (most recent call last):	  File "setup.py", line 174, in 		main()	  File "setup.py", line 171, in main		setup(**options)	  File "C:\Python27\lib\distutils\core.py", line 151, in setup		dist.run_commands()	  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands		self.run_command(cmd)	  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command		cmd_obj.run()	  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 243, in run		self._run()	  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 296, in _run		self.find_needed_modules(mf, required_files, required_modules)	  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 1306, in find_n	eeded_modules		mf.import_hook(f)	  File "C:\Python27\lib\site-packages\py2exe\mf.py", line 719, in import_hook		return Base.import_hook(self,name,caller,fromlist,level)	  File "C:\Python27\lib\site-packages\py2exe\mf.py", line 136, in import_hook		q, tail = self.find_head_package(parent, name)	  File "C:\Python27\lib\site-packages\py2exe\mf.py", line 204, in find_head_pack	age		raise ImportError, "No module named " + qname	ImportError: No module named http_parser
Date: Mon, 8 Feb 2016 22:18:08 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [couchapp] (1.0.2 win standalone) couchapp push testdb: thread isn't a socketpool backend (#224)
Hi @kastrup312 !
Err... That's my fall ... maybe i missed something to package with windows standalone exe.
I fixed it. please give a try for the new exe build. If it works fine, we will do a new release. (I need a brown-bag ...
—
Reply to this email directly or view it on GitHub.

:-o. Here is direct download link.

The error message says that http_parser not found which is our dependency. IIRC, that is a py2exe issue: all dependency can not install in zipped format, egg. So you need to remove all them first, then reinstall them in following instruction. The option -Z is the key.
python -m easy_install -Z restkit==4.2.2 watchdog==0.6.0

The new binary has been uploaded to github download page.
@kastrup312 Thanks for your reporting.


xwayland/sockets: check directory permissions

Rather than mkdir(), ensure that the xwayland socket directory is owned
by root and has the sticky bit set. Closes #2793.

The code LGTM, but I have one question: the Mutter MR will still try to create the directory as the current user if it doesn't exist. I guess this can be useful for simple single-user setups without systemd. Creating the directory ourselves will prevent other users from creating an X11 listening socket. Should we do this too?

For the simplest single-user systems this is indeed useful.

LGTM!

Thanks for double-checking, @Vogtinator


Swagger Discriminator: Looking for a way to set Discriminator#mapping or a step for automatic population

See: https://swagger.io/docs/specification/v3_0/data-models/inheritance-and-polymorphism/#mapping-type-names

:+1:  will be included in the next version.


Ensure Plots correctly cache lookups in DynamicMaps

Ensures the plots respect the _force option telling them not to request a new frame on the DynamicMap, both during initialization and for subsequent updates. Relies on the fact that the initialization pass of creating Plots does not care which exact Element is being plotted, since it is subsequently updated again anyway.

I'm really happy to have finally simplified this logic, I thoroughly hated get_dynamic_item and I've not replaced it completely. We now also explicitly throw an exception when trying to display a composite plot containing multiple HoloMaps with non-overlapping dimensions. Another happy side effect is that DynamicMaps with non-overlapping dimensions now work:

Looks great and I am also really happy to see this simplified.
The tests have passed now. Merge?

Yes, ready now.

The push builds have passed and the failures in the pr builds are just transient display test errors. Merging.


Initialize a 4-dim Tensor for inference

I am trying to infer a single sample of dimensions (1,28,28,1). Since my dumped model accepts in this format.
I did the following to initialize my data:-
Tensor in{1}{28}{28}{1}; // Creating a 4 dim. test Sample :- Batch_Size = 1, Image_Dim = (28,28), Channel = 1 (for greysac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el = 1 (for greysacle image)
^
/home/ghosh8/project/Demo/keras2cpp/cpp_model.cc:12:25: error: expected ‘;’ before ‘}’ token
Tensor in{1}{28}{28}{1}; // Creating a 4 dim. test Sample :- Batch_Size = 1, Image_Dim = (28,28), Channel = 1 (for greysacle image)

/home/ghosh8/project/Demo/keras2cpp/cpp_model.cc:13:26: error: expected ‘;’ before ‘{’ token
in.data_ = {{{{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}}

/home/ghosh8/project/Demo/keras2cpp/cpp_model.cc:14:20: error: expected unqualified-id before ‘{’ token
{{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}{0.0}}

Could anyone help what I am doing wrong..................?

Same issue, struggling to create multi-dimensional tensors

Try Tensor in({1, 28, 28, 1})
That seemed to work for me but I am lost on how to input data into that tensor once you have formed it. Hope that helps a little.

Hi again, after some more experimentation, I found a tedious but seemingly working solution for my problem. I'm using a 3d tensor of shape (1, 1, 16) for an LSTM, and formatted like this:
// Create a 3D Tensor on length 16 for input data.
Tensor in{1, 1, 16};
in.data_[0] = reflectivity;
in.data_[1] = echoDist;
in.data_[2] = redx;
in.data_[3] = redy;
in.data_[4] = redSize;
in.data_[5] = bluex;
in.data_[6] = bluey;
in.data_[7] = blueSize;
in.data_[8] = yellowx;
in.data_[9] = yellowy;
in.data_[10] = yellowSize;
in.data_[11] = imu_theta;
in.data_[12] = imu_accelx;
in.data_[13] = imu_accely;
in.data_[14] = liftpos;
in.data_[15] = hook_state;
// Run prediction.
Tensor out = model(in);
result = out.data_[0]
Note I get my result this way because my output is a single value. Your "output" code may be different. I know this is late but hope this helps you and any future users.

And last thing, forgot to mention I removed the "kassert" and all related lines on around line 66 of the tensor.cc file.


Needs a better name.

To me capture-require doesn't really describe what this thing does.
Installing hooks the conventional way (i.e. using pirates):
pirates(fooTransform);
pirates(barTransform);

The transforms are applied in order (fooTransform, then barTransform).
This module guarantees your transform will be applied last, even as other conventional modules continue to be installed afterwords:
captureRequire(transformA); // guaranteed last
captureRequire(transformB); // guaranteed second to last
pirates(transformC);
pirates(transformD);

These transforms would be applied in the following order:
c -> d -> b > a
The initial use case is for nyc to ensure it is able to capture the source map at the very end of the transform chain.
I am having trouble coming up with a name that describes it at all. I feel capture-require is a bit misleading (I would expect a module with that name to behave more like pirates)
// @novemberborn @bcoe @sindresorhus @ariporad @vdemedes

bookend?

append-transform

I went with append-transform.


Websocket documentation duplicated

Doc on websocket as input : input websocket
say the same thing with output : output websocket
While at it, does the ws input/output has configurable delimiter like stdin/stdout ?

Hey @nuhamind2, well spotted, thanks.
Fixed: https://github.com/Jeffail/benthos/commit/3e97c74f426b0989b29d9f2aa615be5623ac9044
The input is very basic and bundles discrete messages as they are flushed, but if you need to break down the contents by delimiters you might be able to do that with processors, depending on your goals.


Visual update of scores on analysis tab.

Changed to "progress bar"-like visual layout, intentionally with muted colors (choosing colors is hard). Preview at the end of the description, and also deployed to staging, a few examples: 100%, 77%, 50%, 22%, outdated.

Removed a few headers that were not useful ("Analysis", "Scores").
Moved the "We analyzed this package" below the scores.
Moved the "Learn more.." label to the right and made is smaller.
The colors use interpolation/shading: lower values are darker, and the overall score matches the color of the score circle.

This could go in multiple directions:

(1)The bars could be of different colors (e.g. popularity - red, code health - green, maintenance - yellow, documentation - blue), or:
(2) The bars could be the same, following a consistent pattern (low values: red, middle: yellow/orange, high values: green).

In the first case, we could restructure the score circle to have similar color indicator bars, in the second I believe the circle should match the color of the overall score's color here.
/cc @mit-mit @sortie: how shall we balance the visuals with the new icons?

I really like the bar-type visualization! However, the bars themselves seems a bit too "fat", and I think would benefit from a more light visualization. I also don't think we use rounded corners anywhere else, so that looks a bit off.
I think the overall score bar should be colored to reflect the score, like in thee examples, but also think we can use the same color for the other three bars.

I think would benefit from a more light visualization

Any suggestion on the color (or combination of them)?

@mit-mit PTAL. Attached two image, and currently deploying to staging (should be available in ~10-20 minutes).

Can you try the slimmer bar layout I mentioned above? Something similar to what Material specs:
https://materialdoc.com/components/progress/#linear
That would also allow us to use a regular font for the score (it would be placed either above or after the bar)

Oh, and a nit: Using the theme (blue) color for the tab selection -- the blue line under (22) -- looks odd now that we use use colors for the score. Can we try to use a black/grayscale color for that?

Can you try the slimmer bar layout I mentioned above?

@mit-mit: I was already considering these pointers, but there is a question with them: if the score is high, the label above the progressbar can fit in the same line as the score title. However, if the value is low, it will either:

push the entire bar down (line 1: "Popularity", line 2: "12", line 3: "progress bar 12% filled"), or
the label will below it (line 1: "Popularity", line 2: "progress bar 12% filled", line 3: "12"), or
the the labels can be in the same line, and the progress bar will only start after the title.

I couldn't really decide on those, that's why I've opted for the current bar. Any preference on the above?

What do you think about this one?

That looks great!
One small tweak: I think we should remove the small lines you have at each end of the bar. The Material spec doesn't use those.

That looks great, design LGTM
@sortie can you review the code?


Missing include  in src/med/ScanParser.cpp for memcpy

The file src/med/ScanParser.cpp is missing #include <cstring> for memcpy. Also, using namespace std;? Tsk tsk.

Thanks pointing out
Fixed. https://github.com/allencch/med/commit/078229a90a06f2cfdbad523b53144d14e72de4c1


[BEAM-7545] Reordering Beam Joins

This adds rules to reorder joins. Calcite's rules may produce cross joins, another version of them are implemented to prevent this.
R: @akedin

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---

---
---

Java

Python

---

---
---

Pre-Commit Tests Status (on master branch)

---
Java
Python
Go
Website

Non-portable

Portable
---

---
---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

retest this please

run java post_commit

Run Java PostCommit

run java postcommit

Run JavaPortabilityApi PreCommit

LGTM

I think this may be breaking Java precommit tests:
16:23:09 > Task :sdks:java:extensions:sql:compileTestJava
16:23:09 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Phrase@2/src/sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/rule/JoinReorderingTest.java:35: error: package org.apache.beam.vendor.guava.v20_0.com.google.common.collect does not exist
16:23:09 import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList;
16:23:09                                                                    ^
16:23:09 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Phrase@2/src/sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/rule/JoinReorderingTest.java:36: error: package org.apache.beam.vendor.guava.v20_0.com.google.common.collect does not exist
16:23:09 import org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
16:23:09                                                                    ^
16:23:09 /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Phrase@2/src/sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/rule/JoinReorderingTest.java:367: error: cannot find symbol
16:23:09   private final ImmutableMap<String, Table> tables;

Opened https://issues.apache.org/jira/browse/BEAM-7784


TD-734: Removed the searchPhrase from the Navigator state

replaced it with the searchSuggestionsPhrase from the search state which is created in pwa-common-commerce

Coverage decreased (-2.08%) to 31.29% when pulling 37fdd445d0102b7bcf68401105889ca4c36c8a29 on TD-734-decouple-the-search-suggestions-from into 0b13110ede16d17ba7ce57156592c5c7e459ffc9 on master.


Create Uptime

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
Fixes #(issue)
Type of change
Please delete any options that are not relevant.

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

Checklist

[ ] My code follows the style guidelines of this project
[ ] I ran ESLint and other linters for modified files
[ ] I have performed a self-review of my own code and tested it
[ ] I have commented my code, particularly in hard-to-understand areas (including JSDoc for methods)
[ ] My changes generates no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.

@Danglinh206 it is really unclear what you are trying to convey here..
I am closing this PR as I don't think this was opened intentionally..


1044265 Displaying on ore clicking.

When I click on any type of ore I am prompted with "1044265" when I am not near a forge.
It should be displaying "You are not near a Forge"

I tested cliloc ID whit simple function:

Line 35 of type_ore change to this  src.sysmessage "@,,2 <def.scp.craft_msg_smithsmeltneeds>"

Its in x script pack?

No problem here, what client version  and script pack are you using

Work A1 with last script pack and last serveur

Ok I found the Bug. it's on the script pack when you activate the OSI smelt formula
// Activate or deactivate the calculation of smelt chances according to OSI.
// <boolean> (1 if yes, 0 if not).
scp.OSIOreFormula=1

I made a Pull request to fix the message https://github.com/cbnolok/SphereX-Scriptpack/pull/80


Implement test for Android

Support running the BuildProject test on Android, and add a Github Action for it.
Most of the contents under BuildProject/Android was autogenerated using react-native init BuildProject.
Also rename existing Github Actions, and make the npm deploy action happen on tag instead of push. The npm deploy action doesn't work anyways, so we'll either fix it or delete it soon, but we don't need it with every push.

@dtdennis28 Drew would be best to review this.

@dtdennis28 Drew would be best to review this.

I'll get his review later this week, merging now to work on further client integration.


Remove duplicated backslashes. Fixes gh-667

Workaround for JsonObject and JsonBuilder processing of json-like strings.

Codecov Report

Merging #750 into 1.2.x will increase coverage by 0.14%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##              1.2.x    #750      +/-   ##
===========================================
+ Coverage     61.65%   61.8%   +0.14%
  Complexity     1795    1795
===========================================
  Files           201     201
  Lines          7209    7210       +1
  Branches       1127    1127
===========================================
+ Hits           4445    4456      +11
+ Misses         2158    2145      -13
- Partials        606     609       +3

Impacted Files
Coverage Δ
Complexity Δ

...ifier/dsl/wiremock/BaseWireMockStubStrategy.groovy
78.84% <100%> (+0.41%)
16 <0> (ø)
:arrow_down:

...ing/camel/ContractVerifierCamelMessageBuilder.java
0% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...loud/contract/stubrunner/AetherStubDownloader.java
61.71% <0%> (+7.81%)
28% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


Update scipy image and requirements for Charmed Kubeflow 1.9

Closes #73.
This PR updates the scipy image and the dependencies for all UATs in order to be compatible with CKF 1.9.

We are using release candidate kubeflownotebookswg/jupyter-scipy:v1.9.0-rc.2, since the stable version hasn't yet been released.
kubeflow-training has been pinned to version 1.6.0 because of a breaking change in imports, as documented in #84

Regarding Katib, LGTM. It is indeed unrelated to this PR.


Fix typos in models/

The title seems self-explanatory.

LGTM (said inside the review doesn't seem to be handled)

LGTM


Add deps-docs command to makefile

Refactored deps-docs out of docs because #23629 broke Gitpod's docs setup (which grepped to get the hugo install command).
Now make deps really installs everything to develop (includes docs).

ping lg-tm


Add VR/XR Single Pass Instanced support

I didn't see any issues when testing. I am not able to test SPI with the new XR framework though - only legacy VR SPI. Surprisingly simple to add.

Thank you


3d Reconstruction

hello, can you work to do some 3d object reconstruction, like nerf construct neural radiance field and extract color mesh.

Sorry, we cannot extract mesh from NeX because NeX is relied on "Multiplanes images (MPI)". which isn't geometry.


Trying to replicate: Multi-people with complex attribute binding

Any insights on what went wrong?
CMD
python RPG.py --user_prompt 'A couple, the beautiful girl on the left, silver hair, braided ponytail, happy, dynamic, energetic, peaceful, the handsome young man on the right detailed gorgeous face, grin, blonde hair, enchanting'     --version_number 0 --api_key $GPT_KEY  --use_gpt --model_name 'albedobaseXL_v20.safetensors'     --base_ratio .2 --activate True --batch_size 3 --cfg 8 --steps 30 --height 1024 --width 1024
Models
Using GPT4 API with albedobaseXL_v20.safetensors
Results

Log from GPT4
waiting for GPT-4 response
### Original Caption:
"A couple, the beautiful girl on the left with silver hair and braided ponytail, who looks happy, dynamic, energetic, and peaceful; and the handsome young man on the right with a detailed gorgeous face, a grin, and blonde hair, enchanting."

### Key phrases identification:
We identify a couple and four attributes for the girl, three for the man:
1. Girl's silver braided ponytail (hair features)
2. Girl's mood and demeanor (happy, dynamic, energetic, peaceful)
3. Man's face detail and expression (gorgeous face, grin)
4. Man's blonde hair (hair features)

Splitting the image into four subregions may be unnecessary since we could amalgamate certain features to maintain simplicity in accordance with rule 4. Therefore, I will group the girl's mood and demeanor into one region and the man's face detail and expression into another.

### Split Ratio Planning:
#### Horizontal Split Ratio: 1;1
- This ratio splits the image into two horizontal rows, each dedicated to one person in the couple.
#### Vertical Split Ratio: `1,(1,1); 1,(1,1)`
- By using this ratio, each row is further divided equally into two vertical subregions, representing the key features of each person.

#### Detailed Subregion Prompts:
1. **First Row** (`1,(1,1)`):
   - **Region 0:** The girl's lustrous silver hair fashioned into an intricate braided ponytail, an emblem of her grace and poise.
   - **Region 1:** Her radiant expression encapsulating happiness and energy, with a demeanor that exudes dynamism and serenity.
2. **Second Row** (`1,(1,1)`):
   - **Region 2:** The young man's face, capturing every striking detail, from his sharp jawline to the warmth of his inviting grin.
   - **Region 3:** The allure of his blonde hair, styled effortlessly, enhancing his charming and enchanting presence.

#### Composition Logic:
- The first row foregrounds the girl's distinctive hairstyle and her emotional state, reflecting her personality and vibrancy.
- The second row focuses on the young man's face and hair, delineating his attractive features and the charm he radiates.

#### Aesthetic Considerations:
- The silver braided ponytail and the girl's expressive demeanor create a picture that connects with viewers emotionally, highlighting her traits in a positive light.
- The man's handsome face with a grin paired with his enchanting blonde hair offers a captivating visual appeal, contrasting yet complementing the girl's portrayal.

By structuring the layout plan with these focal points, each region effectively presents specific aspects of the subject's appearance and emotion in a vivid and engaging manner. The layout ensures a coherent and aesthetically appealing image.

### Output:
Horizontal split ratio: 1;1
Vertical split ratio: 1,(1,1); 1,(1,1)
Split ratio: 1,(1,1); 1,(1,1)
Regional Prompt:
The girl's radiant silver hair, woven into a beautiful braid that flows into a ponytail, reflecting her elegance and poise. BREAK
Revealing her expressions of happiness and vitality, her face a picture of dynamic energy and peaceful contentment. BREAK
The young man's detailed, handsome face, his eyes warm and inviting, framed by a confident grin that speaks volumes about his character. BREAK
His blonde hair, the color of summer wheat, styled in a way that adds to his enchanting allure and overall handsomeness.
Horizontal split ratio: 1;1
Vertical split ratio: 1,(1,1); 1,(1,1)
Split ratio: 1,(1,1); 1,(1,1)
Regional Prompt:
The girl's radiant silver hair, woven into a beautiful braid that flows into a ponytail, reflecting her elegance and poise. BREAK
Revealing her expressions of happiness and vitality, her face a picture of dynamic energy and peaceful contentment. BREAK
The young man's detailed, handsome face, his eyes warm and inviting, framed by a confident grin that speaks volumes about his character. BREAK
His blonde hair, the color of summer wheat, styled in a way that adds to his enchanting allure and overall handsomeness.
{'split ratio': '1,1,1; 1,1,1', 'Regional Prompt': "The girl's radiant silver hair, woven into a beautiful braid that flows into a ponytail, reflecting her elegance and poise. BREAK\nRevealing her expressions of happiness and vitality, her face a picture of dynamic energy and peaceful contentment. BREAK\nThe young man's detailed, handsome face, his eyes warm and inviting, framed by a confident grin that speaks volumes about his character. BREAK\nHis blonde hair, the color of summer wheat, styled in a way that adds to his enchanting allure and overall handsomeness."}
select_checkpoint: albedobaseXL_v20.safetensors [a928fee35b]
process_script_args (True, False, 'Matrix', 'Columns', 'Mask', 'Prompt', '1,1,1; 1,1,1', 0.2, False, False, False, 'Attention', [False], 0, 0, 0.4, None, 0, 0, False)
[Errno 2] No such file or directory: '/app/RPG-DiffusionMaster/regional_prompter_presets.json'
Init / preset error.
fatal: No names found, cannot describe anything.
1,1,1; 1,1,1 0.2 Horizontal
Regional Prompter Active, Pos tokens : [24, 20, 27, 26], Neg tokens : [0]
select_checkpoint: albedobaseXL_v20.safetensors [a928fee35b]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:24<00:00,  1.21it/s]
Total progress: 30it [00:26,  1.14it/s]

all of the splits are 1?

all of the splits are 1?

The notebook worked for split humans, so do I need a template example that goes with that one?

all of the splits are 1?

The notebook worked for split humans, so do I need a template example that goes with that one?

Thanks for your comments. Actually, for this scenario, we have conducted ablation experiment in our paper.

You need to use larger Base ratio to get satisfactory results.  It is recommended to use smaller CFG, which could help to generate better results. As for the split ratio, I make slight adjustments, and here I show my results about your example prompt:
python RPG.py --user_prompt 'A couple, the beautiful silver braided ponytail girl on the left happy and peaceful, the handsome blonde hair young man on the right detailed gorgeous face.' --api_key ‘your api key’--use_gpt --use_base --base_ratio 0.5 --base_prompt 'a couple are chatting
Here are some results I get from batch_size=4:

The stability of the MLLMs' response relies on our template library. Our repository's template is currently a trial version. Just stay tuned for our upcoming series of updates. Thank you for your attention!

@YangLing0818 Thanks!

all of the splits are 1?

The notebook worked for split humans, so do I need a template example that goes with that one?

Thanks for your comments. Actually, for this scenario, we have conducted ablation experiment in our paper.  You need to use larger Base ratio to get satisfactory results. It is recommended to use smaller CFG, which could help to generate better results. As for the split ratio, I make slight adjustments, and here I show my results about your example prompt:
python RPG.py --user_prompt 'A couple, the beautiful silver braided ponytail girl on the left happy and peaceful, the handsome blonde hair young man on the right detailed gorgeous face.' --api_key ‘your api key’--use_gpt --use_base --base_ratio 0.5 --base_prompt 'a couple are chatting
Here are some results I get from batch_size=4:
The stability of the MLLMs' response relies on our template library. Our repository's template is currently a trial version. Just stay tuned for our upcoming series of updates. Thank you for your attention!

Could you post the log that came back from GPT for this one?

all of the splits are 1?

The notebook worked for split humans, so do I need a template example that goes with that one?

Thanks for your comments. Actually, for this scenario, we have conducted ablation experiment in our paper. ![图片 1]You need to use larger Base ratio to get satisfactory results. It is recommended to use smaller CFG, which could help to generate better results. As for the split ratio, I make slight adjustments, and here I show my results about your example prompt:
python RPG.py --user_prompt 'A couple, the beautiful silver braided ponytail girl on the left happy and peaceful, the handsome blonde hair young man on the right detailed gorgeous face.' --api_key ‘your api key’--use_gpt --use_base --base_ratio 0.5 --base_prompt 'a couple are chatting
Here are some results I get from batch_size=4:
The stability of the MLLMs' response relies on our template library. Our repository's template is currently a trial version. Just stay tuned for our upcoming series of updates. Thank you for your attention!

Could you post the log that came back from GPT for this one?
Edit: Also what is the adjusted split ratio?

The GPT-4 response are as follows:
Original Caption:
"A couple, the beautiful silver braided ponytail girl on the left happy and peaceful, the handsome blonde hair young man on the right detailed gorgeous face."
Key Phrases Identification:
For the couple, we have two main subjects, each with distinct features:

Beautiful girl with a silver braided ponytail, described as happy and peaceful.
Handsome young man with blonde hair, described as having a detailed and gorgeous face.
Since the subjects are side-by-side rather than one above the other, we only need to split the image into columns, not rows.

Split Ratio Planning:
Horizontal Split Ratio: 1

This ratio indicates that we do not need to split the image horizontally, as there is only one row.
Vertical Split Ratio: 1,1
This ratio splits the image into two vertical regions, one for the girl on the left and one for the man on the right.

Detailed Subregion Prompts:

Single Row (1):

Region 0: The girl on the left, her silver braided ponytail reflecting the soft lighting, embodying a serene and joyful aura.
Region 1: The young man on the right, his blonde hair and finely detailed features creating a striking portrait of handsomeness.

Composition Logic:

The single row format allows for a side-by-side comparison of the two subjects, each occupying their own space within the image.
The girl's silver braided ponytail and her happy, peaceful expression are captured in one region, reflecting her character and mood.
The man's blonde hair and detailed facial features are highlighted in the adjacent region, emphasizing his attractiveness and the fine details of his visage.

Aesthetic Considerations:

By placing the girl and the man next to each other, the image composition emphasizes their relationship as a couple.
The use of descriptive language for the girl's hair and expression, as well as the man's hair and facial details, aims to create an atmosphere that conforms to the logic of human aesthetics, ensuring the image is visually appealing.
Now, let's present the final split ratio and regional prompts according to the revised plan.

Output:
Horizontal Split Ratio: 1
Vertical Split Ratio: 1,1
Final Split Ratio: 1,1
Final Regional Prompt:
The girl on the left, her silver braided ponytail reflecting the soft lighting, embodying a serene and joyful aura. BREAK
The young man on the right, his blonde hair and finely detailed features creating a striking portrait of handsomeness.

I was able to reproduce.  For those curious, it's imperative to put a period at the end of the base prompt for consistency, at least with albedobaseXL_v20.safetensors
python RPG.py --user_prompt 'A couple, the beautiful silver braided ponytail girl on the left happy and peaceful, the handsome blonde hair young man on the right detailed gorgeous face.' --api_key ‘your api key’--use_gpt --use_base --base_ratio 0.5 --base_prompt 'a couple are chatting.'
Here's the same seed with and without the ending punctuation mark.


make it possible to inject a custom worker for QC's rake tasks.

In every project I'm using QueueClassic we end up writing
our own Worker. This is also encouraged in the README.
The process is very smooth but one drawback is that you can't
continue to use the rake tasks, which ship with QC. Or at least
not rake qc:work as this would always use the default worker.
I think we should encourage custom workers and make it trivial
to inject them into QC's rake tasks.
ToDo

[x] rDoc
[x] document Worker injection

/cc @jipiboily

Se do have a custom worker with a custom rame task. Totally in favor of this! :+1:. Ping me when ready to review :grinning:

@jipiboily can you give this a quick look?

This looks good to me bar the typo! Let's keep that for 3.2.

I branched of 3-1-stable to make master ready for the next release.
@jipiboily thanks for the review! :yellow_heart:


Make sure Grafana is up before hitting the API to check password validity

Since an HTTPError is also checked for in the password action, it's
possible to encounter a race where the action informs users that the
password has been changed when Grafana is simply not available yet.
No tests since Harness cannot check actions and we can't reliably reproduce a race in the integration tests.

I should have clarified :| Of course, it's a Turing-complete language, anything can be done. Whether or not we should attempt to fake out actions by manually invoking private methods and mocking ActionEvent is another question.

Tbh this solution does not horrify me much. AFAICT OF does comparably little lifting for actions, as opposed to relations.

I'll write the test here, but we should really make an effort to push on OF to implement actions in harness before this becomes a pattern.

Yep we should.


Changed triggerFunctions to triggerBackupFunctions, updated trigger name in each triggers.

What this PR does / why we need it:
Changed triggerFunctions to triggerBackupFunctions, updated trigger name in each triggers.
Which issue(s) this PR fixes (optional)
Closes #PB-5798
Special notes for your reviewer:
https://aetos.pwx.purestorage.com/resultSet/testSetID/576034

LGTM, please prefix all backup trigger names with pxb-*.

Updated the prefix, @atrivedi-px please review.


cross platform support - windows support

npm scripts containing parallel scripts using "&" aren't supported in windows Environments
hence excludes windows Dev's from using project
( this will at times exclude myself from using and contributing as well )
locally the changes seem to be functioning as I expected

I've just updated it so there aren't any merge conflicts again @restmount will enable windows users/dev to use project

@mrhut10
Thanks for your contribution.
Nice solution.


Pageable argument is handled in FieldQueryMapEncoder

When I define a method in my feign client with only a Pageable argument, this is handled in the FieldQueryMapEncoder.
PagedModel<EntityModel<Foo>> getFooPaged(Pageable pageable).
This throws an IllegalStateException because in the method feign.querymap.FieldQueryMapEncoder#encode it tries to put 2 serialVersionUI keys in a map.

This is broken when going from version 4.0.1 to 4.0.2.
Caused by: java.lang.IllegalStateException: Duplicate key serialVersionUID (attempted merging values -4541509938956089562 and<PHONE_NUMBER>694716871)
	at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135)
	at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182)
	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at feign.querymap.FieldQueryMapEncoder.encode(FieldQueryMapEncoder.java:49)
	at feign.ReflectiveFeign$BuildTemplateByResolvingArgs.toQueryMap(ReflectiveFeign.java:267)
	at feign.ReflectiveFeign$BuildTemplateByResolvingArgs.create(ReflectiveFeign.java:248)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:67)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:98)
	at jdk.proxy2/jdk.proxy2.$Proxy262.getTmcLocationsPaged(Unknown Source)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:141)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:218)
	at jdk.proxy2/jdk.proxy2.$Proxy263.getFooPaged(Unknown Source)

Same here, but it also happens with any combination of parameters. The problem is the hierarchy of AbstractPageRequest as @steinmaerivoet indicated.
As a workaround, in our project we added a reimplementation of PageRequest with a different serialVersionUID and then used it as Pageable. I hope this issue will be solved soon.

Hello @steinmaerivoet @rubenqba does the solution suggested by @orange-guo solve your issue? If not, please provide a minimal, complete, verifiable example that reproduces the issue.

In my case it does. I use a client manually created, so @orange-guo solution is the correct one in my case.

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

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


Clean up email template for giving

@samclaridge I'll get you a login to beta-rock so you can edit this template directly. We should probably chat with @jonhorton about copy for this too.

I was just typing out a bug/todo for this. Creepy.
On Wednesday, February 24, 2016, James Baxley<EMAIL_ADDRESS>wrote:

@samclaridge https://github.com/samclaridge I'll get you a login to
beta-rock so you can edit this template directly. We should probably chat
with @jonhorton https://github.com/jonhorton about copy for this too.
—
Reply to this email directly or view it on GitHub
https://github.com/NewSpring/Apollos/issues/192.

--
Jon Horton
Central Web Director
NewSpring Church
www.newspring.cc
Office:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>

@jonhorton haha yesss!

@jonhorton thoughts on when we will have copy for this? Are you writing it, do I need to have Amy write it?

@jbaxleyiii @samclaridge  Let's use the existing give copy we have (I've include a slightly modified version below), and we'll follow up with Amy after launch for any revisions. Place holders are surrounded with [ ] below. Also, the confirmation section should keep the same styles you already have in the template!
Begin Copy
Thank you for your generous gift of [$Amount] to NewSpring Church from your account ending in [Last 4 Digits]. Because you gave, we'll be able to reach more people far from God and teach them to follow Jesus step by step. Below is the confirmation number and details of your gift.
Confirmation Number: [XXXXXXX]
General Fund	[$XX.XX]
Total:	[$XX.XX}
Scheduling your giving or viewing your giving history is easy! Simply sign in or create a NewSpring Profile.
If you have any questions please call our Finance Team at<PHONE_NUMBER> or e-mail us at<EMAIL_ADDRESS>and we will be happy to assist you!
End Copy
We probably need to create a separate footer for the template used for this email. (Screenshot)
This should keep the mailing address, but the wording should change to:
"You received this email because of your generous gift to NewSpring Church."
Also, we need to remove the unsubscribe + update your profile links.

@jonhorton this is great. Rock's current giving receipt (if you gave anywhere on Rock) doesn't include [Last 4 digits]. Because we are sending from Apollos, I can add that end but be aware it won't show up if giving from Rock

@jbaxleyiii That makes sense! Thanks!
On Fri, Feb 26, 2016 at 5:02 PM, James Baxley<EMAIL_ADDRESS>wrote:

@jonhorton https://github.com/jonhorton this is great. Rock's current
giving receipt (if you gave anywhere on Rock) doesn't include [Last 4
digits]. Because we are sending from Apollos, I can add that end but be
aware it won't show up if giving from Rock
—
Reply to this email directly or view it on GitHub
https://github.com/NewSpring/Apollos/issues/192#issuecomment-189502343.

--
Jon Horton
Central Web Director
NewSpring Church
www.newspring.cc
Office:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>


Filters on small screens js

Context
This PR adds the filter in a progressive way to devices with small
screens.
When JS enabled:

on large screens the filter is present and the 'hide/show filter' button is not present.

on small screens the the filter collapses to a floating box on the side and can be
hidden and shown.

When JS is not enabled:

on large screens the filter is present on the left.

on small screens the filter is moved above the application cards.

Changes proposed in this pull request
Before:
https://recordit.co/ZSXLmxc94b
After:
https://recordit.co/ZSXLmxc94b
Without JS:
https://recordit.co/UFN6vpfUqE
Guidance to review

checkout this branch - resize the screen. Do things look right to you (ignoring the slightly weird header on small screens there's already a ticket for that).
As has been discussed there there are no tests for this functionality given that we can't run a headless browser that resizes the screen.

Link to Trello card
https://trello.com/c/uIR5I9M4/2122-title-filters-not-working-at-all-on-small-screens
Things to check

[x] This code doesn't rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

Should be this:

Give the paragraph a margin-top of 3
Give the filter button a margin bottom of 4


Getting Started Instructions default to blank screen

I have attempted the "Getting started" configuration guides for setting up the development environment and assembling the "Getting started" Hello World web part.  The default installation instructions failed on all three environments with exactly the same errors identified in developer tools of IE 11.  The failure results in what appears to be an operational web part, but showing a blank screen in IE 11.
Error Data:
SCRIPT1053: Const must be initialized
workbenchInit.js (10,21)
SCRIPT5007: Object expected
sp-loader-assembly_default.js (5854, 13)
Reproduction Steps:
Using: Windows 10 Version 1803
From command prompt, run the following steps:
DEVELOPMENT ENVIRONMENT SETUP INSTRUCTIONS
Reference: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
Install NodeJS. (https://nodejs.org/en/)
node -v to check version
Install Visual Studio Code Editor (https://code.visualstudio.com)
Select all check boxes for options:
Create desktop icon
Add "Open with Code" action to Windows Explorer file context menu
Add "Open with Code" action to Windows Explorer directory context menu
Register Code as an editor for supported file types
Add to PATH (available after restart)
Restart Computer
npm install -g yo gulp
npm install -g @microsoft/generator-sharepoint
END OF CONFIGURATION
SOLUTION SETUP INSTRUCTIONS
Reference: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part
cd "C:\Users<username>\SPFx-Projects\
md helloworld-webpart
cd helloworld-webpart
yo @microsoft/sharepoint
When prompted:
Accept the default helloworld-webpart as your solution name, and then select Enter.
Select SharePoint Online only (latest), and select Enter.
Select Use the current folder for where to place the files.
Select N to require the extension to be installed on each site explicitly when it's being used.
Select WebPart as the client-side component type to be created.
The next set of prompts ask for specific information about your web part:
Accept the default HelloWorld as your web part name, and then select Enter.
Accept the default HelloWorld description as your web part description, and then select Enter.
Accept the default No javascript web framework as the framework you would like to use, and then select Enter.
cd "C:\Users<username>\SPFx-Projects\helloworld-webpart"
gulp trust-dev-cert
gulp serve
END OF SOLUTION SETUP
Solution successfully loads and opens browser window, where  blank page is shown with developer tools console errors (listed above).  This has occurred in three different generic pc's the exact same way, so it is reproduceable.  Remember, these are supposed to be getting started instructions, and clearly that is not the case if this is the result.  Some of the comments I have read addressing issues already reported indicate that significant advanced knowledge of the frameworks and these compiler tools is needed in order to get this running.  I would assume most folks coming from the old development environment would have very limited if any knowledge of these frameworks, and therefore any get started documentation should have that in mind.  Am I missing something?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6c25a90e-829c-b436-d8ab-f9c010588ee1
Version Independent ID: 768fa9a1-2375-fb5a-be58-cb66320cc789
Content: Build your first SharePoint client-side web part (Hello World part 1)
Content Source: docs/spfx/web-parts/get-started/build-a-hello-world-web-part.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

I have tried this, there are no error when the blank page shown. And if we try to reload this page, the web part will show

I just attempted the same script I provided here and I get the same errors on a PC outside of our network in an attempt to identify a possible firewall/port issue.  Same result.  Every attempt yields the same result.  Don't know how you got this to work, but I would be interested to know if you deviated from the notes I provided on the script to process.

Update: Checked the installations in Edge and the page is showing as intended.  So, this appears to be an Internet Explorer 11 issue.  Any ideas on how that can be fixed?  If it cannot be shown in IE 11 for some reason, wouldn't it make sense to denote that in the getting started details?

Update: Checked the installations in Edge and the page is showing as intended. So, this appears to be an Internet Explorer 11 issue. Any ideas on how that can be fixed? If it cannot be shown in IE 11 for some reason, wouldn't it make sense to denote that in the getting started details?

I am facing the exact same issue. IE11 on Windows 10.
When opening the page in Edge or Chrome workbench loads without any issue. Seems to be IE related.

IE11 doesn't handle React JS content (like the web part in this tutorial) very well, from what I've gathered. I don't know and of the details, I just know that it's an issue. The other modern browsers handle  it more gracefully. Developers can include an extra package called "polyfill" to help ensure their React solutions work smoothly on IE11.

The same problem occurs to me - the workbench doesn't load at all on IE11, yet it works correctly on Chrome. I use<EMAIL_ADDRESS>and IE 11.2485.13493.0 (update 11.0.85, KB4457426). There are two errors in the console:
SCRIPT1053: Const must be initialized
workbenchInit.js (10,21)

SCRIPT5007: Object expected
sp-loader-assembly_default.js (5854,13)

Same problem as @Szab with me: Same config / same errors.

Same here as @Szab  and @wpo365 , any solutions ?

this does not work on IE at all. Always shows blank screen. Change the default browser to firefox/chrome and run the gulp serve again. The workbench loads as expected.
A question though, how to break the gulp serve command. it is always running in the cmd console even when we close the browser window where workbench is loaded.

      this does not work on IE at all. Always shows blank screen. Change the default browser to firefox/chrome and run the gulp serve again. The workbench loads as expected.

A question though, how to break the gulp serve command. it is always running in the cmd console even when we close the browser window where workbench is loaded.
Sam issue, work fin on edge but not IE. And out company default browser is IE.... Everything Microsoft....
@deepikatyagi have you tried Ctrl + c ?

Only a workbench, probably. Webparts and extensions created with SPFx should work regardless of that (if proper polyfills are used).

I tried to create a test sharepoint site and tested on "https://your-sharepoint-tenant.sharepoint.com/_layouts/15/workbench.aspx".
By doing this, IE is good for gulp serve

Are you still having issues with this? Modern pages, such as the workbench, should work in IE1 when the document mode is set to IE11 (ref: https://support.office.com/en-us/article/Which-Browsers-Work-With-Office-Online-AD1303E0-A318-47AA-B409-D3A5EB44E452).

The issue is resolved now. :)
On Tue, Jul 16, 2019 at 8:14 PM Andrew Connell<EMAIL_ADDRESS>wrote:

Are you still having issues with this? Modern pages, such as the
workbench, should work in IE1 when the document mode is set to IE11 (ref:
https://support.office.com/en-us/article/Which-Browsers-Work-With-Office-Online-AD1303E0-A318-47AA-B409-D3A5EB44E452
).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-docs/issues/2668?email_source=notifications&email_token=AGT4Y4DBPMZAY7S2CR4YOFDP7XNFBA5CNFSM4FYKMDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2BCYDY#issuecomment-511847439,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGT4Y4GAAKTEXQ2ZLCTRKW3P7XNFBANCNFSM4FYKMDKA
.

Still need a fix for this.

I also have the same issue, why it is marked as closed and there is no resolution on how it has to be fixed?

@simonssspirit because the issue submitted by the OP was resolved. Closed issues aren't monitored so if you are having a problem, please open a new issue and provide as much context as possible.


Duplicate libraries

On page 2 in 2nd and 3rd row from the bottom, requests library is present twice.
Also on Page 3 in 1st and 2nd row from top, pyithub is been listed twice.

I also observed this on the front page of the Java projects list where it listed elasticsearch/elasticsearch and elastic/elasticsearch, which is what the elasticsearch GH org renamed itself to recently. The issues presented in the elasticsearch/elasticsearch list still point to the correct repo (elastic/elasticsearch) but I didn't dig into it to find out if they are distinct or actually dupes

Same for [javascript project list] where it listed kibana twice