Can JTAppleCalendar reload individual cells ???

7.0.6 =) while reloading the entire JTAppleCalendarView is obviously an option, seems like massive overkill ... if one only desires to reload, for example, a cell representing a single date in time.
Thoughts?

Answer: YES. Glad to see ... aside from reloadData(), JTAC offers more helper functions like reloadDates(dates: [Date]) and even reloadData(with anchor: Date?). cool.


[FEAT] Split APK support

Hi!
Thanks for your work, using apktool and it greatly simplifies researching apps :+1:
Is Split APK support, specifically resolving APKTOOL_DUMMY_ resource names, in scope of this project? Maybe I'm missing something and it's already there?
I wrote a small python script to go over split APK res XMLs and patch all the textual occurrences automatically, after that I started wondering if it should be somewhat integrated into apktool or released standalone.
My goal with this script was to merge everything back into base.apk and not have to install split APKs.

@DieHertz can you share your work,?

@DieHertz can you share your work,? The Python script I mean.

I uploaded it to my GitHub page, you may need to tinker with APK_DIRS variable a bit for now.
I also think I know how to replace BLACKLIST with removing empty entries from *.xml files, but had no time to implement it yet.
https://github.com/DieHertz/split-apks-merger

There is not any support for split apks - Apktool would need an entire rewrite to be able to support the notion of split apks.
There has been a few of these requests, so I added it to the roadmap - https://github.com/iBotPeaches/Apktool/blob/master/ROADMAP.md#split-apk-support


Revert "Merge pull request #1315 from GDRDABARERA/tokenTimePerSP"

This reverts commit 7f8f00dc6040621940cbb3b9e36d3810c20e6537, reversing
changes made to a5820baaf7d426e1183459bec7144d81a91dec57.

Registry based expiry time configuration is not used anymore. Hence this test is not valid.


chore: conform R-setup.md to reality

Related Issues/PRs

#1943
https://github.com/microsoft/SynapseML/issues/1943
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
Updated docs in R-setup.md to reflect the fact we don't have an uber package for R
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[x] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[x] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
79
100
70
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
79
100
70
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
94
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
94
100
100
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
78
100
53
link
:white_check_mark:

website/docs/reference/developer-readme.md
84
100
65
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

/azp run

Codecov Report

Merging #1946 (6b0d1b4) into master (6efa060) will decrease coverage by 63.71%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #1946       +/-   ##
===========================================
- Coverage   87.05%   23.35%   -63.71%
===========================================
  Files         305      305
  Lines       15993    15993
  Branches      839      839
===========================================
- Hits        13923     3735    -10188
- Misses       2070    12258    +10188

see 244 files with indirect coverage changes

/azp run

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/docs/reference/R-setup.md
78
100
53
link
:white_check_mark:

website/docs/reference/developer-readme.md
85
100
62
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx


/var/lib/samba/usershares. Error No such file or directory

nemo 를 터미널에서 열면 아래와 같은 오류
Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

sudo usermod -aG sambashare $USER


types are missing in the source code

Hi there, thanks for the great plugins, they help me a lot.
Although the types are published in the npm registry, it is ignored in the source code. Could you please add it here too? Thanks!
https://github.com/chialab/rna/blob/5e26622d437a052121220116891492c44496b12b/.gitignore#L4

Hello!
Typescript should automatically import types from JS sources since we are using the "checkJs": true flag, aren't they working for you?

Thanks very much for your help, and it was my bad, I did not know tsc can generate JS Doc types definition too. No problems now! Thanks for your great contribution!


Improve general UX between theme variants and icons theme

Preface
Our proposal is to make a new command that will disable the behavior (activated by default) which enable mt theme icon by default when activating/switching a theme variant.
We can also provide separated icons themes to enable the preview through the vscode command palette.
By this way:

The windows reload when changing the icons will not be required anymore
We can offer control over the icon theme auto-apply
We can improve the UX
We can enable the icons theme preview through the vscode api

Develop
Points to cover

[x] Enable/disable autoApplyIcons icons ❶
[x] Add Material Theme Icons variants chooser ❷
[x] Add notification for reload ❸
[ ] Accent chooser preview ❹

❶ Enable/disable autoApplyIcons icons

Show details

[x] Add a new configuration field exposed like the following

"materialTheme.autoApplyIcons": {
  "type": "boolean",
  "description": "Enable/disable auto-apply of Material Them icons"
}

[x] Expose a new command like materialTheme.toggleAutoApplyIcons
[x] Add check for setting when set icons and reload window

NOTE: if autoApplyIcons is enable also the window reload will be fired.

❷ Add Material Theme Icons variants chooser

Show details
This can be achieved using the VSCode icon chooser API.
We should check if we need to build new icon's JSON files or it's just about split up our build in different files, specifying them within the contributes property of the package.json.

[x] Add JSON icons
[x] Fix theme-icons command to reflect the change (remove select variant, rework select accent, check on new flag for autoApplyIcons icon)
[x] On Material Theme icons set, check on flag and eventually set icon accent

❸ Add notification for reload
Related: https://code.visualstudio.com/updates/v1_21#_new-commands
❹ Accent chooser preview
The quick pick of the accent should change the colors live and if exit is called, just revert the changes.
This should be analysed.

Flows with autoApplyIcons
enabled

On setting the theme: set icons, set icons accent and reload. ✅
On setting icons theme: set icons accent and reload. ✅
On set-accent: set accent, set icons accent and reload. ✅
On fix-icons: set correct icon variant, set icons accent and reload. ✅

disabled

On setting the theme: nothing to do - ✅
On setting icons theme: alert user for reload. ✅
On set-accent: set accent, alert user for reload. ✅
On fix-icons: set icons, set icons accent and reload. ✅

NOTE: set icon accent from the current accent selected.
NOTE2: the fix-icons command is excluded from autoApplyIcons flag check when called directly and will reload the window as expected to fix the icons.

i read the #176 discuss about what you try to do with this theme bundle.

While i can understand the approach, and even if i personally rarely change my theme, i think that we are not in the case of an OS.
An OS is shipped to people that are kind of potentially novice, beginners, newbies of the computers, that said, it's really logical that icons are bundled and kind of "mandatory". Newbies don't want to configure, they don't like to use their computer, they want to do a thing, then turn off.
Nerds will find a way, if their passion is icons.
Vscode is not an OS, i mean, it is not a tool designed for newbies. Vscode is a specific and technical code tool designed for qualified persons to be easily extendable, customizable. For a code tool, what i wait is basically "one action, one effect" because it is an easier way to configure, especially for settings or customisation. So, i would personally chose probably to disable auto set or add a false-by-default option
the difference is here. For a newbie tool, the tool should guess and do what the clumpsy people desire.
For the technical tool, the tool should be finely customisable.
Vscode has 2 menus, one for icon theme, one for file&folder theme. Basically, i think its better to let user modify them separately.
Of course, its only my opinion, this is your ext, so, you are the driver. It's not a really annoying or recurring problem so ill continue to use it anyway. as you asked for feedback, i hope it will be useful.

@Guema thank you so much for your feedback, really appreciated. I think at the end we are on the same line and it's worth to add the new command for more personal-customization.

Updating the main message and opened the related PR (WIP).

Everything done.
I can't see a solution for previewing accent setter right now. I think we can drop this from the list and maybe we can rework in a second moment. @equinusocio


Refactoring suggestions

Counter-intuitive issues with the current structure:

All owl objects are located in owlapy/model/init.py.
Conversion methods are scattered in 3 files render.py, parser.py and owl2sparql/converter.py.

Proposed solution:

Group owl objects by semantic meaning in different modules. Import all in owlapy/__init__.py
Relocate converter.py in the owlapy directory, import conversion methods in owlapy/__init__.py.

The first phase of the refactoring is done with #21. Please continue on the second phase defined by the following todos

