Icons/Thumbnails become blurry when switching from Details View

Describe the bug
Any icons become blurry when switching from Details view to Grid or Tiles view.
To Reproduce
Steps to reproduce the behavior:

Go to a directory with icons/thumbnails that are clear in Grid view.
Switch to Details view.
Switch back to Grid or Tiles view.
See issue.

Expected behavior
Icons/Thumbnails should remain clear when switching views.
Screenshots
https://user-images.githubusercontent.com/8879244/102845288-3a4dad00-43db-11eb-8485-66893ebf6851.mp4
Desktop (please complete the following information):

OS Version: Windows 10 2004 20279.1
App version: <IP_ADDRESS>

Additional context
Icons are clear after restarting the app, but issue is reproduceable.
Log file
No issues in log file.

@generalguy41 This issue should be resolved with #2669.

How to automatically switch from Details view to Grid or Tiles view for Thumbnails view and switching from Grid or Tiles view to Details view for folders?

How to automatically switch from Details view to Grid or Tiles view for Thumbnails view and switching from Grid or Tiles view to Details view for folders?


Fix anchor in korean document

It's trivial fix

Fix indent
Fix invalid link

Close this PR because Its duplicated #116 .


Split current gateways to packages

If you make one how you'd like it:

Readme
PSR-4
Docs

etc, I can do some too.

Ok, so after #30 has been reviewed and merged, I can get to work on this. NB, I've already created 8 separate repos for our current gateways.

As somebody who has recently (vert recently) moved from a "contain" all package to separate adapters (gateways or w/e). Do this as quick as you can. It's can be a massive undertaking.


Switch from getopt to argparse

This will also make implementing subcommands easier.
http://docs.python.org/2.7/howto/argparse.html
http://docs.python.org/2.7/library/argparse.html

I believe this has already been fixed.

Actually we will/are using https://github.com/mitsuhiko/click/ in the next rev (the code is in the simplification branch already) https://github.com/dejacode/about-code-tool/blob/simplification/about_code_tool/cmd.py


Fix saving lambda layers with values saved as closures

PR that fixes #6211 including unit test.

The tests are failing, please check it out: https://travis-ci.org/fchollet/keras/builds/309952905?utm_source=github_status&utm_medium=notification

Already fixed by https://github.com/keras-team/keras/pull/8762, I've just added a test case in https://github.com/keras-team/keras/pull/8798


Error in the code

I cannot use this sample ..i have problem in :  //Convert MP4 to WAV
var wavFolder = Utils.GetHomeFolder() + WebConfigurationManager.AppSettings["WAVFilesFolder"];
var converter = new AudioFileFormatConverter(mp4, wavFolder);
var wav = converter.ConvertMP4ToWAV();
                    //Convert .WAV file to text
                    var bing = new MicrosoftCognitiveSpeechService(); //gets the path + filename
                    var text = await bing.GetTextFromAudioAsync(wav); //takes path+filename to WAV file, returns text

Utils.GetHomeFolder  don't exist in current context
For bing.GetTextFromAudioAsync(wav)

i got this message :  cannot convert from 'string' to 'System.IO.Stream'

Utils.GetHomeFolder - you can write your own method that returns the full path to the home directory.
GetTextFromAudioAsync - your function doesn't take a string, it takes a stream. It should take a string (path and filename).


Add Github Login via Socialite

Summary
This PR adds Laravel Socialite to authenticate users via GitHub. This will help against spam signups and allow us to use GitHub Avatars for new users instead of Gravatar images (#388). I kept in Gravatar as a fallback for legacy users.
This PR also removes the temp Honeypot setup and RegisterController.
Todo Before Merge:

[x] Create an OAuth GitHub app for prod
[ ] Thoroughly test (app credentials in Slack):

[ ] You can sign up using GitHub and GitHub avatar is used

[ ] On first sign up, you're redirected to the wizard, otherwise, the module index page

[ ] You can sign in with a legacy user and Gravatar image is used
[ ] Cancelling auth redirects back to onramp

Screenshot(s)

Updated Login Form

Gravatar message hidden on profile for Github users

Changed Login/Register buttons to single "Get Started" cta

Revisiting to ensure the app returns gracefully after user cancels auth via GitHub

@darkboywonder when there's time, would you mind giving this a second review and test that you can do everything listed under "Todo Before Merge"? Thank you 🙏🏾


Add nodemon

Adds nodemon as npm script related to the #156 issue

[X] Remove Forever dependency as is not in use.
[X]  Add Nodemon as dependency
[X] Add task dev to the package.json that allow us to reload the server on changes, see
is not in use, let's move to Nodemon as npm script
[X]  Check that the npm tasks are working as expected
[X]  Update the readme.md with the extra relevant info (if needed)

@ckarande Thanks for having me! You're totally right I misplaced the nodemon file in test folder, and also i removed the -watch option in package.json so nodemon gets the settings from the config properly.

@servatj Thanks for the changes. Looks good to me and we are all set to merge this PR. 🎉

Cool @ckarande @servatj  :-) I just updated the PR base branch to OWASP:release-1.5 as expected

Awesome! @UlisesGascon Excellent work organizing the PRs with the right release branch. Please feel free to merge the PR when you get a chance.

Thanks @ckarande !! 👍


Re-order code snippets language  tab by alphabet

The Graph reference docs snippets are to be ordered by alphabet. For product consistency we are also re-ordering the code snippets tab in GE as well.

@Onokaev  chat with @millicentachieng  on this since she's handling the docs side. This change should go live at the same time with the Docs code snippets updates.

@Onokaev  let's make sure these changes refelect on Try-It


breaking compatibility changes. take context for first arguments.

@178inaba could you please review this?

Coverage increased (+0.1%) to 62.366% when pulling 5e84b57bf33e328a8c93f635333d4a90ddc77076 on context into 32e66a3d726a65861273a5e6047a99d5cae8f886 on master.

Coverage remained the same at 62.257% when pulling 6fe43e545a2ff89169a1e21fc3887e449719279e on context into 32e66a3d726a65861273a5e6047a99d5cae8f886 on master.

@178inaba thank you!


Reflective xss vulnerability

Hello:
I am a member of the 360 Code Safe team. In our open source code detection project, I found a reflective xss vulnerability in "cloud-s4-sdk-book". The details are as follows:
In the 31st line of BusinessPartnerServlet.java, the parameter "id" in the request is received. When the parameter is invalid (length is greater than 10), an error message will be displayed on the page, and the id parameter is inserted in the error message.

Thanks for reporting this. This is fixed in master and will soon be fixed in other branches as well.


Update favicon.png based on icons from project

The current favicon.png is the Svelte default icon.

I have change SAB 10.3.2 to generate a 128x128 favicon that will be copied to static/icons/favicon.png so all that will have to be done is to change src/app.html to point to that image.

Fixed in #238


LDA-Science.ipynb generate_griffiths_data() error

I was running the example and cannot proceed at this line:
known_alpha, known_beta, documents, topic_mixtures = generate_griffiths_data(     num_documents=num_documents, num_topics=10)
Here is the output:

ValueError                                Traceback (most recent call last)
 in ()
2 num_documents = 6000
3 known_alpha, known_beta, documents, topic_mixtures = generate_griffiths_data(
----> 4     num_documents=num_documents, num_topics=10)
5 # num_topics, vocabulary_size = known_beta.shape
6
~/SageMaker/lda_topic_modeling_2019-10-11/generate_example_data.py in generate_griffiths_data(num_documents, average_document_length, num_topics, alpha, eta, seed)
112             topic_index = np.argmax(word_topic)
113             topic_word_distribution = beta[topic_index]
--> 114             word = sp.stats.multinomial.rvs(1, topic_word_distribution, size=1).reshape(vocabulary_size)
115             documents[m] += word
116
~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/scipy/stats/_multivariate.py in rvs(self, n, p, size, random_state)
3218         n, p, npcond = self._process_parameters(n, p)
3219         random_state = self._get_random_state(random_state)
-> 3220         return random_state.multinomial(n, p, size)
3221
3222
mtrand.pyx in numpy.random.mtrand.RandomState.multinomial()
common.pyx in numpy.random.common.check_array_constraint()
ValueError: pvals < 0, pvals > 1 or pvals contains NaNs

Same issue

Possible lead: numpy.random.mtrand.RandomState.multinomial

The probability inputs should be normalized. As an implementation detail, the value of the last entry is ignored and assumed to take up any leftover probability mass, but this should not be relied on. A biased coin which has twice as much weight on one side as on the other should be sampled like so:

>>> np.random.multinomial(100, [1.0 / 3, 2.0 / 3])  # RIGHT
array([38, 62]) # random

not like:

>>> np.random.multinomial(100, [1.0, 2.0])  # WRONG
Traceback (most recent call last):
ValueError: pvals < 0, pvals > 1 or pvals contains NaNs

If I print(topic_word_distribution) generate_example_data.py#L114, it seems normalized: https://gist.github.com/lefnire/ad710182a847efcf29a1ce71fa80971b

