Code and data are not consistent

Thanks for your sharing! But the code and data are not consistent, so i can't run it correctly.

Hello, please provide a detailed description of the problem you encountered, as well as the environment in which it was running at the time. If possible, please attach the bug information to the message.

Hi, Thanks for your response! I mean that the data format in the code is  not consistent with the data you provide? The code related to model setpup and evaluation are also missing. Also could you also provide the data process script? Thanks very much!


fix: make _notification_handler a normal function

Nothing is being awaited here and by making it a coro, each notification has to spawn a new task which has to wait one iteration of the event loop and increases latancy

Thanks!

Thanks


HYD-7337 Allow missing session objects in session table during terminate

The chroma-agent.log displays the following trace back during SSI runs, they
result from a missing syslog key in the plug-in name to session object map when
running SessionTable.terminate('syslog') after the session/plug-in teardown
routine has been run.
The missing key should not cause an exception in the log because the session
will have already been successfully deactivated.

Except KeyError when deleting 'syslog' from _session map after session
teardown

Change-Id: Ib0c93083b4c672c2551419a4a7bc765a4ad0668a

Can we remove gerrit change id's?

change-IDs added by pre-commit hook, I will investigate whether these are source versioned or just on my local system


Photo Post Won't Save

Here is my code:
PhotoPost curPost = client.newPost("a blog", PhotoPost.class);
File image = new File(location);
curPost.setCaption(body);
curPost.setPhoto(new Photo(image));
curPost.save();

Text posts work just fine but when I do this the post will not save, it does not throw any error and all other methods before save succeed without throwing an error. Save seems to complete but when I check the blog it's supposed to be posting to I see nothing.

Issue was due to another method, closed.


Whitelisting of valid users for an app

Is your feature request related to a problem? Please describe
For now, we have solved the need for control of which persons and/or organisations that can use an app by letting the app owner restrict instantiation so that only the app owner can instantiate. Some cases does however need the end user to be able to instantiate with the same control over which users are valid.
Describe the solution you'd like
The app owner should be able to define a whitelist of valid org.no-s or SSNs for the app. When instantiating, the app should check if users are in the whitelist. As the whitelist would contain SSNs, we cannot host it in a way that allows access for other than the app and the administrators of the app owner.
Describe alternatives you've considered
Demanding that app owners who need this host their own whitelist and implement instantiation logic that includes an external check.
Additional context
This is one of the main use cases of the "abonnement" functionality in Altinn II.

Jeg mener dette antakeligvis kan bli løst nå, vha. custom kode i en IInstantiationValidator: https://docs.altinn.studio/nb/app/development/logic/instantiation/#introduksjon
Ellers er det ikke et behov jeg har hørt så ofte at jeg tror det bør kunne løses vha. konfigurasjon, og det vil jo dessuten bli vanskelig om man uansett må gjøre et oppslag eksternt for å sjekke om en bruker skal kunne instansiere.

[like]  Hole, Bente reacted to your message:

From: Ole Martin Handeland @.>
Sent: Wednesday, August 28, 2024 7:50:58 AM
To: Altinn/app-lib-dotnet @.>
Cc: Hole, Bente @.>; Mention @.>
Subject: Re: [Altinn/app-lib-dotnet] Whitelisting of valid users for an app (#524)
Jeg mener dette antakeligvis kan bli løst nå, vha. custom kode i en IInstantiationValidator: https://docs.altinn.studio/nb/app/development/logic/instantiation/#introduksjon
Ellers er det ikke et behov jeg har hørt så ofte at jeg tror det bør kunne løses vha. konfigurasjon, og det vil jo dessuten bli vanskelig om man uansett må gjøre et oppslag eksternt for å sjekke om en bruker skal kunne instansiere.
—
Reply to this email directly, view it on GitHubhttps://github.com/Altinn/app-lib-dotnet/issues/524#issuecomment-2314581486, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASRPQKAPUIL2GBKBMOKDPGLZTV6OFAVCNFSM6AAAAABE5VZQ2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJUGU4DCNBYGY.
You are receiving this because you were mentioned.Message ID: @.***>


Design the library interface

For now, let's focus on QSBR linked lists.

Changed to EBR using crossbeam (#3 for more details)

@jeehoonkang , have you seen this? http://open-std.org/JTC1/SC22/WG21/docs/papers/2017/p0461r1.pdf
It is evolving properly (that's the second iteration of the paper), so maybe it can give you some ideas.

Thank you so much for the reference!  I will properly read the document.  I totally have abandoned this project for a while, but I really want to resume working on it.. soon :)


Add terraform-compliance

a lightweight, compliance and security focused, BDD test framework against terraform.
https://terraform-compliance.com
https://github.com/eerkunt/terraform-compliance

Awesome. Thanks @eerkunt. 🦅


Prevent Browser Navigate Before Proxy Set (workaround)

I tried to fix #95 but failed to figure out how those async runs work. So I did my best and come up with this workaround  75c3d78 . This is a workaround, not a fix so it would be better if you can actually fix it.

The new switchable stylesheet breaks on IE8, this commit 457cc18 fixes it (and also includes some tweaks to stylesheet). Although IE8 sounds like history, there's no harm to fix it.

Here's a workaround, this is the best I can come up with.

I've just rebased the 2 commits above and force pushed the branch.
Adding this comment to avoid confusion. If you used any of the 2 commits before the time of this comment, please revert the change and cherry-pick / merge again.
Sorry for the inconvenience.

大変遅くなってしまい申し訳ありません。
4babe8ca3017fe99b129bc591c8fac566c811749　に修正版をコミットしました。
テストをしていただけると助かります。
I'm sorry for my late reply.
I committed a modified version to 4babe8ca3017fe99b129bc591c8fac566c811749.
I'd appreciate it if you could test it.

I've tried 4babe8c for some time, as far as I can tell it seems the problem is fixed.
You're more than welcome to ignore my workaround and close this pull request, just don't forget to cherry-pick 457cc18 in your develop branch as it fixes #98 .

Thank you for your cooperation.
Merged at 76f6e9d6dd551449470581aba52f392a86595be2.


Allow views in api keys

Fix: https://github.com/CartoDB/support/issues/1776

@javitonino I really needed to add a new check looking into pg_matviews to support materialized views. Now it is ready for a new CR


keras 2.0.2 breaks resnet on theano backend

I tried to run the example from  https://keras.io/applications/#resnet50 (copy&paste)
This result with the following error :
    preds = model.predict(x)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/keras/engine/training.py", line 1572, in predict
    batch_size=batch_size, verbose=verbose)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/keras/engine/training.py", line 1202, in _predict_loop
    batch_outs = f(ins_batch)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 1122, in __call__
    return self.function(*inputs)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 898, in __call__
    storage_map=getattr(self.fn, 'storage_map', None))
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/gof/link.py", line 325, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 884, in __call__
    self.fn() if output_subset is None else\
ValueError: GpuDnnConv images and kernel must have the same stack size

Apply node that caused the error: GpuDnnConv{algo='small', inplace=True}(GpuContiguous.0, GpuContiguous.0, GpuAllocEmpty.0, GpuDnnConvDesc{border_mode='valid', subsample=(2, 2), conv_mode='conv', precision='float32'}.0, Constant{1.0}, Constant{0.0})
Toposort index: 1039
Inputs types: [CudaNdarrayType(float32, 4D), CudaNdarrayType(float32, 4D), CudaNdarrayType(float32, 4D), <theano.gof.type.CDataType object at 0x7fd6e7ed0190>, Scalar(float32), Scalar(float32)]
Inputs shapes: [(1, 3, 230, 230), (7, 7, 3, 64), (1, 7, 114, 84), 'No shapes', (), ()]
Inputs strides: [(0, 52900, 230, 1), (1344, 192, 64, 1), (0, 9576, 84, 1), 'No strides', (), ()]
Inputs values: ['not shown', 'not shown', 'not shown', <capsule object NULL at 0x7fd6eae6ce70>, 1.0, 0.0]
Inputs name: ('image', 'kernel', 'output', 'descriptor', 'alpha', 'beta')

Outputs clients: [[GpuElemwise{Add}[(0, 0)](GpuDnnConv{algo='small', inplace=True}.0, GpuDimShuffle{x,0,x,x}.0)]]

Any idea about this issue?

ValueError: GpuDnnConv images and kernel must have the same stack size

It looks like you are trying to run code written for data_format='channels_last' with channels_fist (or the other way around). Make sure your data matches the default data format from your Keras config file at ~/.keras/keras.json.

Yes, but the upgraded resnet50 has weights for tensorflow only. For some reason it fails when converting to theano but does not succeed https://github.com/fchollet/keras/blob/master/keras/applications/resnet50.py#L266

The error message you posted is not related to weight conversion. Weight conversion does not affect weight shapes, only weight contents.

So what can be the cause?
I  reran it on fresh file.
keras.json
{     "epsilon": 1e-07,     "floatx": "float32",     "image_data_format": "channels_first",     "backend": "theano" }
Example code
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np

model = ResNet50(weights='imagenet')

img_path = 'elephant.jpg'
img = image.load_img(img_path, target_size=(224, 224))
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)

preds = model.predict(x)
# decode the results into a list of tuples (class, description, probability)
# (one such list for each sample in the batch)

print('Predicted:', decode_predictions(preds, top=3)[0])
Error message
Using Theano backend.
Traceback (most recent call last):
  File "res50.py", line 14, in <module>
    preds = model.predict(x)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/engine/training.py", line 1572, in predict
    batch_size=batch_size, verbose=verbose)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/engine/training.py", line 1202, in _predict_loop
    batch_outs = f(ins_batch)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.py", line 1094, in __call__
    return self.function(*inputs)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 898, in __call__
    storage_map=getattr(self.fn, 'storage_map', None))
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/gof/link.py", line 325, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 884, in __call__
    self.fn() if output_subset is None else\
ValueError: CorrMM images and kernel must have the same stack size