[ ] Instead of using from owlapy.model import ... we use explicit imports, e.g. from owlapy.owl_class_expression import ..
[ ]  Move the reamining class definitions (e.g. OWLOntologyID, .., OWLReasoner into a suitably named python script under owlapy
[ ]  Continue refactoring until owlapy/model can be removed.

In the third phase, we will create modules under owlapy to group individual scripts


Refactor to support other library checks

Would like to refactor the code to make it easier to drop in support for any new libraries for the availability check.
Making some kind of common interface, and storing various implementations in different modules would be one way others could contribute.
Having these modules might also include the ability to turn this into a dropdown, so we could support the selection of any arbitrary library within the application.

This PR starts a pattern for multiple libraries: https://github.com/MCBoarder289/shelf-help/pull/9

Merged https://github.com/MCBoarder289/shelf-help/pull/9
Any future libraries we want to add, we can address other refactors.

Merged https://github.com/MCBoarder289/shelf-help/pull/9
Any future libraries we want to add, we can address other refactors.


[Mysql] Luckperms closing messaging service prevent server restart

Description
you can see from this picture, my server cannot close and restart due to luckperms
this stuck have lasted for 5 hours without any updates
I have 6 servers, 3 of them cannot restart due to this luckperms problem yesterday, 5 hours stuck on that place, the luckperms messaging service.

Reproduction Steps
restart a server
Expected Behaviour
server will close
Server Details
paper-1.18.1-215
LuckPerms Version
LuckPerms-Bukkit-5.4.1
Logs and Configs
log:
https://mclo.gs/v7MdEsW
Lp config
https://gist.github.com/hkkongou/322bb642bfc7671f7957af120a1dd453
Extra Details
No response

Please could you try updating to the latest version and let me know if the problem is fixed: https://luckperms.net/download :)

sure, i will try to monitor for a few days


502 Bad Gateway

I have a lot of issues(more than 1000) each has 60 fields.
When issues less than 800, pivot table page are loaded but loading speed was slowed.
And now, more than 900 issues, pivot table page occurred 502 Bad Gateway error.
Can I resolve this problem?

Hi,
The speed limitation most likely comes from Rails' database access to issue table. So there is nothing much anyone can do except improving server performance. It might be useful to check your timeout settings though.
pivottable.js supports CSV, so exporting issue CSV on a regular basis and then using it as a pivot data can be an idea. But if you've got the CSV exported I think you should use Excel to analyze.
I might consider adding a URL parameter to specify CSV ad data in the future. Any ideas are welcome.


Don't remove trailing regular spaces from the "raw" response headers (issue 19205)

This bug only seems to reproduce in Google Chrome, since browsers apparently sort response headers differently. When the issue occurs the "raw" response headers string looks like this:
content-length: 525404\r\ncontent-type: \r\n

and since we trim any leading/trailing white-space characters the "content-type" header isn't detected correctly, which thus leads to new Headers(...) throwing.
Hence we'll keep regular spaces at the end of the "raw" response headers string, while still removing all other kinds of trailing white-space characters.
Note: The response headers parsing was based on https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#examples

/botio unittest

Thanks!


fix: Remove the extra blank link between sections.

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Eliminate the additional blank link between sections


Double Confirming Shows only 1 Confirm

I was editing thumbnails for a large amount of videos in the same time. I click edit, change the thumbnail and click Apply. While this one is confirming I edit the next one. But when I hit apply for the next one, it should show that 2 videos are during confirming, but I see only 1 confirming. In the wallet I see 2 pending. Perhaps there is the a bug in the UI. Maybe there is no support for showing more than 1 confirming in the uploads page.

This is a know bug on the sdk backend with showing multiple updates, sorry for the trouble! They all will go through once confirmed and will show at the top then.


Sass imports not working for folders

I'm trying to import an entire folder of mixins like so:
@import "foundation/*"

styles
--/style.scss
--/foundation/
--/--/_colors.scss
--/--/_typography.scss

Importing the individual files like @import "foundation/_colors" works, but I'm unable to import the folder using wildcards.

Unrelated to next-sass, since next-sass just implements sass-loader. Please file an issue there (if there isn't one already)


How to url encode + in dart ?

Thank you for taking the time to file an issue!
This tracker is for issues related to:

Dart core libraries ("dart:uri", etc.)

Dart Version - 2.13.0
on MacOS using safari
Trying to encode "+" in the url encoding using Uri.encodeFull(someString) is not working trying with Uri.encodeComponent(someString) is encoding everything "@ . "etc.
I just want to encode + sign

You will generally get much quicker responses on these sorts of questions in one of these channels:
https://dart.dev/community#join-the-conversation
The issue tracker is for bugs and feature requests.

Okay

Great - if you do find that something is unsupported (or buggy) here, please do file a new issue.  Thanks!


Fatal error: Uncaught Error: Class "Medoo\Medoo" not found in Project_Asset_Management+Ticket\includes\loader.php:39

Hello, I recently created a project to try out Medoo for the first time but I got the error as shown in the title even I do like guidebook.
Can you help me fix it?
Here is my project.
I would be very grateful and appreciative if you would fix it for me!

You are not using Composer to load the package.
So you have to include the file of medoo.php into your project.
require  PATH_OF_YOUR_PROJECT . '/Medoo.php';


feat: add HasActorCfg method

关联的Issues (Related Issues)

close https://github.com/filecoin-project/venus/issues/5939
改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)
在你认为本 PR 满足被审阅的标准之前，需要确保 / Before you mark the PR ready for review, please make sure that:

[ ] 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
[ ] 具有清晰明确的commit message / All commits have a clear commit message.
[ ] 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
[ ] 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
[ ] 通过必要的检查项 / All checks are green

LGTM


[feature request] Order most recent date first

Right now archived tasks are in ascending order by archival date. This gets really inconvenient once you have a lot of archived tasks. It would be really great if there's an option to archive tasks to the beginning of the file (meaning date descending order) rather than end of file.

yay thanks so much for this!


operation attributes not accessible when using the closure...

When sending data that contains a function referencing attributes.count in a specific operation, the data fails when sent to another operation w/o this value...

referencing attributes should probably behave more like a template rather than actual code. This should be fine since they are constants anyway

This is no longer relevant in v2


Strawberry Shake List Type Parameters Memory Leak

Describe the bug
When invoking queries where one or more of the variable parameters is a list, this causes every repeat execution of the query to add another operation result to the operation store after every completed ExecuteAsync request. This is caused by the fact that the call to GetOrAddStoredOperation in OperationStore performs a GetOrAdd on the ConcurrentDictionary<OperationRequest, IStoredOperation> _result, the .Equals equality comparison within the OperationRequest object that acts as the key and thus invoked by GetOrAdd, when comparing the content of variables will always return false with a list variable because a new list instance is instantiated on every ExecuteAsync; only a a.Equals(b) is applied to the list, which is always a comparison of 2 different list objects. The result is that every invocation adds another item to _results which will keep growing indefinitely, triggering a memory leak as well as higher and higher cpu usage (every time more items in _results needs to be compared to).
To Reproduce
Steps to reproduce the behaviour:

Execute ExecuteAsync on a query which has a list type variable parameter
After 2 or more completed executions of the above with identical parameters on that same query upon inspecting _operationExecutor -> _operationStore -> _results it will be observed that another result gets added after each time

Expected behaviour
If one of the variables is a list type, the contents of that list needs to iterated and compared so that the comparison when GetOrAdd is executed correctly recognises that is another call to the same query and therefore the existing result should updated, not another one added; i.e. Get is triggered not Add.
Desktop (please complete the following information):

OS: Windows 10
.net: 5.0

Additional context
Using 11.1 Strawberry Shake, but checking the code, latest remains affected by this bug.

This is now fixed.


 Thank you thank you thank you!
My suggestion: Add an option for an audio que if it's possible, i'd love to have your plugin call for more attention when the wait timer runs out
On another note: Doesn't your plugin actually prove that the information on the wiki is false???
I am speaking about the info that presumably the timers take the lap time from your last lap and add it ontop.
The issue is i've done 8 runs in a row, but only when the marks were supposed to spawn according to your plugin, none of them had the wait timer go lower than 1:20 or higher than 2:50, in all 7 out of 8 of them i've found the mark.. At each of them save for the 6th where i didn't find the mark, i have waited at least 1 minute, much more often 2 and a few seconds. Doing the math, it's impossible for the course to be adding the lap time ontop of the base cooldown, assuming the base cooldown really is 2-3 minutes as the wiki says. Just wanna hear your thoughts on this one that's all!

Glad to hear you like the plugin, I appreciate it :)
Thanks for the suggestion, the plugin currently sends a system notification like some other plugins do when the timer is ready. As far as I know, this triggers a sound already which is configurable in RL. Or were u thinking about another type of sound?
About the note, the wiki seems correct to me, maybe u misunderstood the wiki page? It mentions "the cooldown becomes the ending minute of the previous lap plus the cooldown time" which is correct assuming that ending minute means the global minute, so 4:55 is still minute 4. Add 3 minutes and u get that it goes off cooldown on 7:00

I will assume this issue fixed for now as the RL notification settings should handle the sound, if you feel like that's not the case, feel free to re-open this issue


bug change language in hotword

@Fleker
just by running:
googlesamples-assistant-hotword --project_id my project --device_model_id my model
allows you to change the language
instead giving this command: googlesamples-assistant-hotword --device_model_id 'my-model-identifier'
does not work
https://github.com/shivasiddharth/GassistPi/issues/179
a user had my same problem we solved by entering the project id this is a bug?
I noticed that if I also declare the project_id in hotword I get the answer:
device_model_id: my-model
device_id: my-device-id
https://embeddedassistant.googleapis.com/v1alpha2/projects/my-project-id/devices/my-device-id 200
while instead if I do:
googlesamples-assistant-hotword --device_model_id 'my-model-identifier'
I do not get the answer:
https://embeddedassistant.googleapis.com/v1alpha2/projects/my-project-id/devices/my-device-id 200

Hello. After discussing the issue, passing the project id should cause the device to be registered. It is possible that the device was not registered previously.

this guide reports the execution of hotword without project id:
https://pypi.python.org/pypi/google-assistant-sdk/0.4.4
googlesamples-assistant-devicetool register-device --device 'my-device-identifier'
--model 'my-model-identifier'
--nickname 'My Assistant Light'
furthermore, here it is not specified that in order to register the device correctly, the --client-type [SERVICE |] must also be declared LIBRARY]
otherwise it will not be recorded
this guide instead says to use the project id:
https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample
is it permissible to be a little confused about the correct operation to be performed?
thanks for your help

@aandroide oh sorry about that, we're in the process of updating the README for the python packages. You can find the new steps to register a device model in the official documentation.


Integration Singularity Reset poll loop.

It is hoped that this will fix some sporadic test failures by not considering Singularity completely reset until its api returns a zero-length list of active requests.
Extended timeout for integration tests.
Spew in integration tests to pretty-print errors.

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.

  Generated by :no_entry_sign: Danger


PromQL query are exposed as undefined

Any PromQL query will be exposed as undefined. Renaming the query or setting the legend will not help.
The only working combination is to set dataRef to undefined. Tested on Grafana Cloud v11.0.0-67746 (5f6bf93dd5)

panel.yaml
---
gradientMode: "hue"
cellIdPreamble: "cell-"
cells:
  boxtxt:
    dataRef: "undefined"
    label:
      separator: "colon"
      units: "pps"
      decimalPoints: 2

Thanks for the feedback. Could you expand out the 'Debugging Data Raw' and paste in here as text? That's the data structure grafana has sent to the panel so with that I can feed it through the grafana toDataFrame function and see what's going wrong.

The reason for asking is I'd expect the content of the fields array to contain more than just number arrays. There should be some other data terms in there too, so without seeing what you have I won't know if a fix I apply will work. There's a couple of things I can do with the front runner being to move over to getFieldDisplayName(...). But it would be much nicer to do this move having a test case I can run on your data.

I've cut version 1.4.0 which should hopefully resolve this by using getFieldDisplayName(field, frame). It's available now from here:
https://github.com/andymchugh/andrewbmchugh-flow-panel/raw/ver_1.4.0/andrewbmchugh-flow-panel-1.4.0.zip
and has been submitted to grafana for review so will be on the cloud soon.

no worries, fingers crossed it sorts it out

great, thanks for confirming :)


Feature request: Add support for serde_qs::axum::QsQuery as an alternative to axum::extract::Query