I've found a solution here: https://www.e-learn.cn/topic/2637790
From what I gather, this has to do with numpy casting implicitly the values... Not sure about the details, but this works:
        document_length = document_lengths[m]
        theta = thetas[m]
        **theta = np.asarray(theta).astype('float64')
        theta = theta / np.sum(theta)**
        topic = sp.stats.multinomial.rvs(1, theta, size=document_length)  # precompute topics for performance
        # generate word counts within document
        for n in range(document_length):
            word_topic = topic[n]
            topic_index = np.argmax(word_topic)
            topic_word_distribution = beta[topic_index]
            **topic_word_distribution = np.asarray(topic_word_distribution).astype('float64')
            topic_word_distribution = topic_word_distribution / np.sum(topic_word_distribution)**
            word = sp.stats.multinomial.rvs(1, topic_word_distribution, size=1).reshape(vocabulary_size)
            documents[m] += word```
The lines I added are in bold.

hi, I am still getting issues. Is there any solution to this?

I have some workaround for this issue to normalize the np array in line 104 and line 111.
Line 104:
theta = thetas[m] / np.sum(thetas[m])

Line 111:
topic_word_distribution = beta[topic_index] / np.sum(beta[topic_index])

@zorrofox -- I attempted the workaround you suggested in generate_example_data.py but I continue to get the same error.

@austinlasseter Do you restart the Jupyter Kernel?

For reference, the error noted at the beginning of this thread:
ValueError: pvals < 0, pvals > 1 or pvals contains NaNs
This error is caused by a floating point precision issue in the script.  This causes in some instances the topic-word distributions not to sum to 1.0 prior to calling scipy.stats.multinomial.rvs.
A fixed version of this script can be found at https://github.com/duderevolucion/aws-sagemaker-lda-example.  That repository also contains an updated version of the lda example in https://github.com/awslabs/amazon-sagemaker-examples that works with the Sagemaker Python SDK Version 2.x.

@duderevolucion thanks works now!


Update test bucket move to my personal account

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (25537c5) 93.54% compared to head (170ea12) 93.54%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   93.54%   93.54%
=======================================
  Files           8        8
  Lines        1084     1085    +1
  Branches      187      187
=======================================
+ Hits         1014     1015    +1
  Misses         42       42
  Partials       28       28

Impacted Files
Coverage Δ

tests/conftest.py
88.88% <100.00%> (ø)

tests/test_object.py
98.82% <100.00%> (+<0.01%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix internationalization for search typeahead.

This pull request addresses the issues outlined in #30912 comment and blocks issue #31004 by reworking how search typeahead suggestions are implemented. The key changes includes:

Generating complete Phrases for Suggestions.
Removal of Operand Gluing.
Updating tests.

Fixes: #30931
Additional Notes:

This change ensures that our search typeahead suggestions are more maintainable and scalable for future updates and additions.
Please review the updated logic and test it thoroughly to ensure no edge cases are missed.

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@zulipbot add "integration review"

@Harsh2509 Please do not add review labels; this is managed by project maintainers, and for experienced contributors on their own PRs.

@pratik-pc Could you please do the first round of review on this one?

@Harsh2509 Also individual commits should be mergeable and pass tests. While at it, maybe change the commit message to match the commit guide


typo in pyenv-sh-deactivate? (for fish users)

When I cd to my project that has it's  own virtualenv (or if I activate virtualenv manually), I have the following error (I use fish shell, as specified in title);
fish@localhost:~> cd myVirtualEnv
pyenv-virtualenv: deactivate
pyenv-virtualenv: activate py3.5virtenv
pyenv-virtualenv: prompt changing not work for fish.
functions: Unknown option '-g'
/var/folders/bq/6hqs9m7d75xfdhmdbbx4lvzh0000gn/T//.psub.YtAIlHrNsn (line 11): if functions -g deactivate;
                                                                                ^
from sourcing file /var/folders/bq/6hqs9m7d75xfdhmdbbx4lvzh0000gn/T//.psub.YtAIlHrNsn
        called on line 45 of file ~/.config/fish/config.fish

in function 'pyenv'
        called on line 57 of file ~/.config/fish/config.fish
        with parameter list 'activate --quiet'

in function '_pyenv_virtualenv_hook'
        called on standard input

in event handler: handler for generic event 'fish_prompt'

       functions ‐‐ print or erase functions

   Synopsis
       functions [ ‐a | ‐‐all ] [ ‐n | ‐‐names ]
       functions ‐c OLDNAME NEWNAME
       functions ‐d DESCRIPTION FUNCTION
       functions [ ‐e | ‐q ] FUNCTIONS...

functions: Type 'help functions' for related documentation

As you can see in synopsis of functions, there are no '-g' option, but there is '-q' option, which means to test if specified function exists.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29455271-typo-in-pyenv-sh-deactivate-for-fish-users?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F335155&utm_medium=issues&utm_source=github).

Ah, you're right. I'll prepare a patch for it soon. Please give it a try once it pushed.

I confirmed that \ 13b7dc172ab809c3300ee0fa777a20b900802661 works fine with fish. I'll create a new release including it later.
@slebedev Please ping me back if you still have any problem with fish....

@yyuu it's all ok. I've tested it before and prepared a patch, but you fixed it already. Thanks!

@slebedev Thanks for confirmation! I'll push a release to Homebrew.

Released 20151229 including this.


Add automatic typespecs for authorize functions

Description
This change adds auto-generation of an @action typespec and @specs for the various authorize calls in a generated policy module. These typespecs explicitly specify the supported actions, allowing dialyzer to be used for static checking of the validity of action names passed in.
Checklist

[x] I added tests that cover my proposed changes.
[x] I updated the documentation related to my changes (if applicable).

Not sure what that dialyzer failure is about, but someone was talking over on the Elixir Slack about the same issue suddenly appearing on a different project so I suspect it's not down to this change :)

Great, thanks for the PR! I'll have closer look later.
I don't know where the dialyzer error is coming from, but deleting the PLT caches resolved it in other projects.

I just tried your branch in a project and changed an action in an authorize/3 call to an invalid action, but Dialyzer didn't complain. My guess is that it doesn't work like this because the policy module implements the LetMe.Policy behaviour, and it is not possible to override the type specifications of the behaviour callbacks.

I initially had exactly the same problem and exactly the same thought regarding the cause. I even tried removing the behaviour and associated callback specs, to no avail. However with a clean checkout/rebuild it eventually worked correctly. My only theory is that for some reason to do with the combination of macros and behaviours and typespecs and all the other magic in use, changing the macro does not always cause the typespec to be correctly regenerated by a normal compile. If you pull the latest version of this branch, and run MIX_ENV=test mix dialyzer you should see it correctly generate a warning for the test function in LetMe.TypespecTestPolicy.

Whoops, thanks for the fixes. That should all be correct now.

Thanks!


having a tagged package at lower level keeps printing warnings

In a situation where the top level app  uses a pkg unversioned (i.e. jsxd) and a other dependency includes it with a versioned {jsxd, "0.1.10"} rebar keeps printing the following warning:
===> Newly added dep jsxd is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade jsxd'

however rebar3 upgrade jsxd has no effect

What's the output of rebar3 upgrade jsxd? Got any repo to test this on otherwise?

output is the following
rebar3 upgrade jsxd
===> Newly added dep jsxd is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade jsxd'
===> Newly added dep folsom_ddb is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade folsom_ddb'
===> Verifying dependencies...
===> Verifying dependencies...
===> No upgrade needed for basho_stats
===> No upgrade needed for chash
===> No upgrade needed for eleveldb
===> No upgrade needed for exometer_core
===> No upgrade needed for pbkdf2
===> No upgrade needed for riak_sysmon
===> No upgrade needed for folsom
===> No upgrade needed for parse_trans
===> No upgrade needed for setup
===> No upgrade needed for bear
===> No upgrade needed for pooler
===> No upgrade needed for jsxd
===> No upgrade needed for mdns_client_lib
===> No upgrade needed for libsnarlmatch
===> No upgrade needed for mdns_client
===> No upgrade needed for fqc
===> No upgrade needed for pooler
===> No upgrade needed for dflow
===> No upgrade needed for mdns_server
===> No upgrade needed for jsxd
===> No upgrade needed for folsom_ddb
===> No upgrade needed for mdns_client_lib
===> No upgrade needed for mmath
===> No upgrade needed for dproto
===> No upgrade needed for ddb_client
===> No upgrade needed for libsnarlmatch
===> No upgrade needed for mdns_client
===> No upgrade needed for dqe
===> No upgrade needed for fqc
===> No upgrade needed for jsxd
===> No upgrade needed for folsom_ddb
===> No upgrade needed for mmath
===> No upgrade needed for dproto
===> No upgrade needed for ddb_client
rebar3 compile
===> Newly added dep jsxd is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade jsxd'
===> Newly added dep folsom_ddb is locked at a lower level. If you really want to unlock it, use 'rebar3 upgrade folsom_ddb'
===> Verifying dependencies...
===> Compiling howl

can be reproduced here: https://github.com/project-fifo/howl/tree/ff915856fdf649277623c14b0d973cdf7fc96dfa
(note dude to #698 it might be needed to delete the .lock file before the first compilation)

I figured out the combo causing this that we'll need to add to the mixed tests. Top level package that should take precedence over source dep of a source dep.

But top-level packages should nevere take precedence over a source dep?

No, package at the top level takes precedence we realized.


Update Variant Annotator to Python 3 version on Main.

After testing on test.galaxyproject.org (#174), this version looks ready to be pushed out to Main.

@galaxybot test this

@galaxybot deploy this


1.dose it require gup or cpu version of tenser flow

TF doesn't enforce you to use GPU. It is  your call. It works on both GPU and CPU. Refer https://www.tensorflow.org/install/install_linux


Dark Theme for field

thanks for this great package.
I recommended to config persian-date field to set dark if the admin panel dark theme is active

Hey, Thanks for using it.
I'll add this tonight hopefully.


--ignore-git-ignore in erdtreerc is ignored

To reproduce, put --ignore-git-ignore in $HOME/.erdtreerc.
Then run et from a directory that has some gitignored files. They won't be printed.
For comparison, if the flag is supplied through command line: et --ignore-git-ignore, it works as expected.
> et --version
erdtree 1.4.1

Thank you the issue should be resolved. I'll do a minor release tonight :]


How to make MIDL3 arrays with "weak" ownership?

I'm working on a code base that is using "classical" COM interfaces with SAFEARRAY for exchanging image data efficiently both in-proc and across process boundaries, regardless if the client is C++, C# or Python (using comtypes). This is achieved by tagging the SAFEARRAY object with FADF_AUTO to make the ownership weak and implementing IMarshal for custom marshaling, where the image data buffer is stored in a shared memory segment with lifetime controlled by the ref-count of the parent object providing the image data.
One nice property of this is that the client only sees a "regular" SAFEARRAY buffer. It don't need to know that it's using shared memory behind the scenes for zero-copy data exchange across process boundaries. This is just an implementation detail.
I've recently started to "modernize" the interfaces to WinRT/MIDL3. I then want to achieve something similar with UInt8[] or a similar array type. However, I've so far been unable to discover any flags for making ownership "weak" when creating a winrt::com_array<uint8_t> in the C++ server implementation.
Would it be possible to get some guidance on how to create a MIDL3 interface with arrays with "weak" ownership that is out-of-proc compatible?

Would it be possible to get some guidance on how to create a MIDL3 interface with arrays with "weak" ownership that is out-of-proc compatible?

There's no such feature. A MIDL 3 array simply represents a pair of size and data.

There's no such feature. A MIDL 3 array simply represents a pair of size and data.

Thanks for confirming my assumption. It then seems like I'm stuck with SAFEARRAY and "classical" COM for the time being.

Is there somewhere where I can submit a MIDL3 enhancement request for supporting "SAFEARRAY" or similar memory-buffers that can optionally utilize externally managed buffers (like with FADF_AUTO)?

MIDL3 is constrained by the WinRT type system so this is unlikely to happen, but you can raise the question here: https://docs.microsoft.com/en-us/answers/topics/windows-api.html


error AL0315: Control does not exist in group 'RepeaterControl'

Working with AL Compiler version <IP_ADDRESS>79, we often get errors when running 'AL: Rapid Application Publish' on controls used in the FreezeColumn property. Before compiling, there were no errors at all.

After several new attemps, the error no longer shows and publish succeeds.

Thanks @fvet! It looks like a concurrency issue. We'll take a look.

@atoader  Any update on this? Got the warning tens of times today before it was able to do a RAD (not willing to 'reload window' since this forces me to do a full publish)

We have not had a chance to fully investigate this issue. It is high on our backlog, but we are currently prioritizing issues encountered by our customers in SaaS.
I will remove the in-progress tag. Once the bug is picked up, we will set a milestone and add the tag back.

@atoader Any update on this? Got the warning tens of times today before it was able to do a rapid publish (not willing to 'reload window' since this forces me to do a full publish)

@atoader Any update on this? Got the warning tens of times today before it was able to do a rapid publish (not willing to 'reload window' since this forces me to do a full publish)

We found what we believe was the cause of this in the last week. You can try it out in the insider preview. We will push an update later this week.

We found what we believe was the cause of this in the last week. You can try it out in the insider preview. We will push an update later this week.

@atoader
We're having the same errors since few weeks again. Running both the latest marketplace vsix as well as the latest insider vsix now frequently results in - incorrect - AL0315 errors when packaging / publishing our apps.
Name: AL Language
Id: ms-dynamics-smb.al
Description: AL development tools for Dynamics 365 Business Central
Version: 7.4.496506
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al


Add missing api_tests to inv task

Purpose

Add missing api_test directories to invoke tasks so they'll be run by travis.

Changes

Added missing directories to API_TESTS

Side Effects

I randomly picked between API_TESTS2 and API_TESTS3 lists. Looking at a recent build, 1 seems to be the slowest and 2 is currently the fastest.

Reticketed the failing suites.
Waffle: https://openscience.atlassian.net/browse/PLAT-1103
WB: https://openscience.atlassian.net/browse/PLAT-1104


TeamStacks

Anyone know is it possible to generate <= Stacks or >= stacks? I would like to generate lineups where I have at least 3 but if the opt finds that 4 or 5 players from same team added to be more optimal that it could add them in Whereas if its set to TeamStack(4 it is not going to allow but 4.

im interested in knowing this as well.  Other optimizers out there set rules where in the example you have to get AT LEAST the number but could get more.

im interested in knowing this as well. Other optimizers out there set rules where in the example you have to get AT LEAST the number but could get more.

I have found that when just using TeamStack(2, 3 or 4 etc it will give you 3, 4 or 5 but when you add in the "for teams" it will only give you the specified amount


Program crashes when too many ipks exist

When there are 250+ ipks in a directory, the script will crash, generating an empty secure_fat.gf.

that's because max bundle count in official secure_fat structure is FF, aka 255.
i'll think of a way to fit in more bundles, but i never thought it'd be an issue due to how big this number is.
if you're talking about just dance, which i think you are, you can simply put several maps per bundle to fit in more maps. make sure that created bundles are less than FAT32 file size limit (4GB) though.


[QA] Add linting of JS and CSS

Add linting of CSS and JS as we do in openwisp-controller and openwisp-notifications.
Reference:

https://github.com/openwisp/openwisp-notifications/blob/d7f20ea41bcff1c0a437b93e98cac2d0a3bbec32/.github/workflows/build.yml#L56-L57
https://github.com/openwisp/openwisp-notifications/blob/d7f20ea41bcff1c0a437b93e98cac2d0a3bbec32/.stylelintrc.json
https://github.com/openwisp/openwisp-notifications/blob/d7f20ea41bcff1c0a437b93e98cac2d0a3bbec32/.jshintrc
https://github.com/openwisp/openwisp-notifications/blob/d7f20ea41bcff1c0a437b93e98cac2d0a3bbec32/run-qa-checks#L4-L5

i would like to work can i do it

Hi, @nemesisdesign Can I work on this issue, if it is open?

Hi, @nemesisdesign Can I work on this issue, if it is open?

Sure, go ahead

@niteshsinha17 I think we should do this during your GSoC project since it's very related to what you're doing!

Sure, I will add this. 😄


support configurable log output

This PR adds support for providing a custom io.Writer to redirect log output to any facility of the user's choice.

Pull Request Test Coverage Report for Build 469

4 of 4 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 467:
0.0%

Covered Lines:
692

Relevant Lines:
692

💛  - Coveralls

Hi @dmarkhas,
You have Atreugo.SetLogOutput(), but it's well too.
Thank you sou much! 😉

I'm agree!


[FINE] BZ#1451374-Displays service resources when type is serviceansibleplaybook

https://bugzilla.redhat.com/show_bug.cgi?id=1451374
https://www.pivotaltracker.com/story/show/145637025
Only shows tabs of orchestration templates that have names, Provision etc
Look an ansible service that also has resources!! this is what we waaaaaaantttt

@ManageIQ/core-ux UX changed, UXD team review needed.

So the only thing that changed ux wise, is now we show resources and the ansible playbook stuff, no new views were created

@AllenBW what design did you follow here?  wondering if you duplicated what is in Ops UI or referenced what is in the design repo?

@miq-bot add_label fine/yes

Hi @serenamarie125 @chriskacerguis if you recall this pr, https://github.com/ManageIQ/manageiq-ui-service/pull/501 you'll see we followed the designs specified here specifically this one:

Again, this pr doesn't touch the design, same stuff that's always been there, it just ensures all the right stuff is there at the correct time.

@AllenBW is this not a problem in 'master' branch?

@simaishi We have PR https://github.com/ManageIQ/manageiq-ui-service/pull/776 to fix master.  We are just getting ahead of a merge conflict.

Ok, I was going to question why we are using the label "successful" rather than using the green check for plays.  If this is a blocker, we can address this at a later time.  I'm not sure I reviewed any prior PRs related to viewing ansible details.

Thanks @serenamarie125 we will address any issues you put in ASAP.

@simaishi this is good to go!


Fix iframe not refreshing when using internalPreviewUrl

It allows to preserve scroll when internalPreviewUrl is set to true.

This works great, thanks Fabien!


IBM Kyiv reports double the usage time as other backends

Describe the bug
IBM Kyiv reports double the usage time as other backends for the exact same workloads.
Eg. on Kyiv the job csch754zx1qg008mazy0 is reporting 9 min and 59 sec worth of runtime usage
But one other backends, eg. Cusco (csce4s3tj7dg008ccsjg) and Osaka (csccga1x35wg0080ztag) the runtime for the exact same workload is 4min 37 sec and 5min 0 sec, respectively.
Steps to reproduce
Expected behavior
Given that all the systems tested have the same reported CLOPS (speed) numbers, I would expect only a small variation in the reported runtimes, not factors of 2.
Suggested solutions
Isolate why Kyiv is reporting twice the runtime, change the reported CLOPS value, or provide some indication to end users that executions on some seemingly similar backends will have markedly different runtimes and thus costs associated with it.
Additional Information

qiskit-ibm-runtime version:
Python version:
Operating system:

The answer is that this is to be expected given the reset mechanism and the way the control electronics works on Kyiv.  This is not an issue on later devices.


[Feature] BluetoothLE GATT Server (API Controller Style)

Summary
This is being considered so that GATT Server setup can be vastly simplified.
API Changes
TBD
Intended Use Case
More details to be provided via specifications

I'd love to see this happen, or, better yet, contribute. Been looking at the shiny src and samples and can't figure out how to start a gatt server. In the Samples/BlePeripherals directory there is a MainViewModel that takes two params, an IPeripheralManager and IUserDialogs. I have about one day experience with Xamarin Forms but it looks like I need a Binding Context. I need to create a new MainViewModel() in MainPage.xaml.cs, but have no idea what params to pass to it.
The code compiles and runs but I the UI buttons don't do anything, which makes me think I need a binding context.
Looks like your old ACR plugin had a catch-all CrossBleAdapter that had a simple method to start a server CreateGattServer() but my grep results make it look like CrossBleAdapter.Current is gone in shiny.
Could you give a heads up if that sample code with the shiny library is working now? Maybe I'm banging on something that isn't even supposed to run wondering why it wont start!

Hi @melvyniandrag I appreciate the interest in Shiny.  I'm not really doing support during the beta since things can/will change and I haven't finished documentation at all.  For now, the interface you are looking for is Shiny.BluetoothLE.Peripherals.IPeripheralManager and that is injected into the pages where you need to use it.
To my knowledge, most of the peripheral mode is working for what is complete so far.  I'm not sure what platform is giving you the problem and I have no details to go off, but in any case, the answers you need are above.
That being said, please don't post support requests in the roadmap features.

As for this particular feature - this is something that is being looked at for a future version and I haven't fully decided on a specification yet, so this wouldn't likely be something the community would take on until that time.

Thanks for the quick and helpful response. Ill keep on eye on shiny throughout the beta phase and probably stick with the old ACR BLE plugin until this reaches stable. Sorry to clutter this thread with a support request, I wouldn't take it the wrong way at all if you deleted our conversation for the sake of consistency and tidiness.

You definitely don't need to be sorry - you are welcome to post feedback and suggestions here as you work with the library.  I would recommend using the plugin for now if you are looking to use it in a production project.  The upgrade path to Shiny will be mostly straight forward.


Newsletter-39: translate into Chinese

I noticed that there is an inserted file. Currently, under "bech32," there is only English. Can I directly create the path and file "bech32/zh/02-stats.md"?

I noticed that there is an inserted file. Currently, under "bech32," there is only English. Can I directly create the path and file "bech32/zh/02-stats.md"?

@bittomhan
Yes, this is part of the series on bech32 (see english version here: https://bitcoinops.org/en/bech32-sending-support/)
You can see a similar setup with the _includes/specials/policy/zh/ we did more recently. However, I am seeing that when we did the bech32 special, we did not internationalize it in the /en/ folder. That said you may be able to put the zh series in a _includes/specials/bech32/zh/ folder and reference it from the newsletters (and blog) accordingly. Feel free to give that a try as I am on the road and wont be able to assist for the next week or so.

I attempted to create the Chinese translation for the Bech32 related content in the _includes/specials/bech32/zh/ path and it has passed the tests.
I translated 02-stats.md into Chinese and placed it in Newsletter #39, which links correctly. The local make production also passed.
However, 02-stats.md needs to link to the Chinese version of Newsletter #38, which has not been translated yet, so the link cannot be established. Furthermore, Newsletter #38 itself needs Newsletter #37 translated to link correctly.
I will merge this issue and the Bech32 content into this branch after the translations of other issues are completed and the PRs are approved, to ensure the translation links work properly.
Thank you!


vue-cli@3 with babel@7 not coverting arrow functions under node_modules

Version
3.0.1
Reproduction link
https://github.com/latel/bad-vue-cli
Node and OS info
Node 10.4.0/ Windows 7
Steps to reproduce
npm i
npm run serve
What is expected?
app should work like charm under chrome 42.
as I have change .browserslistrc to select chrome 40-42
What is actually happening?
chrome 42 does not support arrow functions(see https://caniuse.com/#search=arrow), since @vue/cli use babel@7, which should convert all files beneath root directory including node_modules(documented here: https://cli.vuejs.org/config/#babel, looks for the tips area).
I have import a module named "audio-play" which contains arrow functions, which is not properly transformed so break the app under chrome 42

here is more detail:

See https://cli.vuejs.org/config/#transpiledependencies

@sodatea the document's tips seems to confusing, anyway, I've tried transpileDependencies alreay, which still fails:

my vue.config.js:
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  // 如果改动了这里的baseUrl，确保同时改动了package.json中的main字段以便可以正确打包
  baseUrl: './',
  transpileDependencies: [
    'audio-play',
  ],
  configureWebpack: {
    module: {
      rules: [{
        test: /webfont\.config\.js$/,
        use: [
          'style-loader',
          'css-loader',
          'webfonts-loader',
        ]
      }, {
        test: /\.(mp3|wav)$/,
        loader: 'file-loader',
        options: {
            name: '[path][hash:8].[ext]'
        }
      }, {
        test: /\.nmf$|\.so|\.nexe$/,
        loader: 'file-loader',
        options: {
            name: '[path][name].[ext]?[hash]'
        }
      }]
    },
    resolve: {
      alias: {
        '#': path.resolve(__dirname),
      }
    },
    externals: {
      jquery: 'jQuery',
    },
    plugins: [
      new CopyWebpackPlugin([
        { from: 'node_modules/jquery/dist', to: 'scripts/jquery' },
      ]),
      new HtmlWebpackIncludeAssetsPlugin({
        assets: [
          'scripts/jquery/jquery.js',
          'scripts/sdk/anychat/sdk/anychat4html5.min.js',
          'scripts/sdk/anychat/sdk/anychatobject.js',
          'scripts/sdk/anychat/sdk/anychatsdk.js',
          'scripts/sdk/weixin/sdk.js',
        ],
        append: false,
      }),
    ],
  },
  devServer: {
    proxy: {
      '/mock': {
        target: 'http://localhost:8888/',
        changeOrigin: false,
        pathRewrite: {
          '^/mock': '/index.php/'
        },
        headers: {
          host: 'wzq.voip.com'
        }
      }
    }
  }
}

You cannot mix commonjs & ES modules in webpack 4.
Now that it's a third party dependency, the only way to solve this problem is to let babel take care of the module interop issues, by changing babel.config.js's content to:
// babel.config.js
module.exports = {
  presets: [
    ["@vue/app", {
      modules: "commonjs"
    }]
  ]
};

All your ES module code will be transpiled to commonjs and then pass to webpack for further compilation.

@sodatea Thank you for your replay.
this seems to a deprecated babel 5 options.

Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: [BABEL] F:\anydemo\src\assets\icons\webfont.config.js: Using removed Babel 5 option: .modules - Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules
    at buildUnknownError (F:\anydemo\node_modules\@babel\core\lib\config\validation\options.js:110:11)
    at Object.keys.forEach.key (F:\anydemo\node_modules\@babel\core\lib\config\validation\options.js:99:57)
    at Array.forEach (<anonymous>)
    at validate (F:\anydemo\node_modules\@babel\core\lib\config\validation\options.js:69:21)
    at instantiatePreset (F:\anydemo\node_modules\@babel\core\lib\config\full.js:242:36)
    at cachedFunction (F:\anydemo\node_modules\@babel\core\lib\config\caching.js:42:19)
    at loadPresetDescriptor (F:\anydemo\node_modules\@babel\core\lib\config\full.js:233:45)
    at config.presets.map.descriptor (F:\anydemo\node_modules\@babel\core\lib\config\full.js:68:19)
    at Array.map (<anonymous>)
    at recurseDescriptors (F:\anydemo\node_modules\@babel\core\lib\config\full.js:66:38)
    at loadFullConfig (F:\anydemo\node_modules\@babel\core\lib\config\full.js:106:6)
    at process.nextTick (F:\anydemo\node_modules\@babel\core\lib\transform.js:28:33)
    at process._tickCallback (internal/process/next_tick.js:61:11)

 @ ./src/main.ts 6:0-42
 @ multi (webpack)-dev-server/client?http://<IP_ADDRESS>:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

can i touch a traditional .babelrc to configure babel the older way, or @vue/cli forced to use babel.config.js?

I've no idea where the error comes from as it works well on my machine…
.babelrc is fine.

You cannot mix commonjs & ES modules in webpack 4.
Now that it's a third party dependency, the only way to solve this problem is to let babel take care of the module interop issues, by changing babel.config.js's content to:
// babel.config.js
module.exports = {
  presets: [
    ["@vue/app", {
      modules: "commonjs"
    }]
  ]
};

All your ES module code will be transpiled to commonjs and then pass to webpack for further compilation.

this works for me


File named api.lua in the custom lua plugin directory causes 500 API Admin errors for kong manager

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
3.6.1
Current Behavior

kong manager does not work and does not display information
API on localhost:8001 throws error 500 internal server error
Logs error when trying to send curl -i -X GET http://localhost:8001/ request:

2024/07/31 09:01:18 [error] 1327#0: *2579 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/api/api_helpers.lua:549: bad argument #1 to 'pairs' (table expected, got boolean)
stack traceback:
coroutine 0:
        [C]: in function 'require'
        /usr/local/share/lua/5.1/lapis/init.lua:15: in function 'serve'
        /usr/local/share/lua/5.1/kong/init.lua:1835: in function 'admin_content'
        content_by_lua(nginx-kong.conf:347):2: in main chunk, client: <IP_ADDRESS>, server: kong_admin, request: "GET / HTTP/1.1", host: "localhost:8001", referrer: "http://localhost:8002/"
<IP_ADDRESS> - - [31/Jul/2024:09:01:18 +0000] "GET / HTTP/1.1" 500 544 "http://localhost:8002/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
2024/07/31 09:01:27 [debug] 1327#0: *2580 [lua] init.lua:23: poll(): worker-events: emulate poll method
<IP_ADDRESS> - - [31/Jul/2024:09:01:27 +0000] "GET / HTTP/1.1" 500 142 "-" "curl/8.9.0"
2024/07/31 09:01:27 [error] 1327#0: *2580 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/core/base.lua:80: loop or previous error loading module 'kong.api'
stack traceback:
coroutine 0:
        [C]: in function 'error'
        /usr/local/openresty/lualib/resty/core/base.lua:80: in function 'require'
        /usr/local/share/lua/5.1/lapis/init.lua:15: in function 'serve'
        /usr/local/share/lua/5.1/kong/init.lua:1835: in function 'admin_content'
        content_by_lua(nginx-kong.conf:347):2: in main chunk, client: <IP_ADDRESS>, server: kong_admin, request: "GET / HTTP/1.1", host: "localhost:8001"

Expected Behavior

kong manager works and displays information
API on localhost:8001 works without errors

Steps To Reproduce

Create custom lua plugin with file api.lua inside (also schema.lua, handler.lua)
Add this plugin to kong.conf (make lua_package_path and add to plugins)
Launch kong and go to kong manager (http://localhost:8002 or send request to http://localhost:8001)

P.S. It is not necessary to include the plugin in kong.yml of the service or globally
Anything else?

Using docker image kong:3.6.1-ubuntu
DB-less mode

Hey @svyatoslavratov! I think if the file api.lua file is empty the kong manager api will not work. I don't know if this is the case.
Can you share a snippet of your file?

hi @svyatoslavratov could you share your api.lua file, and make it as small as possible, which is easy for us to troubleshoot


DOMContentLoaded event does not fire in Firefox, browser crashes in jsbin

Using Linux Firefox 42.0 and Polymer 1.2.3, the DOMContentLoaded event never fires in my app. In addition, in this jsbin which demos it, I get a message of browser crash: http://jsbin.com/damego/edit?html,output
This is only for Firefox. Have not tested in Safari or IE.

I am closing this issue due to my instance of Firefox. My laptop time was incorrect which causes erratic behavior with Firefox.


Error when attempting to click on info button in problem panel when in table mode.

Describe the bug
This is very simaler to issue https://github.com/alexanderzobnin/grafana-zabbix/issues/1239 accept it happens when i hit the info button when in table mode, List mode is working fine.
Expected behavior
To display the management row or whatever it called.
Screenshots

when clicked give me....

Network data
No data requests are made an exception is thrown before it even attempt to make a request.
Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Btype%2C%20uid%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.     at ja (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:757387)     at http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:762208     at Di (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:773194)     at Zs (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:819033)     at Su (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:804500)     at ku (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:804428)     at wu (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:804291)     at mu (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:801278)     at http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:751065     at t.unstable_runWithPriority (http://<IP_ADDRESS>:30852/public/build/633.fab5d6bbd438adca1160.js:2:3042374)
The none minified error is....
Objects are not valid as a React child (found: object with keys {type, uid}). If you meant to render a collection of children, use an array instead.
Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

8.3.1
5.4.5
2.4.2

Let me know any other info you would like to see, and thanks in advanced.

I have the same issue.
Grafana - 8.3.1
Zabbix - 5.4.8
Grafana-Zabbix Plugin - 4.2.4

Same issue with Grafana 8.3.0 and Plugin version 4.2.4

Hi,
I have the same issue.
Grafana - 8.3.3
Zabbix - 5.2.7
Grafana-Zabbix Plugin - 4.2.4
An older issue has already been opened on the same subject: #1354

Same problem
Grafana - 8.3.3
Zabbix - 5.4.9
Grafana-Zabbix Plugin - 4.2.4

Had this issue when upgrading to Grafana 8.3.x, as a temporary work around downgraded to 8.2.7 in order to acknowledge problems from the Grafana dashboard


Unity 5.6 version release date

This plugin is very good.
But the version 2.8 is not compatible with Unity 5.6.
When will you release new version?
Thank you

Hmm, whats not working in 5.6?

There is no option for VSCode in Unity - Preferencies. So I am not able to switch on the plugin.

Do you have compile errors in your project?

Oh ... yes ... I have ... This is the issue ?

Because the plugin is open source, the code needs to be compiled to be utilized. At least for the 'first time'. When unity runs into compilation errors it doesn't update any libraries loaded.
While we've contemplated providing a compiled build, people still seem to like the open source nature of the project :)

It is working now ... thank you


PR for #93: Param to indicate file type

Added support for specifing the type of a file. Use files: [{path: 'path/to/file.x', type: 'type'}] where type is either css, html or js. Co-exists with regular path-only files entries. Small 8 line change to address #93

Hey thanks @BenBlazely, can you also update the Readme & add a test (if you can, you don't have to but that'd be better) please ?

Travis and I aren't getting along this morning it seems...

Ok, fixed the module issue I introduced, but now Travis is complaining about not being able to find the new CSS file I added for testing.
Error: Unable to load /base/tests/unit/lazyLoad/test.NoExtCss
The test.NoExtCss file is in the unit/lazlyLoad folder though... /confused
Apologies, Travis CI isn't something I'm very familiar with, could you take a look when you get a moment and let me know how I broke it? :-)

There was a mistake in the test, I fixed it and merged the PR in https://github.com/ocombe/ocLazyLoad/commit/725ceb9a51986b67a770de12b0cdd810e92cfb2d
Thanks again for all of this!

Ok I found out why it is not working on Travis, I run my local tests on Chrome but Travis uses Firefox.
With firefox when you try to load a css file that is not .css you will get the following error:
The stylesheet [...]test.fakecss has not been loaded because its MIME type, « text/plain », is not « text/css »
The server should serve the file with the good mime type. It's too complicated to do this in Travis so I changed the test to template injection instead :)

Silly Travis.
Thanks, it was driving me nuts.

It's not so much travis than firefox :)

Silly Firefox.
(To be fair, Chrome on my Windows PC shows the same exception in the console, but it's only a warning and it still loads the sheet)


ERROR: Not enough free space in /storage

Operating system
Debian 12
Description
On Debian 12 (with Kicksecrue installation), I run:
$ sudo docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows
Installation fails with:
... ❯ Downloading product information from Microsoft server... ❯ Downloading Windows 11... /storage/tmp/win11x64.esd                                  100%[========================================================================================================================================>]   3.88G  64.7MB/s    in 63s      ❯ Extracting Windows 11 bootdisk... ❯ ERROR: Not enough free space in /storage, have 13 GB available but need at least 15 GB.

❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i9 9900K CPU | RAM: 30/63 GB | DISK: 17 GB (ext4) | HOST: 6.1.0-23-amd64...
❯ Requesting Windows 11 from Microsoft server...
❯ ERROR: Microsoft blocked the automated download request based on your IP address.
❯ Failed to download Windows 11, will try a diferent method now...
❯ Downloading product information from Microsoft server...
❯ Downloading Windows 11...
/storage/tmp/win11x64.esd                                  100%[========================================================================================================================================>]   3.88G  64.7MB/s    in 63s
❯ Extracting Windows 11 bootdisk...
❯ ERROR: Not enough free space in /storage, have 13 GB available but need at least 15 GB.
`
Screenshots (optional)
No response