Apply node that caused the error: CorrMM{valid, (2, 2), (1, 1)}(IncSubtensor{InplaceSet;::, ::, int64:int64:, int64:int64:}.0, Subtensor{::, ::, ::int64, ::int64}.0)
Toposort index: 442
Inputs types: [TensorType(float32, 4D), TensorType(float32, 4D)]
Inputs shapes: [(1, 3, 230, 230), (7, 7, 3, 64)]
Inputs strides: [(634800, 211600, 920, 4), (5376, 768, -256, -4)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[Elemwise{add,no_inplace}(CorrMM{valid, (2, 2), (1, 1)}.0, InplaceDimShuffle{x,0,x,x}.0)]]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
  File "res50.py", line 6, in <module>
    model = ResNet50(weights='imagenet')
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/applications/resnet50.py", line 207, in ResNet50
    x = Conv2D(64, (7, 7), strides=(2, 2), name='conv1')(x)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 554, in __call__
    output = self.call(inputs, **kwargs)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/layers/convolutional.py", line 164, in call
    dilation_rate=self.dilation_rate)
  File "/home/oak/venv2/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/backend/theano_backend.py", line 1726, in conv2d
    filter_dilation=dilation_rate)

I can repro. The issue is not backend dependent. And not related to weight conversion. Unclear to me what the problem is (at first look).

Updated: Using tensorflow works with the above code. Note that also the sample code for VGG breaks on theano

I have exactly the same problem.
It seems that the kernel shape is 'channels_last', although debugging shows that image_dim_ordering='th'.

I replaced the weight loading part of the code with that of the previous version (so loading the https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_th_dim_ordering_th_kernels.h5 or https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_th_dim_ordering_th_kernels_notop.h5 files directly, instead of loading the tf versions and converting them), and it works for me.

One thing I noticed was that the new resnet/vgg16 weight files don't have the keras_version attribute set. When I manually change it to d.attrs['keras_version'] = bytes('2', 'utf8') and remove the md5 hash checking, things seem to work.
NOTE: the model loads and is able to make predictions... I haven't tested that it is making the correct predictions :)

@fchollet Seems like my fix yields correct predictions.  I get:
Predicted: [('n03085013', 'computer_keyboard', 0.21159104), ('n03642806', 'laptop', 0.19715701), ('n02112137', 'chow', 0.17430468)]

as well as:
Predicted: [('n02123045', 'tabby', 0.64627695), ('n02123159', 'tiger_cat', 0.19134907), ('n02124075', 'Egyptian_cat', 0.15488885)]


[Bug]: Water flood in mod's added structure

Mod Loader (Required)
Fabric
Minecraft Version(s) (Required)
1.20.4
Mod Version(s) (Required)
20.4.2
Minimal Setup (Required)
Yes
Notes (Required)
The structures added buy the mod have water in the "basement", don't know if this is normal, check the screenshots below:

latest.log (Required)
https://gist.github.com/Anonyku05/2179ddfc6009db4ec27f95e36379350c

#33


Change close code log to info from warning

Remove Logs
Even after taking away  basicConfig(level=DEBUG)  # Comment this out if you don't want to see what's going on behind the scenes
You will still get logs in console. Most of them are Unknown close code received. Close code: None.

These are warnings which shows anyway. Might change these in the library to info.
How to disable them for now
from logging import basicConfig, ERROR, getLogger
basicConfig()
getLogger("speedcord.shard").setLevel(ERROR)

Okay thank

Reworked the code, shouldn't log a warning anymore.


Install Xdebug

Hi Mark,
As this is a development environment, for most people it would be crucial to have xdebug installed on the php containers.
I have been able to get it running using something similar to this:
FROM mageinferno/magento2-php:7.0.5-fpm-0

RUN pecl install xdebug-beta && \
    docker-php-ext-enable xdebug

RUN touch /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo "xdebug.remote_host=<IP_ADDRESS>" >> /usr/local/etc/php/conf.d/xdebug.ini

Big problem here is the ip. There is still no official Docker way to fetch the host's ip, at least none i could find. In any case it is still better to have something like this than having no xdebug or having to manually install xdebug every time you create the containers...
Do you see a better way to enable xdebug remote debugging than this one?
Cheers,
Gabriel

Good question and thanks for the snippet. I think we should think about this for a few. The images are focused on a development environment, however the same images should be agnostic for production (working on prod deploy process now).
It's most likely a good idea to create another container for this with the base of magento2-php, sort of like what you did. Since I don't believe there is any reason to run xdebug on prod, this is probably a good method. The IP address is a problem. Perhaps you can create a quick bash script which builds out the Dockerfile with the host ip? Because of this, it would probably be dependent on each host building out their own Dockerfile.

Hey Mark, thanks for your response.
Good to hear you're working on the prod environment, that will be great. Are you planning on adding varnish to the stack?
Maybe it would be interesting to coordinate the xdebug configuration with your current development, in a way when the environment is not set to production we install xdebug and configure it.
How do you feel about using environment variables to define the host ip? I can create the bash script to "configure" the docker-compose file, setting the host's IP on the php containers environment variables. After that, instead of starting php-fpm as the command for the container, the docker-compose file could start another script which would do some configurations first, including the enabling and configuration of xdebug, and then start php-fpm. Makes sense?
Another way would be using something similar to this in the composer  (original post):
docker run --add-host=dockerhost:$(ip route | awk '/docker0/ { print $NF }')
Some work to be done on that ip command to make it platform agnostic, but could make things easier....

Hey, Guys. My working configuration:
xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.idekey=PHPSTORM xdebug.remote_log="/tmp/xdebug.log" xdebug.remote_host=<IP_ADDRESS>
Important after setup xdebug:
docker-compose restart
restart the PHPSTORM

This has an odd implementation regarding local ip addresses that I can see bombing out on some installs. Also I'd like to keep these images platform-agnostic between dev/stage/prod, this throws things off a bit.
I'm wondering if we should create a separate process or image to build out xdebug just for dev/stage. I'm going to close this ticket for inactivity, but just need a more streamlined process here.


Might never finish collecting local candidates

Here is a local variable in method which called from poll.
If we have more then one channel the condition resolved == self.channels.len() might never met, because some channels might return pending. And will return Ready in further poll calls.
The fix may be to move resolved variable inside AgentTask structure.

I'm not sure if I follow here. The process_local_candidates method that you mentioned is supposed to close the self.local_candidate_tx channel once all channels are out of local candidates. I believe that this is precisely what it does.
The resolved variable will be equal to self.channels.len() when the poll_next_local_candidate method returns Poll::Ready(None) for all channels. The poll_next_local_candidate method follows an invariant common for fused streams, i.e. after it returns Poll::Ready(None), it will always return Poll::Ready(None). So the situation that the method would return Poll::Ready(None) in one call and Poll::Pending in another call cannot happen.

What about the situation that some of channel in self.channels return Poll::Ready(Some(..)) and others return Poll::Ready(None)?

Sorry, for botheried. I just have some problem with the library. I will debug further to find a true cause. Sometimes it just unable to send data, although gathering and signaling seems done.


Added comments in some notebooks

As I was looking through some of the notebooks here, I thought I may as well commit some of the comments I added in few of them. 98% of the changes are just new markdown cells with some comments making the notebooks a bit more readable. In the case of the random forest notebook, I added an extended intro cell pointing out which things should have been run before using it and what data is required (as it took me a while to understand it myself) - I hope the steps are correct 😅
Here is a summary of the changes (as jupyter diffs are a pain to look at...):

eval-empo-3-error-rate.ipynb, paycheck-eval-empo-3-tpr.ipynb - added few markdown comments, removed all plots from the second half of both notebooks (since they cannot be generated with the code included there anyway - I guess they were a copy-paste leftover)
paycheck-eval-RandomForest.ipynb - added some comments, mostly an extended intro one describing the steps to be done before executing the notebook
paycheck-eval-empo-3.ipynb - added some markdown comments, fixed a pandas Series/DataFrame error within _eval_for_class_weights function, added a column name to the empty DataFrame in in the evaluation part

Hope any of that helps!

On top of the changes described before, I added some new notebooks for the analysis of RF, CNN and Perfect Classifier results, as well as resource usage visualisation one.

Thanks @BenKaehler. Unfortunately, it seems that during merge conflict resolution some things got messed up a bit so I'll still need to fix that before merging. Will let you know when done.

Alright, should be fixed now. 🚀

Hey @BenKaehler! I just realized that this never got merged... Do you think you could do that (I have no write access...)? Thanks! 🙏

Merged! Thanks @misialq


Training on my own code corpus

Hi,
Is there a way we can train this to pick up code from my corpus of projects? Any documentation on how do i train this myself?
Regards,
Ganesh.

Maybe you can see the answer to this issue: https://github.com/capergroup/bayou/issues/208.

Thanks a lot for this Yilia-Zhang. Yes, this really helps.


⚠ Bofrost.si has degraded performance