The crate serde_qs has a feature flag for axum which exposes this custom extractor as an alternative to the crate serde_urlencoded which axum uses.
The advantage of QsQuery is that it adds support for sequences when serializing or deserializing query strings.
I wouldn't mind contributing to aide with a pull request if this would be considered a good addition, if you could point me in the right direction on where the current implementation is which adds support for Query?

This is definitely a welcome feature!

I wouldn't mind contributing to aide with a pull request if this would be considered a good addition, if you could point me in the right direction on where the current implementation is which adds support for Query?

Thanks, I believe all you need is an implementation like this and a feature flag:
https://github.com/tamasfe/aide/blob/556227c330481f960e99e9ee3889cf06a09965d4/crates/aide/src/axum/inputs.rs#L113
It's not axum-related, so it should probably go into its own module under impls.

Hi @tamasfe, thanks for pointing me in the right direction.
I have attempted to add an implementation of OperationInput for QsQuery but it seems like that is not enough for me to compile the example I have extended with the use of QsQuery.
The rust compiler states that the Handler trait is not implemented for this type.
Compiling example-axum v0.1.0 (/Users/denniskievits/Projects/aide/examples/example-axum)
error[E0277]: the trait bound `fn(axum::extract::State<AppState>, QsQuery<TodoListQuery>) -> impl std::future::Future<Output = impl IntoApiResponse> {list_todos}: Handler<_, AppState, _>` is not satisfied
   --> examples/example-axum/src/todos/routes.rs:26:63
    |
26  |             post_with(create_todo, create_todo_docs).get_with(list_todos, list_todos_docs),
    |                                                      -------- ^^^^^^^^^^ the trait `Handler<_, AppState, _>` is not implemented for fn item `fn(axum::extract::State<AppState>, QsQuery<TodoListQuery>) -> impl std::future::Future<Output = impl IntoApiResponse> {list_todos}`
    |                                                      |
    |                                                      required by a bound introduced by this call
    |
    = help: the following other types implement trait `Handler<T, S, B>`:
              <Layered<L, H, T, S, B, B2> as Handler<T, S, B2>>
              <axum_extra::handler::IntoHandler<H, T, S, B> as Handler<T, S, B>>
              <axum_extra::handler::or::Or<L, R, Lt, Rt, S, B> as Handler<(M, Lt, Rt), S, B>>
note: required by a bound in `ApiMethodRouter::<S, B>::get_with`
   --> /Users/denniskievits/Projects/aide/crates/aide/src/axum/routing.rs:267:5
    |
267 |     method_router_chain_method!(get, get_with);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiMethodRouter::<S, B>::get_with`
    = note: this error originates in the macro `method_router_chain_method` (in Nightly builds, run with -Z macro-backtrace for more info)

Any idea what I might be missing? My fork can be viewed at https://github.com/elertan/aide.
I put this behind a feature flag named serde-qs, as I wasn't sure what would be the preferably way of doing this, and the current implementation also lacks documentation, which I'll of course add once it compiles.

Hi, thanks, the implementation itself is fine, serde_qs is just not yet compatible with axum 0.6.0.
Putting #[axum::debug_handler] over the function will yield a more accurate error:
error[E0277]: the trait bound `QsQuery<TodoListQuery>: FromRequestParts<AppState>` is not satisfied
  --> examples/example-axum/src/todos/routes.rs:83:63
   |
83 | async fn list_todos(State(app): State<AppState>, QsQuery(qs): QsQuery<TodoListQuery>) -> impl IntoApiResponse {
   |                                                               ^^^^^^^^^^^^^^^^^^^^^^ the trait `FromRequestParts<AppState>` is not implemented for `QsQuery<TodoListQuery>`
   |
   = note: Function argument is not a valid axum extractor.
           See `https://docs.rs/axum/latest/axum/extract/index.html` for details

Interesting, that makes sense. Guess I'll open up an issue on serde_qs's repo to see whether this could be resolved soon. Thanks for your feedback

Seems like the PR that is currently open on serde_qs https://github.com/samscott89/serde_qs/pull/73 would fix this issue.

I have tried to update my fork to use the PR that is currently open on serde_qs's repo.
Unfortunately it still doesn't seem to want to compile even with those changes, which seems weird to me as looking into the changes that PR proposes it should add the necessary implementations required for axum 0.6.0
Compiling example-axum v0.1.0 (/Users/denniskievits/Projects/aide/examples/example-axum)
error[E0277]: the trait bound `fn(axum::extract::State<AppState>, QsQuery<TodoListQuery>) -> impl std::future::Future<Output = impl IntoApiResponse> {routes::list_todos}: Handler<_, AppState, _>` is not satisfied
   --> examples/example-axum/src/todos/routes.rs:26:63
    |
26  |             post_with(create_todo, create_todo_docs).get_with(list_todos, list_todos_docs),
    |                                                      -------- ^^^^^^^^^^ the trait `Handler<_, AppState, _>` is not implemented for fn item `fn(axum::extract::State<AppState>, QsQuery<TodoListQuery>) -> impl std::future::Future<Output = impl IntoApiResponse> {routes::list_todos}`
    |                                                      |
    |                                                      required by a bound introduced by this call
    |
    = help: the following other types implement trait `Handler<T, S, B>`:
              <Layered<L, H, T, S, B, B2> as Handler<T, S, B2>>
              <axum_extra::handler::IntoHandler<H, T, S, B> as Handler<T, S, B>>
              <axum_extra::handler::or::Or<L, R, Lt, Rt, S, B> as Handler<(M, Lt, Rt), S, B>>
note: required by a bound in `ApiMethodRouter::<S, B>::get_with`
   --> /Users/denniskievits/Projects/aide/crates/aide/src/axum/routing.rs:267:5
    |