Me too


Create separate directory/CMakeLists.txt for testing against wxWidgets 3.2

Description:

Internally, I'm currently building both wxUiEditor and sdi_test with the current wxWidgets 3.3 sources. However, betas and releases need to be built with the current stable version (3.2). In addition, there are occasions where I need to verify that something works correctly on either build, and I want to check it quickly. Right now, it requires changing the CMake options and rebuilding.
Creating a directory under the root with it's own CMakeLists.txt file and build/ directory would make for the fastest way to test on a different version of wxWidgets -- at the expense of roughly 7 gigs of disk space. The disk overhead could be significantly reduced if only a Debug build was allowed. It should also probably use a static wxWidgets library just to make it easier to debug without confusing the debugger about which wxWidgets dlls to use -- and it also matches how we build final Release version.

With a daily build in place that creates an executable, the need for this is now fairly minimal. I'm going to close it unless the daily build turns out not to solve the issue.


Date-Range Single Field Syntax

Hi, can anyone help me regarding the syntax involved in exposing the to/from values from a single-field.
I'd like to use the to/from values as part of my BETWEEN clause in my PL/SQL query.
I understand that the two value are separated by " - ", but I am unable to extract the values before and after the " - ".
I tried this to_date(SUBSTR(:P2_DATERANGE, 1 ,INSTR(:P2_DATERANGE, ' - ', 1, 1)-1),'DD-MON-YY') (for example) to extract the first value, but it doesn't seem to be working.
Any help would be greatly appreciated.