In 49f0ad3, Bofrost.si (https://www.bofrost.si) experienced degraded performance:

HTTP code: 500
Response time: 2064 ms

Resolved: Bofrost.si performance has improved in 019e7fd after 1 minute.


Store processes and steps using Doctrine

At this moment, processes and steps are stored in the confiugration.
Is it possible to store processes and steps using Doctrine?

Hi, it's not impossible to do, but it's not a little change.
We use configuration files because we create some service on the fly in the bundle's extension class. Using a database as source to load the config would require to trigger an early query to get the workflow config while Symfony is loading the bundle (so by creating manually a PDO connection as the container is still under construction).

Hi,
Maybe it will be more easier to manage them into the Class file. any ideas to do that ?


jPackage documentation needs major update

Summary
I am reporting on the latest version of the JDK, as of jan 18 2022. The documentation (we found only : https://docs.oracle.com/en/java/javase/16/jpackage/packaging-overview.html, with also this: https://docs.oracle.com/en/java/javase/17/jpackage/packaging-tool-user-guide.pdf), should be updated and proper advanced example (with rich commenting), should be added, because to use jpackage is not necessarily straight forward. To not become a time thief for more unexperienced developer, please note that whenever launching an application for MacOs, and when the application exploit system resources classified by Apple as "security" (e.g. microphone input), then the application MUST be packed and signed according to Apple rules. Therefore, I suggest the following:

In consequence, please add a full example on the --apple-sign option.
Put comments intended for the novice in the examples.
Explain Appdir usage in the documentation
PLEASE include explanation of the inclusion of non java files, for example files that should be part of the final installed directory for JNI usage. JNI is quite common in java applications, agree? On Windows, that almost always include the inclusion of one or more DLL files in the same directory as the application directory. To understand that this is possible, it seems necessary to program the (in my case) build.gradle according the "splash" example in the following list of examples: https://github.com/beryx/badass-jlink-plugin, found by hints on stackoverflow https://stackoverflow.com/questions/64338849/jpackage-add-files-to-installdir

No doubt, this manner of documentation is obscure at best. Please add a separate chapter in the official documentation on how to include non-java files in the final install directory, DLL files and whatever else imagineable. Preferrably, there should be a systemtic approach to this, like "put dll files in "external files" subdirectory", or something like that. That way, user not advocated in Groovy for Gradle can save time trying to program the correct subdir.

It would also be VERY GOOD if you could add some examples to demonstrate usage of the various build systems, Gradle under Android Studio (intellij) in my case, with a lot of explaining comments. Note: My project contains pure Java modules that are both part of Android app and part of desktop pure java applications. I found Android Studio to be fully compliant to such a mixed project structure, but I anticipate Intellij would be the same.
Perhaps a wet dream, but never the less a good one: If you presented a GUI along the lines of e.g. the launch4j tool, it would be supergreat and also modern. For the novice, it is so much simpler to use a GUI.

In concrete words: I want to expand the build.gradle files for the pure java application so as to make it installable on the three major desktop operating systems (while Andoid app has its own way, of course). Understand?
Beyond those comments, jpackage appears to be or become a very useful tool that allows for automatic cross-platform launch of applications. And this is precisely what I would like to see: Rich and somewhat complicate examples on how jpackage can be the tool to make things fully automated, including, but not limited to a list of relevant plugins, Gradle in my case. I am still not sure if I need the badass plugin for gradle, but it appears so. No documentation found.
Many thanks, looking forward to crawl my way to a fully automated system.

Steps to reproduce

Expected results
Actual results
Triaging info
Java version:

What is your operating system and platform?

How did you install Java?

Did it work before?

Did you test with other Java versions?

@chjan - This is a request that you should post upstream at openjdk.java.net.  I'd recommend the core-libs mailing list


Adding Translations to p5.js Showcase

Context: Hi all! My name is Connie and I'm currently working with p5.js as part of Google Summer of Code! I am planning to add translations to the 2020 showcase, and below are instructions on how to add translations.
Currently the translation files for the p5.js Summer 2020 showcase are seen here: https://github.com/connieliu0/p5.js-showcase/tree/master/src/locales and for each language the translation.json is found under the respective language name folder. Then the process of translating is very similar to the 2019 showcase, basically the values of the keys need to be replaced. More documentation about how the translation structure is set up as a whole can be found here if needed.
Currently I'm hoping to have up to "showcase2019" translated because I'm still working on cleaning up the actual showcase entries.

Because there are so many showcase entries this year, the amount translated will mostly just be the description.
Thanks so much for the help and I will make another update to this issue when the showcase entries are ready for translation (this will be within the next two days). Also feel free to tag anyone else who might be able to help! Let me know if there are any issues!
@montoyamoraga @lm-n would it be possible to help out with the preliminary spanish translation? (link here)
@yining1023 would it be possible to help out with the preliminary chinese translation?  (link here)
@joeyklee

Can the locale code for Chinese be changed from just zh to zh-Hans to denote Simplified Chinese as opposed to Traditional Chinese? (They are different script basically)

Hi @limzykenneth Just renamed zh to zh_Hans and pushed to master!

A small thing but can the underscore be changed to a hyphen (zh_Hans > zh-Hans) to match the language code standards. If it caused unintended problems then it's fine to leave as is.

I tried to name is zh-Hans, but I don't think that's allowed w/ react-i18next bc I got an error

@connieliu0, thank you for finalizing all the English text!
I added some Chinese translation and opened a PR here: https://github.com/connieliu0/p5.js-showcase/pull/8
I translated all the keys before "filters". I didn't get a chance to translate descriptions for each 2020 project.
Maybe we could find more help from others who are interested to help.

hi @connieliu0 here is my PR too :) https://github.com/connieliu0/p5.js-showcase/pull/9

@yining1023 @montoyamoraga thank you all for helping!!!

a note on the Korean translation of showcase page: If there's anyone interested in this work, please kindly let Connie & me know. I'm planning to have it done throughout next couple months, you can feel free to join me!


GSNGM-464: Update private and public boreholes

Some remarks:

could not test the private boreholes
selectTile(feature) in QueryManager.js uses obsolete hard-coded borehole attributes
attribute translations only exist for the public asset

I'm looking into the selectTile issue


Resource references shouldn't include version when they are encoded

..and maybe they should omit the server base too if it matches the one being encoded?

Reopening, per email from Tomas Stæhr Berg on the HAPI list. We should allow encoding references with versions if they are supplied.


Print recipe signature if missing arguments

references issue #341
Wasn't sure what format would be the best, but I took a stab at it and and printed out a simple usage doc on top of the error that was already there. Let me know what more I can do to help/make the code cleaner! I'm still fairly new to rust, so if this seems like a naÏve approach, please forgive me :laughing:

Thank you for the PR! I think this a stray commit. You might want to create a separate branch for the pull request, so that pushes to master don't land on the PR after you've opened it.

Thank you for the PR! I think this has a stray 2nd commit. You might want to create a separate branch for the pull request, so that pushes to master don't land on the PR after you've opened it.

D'oh! That actually makes sense, I'm just so used to not using branches at work (company policy...) so I forget sometimes to use them lol
Did you want the usage printed on all of the conditions in ArugmentCountMismatch?

Awesome, thank for your contribution!

Thank you! Happy to contribute :blue_heart:


Fix code scanning alert - Missing rate limiting

Tracking issue for:

[ ] https://github.com/tugcantopaloglu/juice-shop/security/code-scanning/11

Fixed on update 248d508ea626f669c1cc81cbd91413d8fb629eb4 used endsWith for sanitization.


SSL Error?

Why am I getting SSL errors when I try to make the first connection?
When cert param isn't supplied at all:
OpenSSL.SSL.Error: [('system library', 'fopen', 'Broken pipe'), ('BIO routines', 'BIO_new_file', 'system lib'), ('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]
When cert=None is set:
requests.exceptions.SSLError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=8443): Max retries exceeded with url: /api/s/default/stat/sta (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

Without the cert argument explicitly set this should work with a self-signed certificate.  Setting cert=None will result in an error unless the certificate on the device is issued by a CA that is trusted by your client's operating system.
Can you tell me on what platform and OS are you running this? It would also be helpful to know what version of OpenSSL you have installed and to have the output of pip freeze. A stack backtrace would also be helpful; please could you do an import traceback before your test and then after you get the error send the output of traceback.print_last()? That will give some more context.

Hi Nickovs,
I have a simular problem.
this is the test code i used :
`from unificontrol import UnifiClient
import ssl
cert = ssl.get_server_certificate(("<IP_ADDRESS>", 8443))
client = UnifiClient(host="<IP_ADDRESS>", port="8443", username="admin", password=, site="default", cert=cert)
target_mac = '40:98:AD:0B:54:91'
#client.list_clients(client_mac=target_mac)
client.get_client_details(target_mac)`
I get following error :
Exception has occurred: SSLError HTTPSConnectionPool(host='<IP_ADDRESS>', port=8443): Max retries exceeded with url: /api/s/default/stat/user/40:98:AD:0B:54:91 (Caused by SSLError(PermissionError(13, 'Permission denied')))   File "D:\SVN_Checkout\Test\test_unifi_api.py", line 13, in <module>     client.get_client_details(target_mac)
I am running the controller on a Pi, latest version with the default certificate installed by Unifi
event with the ,cert=cert removerd from the client= line it wil not work
Regards
Peer

Yes, this likely is the same or a related problem. Did you install from PyPI or from Github? There has been a patch that probably fixes this on the master branch on Github for a while but since I don't have a Windows machine I've not been able to test it, so I had not pushed that update to PyPI. Since so many people have been seeing this issue in Windows, and since the patch doesn't seem to cause any trouble on other platforms, I have just pushed the new version out anyway.
Please upgrade with pip3 install --upgrade unificontrol and see if it helps. If it doesn't them please send me a stack backtrace and list of your installed packages and version (as described above) and I'll see if I can identify the problem.

Hi Nickovs,
This was the solution, the error has gone, and i can query my devices.
Thanks,

Excellent. Thank you for your testing and feedback.

Same problem with latest version:
Max retries exceeded with url: /api/s/default/stat/health (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
Code used is check_unifi nagios command:
client = UnifiClient(host=args.hostname, username=args.user, password=args.password, site=args.sitename,cert="FETCH_CERT")
also tried:
cert = ssl.get_server_certificate((args.hostname, 8443))
client = UnifiClient(host=args.hostname, username=args.user, password=args.password, site=args.sitename,cert=cert)
First i thought it was because the ubnt cert was expired, but i created a new self signed cert (real PITA) and still got the error.

Same problem with latest version:
Max retries exceeded with url: /api/s/default/stat/health (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
Code used is check_unifi nagios command:
client = UnifiClient(host=args.hostname, username=args.user, password=args.password, site=args.sitename,cert="FETCH_CERT")
also tried:
cert = ssl.get_server_certificate((args.hostname, 8443))
client = UnifiClient(host=args.hostname, username=args.user, password=args.password, site=args.sitename,cert=cert)
First i thought it was because the ubnt cert was expired, but i created a new self signed cert (real PITA) and still got the error.

@a1ad Are you running the Unifi service on a CloudKey, on a Dream Machine or UDP Pro, or on your own server? Also, what is the version number of the server that you are running, and what platform are you running the client code on?

@a1ad Are you running the Unifi service on a CloudKey, on a Dream Machine or UDP Pro, or on your own server? Also, what is the version number of the server that you are running, and what platform are you running the client code on?

@nickovs

Cloudkey V2 with server version 5.13.32 (Build: atag_5.13.32_13646).
Client code: CentOS7 with python 3.6

@nickovs

Cloudkey V2 with server version 5.13.32 (Build: atag_5.13.32_13646).
Client code: CentOS7 with python 3.6

@a1ad Thanks for the details. I am having trouble reproducing the problem here but it's hard to separate out if its a problem with your CentOS setup or the CloudKey. If you have Docker handy then perhaps you might try an experiment.
I was testing from CentOS7 using the following Dockerfile:
FROM centos:7
ENV LANG=en_US
RUN yum update -y && yum install -y python3
RUN pip3 install unificontrol click
COPY unifitest.py /

You will need the following file saved as the unifitest.py program:
#!/usr/bin/env python3

import json
import click
import unificontrol

@click.command()
@click.option('--host', '-h', default='localhost', help="Hostname of Unifi controller")
@click.option('--port', '-p', default=8443, help="Port number for Unifi controller")
@click.option('--site', '-s', default='default', help="Site ID")
@click.option('--username', '-u', default='admin', help="User name")
@click.option('--password', '-P', prompt=True, hide_input=True, help="Controller password")
def unifi_test(host, port, username, password, site):
    c = unificontrol.UnifiClient(host=host, port=port, username=username, password=password, site=site)
    sysinfo = c.stat_sysinfo()
    print(json.dumps(sysinfo, indent=4))

if __name__ == "__main__":
    unifi_test()

You should then be able to test access to your CloudKey with:
$ docker build -t centos-unifi . && docker run --rm -it centos-unifi
[root@0350fc0bbae0 /]# ./unifitest.py --host <IP_ADDRESS>
Password:
...

and hopefully get an output that looks something like:
[
    {
        "timezone": "America/Denver",
        "autobackup": false,
        "build": "atag_6.0.41_14327",
        "version": "6.0.41",
        "previous_version": "6.0.36",
...

If that works then the problem is likely to do with something at your CentOS configuration. If it doesn't work then the problem is likely due to the way your CloudKey is configured. Either way it will help narrow down what's wrong.

@a1ad Thanks for the details. I am having trouble reproducing the problem here but it's hard to separate out if its a problem with your CentOS setup or the CloudKey. If you have Docker handy then perhaps you might try an experiment.
I was testing from CentOS7 using the following Dockerfile:
FROM centos:7
ENV LANG=en_US
RUN yum update -y && yum install -y python3
RUN pip3 install unificontrol click
COPY unifitest.py /

You will need the following file saved as the unifitest.py program:
#!/usr/bin/env python3

import json
import click
import unificontrol

@click.command()
@click.option('--host', '-h', default='localhost', help="Hostname of Unifi controller")
@click.option('--port', '-p', default=8443, help="Port number for Unifi controller")
@click.option('--site', '-s', default='default', help="Site ID")
@click.option('--username', '-u', default='admin', help="User name")
@click.option('--password', '-P', prompt=True, hide_input=True, help="Controller password")
def unifi_test(host, port, username, password, site):
    c = unificontrol.UnifiClient(host=host, port=port, username=username, password=password, site=site)
    sysinfo = c.stat_sysinfo()
    print(json.dumps(sysinfo, indent=4))

if __name__ == "__main__":
    unifi_test()

You should then be able to test access to your CloudKey with:
$ docker build -t centos-unifi . && docker run --rm -it centos-unifi
[root@0350fc0bbae0 /]# ./unifitest.py --host <IP_ADDRESS>
Password:
...

and hopefully get an output that looks something like:
[
    {
        "timezone": "America/Denver",
        "autobackup": false,
        "build": "atag_6.0.41_14327",
        "version": "6.0.41",
        "previous_version": "6.0.36",
...

If that works then the problem is likely to do with something at your CentOS configuration. If it doesn't work then the problem is likely due to the way your CloudKey is configured. Either way it will help narrow down what's wrong.

Thanks for the lengthy response. Ill try it next week on Tuesday.
The setup did work for a couple months but ofcourse ill keep the OS up to date.

Thanks for the lengthy response. Ill try it next week on Tuesday.
The setup did work for a couple months but ofcourse ill keep the OS up to date.


Add flag --recreate

Problem being solved:
Once bucc is up with --cpi docker, restart docker service. The container will be destroyed. Try to run bucc up --cpi docker again and get the following result:
No deployment, stemcell or release changes. Skipping deploy.

Problem: The container is not created although the image exists.
Fix: add --recreate flag to bosh create-env command.
edit bin/bucc:
+    bosh create-env --recreate ${skip_drain} $(int_args) ${state_arg} "$@"

Looking for solution to properly add support for "--recreate" flag. PR in progress.

fixed in https://github.com/starkandwayne/bucc/releases/tag/v0.7.0


Changes to support provisioning a Kafka on a dedicated cluster a.k.a enterprise data plane cluster

[ ] Being able to register the cluster with KFM. We can use the latest release of the rhoas CLI for this.
[ ] Being able to create a Kafka on a dedicated cluster
[ ] Update KFM to latest tag
[ ] Update the REGISTERED_USERS_PER_ORGANISATION to mention grant enterprise quota. See https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/main/config/quota-management-list-configuration.yaml for the state
[ ] Include the ENTERPRISE_CLUSTER_REGISTRATION_ALLOWED_ORGANIZATIONS parameter to enlist allowed orgs for enterprise endpoints. This will be replaced by quota checks. See https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/main/templates/service-template.yml#L180 for more
[ ] Update SUPPORTED_INSTANCE_TYPES: https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/main/templates/service-template.yml#L160 for include supported billing models

@MikeEdgar

make sure that KFM is running in OCM mode and not standalone mode when enterprise feature is to be used

Do you envision a new flag that indicates whether the user intends to use enterprise features and the installer performs some basic validation and generates an empty CLUSTER_LIST based on that?

I was thinking this as well. What do you think?

Update SUPPORTED_INSTANCE_TYPES: https://github.com/bf2fc6cc711aee1a0c2a/kas-fleet-manager/blob/main/templates/service-template.yml#L160 for include supported billing models

kas-installer currently just uses the default from the template unless the user intentionally overrides this via a kas-fleet-manager-service-template-params script. With the tag update, the default value includes all of the billing types so we may be covered on this out-of-the-box. Thoughts?

+1. So is a quick win. I hope no one overrides the default one in their kas-fleet-manager-service-template-params script.

Being able to deregister an enterprise cluster

Are you thinking a wrapper/convenience script or guidance to use rhoas?

+1 .I know for a fact that this is a planned work in the CLI, @dimakis can you confirm? So, I think kas-installer needs to only do it after the CLI has support for it. In the meanwhile, the user can directly call the KFM endpoint. What do you think?

Are you thinking a wrapper/convenience script or guidance to use rhoas?

+1 .I know for a fact that this is a planned work in the CLI, @dimakis can you confirm? So, I think kas-installer needs to only do it after the CLI has support for it. In the meanwhile, the user can directly call the KFM endpoint. What do you think?

indeed, we do plan on adding a de-register command to the CLI 👍

So, I think kas-installer needs to only do it after the CLI has support for it. In the meanwhile, the user can directly call the KFM endpoint. What do you think?

I don't mind scripting it in the short term. At a minimum, it will give me some hands-on experience with the new endpoint(s) and would be good to have in the uninstall.sh process too. It might be good to have a version de-registration available outside of rhoas anyway for the un-installation to avoid relying on an active session, etc.

I don't mind scripting it in the short term. At a minimum, it will give me some hands-on experience with the new endpoint(s) and would be good to have in the uninstall.sh process too. It might be good to have a version de-registration available outside of rhoas anyway for the un-installation to avoid relying on an active session, etc.

Okay. One thing the script will need to do as well is - remove the AddOns.

Being able to register the cluster with KFM. We can use the latest release of the rhoas CLI for this.

Based on my understanding of the CLI on the dedicated branch, we may be blocked on this until a separate OCM API endpoint can be specified.

Being able to register the cluster with KFM. We can use the latest release of the rhoas CLI for this.

Based on my understanding of the CLI on the dedicated branch, we may be blocked on this until a separate OCM API endpoint can be specified.

@dimakis created an alpha release a few weeks ago. Maybe we can have another one with latest changes on https://github.com/redhat-developer/app-services-cli/pull/1804. Any plans on that @dimakis ?

Being able to register the cluster with KFM. We can use the latest release of the rhoas CLI for this.

Based on my understanding of the CLI on the dedicated branch, we may be blocked on this until a separate OCM API endpoint can be specified.

@dimakis created an alpha release a few weeks ago. Maybe we can have another one with latest changes on redhat-developer/app-services-cli#1804. Any plans on that @dimakis ?

I'm just waiting for someone to approve those changes. As soon as I do I'll release another alpha with the latest changes.

Very nice, I didn't see that PR. I'll at least try to run that locally until there is a release with those changes. Thanks for mentioning it @machi1990 !

Very nice, I didn't see that PR. I'll at least try to run that locally until there is a release with those changes. Thanks for mentioning it @machi1990 !

there's an alpha release now with the most up to date changes:
curl -o- https://raw.githubusercontent.com/redhat-developer/app-services-cli/main/scripts/install.sh | bash -s v0.52.2-alpha1

will grap and install it 👍

Is it expected that the bootstrap domain does not have the kas prefix when CNAME registration is not used? I see in rhoas that the apps subdomain is removed from the cluster DNS, which means KFM does not replace it with kas.

Good catch, that's a bug. apps. should be there for the cluster_dns when CNAME registration is not used.  /cc @dimakis

@MikeEdgar @dimakis I'll prepare a PR against RHOAS CLI and ping you on it.

Is it expected that the bootstrap domain does not have the kas prefix when CNAME registration is not used? I see in rhoas that the apps subdomain is removed from the cluster DNS, which means KFM does not replace it with kas.

Good catch, that's a bug. apps. should be there for the cluster_dns when CNAME registration is not used. /cc @dimakis

So are there instances of the DNS where the ".apps." Is not in the DNS

So are there instances of the DNS where the ".apps." Is not in the DNS?

The default ingress for OSD handles the apps subdomain, but for MK there are additional subdomains created where apps is replaced with kas. The current KFM logic just swaps the subdomain (search/replace) so it's expected to be there in the cluster configuration.

@MikeEdgar @dimakis here is an attempt for a fix https://github.com/redhat-developer/app-services-cli/pull/1806 please have a look.

Thanks @MikeEdgar
all the tasks in this are completed. I’ll close the issue


feat: zerolog based rolling log system

Description
Currently, log level setting by module and rotation log system are not available in lbm-sdk's log system. In order to support these functions, a zerolog-based extended log system is implemented.
Closes: #825

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for the PR. e2e and r2ishiguro require several tests to succeed, so please retry. @dudong2

Thanks for the PR. e2e and r2ishiguro require several tests to succeed, so please retry. @dudong2

After 7 retries, it passed. The e2e-test has a very frequent failure rate. There were no cases of failure on my local. Do you know why there are so many failures? If it is opened to external developers in the future, is there any plan to revise this test?

After 7 retries, it passed. The e2e-test has a very frequent failure rate. There were no cases of failure on my local. Do you know why there are so many failures? If it is opened to external developers in the future, is there any plan to revise this test?

This PR reduced the failure rate. Thanks

https://github.com/line/ostracon/pull/536


remove saved file after download

Your question here...
HI is there any way to remove the post from the saved collections once the download is done.

As our contribution guidelines states in the Suggesting Features section:

Instaloader’s goal is to mimick the browser’s behavior [...] without changing any of the online data.

Therefore, Instaloader does not remove anything from your account.


Movies don't load in Safari

Failed to load resource: Plug-in handled load
Probably started with the move from iframe to html5 video?
Related to compression (h264 profile must be baseline?): https://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0ahUKEwjBgf7t1cPQAhXCBcAKHR7-COoQFgg7MAI&url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F26137211%2Fvideos-not-playing-in-safari-when-using-html5-video-tag&usg=AFQjCNFdVryr081O8rscVM7qI4_Hzp364w

I think @vanlummelhuizen knows most about stuff like this :)

My assessment is that this problem is caused by the media being behind authentication. If I use the old url (e.g. /static/glossvideo/SC/SCHIETEN-C-88.mp4), which is still working by the way, the video is nicely displayed.
I will look into this further.

I do not have a definitive solution. It may be caused by the method of serving. I could be that Django is serving the media as one big blob of data instead of chuncks now that it is behind authentication. This may be OK for many clients (Firefox, InternetExplorer?), but not for Safari.
A possible solution may be to let the media be served from outside Django while maintaining the authentication constraint. A technique for this is X-Sendfile. See also http://www.sensibledevelopment.com/2010/11/django-sendfile-an-for-abstraction-large-file-serving-in-django/
@Woseseltops do you have time tomorrow (dec 8) to talk this through?

@vanlummelhuizen and me don't really know what is the problem, so for now we're going with the hypothesis that @vanlummelhuizen already partly describes above: it looks like the Safari video player does not want to eat videos in the way Django serves them. Everything worked when Apache was still serving files, but this was changed to Django when we wanted authentication for media files.
A potential fix we will try now is to have Django do the authentication, but leave serving of media files to Apache again. According to this link: http://stackoverflow.com/questions/1156246/having-django-serve-downloadable-files#answer-1158750 this is achievable with just some code changes and of the installation of the Apache module X-Sendfile. I emailed C&CZ the instructions, let's hope it works.
Extra advantage of doing this: even if this does not solve the Safari problem, it is still a more elegant way to serve files.

Interesting observation that might help spot the problem: the video loads and plays well in the Public View, but only not in the Detail View. Same movie, right? One is downscaled upon loading, or the other upscaled?

@vanlummelhuizen , could you try to reproduce that behavior on your Apple device?

@Woseseltops , I reproduced it and on my iMac it works as @ocrasborn describes.

This behaviour is not surprising since the video in the Public View is served through the 'static' route, which means it is served by the webserver. Correct, @Woseseltops ?

Aah yes of course, sorry @vanlummelhuizen , I should have thought of this.
PS
Still waiting for C&CZ to respond with S-sendfile :(

Update: they installed it, but apparently it needed some more apache configuration, which I now requested.

Fixed I think, does it work again in Safari @ocrasborn ?

I can't check at the moment @Woseseltops , as I see no search results (only a hit count). Busy with something?

Checked by entering a random gloss number: it works. Good!


⚠ Turnos 24x7 has degraded performance

In d6d83a4, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 4060 ms

Resolved: Turnos 24x7 performance has improved in 56174a7.


Add dymamic partition concurrent writer to avoid full sort [databricks]

closes #5999
https://github.com/rapidsai/cudf/issues/11615 already provided a feature to generate unique keys table in java JNI contiguousSplitGroups.
This PR provides an implementation according to Spark DynamicPartitionDataConcurrentWriter
Main logic

Fall back to single writer if the partition number exceeds the spark.sql.maxConcurrentOutputFileWriters
Concurent write:
1: contiguous split groups and gen uniq keys by Table.contiguousSplitGroupsAndGenUniqKeys
2: generate partition strings from uniq keys table
3: cache each group according to each partition string
4: concate the max caches and write out if current total caches exceeds the memory limit

Improment
For a dataset with 50G, having 25 partitions, the speedup is about 2X compared to single writer.

mode
3 runs times
median

concurrent writer
136s,140s,139s
139s

single writer
244s,222s,353s
244s

concurrent writer falling back to single writer
219s, 256s, 231s
231s

TODO
add more tests and need some checks on the metrics logic
Signed-off-by: Chong Gao<EMAIL_ADDRESS>

Only tested on Spark 330.
TODO:

add tests
Test all Spark versions

Please help review the solution, I'll check more details like tests, metrics, and resource management.

Updated:
Read Parquet row group size and Orc stripe size from config;
Control exactly the max writers number

build

build

build

build

build


minor suggestion

The function vectorize1 has:
if vec_func:
def vfunc(x):
return func(x, *args)
Simpler to have
if vec_func:
vfunc = func

Thanks @Emoshe. Noted, but this is not something that we would change unless it is part of some other enhancement or bug fix - especially since it doesn't appear to be a public function. If I'm mistaken, please point me to the documentation. In the meantime, I'll go ahead and close this, but please feel free to re-open if this is a bug report or enhancement request.


Drop support for Python 3.7 and test with 3.12

3.7 EOL was 27 Jun 2023
3.12 was released on 02 Oct 2023

Data to back up dropping 3.7:

It has consistently been below 1% for many months now.
(Data is from https://pypistats.org, but I find their line charts harder to read 😅 )


affected/package: runtime/internal/sys, len8tab redeclaration errors

What version of Go are you using (go version)?

$ go version
go version go1.21rc2 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/username/.cache/go-build'
GOENV='/home/username/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/username/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/username/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21rc2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/username/projects/ppm2png/go/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4081609926=/tmp/go-build -gno-record-gcc-switches'

What did you do?
Tried to compile one of my Go applications,
https://github.com/pjmlp/ppm2png/tree/main/go
What did you expect to see?
To compile without errors.
What did you see instead?

# runtime/internal/sys
/opt/go/src/runtime/internal/sys/intrinsics_common.go:9:7: len8tab redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:76:7: other declaration of len8tab
/opt/go/src/runtime/internal/sys/intrinsics_common.go:32:6: Len64 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:99:6: other declaration of Len64
/opt/go/src/runtime/internal/sys/intrinsics_common.go:50:7: m0 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:117:7: other declaration of m0
/opt/go/src/runtime/internal/sys/intrinsics_common.go:51:7: m1 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:118:7: other declaration of m1
/opt/go/src/runtime/internal/sys/intrinsics_common.go:52:7: m2 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:119:7: other declaration of m2
/opt/go/src/runtime/internal/sys/intrinsics_common.go:55:6: OnesCount64 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:122:6: other declaration of OnesCount64
/opt/go/src/runtime/internal/sys/intrinsics_common.go:86:6: LeadingZeros64 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:153:6: other declaration of LeadingZeros64
/opt/go/src/runtime/internal/sys/intrinsics_common.go:89:6: LeadingZeros8 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:156:6: other declaration of LeadingZeros8
/opt/go/src/runtime/internal/sys/intrinsics_common.go:92:6: Len8 redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:159:6: other declaration of Len8
/opt/go/src/runtime/internal/sys/intrinsics_common.go:101:6: Prefetch redeclared in this block
	/opt/go/src/runtime/internal/sys/intrinsics.go:200:6: other declaration of Prefetch
/opt/go/src/runtime/internal/sys/intrinsics_common.go:101:6: too many errors

did you completely remove the previous installation before installing the current version?

You're right, it was my mistake when installing the RC, not everything was cleaned out.
It works as expected.
Closing the issue.

@pjmlp How did you completely clean the old installation

@pjmlp How did you completely clean the old installation

I just ran rm -rf /usr/local/go

@pjmlp How did you completely clean the old installation

I just ran rm -rf /usr/local/go on Linux

this fix my problem


fix: NewPrivateKey should also generate a random ID

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Automated Package Upgrade

:tada: This PR is included in version 2.0.17 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Codecov token

Hoping this will fix the Codecov reports which are currently stalling because (i think) we have reached our upload limit.

I think that worked!


Getting empty array

Hi  I am getting an empty array when integrated this code:
AccountManager.getAccountsByType('gmail').then((accounts) => {      console.log('available accounts', accounts);       let [firstAccount] = accounts;     })
What should be the account name should be given to get list of available gmail accounts in our android device.

Hi basanthalluri,
How to get accounts?. Now i got undefined while using AccountManager.getAccountsByType('com.google'). But i'm successfully installed and linked the package.
i'm using like this.
componentDidMount = async () => {
try {
AccountManager.getAccountsByType('accountName').then((accounts) => {
console.log('available accounts', accounts);
})
}
catch (err) {
console.log('Error', err);
}
}

It is the expected behaviour, your app doesn't have access to Gmail's accounts


belowThresholdWords is a class variable

small bugfix ;)

thanks!

do you need a release now or can it wait?

no it's not urgent
Thank you!

Now it would be good to have a new version ;)
Thanks in advance!

done


Update typography.md

📥 Proposed changes
Proofread: Preliminary editing, since the font has changed and we are waiting for new info.
☑ Submission checklist

[x] I have read the CONTRIBUTING doc
[x] yarn build works locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)

💬 Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did, what alternatives you considered, etc...

Godkjenner denne nå, så kan vi heller komme tilbake til den når vi publiserer den nye fonten.


PhenoTips now needs a way to check if BOQA searches have been performed on empty lists

See PhenoTips Issue #1372


Conflicts with the Design Support Library

In my app i am using this awasome lib with compile 'com.android.support:design:23.0.1' and i get error
Could not find class 'android.support.design.internal.NavigationMenuPresenter', referenced from method android.support.design.widget.NavigationView
When i delete
compile('com.github.afollestad.material-dialogs:commons:<IP_ADDRESS>@aar') {
    transitive = true
}

from build.gradle file it works i dont know if its a bug or not just need some help

Well, first, you should be using <IP_ADDRESS>:
compile('com.github.afollestad.material-dialogs:commons:<IP_ADDRESS>@aar') {
    transitive = true
}

But, you probably need to add rules to your app's Proguard file:
-dontwarn
-ignorewarnings
-keep class android.support.design.** { *; }Gradle

The result is the same . I still get same error

It happens to me as well. I "fixed" using
compile('com.afollestad.material-dialogs:core:<IP_ADDRESS>@aar') {
transitive = true
}

Still get the same error


replace hard-coded default "bin" output directory with eclipseOutput setting, if defined

The purpose is to use the eclipseOutput setting, if defined, when generating the following entry of the generated .classpath file (as it would look if eclipseOutput is set to "eclipse-bin"):
<classpathentry kind="output" path="eclipse-bin"/>

Currently, this entry always looks like this:
<classpathentry kind="output" path="bin"/>

Wow, I dont think I created this PR correctly, based on the result.
Ahh, I see that I accidentally selected the wrong target branch.   Not sure how to proceed from here, It would be nice if we could close or delete this PR, although I don't know how to do so.

You can click "Edit" in the top right to change the branch
You can click "Close" at bottom of this page to close the PR (though hopefully you can edit the branch and that will fix it and make it unnecessary to close)

The code I'd like to merge is in my fork at https://github.com/philwalk/sbteclipse.git
Is there any way to fix this PR to pull those changes?   If not,  I'll close this one, although I'm not confident I understand how to create the PR, so I'll have to study it for a bit.   Thanks for the feedback, and sorry for the noise.

 Generally you should create a new branch for each PR.
I would recommend the following:
git reset HEAD~1 (undo your last commit)
git push -f (force push to github to undo last commit there)
git checkout -b eclipseOutput (create a new branch named eclipseOutput)
git commit -am "extended scope of eclipseOutput setting to cover eclipse classes bin directory"
git push

The git push command might be a bit different for you. My ~/.gitconfig has a couple lines that I think make it easier:
[push]
	default = current

Once you've gotten the branch pushed, wait 2-3 seconds and a message will appear on both https://github.com/philwalk/sbteclipse and https://github.com/typesafehub/sbteclipse asking if you want to create a new pull request with your changes

This was created in error, thanks for the assistance in creating the correct PR.


Different pieces of information: HystrixTraceCallable vs TraceCommand

According to the documentation there are (at least) two ways to use Sleuth with Hystrix in a Spring setting.
The first is done automatically, and forwards the trace/span context information into new threads created/used by Hystrix.
The second is done manually, by using TraceCommand instances instead of HystrixCommand instances (where you'd need to provide a Tracer instance, which I was struggling with in #402).
Both approaches solve the issue of passing thread-local information to other threads. However, there seems to be a difference in the actual information provided to consumers of Sleuth (e.g. logs, Zipkin):

The wrapper creating HystrixTraceCallable instances continues existing spans, i.e. Hystrix calls resulting out of a MVC REST endpoint invocation count as part of the span created for the REST endpoint.
The TraceCommand implementation explicitly creates a new span, unconditionally. As a result, the Hystrix command invocation is clearly visible in Zipkin.

I love the details I get when using TraceCommand, but I'd prefer the magic from HystrixTraceCallable.
Why are the results different? Is there a reason I don't see? What exactly are those differences? How can I get the best out of both worlds?
Thank you!

That's a very good question :) There are two aspects:
== Known vs unknown caller
So the problem with magic is that you don't know a lot of things when you use it. All the aspects / interceptions etc. are done at some moment in time. You have no idea who called that code, why and who will execute that code later on.  When using the Sleuth Hystrix automatic solution we came to the conclusion that we will reuse whatever you do.  That makes sense since all the automated solutions can't automatically set all the detailed information.
== We know better ;)
It's closely related to this https://github.com/spring-cloud/spring-cloud-sleuth/issues/180 . Initially we came to the conclusion that we know better than the user does and we have started automatically spans in the user's stead. That's why HystrixTraceCallable creates a new span. That's not the best of choices and for the next major release we will remove such an approach. We should always continue a span and create a new one only if there wasn't a previous one. The thing is that if you want a custom span for the "magical" Hystrix wrapping just use Hystrix as usual and create a span yourself
Pseudocode:
@Autowired Tracer tracer;

new HystrixCommand() .... {
    Span span = tracer.createSpan("my_custom_span");
    try {
     // do sth
    } finally {
       tracer.close(span);
    }
}

Hopefully it answers your question :)

I just found https://github.com/spring-cloud/spring-cloud-sleuth/issues/39#issuecomment-156463278 which already pointed to this.
I think you didn't mean HystrixTraceCallable in the We know better part of your comment?
Anyway, I now understand the issue and the motivation, and also see valid solutions. Thank you, feel free to close the issue!

Of course I meant the TraceCommand - I'm updating my comment


[Feature request] CSS variables for label font-weight

If we have a login page, or general form such as this:

It would be great to be able to control the form control font-weights so they stand out a bit more.

Currently the labels are using:

So if --font-weight is adjusted, all the fonts on the page are changed.
Could we have different kinds of variables for labels on forms to control the weights in pico without having to override styles?

You could even do font-weight: var(--label-font-weight, var(--font-weight)) so that this wouldn't even be a breaking change – the fallback for the label font weight would just™ be what is used right now :blush:

Why not just create the PR?

Sorry, worked on master initially instead of dev. The last two commits should be the correct ones 🙈

Thank you @HerrBertling. I like the addition.


Permanently deleted shop should permanently delete the all products on the shop

Permanently deleted shop should permanently delete the all products on the shop

Description
added relation between shop class and product class so when shop will be deleted
product will be deleted as well

Related Issue (Link to linear ticket)
If suggesting a new feature or change, please discuss it in an issue first
Please link to the issue here: https://linear.app/zuri-project-backend/issue/SUP-35/cascade-permanent-delete-action

Motivation and Context
it requires because when we delete something permanently we want to make sure it deletes the product associated with it
How Has This Been Tested?
it ran locally and tests going on extensively on postman
Screenshots (if appropriate - Postman, etc):

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[x ] New feature (non-breaking change which adds functionality)
[ x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:
Go over all the following points, and put an x in all the boxes that apply.
If you're unsure about any of these, don't hesitate to ask. We're here to help!

[x ] My code follows the code style of this project.
[ x] My change requires a change to the documentation.
[ x] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ x] All new and existing tests passed.

dont merge it yet please


compound interest calculator

Create a compound interest calculator in html,css and javascript.
--
Add the below mention section to your PR message
Title
Number of files/folder added
changes made
I have;

[ ] Read contibuting.md
[ ] Followed all the guidelines
[ ] Linked my tool to the index.html file
[ ] updated readme.md
[ ] add your name in the footer of your tool.html file (if you created length conversion tool then add your name to length.html file you created)
[ ] provide below mentioned details if you want your name to be added in contributors.html
[ ] mail, twitter, github profile link.

Please assign me to this issue.


Release azure-cli-keyvault 0.1.1b3

Reviewers, please verify the following for this PR:

[ ] The PR title has format Release <component-name> <version>.
[ ] setup.py has been modified with the same version as in the PR title.
[ ] HISTORY.rst has been modified with appropriate release notes.
[ ] If releasing azure-cli or azure-cli-core, __version__ defined in __init__.py should also be modified to match.

Release of 'azure-cli-keyvault' with version '0.1.1b3' successful. View at https://pypi.python.org/pypi/azure-cli-keyvault/0.1.1b3.

GitHub release created. https://github.com/Azure/azure-cli/releases.


test vdc deployment time

deploy 3 silver vdcs on testnet.
make sure to time exactly how long it takes for a successful deployment. make sure to pay immediately to get most accurate results

on testnet with silver plan
deployed 3 VDCs:

first one deployed in 10.20 minutes.
second vdc deployed in 10.30 minutes.
third vdc deployed in 10 minutes.
(with immediately payment)

on devnet with silver plan
deployed 2 VDCs:

first one deployed in 10 minutes.
second vdc deployed in 10.7 minutes.

thanks


Google+ APIs will be shut down

From Google:

On March 7, 2019, all Google+ APIs and Google+ Sign-in will be shut down completely.

If you see calls to people.get, these can be the result of using the Google+ Sign-In feature in your application, which is now fully deprecated and is being shut down. Developers should migrate from the Google+ Sign-In feature to the more comprehensive Google Sign-in authentication system.

Note to self: try this solution without using forked package:
https://stackoverflow.com/questions/53887010/is-the-google-strategy-in-passport-js-deprecated-with-the-end-of-google/54112673#54112673

Version 2.0.0 of passport-google-oauth20:
https://medium.com/passportjs/google-api-shutdown-330c3b47e3df


how can i get the transaction confirming time with web3?

I'm gonna get the time of transaction processed after confirming transaction by user with web3.
I used the below code:
await new Promise((resolve, reject) => {
solConnection.onAccountChange(userAddress, (data: AccountInfo | null) => {
if (!data) reject();
console.log('success')
resolve(true);
});
})
But it works the first time after page loaded (in react)
how can i get it all the time without page reload?

Hi there, we don't use GitHub for support, and invite you to join us on Discord https://solana.com/discord in the #developer-support channel


feat: Setting Dialog

Below is a screenshot:

With this you can deactivate providers from the providers dropdown,
API keys were moved to the setting

something is wrong,
I am getting this error

looks good.. but i think we can have the option to edit the api keys in the and other interface same as before just the active and base url we can have in the settings modal.

Nice and thanks for the work done to this.


Use Counter to count the items in "distinct_permutations".

In distinct_permutations there was a loop that could be replaced by a simple collections.Counter. Given #36 it seemed like it was for python 2.6 compatibility. Is that still required (it's not included in the test matrix)?

Is there any performance difference from this? As you noticed, this was in the original implementation and removed for the now-not-relevant Python 2.6. I'd be interested in a re-run of the methods Erik posted back then?

That's complicated. It's very likely slower on Python 2 but it will be faster for moderately sized iterables in Python 3 because Counter uses a C function to count in Python 3. However in Python 3 it will be slower for short iterables because Counter.update has a quite high constant factor.
That's all about tradeoffs.
However I don't think that's really important because it would be just micro-optimizing when most of the time is spent in the perm_unique_helper:
from more_itertools import distinct_permutations
%timeit distinct_permutations([1, 2, 3, 4, 5])
# 12.7 µs ± 209 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

%timeit list(distinct_permutations([1, 2, 3, 4, 5]))
# 1.41 ms ± 24 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

I tend to optimize for large datasets in most cases, since small ones will be fast in any case.

In this case if your dataset gets particularly large you're not going to get an answer at all...


add scaled and half float to schemautils (#981)

fixes #981
spark-sql-20 was missed when this was first added
Thank you for submitting a pull request!
Please make sure you have signed our Contributor License Agreement (CLA).
We are not asking you to assign copyright to us, but to give us the right to distribute your code without restriction. We ask this of all contributors in order to assure our users of the origin and continuing existence of the code.
You only need to sign the CLA once.

[x] I have signed the Contributor License Agreement (CLA)

About the CLA check failure above... My understanding is that Tubular Labs (the company I work for) has signed the CLA. Is there anything else that needs to be done?

@karmi Would you be able to comment on the CLA issue here? My understanding right now is that the email address on the contributions needs to be in the database as having signed, but if a different email is used then the user needs to add the email address that signed the CLA to their Github profile. Is this correct?

I may be able to shed some light on the CLA issue. It seems our CEO signed two CLA agreements, one with our github usernames and one without. I wonder if that may be the problem?

@mdelaney I'd like to get this merged, but the CLA check is a bit of a road block. After speaking with some of our infra folks their response was that we don't fetch Corporate CLA signatures. You'll need to individually sign the CLA with the email address on your Github account for the check to pass.

@jbaiera Just a CLA logistical question (I am on the one who coordinated the signature): What is the purpose of the Corporate CLA then? Do the individuals have to further sign the "individual contributing under an existing company contributor agreement"?

Hello @mkamprath, the Corporate CLA is perfectly fine for us to handle, it's just that the "Individual" CLAs are simpler to process. We have looked into our records, but can't find any record related to Tubular Labs or your name -- can you please forward the e-mail you have received upon signature to my e-mail so I can try looking it up?

@karmi  thanks, I just sent the CLA to your email.

Thanks for the e-mail, @mkamprath! I've found your e-mail in our records indeed.
The misunderstanding from yesterday is coming from the fact that I forgot that we have a third option on agreement page, the An individual contributing under an existing company contributor agreement:

This is to "confirm" the signature for each listed person, and these signatures are then automatically fetched to our systems (as opposed to the agreement between Elastic and the company itself).
Is it all right for you to sign the agreement under that particular option, @mdelaney?

@karmi - Thanks! I've just signed the CLA.
Is there anything else I need to do on my end or are we good to go?

@mdelaney Everything green, many thanks for the understanding and cooperation!

Thanks @karmi, @mdelaney, and @mkamprath!


Please add the ability to resize the card

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I cannot resize the card and would like to do this to better fit my dashboard
Expected behaviour
The ability to specify height and width in px or something similar to this.
e.g.
type: custom:sunsynk-power-flow-card
cardstyle: lite
height: 300px
width: 300px
Possible Solutions
None known at the moment other than implementing new feature
Mode
Both
Context / Reason
It is helpful to be able to resize the power flow card to meet user interface needs for different dashboard layouts

Hi. You can scale the card using card_height and card_width attributes. They are not present in the visual editor. The documentation explains on how these can be used in conjunction with panel_mode. In order to preserve aspect ratio you cannot specify both width and height together.


ionic2 bug(ion-datetime):date values won't refresh after changing month values

so there will be some strange values like 2016-02-31
see below

ionic info

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.7
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:Win10 x64
Node Version: v6.2.0

Hell, thanks for opening an issue with us. I am sorry but iIam not fully understanding the issue here. Would you mind explaining the issue a little more? Also, if you could make a plunker that demonstrates this issue that would be great! Thanks for using Ionic!

hi @jgw96,  here is the steps to reproduce this issue:

create a ion-datetime with the html below

<ion-item>
  <ion-label>Date</ion-label>
  <ion-datetime displayFormat="YYYY-MM-DD"> </ion-datetime>
</ion-item>

click the date on the page and the datetime picker popup like this:

scroll down the day value to 30

scroll down the month value to 2 and the day value is still 30

click the DONE button and then the date of 2016-02-30 applied and this is weird because Feb does not have the 30th.

So, I think this is a bug of the ion-datetime. The day value range should refresh after the month value changes.

hi @jgw96,  here is the steps to reproduce this issue:

create a ion-datetime with the html below

<ion-item>
  <ion-label>Date</ion-label>
  <ion-datetime displayFormat="YYYY-MM-DD"> </ion-datetime>
</ion-item>

2.click the date on the page and the datetime picker popup like this:

3. scroll down the day value to 30

4. scroll down the month value to 2 and the day value is still 30

5. click the DONE button then the date of 2016-02-30 applied and this is weird because Feb does not have the 30th.
So, I think this is a bug of the ion-datetime. The day value range should refresh after the month value changes.

+1 facing same issue

This should be fixed in the nightly version. @jgw96 can you please verify that? Thanks

Hello, I have also been facing this issue.
The problem is whenever you change to a different month. The ion-datetime will keep the amount of days from the first month instead of updating for the new selected month.
If you go from january to february, you will see 31 days for february.
If you go from june to July you will see 30 days for July.
Is this issue fixed in the beta.8 release?
Thanks for the awesome work!!

@ggardiles Thanks! This issue is fixed in the beta.8 release. You can read the changelog here to see all the changes and updates. Thanks for using Ionic!


Minecraft.fandom.com not redirecting to minecraft.wiki

Describe the bug
The plugin is not recognizing minecraft.fandom.com and so is not replacing it with minecraft.wiki
To Reproduce
Steps to reproduce the behavior:

google "minecraft wiki"

Expected behavior
The first result "https://minecraft.fandom.com/wiki/Minecraft_Wiki" should be replaced by "https://minecraft.wiki/"
Additional info:

Firefox v127.0
Minecraft wiki
see https://www.reddit.com/r/Minecraft/comments/16r3y8x/the_minecraft_wiki_has_moved_from_fandom_to/

Hi, this is the wiki.gg redirect extension, it only supports wiki.gg wikis. As the Minecraft wiki is not hosted on wiki.gg, please additionally use https://getindie.wiki/ to have MCW redirect

Ah my apologies, thank you for the pointer <3


fix: Update docker-compose.yml to use the proper factory URL

Description
The USER_OFFICE_FACTORY_ENDPOINT variable is updated with the correct value.

@janosbabik I added @yoganandaness here as a reviewer. I know that he modified this in one of his last PRs (https://github.com/UserOfficeProject/user-office-core/pull/399/files#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3L78). For me the change looks good but I am not sure if Yoga had some good reason to change this or not.

@martin-trajanovski Yes, this PR is making sense. I have earlier removed the /generate, but later added it back in various places. But missed this one. Thank you.


Fix - #27294 content updated

Issue:
#27294 Making and committing changes is different from the tutorial experience
Steps to Reproduce:
Navigate to the Hello World quickstart tutorial.
Observe the "Commit changes" box instead of the expected "Propose changes" box in the "Making and committing changes" section.
Description:
This pull request addresses the issue with the tutorial where the "Commit changes" box is displayed instead of the expected "Propose changes" box in the "Making and committing changes" section. The issue has been consistently observed across different browsers (Chrome and Safari) and whether logged in to GitHub in the browser or not.
Changes Made:
I have updated the tutorial content to ensure that the correct terminology, "Propose changes," is displayed in the "Making and committing changes" section, aligning it with the expected tutorial experience.
Closes: https://github.com/github/docs/issues/27294
Checklist:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Edited the content from "Propose Changes " to "Commit Changes" in "Making and committing changes
"  heading
Check off the following:
[Y] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline.

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
[Y] For content changes, I have completed the self-review checklist.

@Shikha1234 Thanks for submitting this PR! I've edited your post to link your PR to your issue.
I'll get this triaged for review! :zap:

👋 @Shikha1234 Just checking in! Have you had a chance to review @isaacmbrown's suggested changes?

Hi Team, I have updated the changes mentioned in the comments. Please review  and Let me know if any modifications required


Test problems with fixes

I tried to build the project (LocalDB only) and encountered two problems:

A localization issue in TestH2
Implicit javafx-dependency, which is actually not needed

Here come two patches:
Localization issue in TestH2
The localization issue occurs because I'm in Germany and getMessage() contains both a localized version of the error message plus the original message in English. The proposed fix is to change the test from "startsWith" to "contains". This fixes it for me, though it would probably be better to check for some well defined specific exception or error code -- yet that would require more digging into H2, so I didn't do that.
diff --git a/test/net/sf/persism/TestH2.java b/test/net/sf/persism/TestH2.java
index 9281c3c..c55b5db 100644
--- a/test/net/sf/persism/TestH2.java
+++ b/test/net/sf/persism/TestH2.java
@@ -514,2 +514,2 @@
-            assertTrue("message starts with 'Unique index or primary key violation'",
-                    e.getMessage().startsWith("Unique index or primary key violation"));
+            assertTrue("message contains 'Unique index or primary key violation' failed: "+e.getMessage(),
+                    e.getMessage().contains("Unique index or primary key violation"));

Implicit javafx-dependency, which is actually not needed
Javafx has been removed from the jdk, and even my zulu-8 doesn't bring it out of the box. And it's usage doesn't seem to be nescessary at all, at the same can be achieved with ImageIO.
diff --git a/test/net/sf/persism/dao/northwind/Category.java b/test/net/sf/persism/dao/northwind/Category.java
index 7f08af1..c1c5623 100644
--- a/test/net/sf/persism/dao/northwind/Category.java
+++ b/test/net/sf/persism/dao/northwind/Category.java
@@ -3,2 +2,0 @@
-import javafx.embed.swing.SwingFXUtils;
-import javafx.scene.image.Image;
@@ -11,0 +10 @@
+import javax.imageio.ImageIO;
@@ -85,2 +84 @@
-                Image image1 = new Image(in);
-                image = SwingFXUtils.fromFXImage(image1, null);
+                image = ImageIO.read(in);

I could also try to provide a pull request, if you like, though that would be my first try with github forking ... ;-)
On a side note: is there a special reason, why you put all the local databases into the user-home directory? I'd rather propose to have them local to the project, most likely somewhere in target.

Yeah the image one is for testing Binary types. The Northwind DB has a BMP photo in there.  Thanks!


Modal gets closed when space or return is hit

Reproduction link
https://angular-hgdzbb.stackblitz.io
Steps to reproduce

Click 'Custom button` to bring up the modal
Hit space or return

What is expected?
The modal stays open.
What is actually happening?
The modal is closed. Upon quick investigation it seems that the close button (x) is getting focus when modal is open and this is why these keys when struck close the modal.

Environment
Info

ng-zorro-antd
13.1.1

Browser
All

@banjankri hey, if you want to have this behavior you have to set nzAutoFocus to null, by default the value it's auto, so the library will focus the first element that can be focus, in your case, the automatic close icon.


Feature request: visual history

This is a feature request that would involve a large change.
Often, it would be helpful to compare results of a simulation with previous ones. What would be cool is if each simulation was saved (both its input parameters and the graphical result) and you could recall them to compare the results to your current run. What would be even cooler is if you could see run results side by side.

that is,  it will be greatly usefull

:smile:


Add pin function

Continuation of  #29 in a new branch. This one uses the notifications api, and should be safe to merge after some testing. I think gui improvements should be in a separate pull request/issue...

Looks good, will merge and do some tweaks.


Clean up unused imports in Java files

Here is one possibility (shell script): https://gist.github.com/markusfisch/54adc76384a32cbcde8e
Or IntelliJ can do it.
Or here's an article using NetBeans for this purpose (several possibilities): https://www.generacodice.com/en/articolo/247193/code-cleanup-in-netbeans

Really just leaves the large number of files in "util" package to worry about.


build: check in forked ggcr so build works

I also added a FORK.md in case someone wants to update the fork without losing their whole mind in the future.

Thanks for digging, fixed in https://github.com/jonjohnsonjr/dag.dev/commit/475faf1c965f8050d9c628e55db71ceecbd36834 instead.


[FEAT] bitrate _monitot with TS and Net bitrate simultaneously.

Is your feature request related to a problem?
Not exactly, but was trying to get every second the gross bitrate of the TS and the net one (without 8191 PID)
The target is to have the two values at exactly the same time and be able to represent them on a chart.
Proposed solution:
The output of the bitrate_minitor plugin should report the net bitrate after the whole gross bitrate. Something like
TS Bitrate xxxxz bits/s, Net Bitrate yyyy bits/s.
Alternatives:

Using consecitives bitrate_monitor plugin does not guarantee the two values will have the same time.

Hi @enricovittorini
This has been implemented. With periodic messages, the net bitrate is displayed in addition to the global bitrate. With alarm commands, the net bitrate is passed as additional parameter.
As a bonus, it is now possible to monitor the bitrate of a set of PID's (a service for instance). Previously, the bitrate could be monitored either on the full TS or on one PID only.

@lelegard it is ok. thanks a lot!


Update FontAwesome version and development pipeline icon.

Slightly less negative / alarming icons for pipelines that are under development.
Before:

After:

Agreed!


add run verbose

It would be nice to have a verbose runner that prints out information about tests progress as tests are run. It could print test just finished, % total done, etc.
The point is to give better feedback when I manually run the tests to see the progress.

Hi, did you mean to post this on https://github.com/mausch/Fuchu ?

@mausch - yes, I'm really sorry. Was exploring and didn't notice wasn't in the right repository.


Exposing types as non-dev dependencies

Closes #320

Hi, thanks for the merge! Sorry to bother you, but are there any plans for a release? Can't wait to get this :)

Yeah, I'll update the changelog and do a release really soon.

Thanks! :)


Crash when loading big oil day 2 (welcome_to_the_jungle_2)

Describe the crash
Crashes mid editor loading of big oil day 2.
Steps to reproduce the crash
load the level.
Logs
Application has crashed: C++ exception
[string "lib/managers/hud/hudmissionbriefing.lua"]:125: attempt to index field '_current_contact_data' (a nil value)
SCRIPT STACK
new() core/lib/utils/coreclass.lua:35
setup_mission_briefing_hud() lib/managers/hudmanagerpd2.lua:1989
setup() 17
setup() lib/managers/hudmanager.lua:330
load_hud_menu() lib/managers/hudmanager.lua:317
at_enter() lib/states/ingamewaitingforplayers.lua:407
trans_func() lib/states/gamestate.lua:22
_do_state_change() core/lib/utils/game_state_machine/coregamestatemachine.lua:124
end_update() core/lib/utils/game_state_machine/coregamestatemachine.lua:104
end_update() lib/setups/setup.lua:957
end_update() lib/setups/gamesetup.lua:876
end_update() lib/setups/networkgamesetup.lua:33
core/lib/setups/coresetup.lua:602

Callstack:
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     zip_get_name
                     ntdll  (???)     RtlAllocateHeap

Current thread: Main
Minimal reproduction
No response

Probably an issue with the job_wrapper system this heist uses to randomize the time for the first day, will need to look into it
For now try unchecking the 'narratives' box and loading into the heist that way

Probably an issue with the job_wrapper system this heist uses to randomize the time for the first day, will need to look into it For now try unchecking the 'narratives' box and loading into the heist that way

crashed that way too


MSTEST0030 only warns when first method in class is marked with [TestMethod]

Describe the bug
The warning MSTEST0030 only warns when the first method in the class is marked with [TestMethod]. It does not warn if for example there is a [TestInitailize] marked method that comes before a [TestMethod] marked method
Steps To Reproduce

Create solution
Add MsTest unit test project
Add a method Before the default TestMethod1 method as follows

public class DoesNotWarnMsTest0030
{
    [TestInitialize]
    public void Initialize()
    {

    }

    [TestMethod]
    public void TestMethod1()
    {

    }
}

Reproduction here: Malachi-Datacom/MSTEST0030-Bug-Repro
Expected behavior
An info (or modified level) diagnostic should appear on the class for MSTEST0030
Actual behavior
No diagnostic is produced for MSTEST0030
Additional context
It does not seem to matter whether the first method is marked with any attribute (as long as it's not marked with [TestMethod]), it just needs to appear before the first [TestMethod] attribute

Hi @Malachi-Datacom,
Thank you for raising this issue, I confirm there is a bug in our analyzer. We will ship a fix on the next bug fix version (most likely next week).


Remove python3.6 lambda runtime support

Context
AWS will depreciate the lambda python3.6 runtime, where no lambdas will be able to create or update using python3.6 from Aug 17, 2022 (this year).
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Possible Fix
Remove python3.6 as a supported runtime from zappa

released, closing


Automate release

Setup fastlane to automate deployment to Google Play

#6 should be done first. As well as a build action.

See #14 for build action


Ryan M: Watch webspaceteam.com

Ryan M requests the watch of the watch_keyword webspaceteam\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

webspaceteam\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


[Feature Request] Multiple chats with customizable chat titles instead of same title for multiple tabs for the same repository

What's the problem?
It's a bit annoying when started multiple chats with GPT for the same repository. Navigation is frustrating when you need find and switch off all the tabs with the same title, should be able to at least rename the tabs for users who started multiple chats with the same repository. As #1085 stated, the ability to have histories of chats is crucial, therefore having the ability to rename or auto generate titles for multiple chats and make these titles persistent is needed too.
What's the solution?

Ability to rename tabs.
Or group chats for the same repository under the same tab, and allow users to organize multiple chats on the left sidebar, just like what poe.com and chat.openai.com does.
The state of the renamed title persisted, will be listed for previous sessions

Additional context
None.

Hey @nekomeowww thanks for your suggestion. In fact, we're already planning a big design change to the app that will solve this issue together with a couple of others.

Ok. Sure.
Then should this issue be closed since it's planned? Or should we keep it until the new big design change updated?


Fix DELETE operation in TodoController

By using First(), there's the opportunity for an uncaught exception when the endpoint is called with an ID not present in the database.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@uruk  Great fix! Keep them coming.


Bump Aeron version for cmake

CMake to be aware of proper Aeron version

I am just following the existing pattern in CMakeLists.txt. The better CMake way would be:
project("aeron" VERSION 0.9.8)

In the project definition line, per CMake docs

@vdidenko how would version.txt be pulled in for this?
If that can work well, then I would be all for bumping to CMake 3.0.2 and adding the version that way.

OK, I have it in another branch, will make that a pull request in a sec.


Cannot reconstruct Quantized from trained codeblock and indices

What I would like to do is to train the ResidualVQ and later on use the indices only (as well as the trained codeblocks) to reconstruct the quantized data. However, get_codes_from_indices does not seem to be returning the same as quantized. Do you mind clarifying this?

@efteli would check out the code sample from https://github.com/lucidrains/vector-quantize-pytorch/issues/44

Awesome, thanks a lot.


Multiline comment in alias options is not rendered properly

---@alias T
---comment 1
---comment 2
---| 'a'
---comment 3
---comment 4
---| 'b'

---@param p T
local function f(p)
end

Current Behavior
When f is hovered, comment of the options a and b of parameter p typed T is rendered wrong.

Note that comment 2 and comment 4 seem to be rendered as if they were variable declarations.
Expected Behavior
Both comment 2 and comment 4 are rendered as normal comments.
Environment
VS Code 1.57.1
Lua language server 2.1.0

Since there is a test about multiline comment in alias options, maybe this is a bug?

It seems to behave as expected until v1.21.1, or commit https://github.com/sumneko/lua-language-server/commit/6b2287cba3bd55ce3c8b49e00042b3748bd7bd6b.

I haven't tested how to display multi-line comments, because I haven't figured it out yet. This test is to test that multi-line comments will not interrupt the enumeration.

OK, that makes sense.