267 |     method_router_chain_method!(get, get_with);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ApiMethodRouter::<S, B>::get_with`
    = note: this error originates in the macro `method_router_chain_method` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `QsQuery<TodoListQuery>: FromRequestParts<AppState>` is not satisfied
  --> examples/example-axum/src/todos/routes.rs:83:63
   |
83 | async fn list_todos(State(app): State<AppState>, QsQuery(qs): QsQuery<TodoListQuery>) -> impl IntoApiResponse {
   |                                                               ^^^^^^^ the trait `FromRequestParts<AppState>` is not implemented for `QsQuery<TodoListQuery>`
   |
   = help: the following other types implement trait `FromRequestParts<S>`:
             <() as FromRequestParts<S>>
             <(T1, T2) as FromRequestParts<S>>
             <(T1, T2, T3) as FromRequestParts<S>>
             <(T1, T2, T3, T4) as FromRequestParts<S>>
             <(T1, T2, T3, T4, T5) as FromRequestParts<S>>
             <(T1, T2, T3, T4, T5, T6) as FromRequestParts<S>>
             <(T1, T2, T3, T4, T5, T6, T7) as FromRequestParts<S>>
             <(T1, T2, T3, T4, T5, T6, T7, T8) as FromRequestParts<S>>
           and 33 others
   = note: required for `QsQuery<TodoListQuery>` to implement `FromRequest<AppState, Body, axum_core::extract::private::ViaParts>`
note: required by a bound in `__axum_macros_check_list_todos_1_from_request_check`
  --> examples/example-axum/src/todos/routes.rs:83:63
   |
83 | async fn list_todos(State(app): State<AppState>, QsQuery(qs): QsQuery<TodoListQuery>) -> impl IntoApiResponse {
   |                                                               ^^^^^^^ required by this bound in `__axum_macros_check_list_todos_1_from_request_check`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `example-axum` due to 2 previous errors

I saw that support was merged in serde_qs, so I added support for it in 0.10.0 as well behind a serde_qs feature flag.

The serde_qs::axum::QsQuery still fails the compiler. Here is a minimum example and the compiler message.
async fn list_todos(
    serde_qs::axum::QsQuery(_query): serde_qs::axum::QsQuery<OrderSelect>,
) -> impl IntoApiResponse {
    Json(())
}
fn main(){
    ApiRouter::new()
        .api_route(
            "/todos",
            aide::axum::routing::get_with(list_todos, todo_docs),
        )
}

With the above code, the rust compiler complaints:
error[E0277]: the trait bound `fn(QsQuery<OrderSelect>) -> impl Future<Output = impl IntoApiResponse> {list_todos}: OperationHandler<_, _>` is not satisfied
   --> ft-server/src/route/task/order.rs:34:43
    |
34  |             aide::axum::routing::get_with(list_todos, todo_docs),
    |             ----------------------------- ^^^^^^^^^^ the trait `OperationHandler<_, _>` is not implemented for fn item `fn(QsQuery<OrderSelect>) -> impl Future<Output = impl IntoApiResponse> {list_todos}`
    |             |
    |             required by a bound introduced by this call
    |
note: required by a bound in `get_with`
   --> /Volumes/Dev/Rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/aide-0.12.0/src/axum/routing.rs:190:35
    |
144 | / macro_rules! method_router_top_level {
145 | |     ($name:ident, $name_with:ident) => {
146 | |         #[doc = concat!("Route `", stringify!($name) ,"` requests to the given handler. See [`axum::routing::", stringify!($name) , "`] f...
147 | |         #[tracing::instrument(skip_all)]
...   |
190 | |             H: Handler<T, S, B> + OperationHandler<I, O>,
    | |                                   ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `get_with`
...   |
226 | |     };
227 | | }
    | |_- in this expansion of `method_router_top_level!`
...
348 |   method_router_top_level!(get, get_with);
    |   ---------------------------------------
    |   |                             |
    |   |                             required by a bound in this function
    |   in this macro invocation

I double checked that axum feature is enable in aide, which implicitly enable serde_qs. I tried enabling serde_qs in aide and still fail to compile.

There is almost no difference between 0.12 and the master branch, it seems a bit odd. Maybe a version issue where multiple versions are loaded at once ?


V1 - Rebranding - "Your session may have expired or you don't have permissions to see any projects" message is displayed when trying to logout

Launch V1 CLA landing page (I tried in normal firefox browser and not in incognito mode)
Click proceed on Project Console card
Login
Click Logout from LFX Header
Observed "Your session may have expired or you don't have permissions to see any projects" message is displayed. However we are able signout from CLA menu wiithout any issues

Verified that user is logged out and redirected to landing page


Detect Firebase Test Lab device

Can we detect if a Unity app being run on a Firebase Test Lab device or not?
According to the documentation, for Android (Java) we could do:
String testLabSetting = Settings.System.getString(getContentResolver(), "firebase.test.lab");
if ("true".equals(testLabSetting)) {
    // Do something when running in Test Lab
    // ...
}

Can this be done on Unity?  Because I want to exclude the analytics of the pre-launch reports appearing in Google Analytics.

This is probably not directly possible in C#, but you could likely use a wrapper to call the Java method required to do this.

@kevinkokomani  BTW Is there any other workaround to exclude Test Lab devices from the statistics?

If you're able to get the ANDROID_ID of your test devices, you may be able to do something with those IDs where you conditionally don't log events if the ID matches one of your test devices'. Although I don't know that this method would help to stop install or user tracking data from being collected from test devices, or if it only works to stop logging events. I'm getting this info from this stackoverflow post; perhaps someone else has more up-to-date info.

Thanks for the input. But that's on how to disable analytics collection on your own test device. But I'm referring to tests provided by Google Play itself like Test Lab option, Pre-launch reports etc.
Existing resources show on how to exclude these devices on Android apps, but the question is can it be done in a Unity application?
REF:

Disable Google Analytics from Android pre-launch reports
Modify instrumented test behavior for Test Lab

Your tests should be run in a staging project, not your prod project with Analytics data.

Unfortunately, Unity doesn't expose this low level Java/Android logic directly but it does allow you to call into Java using Unity's own JNI abstractions (such as AndroidJavaClass).
Rather than providing a complete tutorial, I'd recommend going through the Test Lab Codelab. But if you're impatient like I am, skip right to step 9 to get the code that will work with Unity. This code will get the TEST_LOOP for if you intend on using Game Loops.
If you just want to test for "firebase.test.lab", here are the important bits:
You need to Activity by retrieving the static field currentActivity in UnityPlayer:
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
_activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");

You can call getContentResolver with this snippet I copied out:
AndroidJavaObject contentResolver = _activity.Call<AndroidJavaObject>("getContentResolver")

Now I'm coding a little blind as my IDE really doesn't like this part of the Unity API, but String testLabSetting = Settings.System.getString(getContentResolver(), "firebase.test.lab"); should be:
AndroidJavaClass system = new AndroidJavaClass("android.provider.Settings.System");
string testLabSetting = system.CallStatic<string>(contentResolver, "firebase.test.lab");

And you should have a C# string, so the rest of the logic you can do as:
if (testLabSetting == "true") {
    // Something really cool
}

Let me know if that works for you!
--Patrick


🎈 perf(trace): sort by start time desc

Description
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Type of change
What type of changes does your code introduce to KubeGems? Put an x in the box that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[x] ENHANCEMENT (non-breaking change which improves existing functionality)
[ ] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

#419


Add page breaks and save to PDF

Make sure page breaks are properly added to maximise readability

This can and should only be done last because layout can change
Key here is to use page breaks liberally to increase readability


[SPARK-40501][SQL] Enhance 'SpecialLimits' to support project(..., limit(...))

What changes were proposed in this pull request?
The pr aim to enhance 'SpecialLimits' to support project(..., limit(...)), for Improve query performance
Why are the changes needed?
When I query a big table(size / per day: 10T, column size: 1219) with limit 1
A.Scenario 1(run sql in spark-sql) - The results will be fetched soon - The optimization of CollectLimitExec has taken effect
1.SQL: select * from xxx where ..._day = '20220919' limit 1

2.Spark UI:

B.Scenario 2(run sql in spark-shell) - It took a long time to fetch out(still running after 20 minutes...)
1.Code: spark.sql("select * from xxx where ..._day = '20220919' limit 1").show()

2.Spark UI:

C.Scenario 3(run sql in spark-shell) - The results will be fetched soon
1.Code: spark.sql("select * from xxx where ..._day = '20220919'").show(1)

2.Spark UI:

The diff between Scenario 2 and Scenario3 is focus on "Optimized Logical Plan"

After pr:
Scenario 2(run sql in spark-shell) - The results will be fetched soon - The optimization of CollectLimitExec has taken effect
1.Code: spark.sql("select * from xxx where ..._day = '20220919' limit 1").show()

2.Spark UI:

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add new UT & Pass GA.

Wait, I'm checking the cause of UT failure

Can one of the admins verify this patch?

Wait, I'm checking the cause of UT failure
Done

cc @wangyum @cloud-fan FYI

I'm wondering why PushProjectThroughLimit does not optimize your query. It should push project through limit.

I'm wondering why PushProjectThroughLimit does not optimize your query. It should push project through limit.
Actually, it can complete the above optimization, and pass all GAs
Maybe worriedPushProjectThroughLimit this would affect other rules，I guess.

PushProjectThroughLimit is already in the optimizer, or did I miss something?

PushProjectThroughLimit

Hmm..., PushProjectThroughLimit was added in my first version of pr.

Ah sorry I misread the code. Let's add this rule then. I think it's beneficial, as it kinds of "normalize" the order of project and limit operator, so that we can have more chances to merge adjacent projects or limits.

Ah sorry I misread the code. Let's add this rule then. I think it's beneficial, as it kinds of "normalize" the order of project and limit operator, so that we can have more chances to merge adjacent projects or limits.

Done.

thanks, merging to master!

thanks, merging to master!

should we backport the changes to branch-3.3 ? @cloud-fan

This is a perf improvement, usually we don't backport.

This is a perf improvement, usually we don't backport.

Okay！


bazel: take into account system wide bazelrc configuration if it exists

Motivation for this change
closes #70911
This was extracted from https://github.com/NixOS/nixpkgs/pull/73309 to respect separation of concern.
cc @flokli
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Notify maintainers
cc @flokli

We currently abuse bazels /etc/bazel/bazelrc feature to "configure" nixpkgs bazel.
We patch bazel to read from $out/etc/bazelrc (causing #70911), and then append some config statements in there while building bazel.
We also use wrapProgram to append some options to the bazel binary directly: --server_javabase="${runJdk}".
I think we use $out/etc/bazelrc simply because some of the arguments would need to be passed to the binary depending on $argv[1], which requires a custom wrapper.
I think the cleanest way forward would probably be to simply patch the default locations hardcoded into the source code. Maybe there's even a way to configure those during runtime, I haven't really checked.
cc @aherrmann

Can this PR replace the wrapProgram "$out/bin/bazel" --add-flags --server_javabase="${runJdk}" with adding that flag to the bazelrc as well, so we at least only use one way to configure the nixpkgs-style bazel?

@GrahamcOfBorg build bazel bazel.tests


New and close connection every 30 seconds

Hello,
I use knex for postgresql, and notice that for every 30 seconds, two new connections open and then close. Is it expected to happen, why?
Thanks,
Chuan

Check pool2 timeouts and settings and play with them. Otherwise provide minimized test code which can be used to reproduce the behavior you are experiencing.

Thanks for the tip. Knex has switched back to generic-pool and the corresponding setting is idleTimeoutMillis

ah yeah, generic-pool I meant 👍


Simulated fog scene

Can you please give the experimental parameters for defog on fern data? My own tests didn't achieve a desired result. Thank you very much.

Thanks for your excellent work, but I experimented with the Simulated fog scene(fern) using the experimental parameters of train_llff_uw.sh, but it didn't get the results shown in the paper. The figure below shows the experimental results ,it does not learn the backscatter, do you know what the problem is? Can you release your data

set and experimental parameters? appreciate it!

Hello,
Sorry for the late response. I added a config file for the fog simulation, you can find it here. And here are the images I used.

Hi,
I apologize for the late reply. I had to check a few things before getting back to you with the answer:)
When we submitted the paper we added samples to the backscatter component. MIP360 has a proposal network and a NeRF network, and the color/final rendering is done by the NeRF network, which samples points along the ray around the objects on the ray. This is a good thing for the object's component. Still, we thought that it was not suitable for the backscatter component because there's water everywhere along the ray, so we should have uniform sampling for the backscatter, at least until it encounters an object. This is the meaning of adding extra samples to the backscatter. We actually made an assumption that until the samples of the NeRF network, the transmittance is 1 (because there is no object).
Later on, we run a few experiments with and without the extra samples and it seemed there is no significant change for the real-world scenes. When you sent me your question I noticed that for the fog simulation it matters, so I updated the code with the option for extra samples. I also uploaded a config file for the fog simulation, and here are the images I used.
By the way, you can get reasonable results without the extra samples, but not as good as with them. here you can find a config file for the fog without extra samples.

Thank you very much for your reply, I re-git the latest version of your code, used the data and experimental parameters you provided, fetched the poses via colmap, but I still don't get the dehaze effect in the paper, to be precise, there is no effect, it doesn't decouple the scene from the haze. Is there any problem somewhere?

Can you please share the parameters you used?

Same parameters as you provided, I only changed one place, Config.factor = 1, which means that my training image resolution is 1008×756, which is relative to the original image's 4k resolution with factor=4. Do you have a training image resolution of 252×189? If so, that means my iteration count is low, or I need to 1/4 downsample the image.

Thank you very much for your patience in replying, it seems that my program has read in the wrong configuration file, I will try to re-run it!

I've done several experiments but only succeeded once. I compared the config.gin files they recorded and they  are the same, but the run results are different. Is it because of the random seed?

I have re-run several experiments and they can get reasonable results, but there are some gap with the results you show and I don't understand what the problem is. In my experiments I found that the learning rate affects the results significantly. For example, I set max_steps to 450000, which causes the learning rate to decay differently for each iteration, which also causes the final results to be different. I'm using a 2080ti gpu.

Here are my experimental parameters, which I am sure are not wrong
Parameters for Config:
==============================================================================
Config.adam_eps = 1e-08
Config.batch_size = 2048
Config.checkpoint_dir = '/home/zmy/seathru_NeRF/haze/fern_extra_sample'
Config.data_dir = '/data/zmy/fogSim//fern'
Config.data_loss_mult = 1
Config.data_loss_type = 'rawnerf'
Config.dataset_loader = 'llff'
Config.distortion_loss_mult = 0.0
Config.eval_on_train = False
Config.eval_only_once = True
Config.extra_samples = True
Config.factor = 1
Config.far = 1.0
Config.forward_facing = True
Config.gen_eq = False
Config.interlevel_loss_mult = 1
Config.lr_final = 2e-05
Config.lr_init = 0.002
Config.max_steps = 250000
Config.near = 0.0
Config.print_every = 1000
Config.train_render_every = 50000
Config.use_uw_acc_trans_loss = True
Config.use_uw_acc_weights_loss = False
Config.use_uw_mlp = True
Config.uw_acc_loss_factor = 1
Config.uw_atten_xyz = False
Config.uw_final_acc_trans_loss_mult = 1e-05
Config.uw_final_acc_weights_loss_mult = 0.0001
Config.uw_fog_model = True
Config.uw_initial_acc_trans_loss_mult = 1e-05
Config.uw_initial_acc_weights_loss_mult = 0.0001
Config.uw_old_model = False
Parameters for Model:
==============================================================================
Model.num_levels = 2
Model.num_nerf_samples = 32
Model.num_prop_samples = 128
Model.opaque_background = False
Model.ray_shape = 'cylinder'
Parameters for PropMLP:
==============================================================================
PropMLP.basis_shape = 'octahedron'
PropMLP.basis_subdivisions = 1
PropMLP.density_bias = -1
PropMLP.density_noise = 0
PropMLP.disable_density_normals = True
PropMLP.disable_rgb = True
PropMLP.max_deg_point = 16
PropMLP.net_depth = 4
PropMLP.net_width = 256
Parameters for UWMLP:
==============================================================================
UWMLP.basis_shape = 'octahedron'
UWMLP.basis_subdivisions = 1
UWMLP.density_bias = 0
UWMLP.density_noise = 0
UWMLP.disable_density_normals = True
UWMLP.gen_eq = False
UWMLP.max_deg_point = 16
UWMLP.net_depth = 8
UWMLP.net_width = 256
UWMLP.uw_atten_xyz = False
UWMLP.uw_fog_model = True
UWMLP.uw_old_model = False
UWMLP.uw_rgb_dir = False
UWMLP.water_bias = 0

Hi, here you can find the simulated images with the poses and bounds we used in the paper.  Maybe the problem is from the poses you used.

Thanks for your reply, the problem has been solved！


/act is ignoring game.pf2e.settings.metagame.dcs when posting to Chat

"Show Check DCs" is NOT checked in the game system settings (game.pf2e.settings.metagame.dcs)
Journal page contains [[/act force-open dc=20]]
The journal page displayed to players does not show the DC.
When the check is posted to chat by the GM using the "post to chat" button in the journal block, the DC is displayed to all players (which should remain hidden).

It seems that #onRepostAction is not setting defaultVisibility correctly for /act, although the function works properly for @Check


Binding failed: 10049 !

Had the same issue, not sure if i'm doing something wrong.

Hi, the configuration on the screenshots looks invalid.
Here is an example of working configuration

54.xxx.xxx.xxx is the client public IP
141.xxx.xxx.xxx is the GRE server IP


test_repo_hg: Skip test if hg executable it not installed

This commit allows contributors interested in
svn and git support to run the test without having to
install mercurial.

[Current coverage][cc-pull] is 72.78%

Merging [#35][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master        #35   diff @@
==========================================
  Files             9          9
  Lines           654        654
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            476        476
  Misses          178        178
  Partials          0          0

Powered by Codecov. Last updated by [b44cf3c...cb31ac6][cc-compare]
[cc-base-branch]: https://codecov.io/gh/tony/vcspull/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/tony/vcspull/compare/b44cf3c33dcf1ccd6ac1a52715d8a838bbd0902a...cb31ac6c8195bf3577630613c4b74ca7a5f6c527
[cc-pull]: https://codecov.io/gh/tony/vcspull/pull/35?src=pr


microcode{Intel,Amd}: create aliases after rename

Fixes: #340379
Closes: #340398
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This doesn't work if you have nixpkgs.config.allowAliases = false;
https://github.com/NixOS/nixpkgs/pull/340450


Add liveness and readiness checks to reaper-operator

reaper-operator's deployment doesn't appear to include liveness or readiness checks at present. We should include these in the deployment and set up an HTTP server in the manager to respond to them appropriately.
┆Issue is synchronized with this Jira Task by Unito
┆Issue Number: K8SSAND-1005
┆Priority: Medium

Closing as won't fix.


SNAPSHOT artifacts are missing alpha in the name.

Maybe we don't care too much since you already have to jump through hoops to use the SNAPSHOT builds, but there is definitely an inconsistency. I think we should include alpha in the SNAPSHOT filenames as well.
Here's an example:
https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/android/agent/maven-metadata.xml

<metadata>
  <groupId>io.opentelemetry.android</groupId>
  <artifactId>agent</artifactId>
  <versioning>
    <latest>0.5.0-SNAPSHOT</latest>
    <versions>
      <version>0.5.0-SNAPSHOT</version>
    </versions>
    <lastUpdated>20240312081534</lastUpdated>
  </versioning>
</metadata>

Hmmm, maybe this isn't still an issue, just an artifact of the multi-step project reorg?
https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/android/android-agent/

sonatype should not have SNAPSHOT artifacts, they have a different repository for that.
https://central.sonatype.org/publish/publish-guide/#accessing-repositories
what I usually do/did is that I don't publish snapshots in the snapshot repository either but I publish semver builds in the stable repository with suffixes (alpha, beta, RC, stable).
Also, check this recommendation for the suffixes https://publicobject.com/2019/12/18/naming-versions/ otherwise you might get the wrong version as the latest stable version (sorting issue).

I think this only happens to all the modules except for the android-agent one, because the logic to append "-alpha" is added only there: https://github.com/open-telemetry/opentelemetry-android/blob/783ef1b8ae48ecbf4d0c4226c0fa35fe220da2b4/android-agent/build.gradle.kts#L8
So I think it should be a matter of moving that logic to the convention scripts to cover all other modules as well.

Fixed in #297


fs/nvs: preserve the previous ate searching

Previous ATE searching is accelerate by reading sector
close ate, which allow to skip reading whole storage.
ATE is already covered by crc8. That patch introduce
check on correctness offset read form close ate. This
increases meta-data integrity check level.
This also preserves against possible looping when read
incorrect or not a NVS storage image.
fixes #16899
Signed-off-by: Andrzej Puzdrowski<EMAIL_ADDRESS>

@kapi-no


updating operator-sdk to 1.28.0

Issue #, if available:
N/A
Description of changes:
Updating to use 1.28.0 of operator-sdk
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/lgtm

@jaypipes Doesn't someone have to still build/push these images? Or are container updates now automatic?

@jaypipes Doesn't someone have to still build/push these images? Or are container updates now automatic?

@acornett21 I believe @RedbackThomson will need to repush the images? but maybe they are automatic now....


Bump FE Commons version

Codecov Report

Merging #57 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #57   +/-   ##
=======================================
  Coverage   89.24%   89.24%
=======================================
  Files          36       36
  Lines         911      911
  Branches       49       49
=======================================
  Hits          813      813
  Misses         83       83
  Partials       15       15

Continue to review full report at Codecov.

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


Sort by name in SCM view doesn't seem to change order

Testing #148078
Version: 1.67.0-insider (Universal)
Commit: ab86e0229d6b4d0cb49cfd6747c92cafcd2bd4af
Date: 2022-04-26T05:15:57.573Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 21.4.0
Sort by name in SCM view doesn't seem to change order:

@tanhakabir The repository sort options are in the Repositories submenu. The sort orders at the toplevel menu apply to changes within each repository only.
@lszomoru Maybe we should further classify those options as applying to changes only.

@joaomoreno, we could rename the label to "Sort Changes by Name", etc. if you think that would make things more clear.

Ohh I see, then that does work for me! Thanks!


Add annotation that lets you skip validation

Closes https://github.com/pydantic/pydantic/issues/1465

How does this work with JSON schema and serialization? Is there a world where we want:

To preserve the JSON schema or serializer of the original type but skip validation?
Let users specify a JSON schema or serializer to accompany this AnyValidator?

JSON schema should be be preserved, e.g. generated from the inner type.
I think we should use the serialiser from the inner type too. We could add a switch for this, but it could come later.

@adriangb do you see how to make the JSON schema thing work in this way now that the "js_cs_override_schema" metadata thing is gone? I'm not sure what exactly the current signature is for json schema generation, or if there is a good way to handle this now.
@samuelcolvin is there a way to take a "regular" core schema and use it for serialization? Like, ideally I'd be able to do something like:
    @classmethod
    def __get_pydantic_core_schema__(self, _source: Any, _handler: Any) -> core_schema.CoreSchema:
        schema = _handler(_source)
        return core_schema.any_schema(serialization=schema)

but I think serialization needs to specifically be a SerSchema. Maybe we need to do a rework to this.
Either way, I think this can wait until after v2, though @adriangb I think it would be good for us to make sure it's possible to handle the JSON schema for this without needing to make breaking changes. (I guess we can always go back to using new core schema metadata keys if we need to, so it doesn't need to be a breaking change, but.. I guess it would be better to avid that)

please review

I think you’ll want __prepare_pydantic_annotations__ so that you can still create a json schema.

please update

please review


How to automate login a website

can someone guide me how i can automate login to a website using this library . in order to login cookies must be handled i have tried that .
HttpRequest request = HttpRequest.get("http://website.com/");
request.trustAllCerts();
request.trustAllHosts();
request.userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1");
request.useCaches(true);
String cookies = request.header("Set-Cookie");
String response = request.body();
StringBuilder sb = new StringBuilder();
sb.append("email=clientemail%40gmail.com&password=clientpass&login_button=Login");
HttpRequest rq = HttpRequest.post("http://website.com/").send(sb);
rq.header("Cookie", cookies);
String html = rq.body();

:+1: I think there isn't this feature. It's would be a good improvement

Maybe this helps https://developer.android.com/reference/android/accounts/AccountManager.html

you may store session() it will keep user login until session ends
if(!isset($_SESSION['x']))
{
header("Location: index.php");
}
like this


chore: update XCodeGen to v2.39.1

Changes:

Updated XCodeGen to v2.39.1
Updated the dependencies per your patch and then generated the nix files using swiftpm2nix. I had to create a new patch as the files had changed from 2.38.0.
Removed packages that didn't seem to be required from the buildInputs and nativeBuildInputs.
Removed enableParallelBuilding. True is the default.

Changes based on advice from this:
doc/languages-frameworks/swift.section.md
It complies and works for me. Perhaps you can give it a try before you merge. :)
❯ xcodegen --version
Version: 2.39.1

❯ which xcodegen
/nix/store/z576lxpk87yv22al2mdn3akvhnp7xhgx-devshell-dir/bin/xcodegen

Look goods to me. Thank you!


Can this framework be used for tabular data?

Hello
This tool is very good
Can this framework be used for tabular data?
If possible, explain more
Thanks

Hi!
This framework can be used to find neural architectures for supervised learning classification problems, regardless of the data-type. The tool was built specifically for image datasets, but can be applied to tabular data as well. All you need to do is define the dataset loader in NASEval.__init__().
I'm not sure what your data consists of, but make sure you actually need Deep Learning to solve it as HiveNAS currently only supports the generation of CNNs. If your data does not require intermediate representations, I would suggest experimenting with other ML models.
Good luck!

Added to the docs in bae9ec706e08f7940516cafc535f67ccb1754775.


Create size-label.yml

Closes #
📑 Description

✅ Checks

[x] My pull request adheres to the code style of this project
[x] My code requires changes to the documentation
[x] I have updated the documentation as required
[x] All the tests have passed

☢ Does this introduce a breaking change?

[ ] Yes
[x] No

ℹ Additional Information

Summary by Sourcery
CI:

Add a GitHub Actions workflow to label pull requests based on their size using the size-label-action.

Description by Korbit AI
What change is being made?
Create a GitHub Actions workflow file (size-label.yml) to automatically label pull requests based on their size.
Why are these changes being made?
This change aims to automate the process of assigning size-based labels to pull requests to improve workflow efficiency and maintain consistency. Utilizing the size-label-action reduces manual overhead and helps contributors quickly identify the scope of pull requests, facilitating better resource allocation and review prioritization.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Summary by CodeRabbit

New Features

Introduced an automated labeling system for pull requests based on their size, enhancing organization and visibility.

Documentation

Added a new workflow file for managing pull request size labels.

@gstraccini create labels


Unable to upgrade my project to Rails 8 as their is a dependency issue of acts_as_paranoid with activesupport 8.0

Because acts_as_paranoid >= 0.9.0, < 0.10.2 depends on activesupport >= 6.1, < 7.2
and acts_as_paranoid >= 0.10.2 depends on activesupport >= 6.1, < 8,
acts_as_paranoid >= 0.9.0 requires activesupport >= 6.1, < 8.
And because rails >= 8.0.0 depends on activesupport = 8.0.0,
acts_as_paranoid >= 0.9.0 is incompatible with rails >= 8.0.0.
So, because Gemfile depends on rails ~> 8.0.0
and Gemfile depends on acts_as_paranoid ~> 0.10.0,
version solving has failed.

Version 0.10.3 supporting Rails 8.0 has now been released.

@mvz  thanks a ton for doing this so quickly.


Errors in elastalert-server (bitsensor/elastalert)

I am getting below error in ElastAlert. I am using latest ElastAlert Image
My Elastic search Version is 6.2.3
I have around 48 Rules Configured in ElastAlert
07:06:02.208Z ERROR elastalert-server:
    ProcessController:  WARNING:elasticsearch:POST http://escoordinator.*******.com:9200/elastalert_status_status/elastalert_status [status:429 request:0.007s]

07:06:02.218Z ERROR elastalert-server:
    ProcessController:  ERROR:root:Error writing alert info to Elasticsearch: TransportError(429, u'es_rejected_execution_exception', u'rejected execution of org.elasticsearch.transport.TransportService$7@61f5f91d on EsThreadPoolExecutor[name = server.********.com/bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1f0b4b9a[Running, pool size = 56, active threads = 56, queued tasks = 294, completed tasks =<PHONE_NUMBER>]]')
    Traceback (most recent call last):
      File "/opt/elastalert/elastalert/elastalert.py", line 1518, in writeback
        doc_type=doc_type, body=body)
      File "/usr/lib/python2.7/site-packages/elasticsearch-6.3.1-py2.7.egg/elasticsearch/client/utils.py", line 76, in _wrapped
        return func(*args, params=params, **kwargs)
      File "/usr/lib/python2.7/site-packages/elasticsearch-6.3.1-py2.7.egg/elasticsearch/client/__init__.py", line 319, in index
        _make_path(index, doc_type, id), params=params, body=body)
      File "/usr/lib/python2.7/site-packages/elasticsearch-6.3.1-py2.7.egg/elasticsearch/transport.py", line 318, in perform_request
        status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
      File "/usr/lib/python2.7/site-packages/elasticsearch-6.3.1-py2.7.egg/elasticsearch/connection/http_requests.py", line 90, in perform_request
        self._raise_error(response.status_code, raw_data)
      File "/usr/lib/python2.7/site-packages/elasticsearch-6.3.1-py2.7.egg/elasticsearch/connection/base.py", line 125, in _raise_error
        raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
    TransportError: TransportError(429, u'es_rejected_execution_exception', u'rejected execution of org.elasticsearch.transport.TransportService$7@61f5f91d on EsThreadPoolExecutor[name = server.********.com/bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1f0b4b9a[Running, pool size = 56, active threads = 56, queued tasks = 294, completed tasks =<PHONE_NUMBER>]]')

07:06:02.219Z ERROR elastalert-server:
    ProcessController:  WARNING:root:Querying from 2018-12-27 06:59 UTC to 2018-12-27 07:06 UTC took longer than 0:00:05!

07:06:02.980Z ERROR elastalert-server:
    ProcessController:  WARNING:root:Querying from 2018-12-27 06:59 UTC to 2018-12-27 07:06 UTC took longer than 0:00:05!

you are using the bitsensor-fork of elastalert, and I too encountered these errors on usint it. The Yelp Official Elastalert is working fine though.

Thanks @abhishekjiitr for the reply.
Did you find any workaround to fix it?
I preferred bitsensor-fork of elastalert as it was easy to setup and comes with kibana plugin.

Couldn't find any fix for it. It worked fine though, but kept on displaying the ERROR messages. I was just experimenting and now using the official ElastAlert.

Hey @mukeshchouhan ,
Did you resolve this problem at least workaround on your environments?
I got same problem.
Especially, an alert's filter query took long time. The other rules working correct and doesn't have time problem.

@hazelcakli
07:06:02.218Z ERROR elastalert-server:     ProcessController:  ERROR:root:Error writing alert info to Elasticsearch: TransportError(429, u'es_rejected_execution_exception', u'rejected execution of org.elasticsearch.transport.TransportService$7@61f5f91d on EsThreadPoolExecutor[name = server.********.com/bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1f0b4b9a[Running, pool size = 56, active threads = 56, queued tasks = 294, completed tasks =<PHONE_NUMBER>]]')
this error was resolved by setting up below in elastalert.yaml file
es_send_get_body_as: POST
I am still getting below errors but my alerts are  coming  fine. so that can be ignored.
07:06:02.219Z ERROR elastalert-server:     ProcessController:  WARNING:root:Querying from 2018-12-27 06:59 UTC to 2018-12-27 07:06 UTC took longer than 0:00:05!


Fix GammaTransform int as tuple, division by zero

#343
What a lower bound for gamma?
I think, values in range [-inf, 0) will give strange (no intuitive) results.
Maybe need call to_tuple(gamma_limit, low=0)?

I believe we need to add min/max values of all input parameters and check if input value is in allowed range. https://github.com/albu/albumentations/issues/337


Kurnetes Versions > 1.18

Thank you very much for your effort!
Has this been tested with Kubernetes versions > 1.18?
Specifically, I am referring to 1.20.1.

Thanks for the inquiry. The CSP version is dependent on what the corresponding version of HPE CSI Driver has been tested with. v1.3.0 is qualified and tested with Kubernetes 1.15 to 1.18. K8s 1.19 works but PV expansion is broken and 1.20 has not been tested at all AFAIK. The next version (release in the next couple of weeks) of the HPE CSI Driver will support 1.19 thoroughly and I know 1.20 works, but will not be tested and qualified until mid 2021.

Thanks for the inquiry. The CSP version is dependent on what the corresponding version of HPE CSI Driver has been tested with. v1.3.0 is qualified and tested with Kubernetes 1.15 to 1.18. K8s 1.19 works but PV expansion is broken and 1.20 has not been tested at all AFAIK. The next version (release in the next couple of weeks) of the HPE CSI Driver will support 1.19 thoroughly and I know 1.20 works, but will not be tested and qualified until mid 2021.

For what it's worth I just tried with version 1.20 and I got some errors. I won't bother opening another issue for it because it's obviously unsupported as yet.

For what it's worth I just tried with version 1.20 and I got some errors. I won't bother opening another issue for it because it's obviously unsupported as yet.

Thanks for kicking the tires @2fst4u and @bonetsm. It seems the next release, v1.4.0,  is passing K8s 1.20 testing and will then be supported sooner than I anticipated.

Thanks for kicking the tires @2fst4u and @bonetsm. It seems the next release, v1.4.0,  is passing K8s 1.20 testing and will then be supported sooner than I anticipated.

I've just the current version of this csp on hpe 1.4.0, and except for changing the default namespace of the csp, it worked in a VM

I've just the current version of this csp on hpe 1.4.0, and except for changing the default namespace of the csp, it worked in a VM

@ishioni thanks for verifying. A new release (v1.4.0) is available and has been tested against Kubernetes 1.20.1.

@ishioni thanks for verifying. A new release (v1.4.0) is available and has been tested against Kubernetes 1.20.1.

I've just tried the current version of this csp on hpe 1.4.0, and except for changing the default namespace of the csp, it worked in a VM, kubeadm 1.20

Hmm not sure why it didn't work for me. Was the namespace change required to get it to work? That might be what I didn't do but I didn't look into it too much assuming it was just incompatible.
If there's something I'm missing I'll try again and open a new issue to figure out what I'm doing wrong now we know it will work.

I've just tried the current version of this csp on hpe 1.4.0, and except for changing the default namespace of the csp, it worked in a VM, kubeadm 1.20

Hmm not sure why it didn't work for me. Was the namespace change required to get it to work? That might be what I didn't do but I didn't look into it too much assuming it was just incompatible.
If there's something I'm missing I'll try again and open a new issue to figure out what I'm doing wrong now we know it will work.

@2fst4u yes, the CSI driver v1.4.0 deploys all components in the "hpe-storage" Namespace and the CSPs and their respective Services and Secrets need to reside in the same Namespace. Also make sure the correct Namespace is called out in your StorageClass.

@2fst4u yes, the CSI driver v1.4.0 deploys all components in the "hpe-storage" Namespace and the CSPs and their respective Services and Secrets need to reside in the same Namespace. Also make sure the correct Namespace is called out in your StorageClass.

@datamattsson hmm everything is in that namespace as it appears to be the default throughout unless there's somewhere I'm missing that needs it changed.
My storageclass is the same as the example given except for the "root", which I'm hoping I've named correctly but I'm not sure where to validate this. I have it set as "[pool]/[dataset]".
My secret is a copy/paste of the example except for my own credentials being added too.
I'm sure I'm doing something wrong but I've got no clue what it is.

@datamattsson hmm everything is in that namespace as it appears to be the default throughout unless there's somewhere I'm missing that needs it changed.
My storageclass is the same as the example given except for the "root", which I'm hoping I've named correctly but I'm not sure where to validate this. I have it set as "[pool]/[dataset]".
My secret is a copy/paste of the example except for my own credentials being added too.
I'm sure I'm doing something wrong but I've got no clue what it is.

@2fst4u I'm sure it's something simple. There are some diagnostic steps you can follow here: https://scod.hpedev.io/csi_driver/diagnostics.html what does the event log say on the PVC when you do a kubectl describe pvc/your-pvcname?

@2fst4u I'm sure it's something simple. There are some diagnostic steps you can follow here: https://scod.hpedev.io/csi_driver/diagnostics.html what does the event log say on the PVC when you do a kubectl describe pvc/your-pvcname?

I don't have a PVC yet because the containers the install instructions are trying to create are continually in backoff state. Is that my issue? Do I need a PVC before the containers will start properly? I was holding off because I was sure that was a step I needed to sort out first.

I don't have a PVC yet because the containers the install instructions are trying to create are continually in backoff state. Is that my issue? Do I need a PVC before the containers will start properly? I was holding off because I was sure that was a step I needed to sort out first.

Ouch, if they're in CrashloopBackoff there's usually something note quite right on the nodes themselves. What OS are you running on the worker nodes? What does the event logs on the Pods in the driver controllers?

Ouch, if they're in CrashloopBackoff there's usually something note quite right on the nodes themselves. What OS are you running on the worker nodes? What does the event logs on the Pods in the driver controllers?

This may lead down the garden path to what I'm doing wrong, but it's Raspberry pi OS (one is arm64, the other arm). Might I be missing some key iSCSI components in that case?
What command are you after for those logs? I might be reading wrong but the logs command doesn't work for a node.

This may lead down the garden path to what I'm doing wrong, but it's Raspberry pi OS (one is arm64, the other arm). Might I be missing some key iSCSI components in that case?
What command are you after for those logs? I might be reading wrong but the logs command doesn't work for a node.

Yeah, full stop right there. We don't build ARM images for the CSI driver (that's what you'll find in the logs). I've brought it up with the team but it has not been prioritized. You can build the CSI driver and TrueNAS CSP image yourself on ARM if you're feeling adventurous. I just got a RPi so I might look into it.

Yeah, full stop right there. We don't build ARM images for the CSI driver (that's what you'll find in the logs). I've brought it up with the team but it has not been prioritized. You can build the CSI driver and TrueNAS CSP image yourself on ARM if you're feeling adventurous. I just got a RPi so I might look into it.

You can imagine how hard I'm slapping my forehead. I was just about to check if the image supported arm.
Not to worry, x86 is necessary for a few other things I want to run so I'll just get a node to handle that eventually.
Cheers for putting up with the noob-ness. I'll watch the repo for maybe Arm one day 🤞

You can imagine how hard I'm slapping my forehead. I was just about to check if the image supported arm.
Not to worry, x86 is necessary for a few other things I want to run so I'll just get a node to handle that eventually.
Cheers for putting up with the noob-ness. I'll watch the repo for maybe Arm one day 🤞


[Candidate 3v3 Territorial Dispute] Title text shows up too late

Issue Description
Title text shows up too late.
Expected behavior
Title text shows right after map load.
Screenshots

I'll work on this one

I could be wrong but I think this is the map that he put a lock on, I asked him to unlock it a few weeks ago but he said if you need it unlocked then let me know. I can ask or you can.

Not fixed in latest version. Title text shows a few seconds after map begin, which is a few seconds later than necessary. Text ends at 13 seconds, which is quite long into the map time.

Fixed with https://github.com/xezon/GeneralsRankedMaps/commit/4fc34771d255eee8924641e429f18e127f01d148


Optimize calculateFitnesss

I noticed that you end up recalculating the fitness for an individual multiple times, but you also store the fitness and never reuse it.
I decided to demonstrate a python feature - the @property decorator, which lets you treat something like a class property. Since fitness is a property, we can do
    @property
    def fitness(self):
        if self._score == -1:
            self._score = 0
            for own_letter, target_letter in zip(self._dna, TARGET):
                if own_letter == target_letter:
                    self._score += 1

            self._fitness = self._score / len(TARGET)
        return self._fitness

if __name__ == "__main__":
    x = Individual()
    print(x.fitness)

and Python will automatically call x.fitness(). Note that we set _fitness and _score to -1 when we call getDNA: this is to signal that the fitness changes (since the DNA has changed), and the next time someone does x.fitness, we will recalculate it. However, when we don't modify the dna, the fitness is the same and we don't need to calculate it again, so we can just return the value that is stored.

@philippeitis
that's super cool, will look forward to it


minor visual changes.

@rootedbox did you see the pivotal story about the bullets being centered?

@taariq no I just saw it.. it's not assigned to me.. will fix now


Nancy Drew: Secrets Can Kill (original version) does not start. IDirectDraw__GetGDISurface NOT_IMPLEMENTED

As it says in the title. Please find the log attached.
cnc-ddraw.log

Can't find the original version sadly. But if you know how to compile cnc-ddraw, you could try to change this line here
https://github.com/CnCNet/cnc-ddraw/blob/master/src/IDirectDraw/IDirectDraw.c#L342
to:
HRESULT ret = DD_OK;

Can't find the original version sadly. But if you know how to compile cnc-ddraw, you could try to change this line here
https://github.com/CnCNet/cnc-ddraw/blob/master/src/IDirectDraw/IDirectDraw.c#L342
to: HRESULT ret = DD_OK;

I got it compiled. Now I get the same bug, but with SetSurfaceDesc

Oh wow, I've never seen a game using SetSurfaceDesc in all the years. Very interesting! I Guess I'll have to get the game somewhere

Oh wow, I've never seen a game using SetSurfaceDesc in all the years. Very interesting! I Guess I'll have to get the game somewhere

You can find one here - https://archive.org/details/nancy-drew-PC-Game-Collection! You'll likely need to edit the .ini file to point at your cd data since I've never gotten the installer to work.

nice, thanks! I missed that one. I got the second game (Stay Tuned For Danger) from archive.org now. It does have the same issue, will try to fix it and afterwards retry with the first one just to be sure.

Looks like both games are working now. Second one doesn't use "GetGDISurface", so it should be fine. First one may have some issues if it's using some GDI stuff.

Oh wow, I've never seen a game using SetSurfaceDesc in all the years. Very interesting!

DosBox also uses SetSurfaceDesc() to set lpSurface.

I can confirm that the first Nancy Drew game now works!


Modyfing additional artifact name break SBT

test.zip
Sample project attached.
1 - Run sbt clean - should work. Output will be like
[info] Loading global plugins from /Users/user/.sbt/0.13/plugins
[info] Set current project to parent (in build file:/Users/user/Projects/test/)

2 - Modify child/build.sbt and change
addArtifact(Artifact("foobar", "txt", "txt"), foobar).settings

to
addArtifact(Artifact("blah", "txt", "txt"), foobar).settings

3 - Run sbt clean - should work. Output will be like
[info] Loading global plugins from /Users/user/.sbt/0.13/plugins
[info] Loading project definition from /Users/user/Projects/test/project
[info] Updating {file:/Users/user/Projects/test/project/}test-build...
[info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-2cc8d2761242b072cedb0a04cb39435[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to parent (in build file:/Users/user/Projects/test/)

(Why the output is different this time?)
4 - Modify child/build.sbt again and change
addArtifact(Artifact("blah", "txt", "txt"), foobar).settings

to
addArtifact(Artifact("boom", "txt", "txt"), foobar).settings

5 - Run sbt clean - it will fail with message as below
[info] Loading global plugins from /Users/user/.sbt/0.13/plugins
[info] Loading project definition from /Users/user/Projects/test/project
/Users/user/Projects/test/child/build.sbt:3: error: overloaded method value addArtifact with alternatives:
  (artifact: sbt.Def.Initialize[sbt.Artifact],taskDef: sbt.Def.Initialize[sbt.Task[java.io.File]])sbt.Def.SettingsDefinition <and>
  (a: sbt.Artifact,taskDef: sbt.TaskKey[java.io.File])sbt.Def.SettingsDefinition
 cannot be applied to (sbt.Artifact, sbt.TaskKey)
addArtifact(Artifact("boom", "txt", "txt"), foobar).settings
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

Retry does not work nor subsequent launching of SBT. To fix problem you need to manually delete project folder and then - lo and behold! - without further changes to build files SBT will accept configuration.
SBT 0.13.11

This seems to work fine on sbt 1.3.2.


Collection AutoSync list not showed on Windows 11

Describe the issue
After a clean installation of Notero, everything is working well, but in the Zotero desktop App on Windows 11 in the settings the list of all the collections which can be synced.
The test has been made with the same installation and version on Windows 10 and the list is shown.
To Reproduce
Windows 11
Notero : 0.4.11
Zotero : <IP_ADDRESS>
Expected behavior
The list to select the collection must appear.

Hi @CossonArthur, thanks for reporting this issue.
I see that you're on version <IP_ADDRESS> of Zotero which is now over two years old. Notero hasn't been tested on Zotero 5 in a while, and I think the collections list specifically is using some functionality that's only available in Zotero 6 and up.
Are you able to update to the latest version of Zotero (6.0.27) and see if Notero works as expected with that?

Updating Zotero, solve the issue !
Might be a change in the architecture


G_IM_FMT_DIRECT

Untested custom texture format
Max width/height is 65536, no loss or compression so use rarely if at all
This is just here now incase it ever becomes needed

that is a VERY large res.


[FEATURE]: Cannot style select options in Stripe Elements

What happened?
Feature request.
Description
There is a known browser bug when html option element will have white background if its parent select html element has transparent background (e.g. #ffffffdd or rgba(255, 255, 255, 0.6)).
This could be fixed when styling html option elements directly.
In Stripe Element select options cannot be styled directly because they do not have any class associated.
And Stripe does not allow to use css ancestor selector to address this case (e.g. selector .Input option).
Request
Requested feature is to add css class to html option element which can be styled later using Appearence Api Rules.
Environment
Chrome latest, Ms Edge latest, Firefox latest, Arc latest
Reproduction
https://codepen.io/AmeliaBR/pres/PpEPGz

Hey @elapshynov -- thanks for filing this request. It's feedback we've heard before and I've added your request here to our internal tracker for interest in this! As this pertains to the underlying Appearance API in Stripe.js and not anything specific to this module/repository I'm going to close the issue.


Need to return project ID, process ID when create via API

What is the purpose of the pull request
when call API to create project and process, I need project ID and process ID to be returned
The version I used is 1.2.0，
When call /dolphinscheduler/projects/create, I can create a project successfully, but returned message doesn't include project ID I created.
When call /dolphinscheduler/projects/{projectName}/process/save, I can create a process successfuly but returned message has no process ID.
This make me difficult to maintain the relationship between two systems. since update API is based on ID not name.

as you can see, this PR changes 182 files and there are so many Conflicting files.
Suggestion:
you can pull the dev branch to your local and submit a Pull Request from your local dev branch to remote dev branch,  not  from 1.2.1 release, because dev branch has too many update

I have to bypass this issue by query all the projects and compare with projectName to get project ID at this time. hopefully this issue can be fixed in next release.

Hi lidong，if i change code in branch and submit Pr, could the changed code be merged in future release?

Hi lidong，if i change code in branch and submit Pr, could the changed code be merged in future release?

yes, of course

@GabrielWithTina I will close this issue ，you'd better create another PR which bases on the dev branch

hi @gabrywu，i have submit pr and merge code to dev branch


Fix subtype in PartitionTable.find_by_type (IDFGH-2646)

I was getting odd "Partition not found" results from parttool.py. Tracked it down to this line in gen_esp32part.py where 'ptype' has obviously not been updated to 'subtype'. Results are now as expected with the fix.

Thank you @boarchuz for your contribution. We will review this internally.


Getting stuck at:  + CloudFlare hook executing: deploy_challenge

Hi, I opened an issue before and resolved the issue. I was able to create a few new certs successfully. I've tried the same script again on a new domain (on the same server as before) and I'm getting this error:
# INFO: Using main config file /home/user/letsencrypt.sh/config.sh
Processing mydomain.com
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for mydomain.com...
 + CloudFlare hook executing: deploy_challenge
Traceback (most recent call last):
  File "hooks/cloudflare/hook.py", line 157, in <module>
    main(sys.argv[1:])
  File "hooks/cloudflare/hook.py", line 153, in main
    ops[argv[0]](argv[1:])
  File "hooks/cloudflare/hook.py", line 96, in create_txt_record
    zone_id = _get_zone_id(domain)
  File "hooks/cloudflare/hook.py", line 75, in _get_zone_id
    r.raise_for_status()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 840, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.cloudflare.com/client/v4/zones?name=mydomain.com

Removing config.sh works. This was the content of my config.sh file:
export<EMAIL_ADDRESS>export CF_KEY='cloudflare_global_api_key'

Is this issue caused by letsencrypt.sh or letsencrypt-cloudflare-hook?

Hello, did you resolve this issue?
I don't think it has to do with either letsencrypt.sh or letsencrypt-cloudflare-hook. Under the hood config.sh is sourced by letsencrypt.sh, so as long as the former is valid, it is exactly the same as typing the commands yourself in the shell (or sourcing another file that sets up the environment).
So, you could:
export<EMAIL_ADDRESS>>> config.sh
export CF_KEY='cloudflare_global_api_key' >> config.sh
mv config.sh conf_test.sh
source conf_test.sh
letsencrypt.sh -c -d domain.com -t dns-01 -k hooks/cloudflare/hook.py'

Does the above work? It should, if you are entering the correct credentials.

I was incorrectly using config.sh. Thanks!


Client connects, but no internet access

Hi there,
Started today with Pivpn and installed it using Jessie. I successfully connected my Android phone using the client ovpn file. However, when using the openvpn client on my android phone, it can't connect to the internet.
Log of the client:
19:39:14.966 -- ----- OpenVPN Start -----
19:39:14.970 -- EVENT: CORE_THREAD_ACTIVE
19:39:14.990 -- Frame=512/2048/512 mssfix-ctrl=1250
19:39:15.001 -- UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
11 [verify-x509-name] [server_WXyX2zjIT3ZYexAq] [name]
14 [auth-nocache]
15 [verb] [3]
19:39:15.002 -- EVENT: RESOLVE
19:39:15.502 -- Contacting <IP_ADDRESS>:1194 via UDP
19:39:15.503 -- EVENT: WAIT
19:39:15.507 -- Connecting to [raspigetaart.duckdns.org]:1194 (<IP_ADDRESS>) via UDPv4
19:39:15.567 -- EVENT: CONNECTING
19:39:15.572 -- Tunnel Options:V4,dev-type tun,link-mtu 1569,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-client
19:39:15.575 -- Creds: UsernameEmpty/PasswordEmpty
19:39:15.578 -- Peer Info:
IV_GUI_VER=OC30Android
IV_VER=3.2
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_AUTO_SESS=1
19:39:16.403 -- VERIFY OK : depth=1
cert. version     : 3
serial number     : A8:50:A8:35:1B:D3:F7:F4
issuer name       : CN=ChangeMe
subject name      : CN=ChangeMe
issued  on        : 2019-07-25 05:57:06
expires on        : 2029-07-22 05:57:06
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
19:39:16.410 -- VERIFY OK : depth=0
cert. version     : 3
serial number     : C7:18:E6:CE:FB:3A:C5:E9:B2:45:2E:33:14:3F:94:5F
issuer name       : CN=ChangeMe
subject name      : CN=server_WXyX2zjIT3ZYexAq
issued  on        : 2019-07-25 05:57:25
expires on        : 2022-07-09 05:57:25
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
subject alt name  : server_WXyX2zjIT3ZYexAq
key usage         : Digital Signature, Key Encipherment
ext key usage     : TLS Web Server Authentication
19:39:17.819 -- SSL Handshake: TLSv1.2/TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
19:39:17.822 -- Session is ACTIVE
19:39:17.823 -- EVENT: GET_CONFIG
19:39:17.830 -- Sending PUSH_REQUEST to server...
19:39:17.875 -- OPTIONS:
0 [dhcp-option] [DNS]
1 [dhcp-option] [DNS]
2 [block-outside-dns]
3 [redirect-gateway] [def1]
4 [route-gateway] [<IP_ADDRESS>]
5 [topology] [subnet]
6 [ping] [1800]
7 [ping-restart] [3600]
8 [ifconfig] [<IP_ADDRESS>] [<IP_ADDRESS>]
19:39:17.880 -- PROTOCOL OPTIONS:
cipher: AES-256-CBC
digest: SHA256
compress: NONE
peer ID: -1
19:39:17.894 -- EVENT: ASSIGN_IP
19:39:17.901 -- Error parsing dhcp-option: [dhcp-option] [DNS]  : option_error: option 'dhcp-option' must have exactly 3 arguments
19:39:17.912 -- Error parsing dhcp-option: [dhcp-option] [DNS]  : option_error: option 'dhcp-option' must have exactly 3 arguments
19:39:17.913 -- Google DNS fallback enabled
19:39:17.988 -- Connected via tun
19:39:17.989 -- EVENT: CONNECTED info='@raspigetaart.duckdns.org:1194 (<IP_ADDRESS>) via /UDPv4 on tun/<IP_ADDRESS>/ gw=[<IP_ADDRESS>/]' trans=TO_CONNECTED
OpenVPN server.conf
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_WXyX2zjIT3ZYexAq.crt
key /etc/openvpn/easy-rsa/pki/private/server_WXyX2zjIT3ZYexAq.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
Set your primary domain name server address for clients
push "dhcp-option DNS "
push "dhcp-option DNS "
Prevent DNS leaks on Windows
push "block-outside-dns"
Override the Client default gateway by using <IP_ADDRESS>/1 and
<IP_ADDRESS>/1 rather than <IP_ADDRESS>/0. This has the benefit of
overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
Generated for use by PiVPN.io
.ovpn file
client
dev tun
proto udp
remote raspigetaart.duckdns.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_WXyX2zjIT3ZYexAq name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3

I think this may be the same as https://github.com/pivpn/pivpn/issues/799 where ufw on Jessie doesn't support the route setup.

Please, fill the issue template first.

I ran used pivpn to install OpenVPN server on two Pi's on the same day. One worked flawlessly. For the other, clients connect fine but just could not access the Internet. It turned out that NAT wasn't running. The machine where the VPN server resides has to perform NAT for the client's traffic in order to forward them onto the LAN and out to the Internet.
My problem was solved with just this command:
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/24 -o eth0 -j MASQUERADE

I hope this can help you. You may have to change the IP address/mask and interface accordingly.