@DavidFerrol
If it is for filtering then you can inspect this SQL Query which I've testes on emp table:
with test as (
  select
    to_date(substr('1981-04-02 - 1981-06-09', 1, instr('1981-04-02 - 1981-06-09', ' - ')), 'YYYY-MM-DD') date_start,
    to_date(substr('1981-04-02 - 1981-06-09', instr('1981-04-02 - 1981-06-09', ' - ')+3), 'YYYY-MM-DD') date_end
  from
    dual
)
select
  emp.*
from
  emp,
  test
where
  hiredate between date_start and date_end

which results in showing rows according to given range of dates:

I think I forgot to say thanks! 🤭
This was a great help and fixed my problem.
Sorry for the late reply and thanks for this solution.


Raise ValueError

When I run the code, it raise ValueError("Too many dimensions: %d > %d." % (ndim, ndmax)). It show that too many dimensions: 3 > 2. who can help me? Thank you!

Can you share the entire trace and the exact command that you ran?

Although I am still a beginner, I intend to run the program first. At the terminal I enter the code: python train.py --arch fcn8s --dataset ade20k. The result is the following:
Traceback (most recent call last):
File "train.py", line 161, in
train(args)
File "train.py", line 82, in train
for i, (images, labels) in enumerate(trainloader):
File "/home/gshdong/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 201, in next
return self._process_next_batch(batch)
File "/home/gshdong/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 221, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
ValueError: Traceback (most recent call last):
File "/home/gshdong/anaconda2/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 40, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/gshdong/pytorch-semseg-master/ptsemseg/loader/ade20k_loader.py", line 43, in getitem
img, lbl = self.augmentations(img, lbl)
File "/home/gshdong/pytorch-semseg-master/ptsemseg/augmentations.py", line 15, in call
img, mask = Image.fromarray(img, mode='RGB'), Image.fromarray(mask, mode='L')
File "/home/gshdong/anaconda2/lib/python2.7/site-packages/PIL/Image.py", line 2371, in fromarray
raise ValueError("Too many dimensions: %d > %d." % (ndim, ndmax))
ValueError: Too many dimensions: 3 > 2.

https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/ade20k_loader.py#L40
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/augmentations.py#L15
Since initial lbl type is int32 and Image.fromarray(mask, mode='L') L mode uses 8-bit pixels rather than 32-bit.
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/ade20k_loader.py#L63
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/ade20k_loader.py#L43
Therefore, I think that lbl = self.encode_segmap(lbl) should be done before augmentation img, lbl = self.augmentations(img, lbl).

Since initial lbl is read with 3 channels.
Image.fromarray(mask, mode='L') L mode can't read mask with 3 channels, therfore we got ValueError: Too many dimensions: 3 > 2.
If we convert lbl to 1 channel first by lbl = self.encode_segmap(lbl), then we won't get this error.

Since ADE20K (http://groups.csail.mit.edu/vision/datasets/ADE20K/) has more than 150 classes,
after encode_segmap conversion, the maximal value of class index in ADE20K training set is 3145, which is larger than 3000.
There are 2 ways, one way is to convert class index from ADE20K to MIT SceneParse150, and the other way is to keep all the classes in ADE20K.
The first way is to convert class index from ADE20K to MIT SceneParse150, which is the same classes as mit_sceneparsing_benchmark_loader.py.
We can convert by index mapping between ADE20K and MIT SceneParse150,
and refer to https://github.com/CSAILVision/sceneparsing/blob/master/convertFromADE/convertFromADE.m and https://github.com/CSAILVision/sceneparsing/blob/master/convertFromADE/mapFromADE.txt.
Then we can do index mapping in encode_segmap by modifying the followings:
def load_index_mapping(self, mapFromADE_file_path='mapFromADE.txt'): # 150 classes
    mapFromADE_file = open(mapFromADE_file_path, 'r')
    index_mapping = np.empty((0, 2))
    for i, line in enumerate(mapFromADE_file.readlines()):
        index_mapping = np.vstack([index_mapping, (int(line.split()[0]), int(line.split()[1]))]) # (new_index, original_index)
    return index_mapping

def encode_segmap(self, mask):
    # Refer : http://groups.csail.mit.edu/vision/datasets/ADE20K/code/loadAde20K.m
    #         https://github.com/CSAILVision/sceneparsing/blob/master/convertFromADE/convertFromADE.m
    index_mapping = self.load_index_mapping()

    mask = mask.astype(int)
    label_mask = np.zeros((mask.shape[0], mask.shape[1]))
    label_mask = ( mask[:,:,0] // 10 ) * 256 + mask[:,:,1]

    # Map to the top 150 classes (1 ~ 150)
    label_output = np.zeros_like(label_mask)
    for l in np.unique(label_mask):
        if l in index_mapping[:, 1]:
            label_output[label_mask == l] = index_mapping[index_mapping[:, 1] == l, 0]
    return np.array(label_output, dtype=np.uint8)

The second way is if we want to keep original 3146 classes in ADE20K,
we may need to set self.n_classes = 3146 and return label_mask with uint16 type in encode_segmap.

In addition, we can fix some minor problems in ADE20K loader.
The first problem is reading grayscale image error.
Although there are a few grayscale images in ADE20K,
refer to https://github.com/CSAILVision/semantic-segmentation-pytorch/blob/7a794dce0c58014c87c6f397292cd9af0811365f/dataset.py#L114,
img = m.imread(img_path, mode='RGB') we can specify mode='RGB' to read both RGB and grayscale image in RGB mode with 3 channels.
The second one is reading file list error.
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/ade20k_loader.py#L25-L27
We can replace these lines with the following lines, then we can store the correct training and validation file lists.
split_dict = {"training": "training", "val": "validation",}
for split_key in split_dict:
    file_list = recursive_glob(rootdir=self.root + 'images/' + split_dict[split_key] + '/', suffix='.jpg')
    self.files[split_key] = file_list

The third one is that resizing labels may yield fewer classes.
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/ade20k_loader.py#L68
We can replace this line with the following lines in mit_sceneparsing_benchmark_loader
https://github.com/meetshah1995/pytorch-semseg/blob/dfecf4973c702c9be4b55d5066bd4a79bcb0c1bb/ptsemseg/loader/mit_sceneparsing_benchmark_loader.py#L102-106.

After modifying the above mentioned code in both ways, I can traverse all the training data by PYTHONPATH=. python ptsemseg/loader/ade20k_loader.py without any error,
and I can also train with FCN and ADE20K by python train.py --arch fcn8s --dataset ade20k without any error.


Revert "delete a reversible stackable values class"

Reverts ruby-grape/grape#1953
Includes #1959

@dnesteryuk feel free to open a new PR for inheritable_setting

@dnesteryuk feel free to open a new PR for inheritable_setting

I took those in https://github.com/ruby-grape/grape/pull/1962

Confirm: now everything works again for existing project :)


ocamlPackages.hacl_x25519: 0.2.0 -> 0.2.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://opam.ocaml.org/packages/hacl_x25519/hacl_x255<IP_ADDRESS>.
meta.description for ocamlPackages.hacl_x25519 is: "Primitives for Elliptic Curve Cryptography taken from Project Everest"
meta.homepage for ocamlPackages.hacl_x25519 is: "https://github.com/mirage/hacl"
meta.changelog for ocamlPackages.hacl_x25519 is: ""
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.2.2 with grep in /nix/store/v9rd3008wc3xjq8xf1lxh3j6vps52s48-ocaml4.13.1-hacl_x25519-0.2.2

found 0.2.2 in filename of file in /nix/store/v9rd3008wc3xjq8xf1lxh3j6vps52s48-ocaml4.13.1-hacl_x25519-0.2.2

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

0 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
ocamlPackages.hacl_x25519

Instructions to test this update (click to expand)

Build yourself:
nix-build -A ocamlPackages.hacl_x25519 https://github.com/StridBot/nixpkgs/archive/326ccd204f9f20946b208396aa88aa2daf81e2f5.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/v9rd3008wc3xjq8xf1lxh3j6vps52s48-ocaml4.13.1-hacl_x25519-0.2.2
ls -la /nix/store/v9rd3008wc3xjq8xf1lxh3j6vps52s48-ocaml4.13.1-hacl_x25519-0.2.2/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @sternenseemann for testing.

Result of nixpkgs-review pr 165621 run on x86_64-linux 1

1 package marked as broken and skipped:

ocamlPackages.wodan-irmin

10 packages built:

ocamlPackages.awa
ocamlPackages.awa-lwt
ocamlPackages.awa-mirage
ocamlPackages.git-unix
ocamlPackages.hacl_x25519
ocamlPackages.irmin-containers
ocamlPackages.irmin-git
ocamlPackages.irmin-http
ocamlPackages.irmin-mirage-git
ocamlPackages.irmin-unix

@ofborg build ocamlPackages.hacl_x25519


[lianad] wrong message if try to launch with --daemon but daemon = false in daemon.toml

try to run this:
 lianad --daemon --conf ~/.liana/signet/daemon.toml

got this
A TOML configuration file is required to run lianad. By default lianad looks for a 'config.toml' file in its data directory. A different one may be provided like so: '--conf <config file path>'.
A documented sample is available at 'contrib/lianad_config_example.toml' in the source tree (https://github.com/wizardsardine/liana/blob/v1.0/contrib/lianad_config_example.toml).
The default data directory path is a 'liana/' folder in the XDG standard configuration directory for all OSes but Linux ones, where it's '~/.liana/'.

the message let user guess that the toml file is missing, but in fact it's just about the .toml contain this line:
daemon = false

shouldn't we instead apply a priority on the arg pass to cli instead param in toml file?

Your command is invalid, lianad takes only one argument. The --conf. All configuration parameters must be part of the file.
-------- Original Message --------
On Sep 9, 2023, 11:25 AM, pythcoiner wrote:

try to run this:
lianad --daemon --conf
~
/.liana/signet/daemon.toml
got this
A TOML configuration file is required to run lianad. By default lianad looks for a 'config.toml' file in its data directory. A different one may be provided like so: '--conf '.
A documented sample is available at 'contrib/lianad_config_example.toml' in the source tree (https://github.com/wizardsardine/liana/blob/v1.0/contrib/lianad_config_example.toml).
The default data directory path is a 'liana/' folder in the XDG standard configuration directory for all OSes but Linux ones, where it's '~/.liana/'.
the message let user guess that the toml file is missing, but in fact it's just about the .toml contain this line:
daemon = false
shouldn't we instead apply a priority on the arg pass to cli instead param in toml file?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

so in that case shouldn't we inform user that --conf is an invalid argument?

--conf is not invalid.. This is the only valid argument. All others must be part of the config file pointed to by --conf.
-------- Original Message --------
On Sep 9, 2023, 12:35 PM, pythcoiner wrote:

so in that case shouldn't we inform user that --conf is an invalid argument?
—
Reply to this email directly, view it on GitHub, or unsubscribe.

We could be clearer that --conf is the only accepted command line argument, yeah.


Use merge Patch when patching the spec too

Signed-off-by: Arnob kumar saha<EMAIL_ADDRESS>

 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.


Fix/applics 884 representation

Describe your changes
Ensure a 404 is returned when a requested representation is not found.
APPLICS-884

refactor: use applicationData from res.locals instead of fetching again
Toggling between English and Welsh is handled by a middleware earlier in
the stack.
fix: throw a NotFoundError when a representation is not found
test: update unit tests for representation controller

Tested locally.
Type of change 🧩

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[x] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[x] I have provided details on how I have tested my code
[x] I have referenced the ticket number above
[x] I have provided a description of the ticket
[x] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 2.30.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.36.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.15.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Does it make sense to have an external package dependency in a Core project?

https://github.com/ardalis/CleanArchitecture/blob/387bd443bbd53e64f4234ab88b8e9440ed7a23e9/src/Clean.Architecture.Core/Services/ToDoItemSearchService.cs#L1

For my use-case I would rather use a different result-object to return from Core, that is not http-specific and implement maybe a mapper in the Infrastructure project.

I would love to hear your thoughts!

I would suggest that there is nothing inherently wrong in Core having a dependency on an external package. Every Core project takes a dependency on the framework it is built on, which is fine, because Core is truly dependant on the chosen framework.
The concept that Core should not have dependencies comes from this: All code (not just Core) should be designed in a way that it does not have unnecessary depedencies. As Core is meant to express only the pure business logic, it follows that any dependencies on lower-level parts of the codebase are due to sub-optimal design, and are by nature unnecessary dependencies.
Therefore if there is an external package that is deemed necessary to assist Core in its functionality, that is a true dependency and there is no reason to refrain from depending on it.

Thanks for the answer!

Excellent answer, as a complement to it, it is important to point out that if a Core project has a dependency, it must have its use in a decoupled way, that is, used in an abstracted way, because if the dependency becomes deprecated, stay easier to replace with another dependency or implemented code.
It's just a thought of mine for long term on Core projects, correct me if I'm wrong 😊

That's absolutely true, but would it be fair to say that any dependency in any code should ideally be written in this way?

Agreed with answers above. One more to add:
The "rule" about Core and dependencies is that it shouldn't have any that couple it to infrastructure or implementation details. Pure code libraries like Result, GuardClauses, FluentValidation, etc are fine since they don't bring in any non-code dependencies.
If you don't like a particular library used in this template, you're certainly welcome to swap it out. You can even fork this repo and make your own version with the libraries you prefer. It's all open to use however works best for you.


Session management

This may be caused by the memcached issue pointed out in the Wiki, but I noticed some unexpected behavior with session management. Under PHP7, I could not reliably log in as a customer while logged in as an admin. When using the customer login form, it reliable required 2 attempts. However programmatically I could not login as a customer while logged in as an admin.
I know it's oddly specific, but I thought I would mention it in case there was any other wonky behavior regarding sessions.

We migrated our sessions to Redis to avoid issues with Memcache. You may want to consider this as well, worth testing to see if your issue persists.

@J-Fricke Thanks for your suggestion. Turns our we weren't even using memcache. ¯_(ツ)_/¯ I've updated the OP.
At any rate, for this client, being able to login as an administrator and client at the same time was critical so I reverted them back to PHP 5.


fix: Blitzar api should accept bls12-381 affine elements ( PROOF-706 )

Rationale for this change
Projective elements can be represented in different ways. Projects like Arkworks use Jacobian coordinates while zkcrypto use projective coordinates. Conversion from Jacobian to affine coordinates uses the equation (x : y : z) → (x/z^2 , y/z^3), while conversion form projective to affine coordinates uses the equation (x : y : z) → (x/z, y/z). This means using projective coordinates from Arkworks do not match projective coordinates from zkcrypto after conversion to affine coordinates.
Updating the Blitzar api to accept affine elements will not require the user to convert between different projective representations in order to use it. This update will also match Arkwork's MSM interface, which also only accepts affine elements.
Note on performance: conversion of affine to projective elements simply adds a z=1 and checks for infinity to the affine coordinate. Addition is faster on projective elements.
What changes are included in this PR?

The sxt_bls12_381_g1 type in blitzar_api now represents an affine element.
The sxt/curve_g1/type/conversion_utility component can batch convert affine elements (element_affine) to projective elements (element_p2).
The cbindings/pedersen component now accepts the affine elements and batch converts them to projective elements before performing MSM.

Are these changes tested?
Yes

Converting Jacobian coordinates to affine (x : y : z) → (x/z^2 , y/z^3). Converting projective coordinates to affine: (x : y : z) → (x/z, y/z).

Please fix sentences.

while conversion form projective

Typo

:tada: This PR is included in version 1.3.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Data table styling

Changes
Style update to data table

[delete] branch

Additional information

You may refer to this BOOKINGSG-4463

a scrollbar appears for the loading state

accessibility note: Voiceover does not announce the column header but the table markup seems fine, will try to find out why

Hmm I tried again on a different Macbook and it's working as expected. I assume it's a bug specific to the previous device I was testing on. No action needed.


[WIP] Integrate LiveKit for doctor connect

This PR adds LiveKit integration to the Care platform, enabling doctors to connect with each other directly from the platform. The integration supports both voice and video calls.

Backend PR: https://github.com/coronasafe/care/pull/1227

Closing this PR due to lack of recent progress.

Opening this PR to test the livekit integration, will close it after testing it


Added support of four more AWS regions for AMIs

When i tried to deploy Chef extension at us-east-1 region, i failed, because of:
A client error (ValidationError) occurred when calling the CreateStack operation: Template error: Unable to get mapping for RegionMap::us-east-1::AMI

Now we would have support:

eu-west-1
us-west-1
us-west-2
eu-central-1
us-east-1
ap-southeast-2

Mapping copied from ADOP SWARM template

LGTM.


ExceptionInInitializerError on the last version 1.3.0 for Android

While trying to register Tink, app crashes at KeysetHandle.generateNew(AeadKeyTemplates.AES256_GCM) Same result in another key templates.

Could you please provide the full stack trace? There's a known issue with protobuf. If you also depend on for example Firebase, there's a protobuf dependency conflict.

@thaidn So we're running into an exception in initializing that came up in 1.3.0 in our CI that uses Firebase Test Lab. Generally, it passed, but we have another
E/TinkSecurity(19146): Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'com.google.protobuf.Writer$FieldOrder com.google.protobuf.Writer.fieldOrder()' on a null object reference
E/TinkSecurity(19146): 	at com.google.protobuf.MessageSchema.writeTo(MessageSchema.java:2529)
E/TinkSecurity(19146): 	at com.google.protobuf.GeneratedMessageLite.writeTo(GeneratedMessageLite.java:268)
E/TinkSecurity(19146): 	at com.google.crypto.tink.KeyManagerImpl.newKeyData(KeyManagerImpl.java:121)
E/TinkSecurity(19146): 	at com.google.crypto.tink.Registry.newKeyData(Registry.java:716)
E/TinkSecurity(19146): 	at com.google.crypto.tink.KeysetManager.newKey(KeysetManager.java:231)
E/TinkSecurity(19146): 	at com.google.crypto.tink.KeysetManager.addNewKey(KeysetManager.java:91)
E/TinkSecurity(19146): 	at com.google.crypto.tink.KeysetManager.rotate(KeysetManager.java:68)
E/TinkSecurity(19146): 	at com.google.crypto.tink.integration.android.AndroidKeysetManager.readOrGenerateNewKeyset(AndroidKeysetManager.java:306)
E/TinkSecurity(19146): 	at com.google.crypto.tink.integration.android.AndroidKeysetManager.<init>(AndroidKeysetManager.java:124)
E/TinkSecurity(19146): 	at com.google.crypto.tink.integration.android.AndroidKeysetManager.<init>(AndroidKeysetManager.java:88)
E/TinkSecurity(19146): 	at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:185)
E/TinkSecurity(19146): 	at com.sample.TinkCrypto.initTink(TinkCrypto.kt:124)

This is a known issue. We're working on a fix. It should be available in HEAD-SNAPSHOT next week and included in 1.4.0-RC2.

This is fixed in HEAD-SNAPSHOT. Please try it out to see if it helps, instructions are at https://github.com/google/tink/issues/357#issuecomment-626088722.

This is a dup of #301. Let's move the discussion over there.


ARROW-5826: [Website] Blog post for 0.14.0 release announcement

I plan to publish by noon US/Eastern time on Monday July 8 -- please post commits with any edits or push directly to my branch and I will include the changes in the post.

I've fixed some typos.
I've also added the suggestion by @emkornfield.
I've also added "Packaging" section. I hope that this section is tweaked by native English speakers.

@kou I'll review your changes. Thanks!

+1


Update README to clarify intent

From the README:
This comes in very handy when you have to derive from default configuration in order to test some aspects of your code.
I believe a better word here would be deviate, instead of derive.
This comes in very handy when you have to deviate from the default configuration in order to test some aspects of your code.

You're absolutely right. 😄 Thanks for the hint, very helpful for a non-native English writer like me!


A few changes to Lesson 3

[ ] Tutorial assumed a file existed that did not. Fixed in 64cbbd3.
[ ] curl for Kansas data was returning 404. Fixed in 4fcd3bd.

Great fix, thanks for taking the time to make a pull request! I've added you to the AUTHORS file!


Error: Failed to resolve entry for package "solid-testing-library".

Version 0.4.0 tests are faling with the following error:
Error: Failed to resolve entry for package "solid-testing-library". The package may have incorrect main/module/exports specified in its package.json.
here is the repo:
https://github.com/HyperGrapher/solid-boilerplate-with-router-and-gsap/actions/runs/3416557288/jobs/5705891534

Building a package from main seems to work. @atk could you please release a new version?

I have already prepared it the day before yesterday, but @ryansolid has to make the release. He was at the jamstack conference, so he couldn't do it in a timely manner.

0.5.0 is released, which fixes this and adds a few other goodies. Please re-test.

thanks for quick remedy, you people rocks:)

Thanks for re-testing!


Integrate speedscope

This PR achieved:

integrating Speedscope to TiDB dashboard with the following improvements:

ignore samples with negative weights
make stack name more concise
set left_heavy as default view mode

unifying fetch method for all instances by adding Content-Type:application/protobuf to TiKV/TiFlash request header.
supporting to view CPU profiling of each instance as flamegraph online by importing protobuf file.
hiding Graph temporary and will support in the near future.

Many thanks to speedscope for the amazing work, here we use the Left Heavy view mode to understand where all the time is going in situations where there are hundreds or thousands of function calls interleaved between other call stacks. Other view modes and more details can be referred here.

Seems that using StaticFS just causes you more trouble than simply putting all assets in public/ and reuse current logics, without breaking current code guarantees :)
This is the downside of introducing a new mechanism.

I have been updated the integration method, which is copy all assets of speedscope from node_modules to `public/speedscope/' without changing current endpoint mechanism.

/merge


chore: exclude copy-paste of golangci-lint version

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: #916
What is the new behavior?

Other information

@asmyasnikov hi, set labels pls :)


Update readme for PAC test

Pipelines as Code CI/news-demo-ci-lint has successfully validated your commit.

StatusDurationName

✅ Succeeded
2 minutes
fetch-repository

✅ Succeeded
6 minutes
golangci-lint


fix #4069 about readonly in TextInput

This commit fixes #4069
##Illustration
This issue is because in the src we have such bindings:
def handle_readonly(instance, value):
    if value and (not _is_desktop or not self.allow_copy):
        self.is_focusable = False

fbind('readonly', handle_readonly)
fbind('focus', self._on_textinput_focused)
handle_readonly(self, self.readonly)

Notice that here Kivy actually does nothing when you alters self.readonly.
However, when on_double_tap is triggered, it checks self.readonly before you actually sets it tobe False, then it sets the self._editable to be False.
def _on_textinput_focused(self, instance, value, *largs):
        self.focus = value

        win = EventLoop.window
        self.cancel_selection()
        self._hide_cut_copy_paste(win)

        if value:
            if (not (self.readonly or self.disabled) or _is_desktop and
                self._keyboard_mode == 'system'):
                self._trigger_cursor_reset()
                self._editable = True
            else:
                self._editable = False
        else:
            Clock.unschedule(self._do_blink_cursor)
            self._hide_handles(win)

This explains the reason that redundant focus call fixes.
I added the _editable property check&change binding to the readonly and it makes sense.

@akshayaurora hi, would you check if this pr is correct?

@xg-wang nice work!


An error occured in the send middleware:: TypeError: Cannot read property 'id' of undefined

I am builiding a facebook messenger bot and I have activated debug and this is the error that I am getting :
App 26242 stdout: info: An error occured in the send middleware:: TypeError: Cannot read property 'id' of undefined
I don't know what it means and what may probably be the cause since I am not using personnaly a middleware in the bot.
I want to understand it and see if there is any problem with my code.

I didn't make any change on botkit core..I am using the version  "botkit": "0.6.8",
bot.startConversation(message,function(err,convo){
messageToSend.forEach(function(el,index){
convo.say(el);
convo.next();
if (index == messageToSend.length-1){
convo.say({sender_action:'type_off'});
convo.next();
}
});
    });

@MagSag can you share more code than :
console.log("Not an array");
        console.log(message);
bot.reply(message, { sender_action : "typing_off" });
console.log("Message to send");
console.log(messageToSend);
        bot.reply(message,messageToSend);


Consider Basic Auth for Actuator endpoint

Communicate with Infrastructure, if and how we should enable basic auth on the submission actuator endpoint.

Closing this, as it's not relevant anymore...


Enable multiple tourguides

Note (Please read)
Updated

Due to the limitation of the rn-tourguide library, there could only be 1 tourguide inside the application. This means that in the case where settings has 4 steps, and home has 7 steps, when you click through the 4 steps in the settings page, it will continue with the fifth step that belongs to the home screen guide. This is because the step is shared throughout the whole application.
This doesn't allow us to follow the design.
I found. a fork of this repository that enables the project to contain multiple tourguides. This is the link to that repository: https://github.com/b-steel/rn-tourguide/tree/multiple-tours
I then create a new folder inside the src folder called "library" this will contain any external libraries that we want to hijack and include it in our project in the future. For compatibility and efficiency reasons, eslint rules will be disabled for this folder.
I have copied the content in the src folder of this forked repository and include it in src/library/rn-multiple-tourguide folder of our project.

Please check it out, or try running this in your emulator to ensure that everything's working fine. The expected result is that the tourguide on the home page and the settings page should follow their respective designs in figma. And it should not show any steps that doesn't exist in its own page.
This is the result of implementing this change:
https://user-images.githubusercontent.com/53035529/160285167-9a6744cf-ce2e-46b1-8f3e-df2aa0e1701a.mov

Could you post the screen recording for the change? And discuss more on 1 tour guide instance in the application for the team too?

Could you post the screen recording for the change? And discuss more on 1 tour guide instance in the application for the team too?

Updated PR notes

Updated for the Elderly and Caretaker home screens.


Relation type is required.

Hi ,
I'm getting this error if there is no type parameters in my relation object 'The member type is required.'
Do you really need the type parameter in relationships ? Is there any way to overcome this?
Thanks
`{
"data": {
"type": "tickets",
"attributes": {
"duedate" : "",
"subject" : "test_subject",
"detail" : "test_detail"
},
"relationships": {
		"slaplan": {
			"data": {
				"id": "1"
			}
		},

}
}`

@yzcmrfrk

A resource identifier is defined by the spec as the combination of the "type" and "id". So yes, the error is correct - you must provide the "type" that the "id" belongs to, otherwise there's no way to work out what the "id" is referring to.


Race condition when relating quickly after deploying

When deploying the charm using Terraform, I noticed that if I deploy and relate the charm in the same terraform apply command, the charm would be permanently stuck in an error state.
After some investigation (thanks @kian99) it seems that the charm on-relation-changed hook is fired and tries to call the openFGA app, which may or may not have been started yet.
If openFGA is deployed, and juju is given enough time, then the relation is added, the error does not happen.

I am observing a similar issue on gh runners.
Openfga-k8s gets in error state with message openfga-k8s/0 [idle] error: crash loop backoff: back-off 2m40s restarting failedwhen postgres is taking long to spin up. After postgres turns active, openfga gets stuck waiting to connect to its container, failing the "update-status" hook:
unit-openfga-k8s-0: 16:31:46 ERROR unit.openfga-k8s/0.juju-log openfga:14: openfga is not running
<...>
unit-openfga-k8s-0: 16:42:49 ERROR unit.openfga-k8s/0.juju-log Cannot connect to container openfga
unit-openfga-k8s-0: 16:42:49 ERROR unit.openfga-k8s/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/./src/charm.py", line 625, in <module>
    main(OpenFGAOperatorCharm)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/main.py", line 456, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/framework.py", line 351, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/framework.py", line 853, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/framework.py", line 943, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/./src/charm.py", line 211, in _on_update_status
    self._ready()
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/./src/charm.py", line 448, in _ready
    if self._migration_is_needed():
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/./src/charm.py", line 424, in _migration_is_needed
    return getattr(self._state, key, None) != self.openfga.get_version()
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/src/openfga.py", line 39, in get_version
    _, stderr = self._run_cmd(cmd)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/src/openfga.py", line 84, in _run_cmd
    process = self.container.exec(cmd, stdin=input_, environment=environment, timeout=timeout)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/model.py", line 2719, in exec
    return self._pebble.exec(
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/pebble.py", line 2600, in exec
    resp = self._request('POST', '/v1/exec', body=body)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/pebble.py", line 1754, in _request
    response = self._request_raw(method, path, query, headers, data)
  File "/var/lib/juju/agents/unit-openfga-k8s-0/charm/venv/ops/pebble.py", line 1803, in _request_raw
    raise ConnectionError(
ops.pebble.ConnectionError: Could not connect to Pebble: socket not found at '/charm/containers/openfga/pebble.socket' (container restarted?)
unit-openfga-k8s-0: 16:42:49 ERROR juju.worker.uniter.operation hook "update-status" (via hook dispatching script: dispatch) failed: exit status 1

This was only observed on github runners (see https://github.com/canonical/identity-platform-admin-ui-operator/actions/runs/8051508521/job/21991817378), but wasn't reproducible on an ec2 t2.medium instance.
This might be a race condition as waiting for openfga and postgres to get active before adding other relations fixed the above issue.

@kian99 I'm deploying the latest/edge version

I tried reproducing it again - the charm is not getting into error state anymore when deploying from latest/edge, but I'm observing charms slowness on juju agent version 3.1.0.
In that case, when postgres is taking a long time while awaiting for primary endpoint to be ready, openfga gets blocked with message Please run schema-upgrade action. It eventually gets active without intervention (see logs).
This agent version might be broken as the deployment is smooth on 3.1.7.
To reproduce:
juju deploy openfga-k8s --channel edge
juju deploy postgresql-k8s --channel 14/stable
juju relate openfga-k8s postgresql-k8s

This should be fixed by https://github.com/canonical/openfga-operator/pull/42


Repository URL - always use distro base_path, show in detail screen

The getRepoUrl helper went through some changes recently, #3346 & #3691,
but it only works when repository.name === distribution.base_path now.
That's not true for repositories without a distributions, repositories with spaces in name, or any repository where there was a distribution name clash and we created a new name.
=> make Repository Copy CLI configuration query the distribution api and use the actual base_path / fail when no distribution.
=> move loading distributions on the repo detail screen from a LazyDistributions component in DetailTab to the query method, allowing Copy CLI to be disabled on detail screen when no distributions,
=> change page addAlert to support alert ids - used to replace a "loading" alert with an "error"/"success" alert
And start showing the repository URL on the detail screen.

Cc @newswangerd this should add copiable repository URLs in detail screen.

Cc @newswangerd this should add copiable repository URLs in detail screen.

This looks good! Thanks for doing this


Optional validate method may not be applied when using a schema.

The validateSchema function iterates over a param object's keys when using a schema. If you have rules that come before optional they will be used before it can be determined that validation should be skipped because you specified optional in your schema.
This will only work if you make sure to specify optional first in your schema object literal, but because JavaScript does not guarantee object property order, this only happens to work because of the behavior of V8 where properties tend to come out in the same order they were put in.
I think it might make sense to check for optional before iterating through a param config's properties.

Thanks for pointing this out! Not sure how soon I can get to this, but we are always open to PRs.

@meddy @rustybailey
The very first idea how it can be solved is that we could check for schema[param].optional before running other validation methods, something like:
function validateSchema(schema, req, loc, options) {
  ...
  var validator = new ValidatorChain(param, null, req, currentLoc, options);
  var paramErrorMessage = schema[param].errorMessage;

  if (schema[param].optional) {
    validator.optional(schema[param].optional.options)

    if (validator.skipValidating) {
      continue; // continue with next param in schema
    }
  }

  for (var methodName in schema[param]) {
    if (methodName === 'optional') {
      continue; // because it is already checked
    }
  }
}

Will see for other, maybe cleaner ways to do it


Could hue support spark 1.4 or 1.5, thanks?

I was using spark 1.4
I was not able to build hue with set config spark 1.4 or 1.5, and though building success with config spark 1.3 in pom.xml
hue viewing spark job went into error:
AttributeError at /jobbrowser/jobs/application_1435834774266_6980
'SparkJob' object has no attribute 'preemptedResourceVCores'
detail see:http://stackoverflow.com/questions/31331282/cloudera-hue-can-not-view-spark-job-history

Yes, 1.4 and 1.5 are not supported yet: https://issues.cloudera.org/browse/HUE-2853

thanks, is there a road map for supporting this? We'v great expecting this:)

There is no roadmap, it should be pushed today :)
https://review.cloudera.org/r/5664/

thanks @romainr , I saw the CR is still not shipped , cause 3 issues left,  with good luck ,and shipped it soon:)

pushed!


Fix issues with tileSize

Validate TestTileSource parameters in the REST API layer
Internal APIs should mostly assume that they are being called with
the correct types.
Necessary type conversion that's required due the limitations of HTTP
parameters is really an additional part of HTTP deserialization, and
should be performed by the REST API layer.
Make TIFFTileSource use tileWidth and tileLength, instead of tileSize
This fixes a bug where the TileSource.getMetadata was returning "null"
for the tileWidth and tileHeight.
Since non-square tiles are now supported, this is simpler than trying to
also sometimes still use tileSize.
Use a BytesIO to store image data

@manthey PTAL. Let me know if you disagree with anything.

LGTM.


Any thoughts on using annotations to generate swagger doc output?

Perhaps just for the model and handler responses. Or does anyone know of such a tool that works well with serverless?

Very good idea! By the time I created this project I was actively looking for such a tool, but I was not able to find any :(


25-test_x509.t: test dots in CA file path

Test whether dots in the CA file path breaks the default CA serial number file path.
Before commit https://github.com/openssl/openssl/commit/f223e8fd1c89d0e47e2acafe14d7f3a4e8a05742, given a CA file at: test-runs/test_x509/test_x509.folder/ca-cert.pem, the -CAcreateserial path would have been at test-runs/test_x509/test_x509.srl, not test-runs/test_x509/test_x509.folder/ca-cert.srl.
Tests for:

https://github.com/openssl/openssl/issues/6203
https://github.com/openssl/openssl/issues/6489
https://github.com/openssl/openssl/pull/6566
https://github.com/openssl/openssl/issues/10442

I saw that issue https://github.com/openssl/openssl/issues/10442 was open, and misread the strrchr as strchr and assumed this bug was still an issue, despite it having been fixed by https://github.com/openssl/openssl/commit/f223e8fd1c89d0e47e2acafe14d7f3a4e8a05742. :facepalm:
Still, since I went through the trouble of writing the test case anyway (and the fix in https://github.com/openssl/openssl/pull/6566 didn't add tests), I thought I might as well make a PR!

By the way, can somebody with triage permissions please mark https://github.com/openssl/openssl/issues/10442 as a duplicate of https://github.com/openssl/openssl/issues/6203 and https://github.com/openssl/openssl/issues/6489 and then close it as fixed by https://github.com/openssl/openssl/pull/6566? The issue has a lot of upvotes and even a recent commenter.
Checklist

[x] tests are added or updated

It looks like #10442 is reporting two problems, one is fixed by #6566.

This pull request is ready to merge

Merged to master branch. Thank you for your contribution.