docs: [4.4] fix Rector's incorrect refactoring

Description
Related #7649
The following refactoring will break the code.
Two tests will fail:

AutoRouterImprovedTest::testFindsControllerAndMethodAndParam()
AutoRouterImprovedTest::testPermitsURIWithUnderscoreParam()

1) system/Router/AutoRouterImproved.php:294

    ---------- begin diff ----------
@@ @@

             // Update the positions.
             $this->methodPos = $this->paramPos;
-            if ($params === []) {
-                $this->paramPos = null;
-            }
+            $this->paramPos = null;
             if ($this->paramPos !== null) {
                 $this->paramPos++;
             }
    ----------- end diff -----------

Applied rules:
 * RemoveAlwaysTrueIfConditionRector

https://github.com/codeigniter4/CodeIgniter4/actions/runs/5449192482/jobs/9913186865
Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[] Unit testing, with >80% coverage
[] User guide updated
[x] Conforms to style guide

could you create a simple reproducible bug on https://getrector.com/demo , it seems correct just by looking at it, but probably it prefilled/unset in other side that cause side effect on the property value.

@samsonasik Created https://github.com/rectorphp/rector/issues/8039

@kenjis the @var seems can be used for it, see https://getrector.com/demo/93fe0739-0ee0-4587-9456-1c6901384da8

@samsonasik Thanks. I removed skipping RemoveAlwaysTrueIfConditionRector,
and added @phpstan-var.

The following error will be fixed by #7661
1) system/Commands/Utilities/Routes.php:118

    ---------- begin diff ----------
@@ @@
         $definedRouteCollector = new DefinedRouteCollector($collection);

         foreach ($definedRouteCollector->collect() as $route) {
-            if (is_string($route['handler']) || $route['handler'] instanceof Closure) {
-                $sampleUri = $uriGenerator->get($route['route']);
-                $filters   = $filterCollector->get($route['method'], $sampleUri);
-
-                $routeName = ($route['route'] === $route['name']) ? '»' : $route['name'];
-
-                $tbody[] = [
-                    strtoupper($route['method']),
-                    $route['route'],
-                    $routeName,
-                    $route['handler'],
-                    implode(' ', array_map('class_basename', $filters['before'])),
-                    implode(' ', array_map('class_basename', $filters['after'])),
-                ];
-            }
+            $sampleUri = $uriGenerator->get($route['route']);
+            $filters   = $filterCollector->get($route['method'], $sampleUri);
+            $routeName = ($route['route'] === $route['name']) ? '»' : $route['name'];
+            $tbody[] = [
+                strtoupper($route['method']),
+                $route['route'],
+                $routeName,
+                $route['handler'],
+                implode(' ', array_map('class_basename', $filters['before'])),
+                implode(' ', array_map('class_basename', $filters['after'])),
+            ];
         }

         if ($collection->shouldAutoRoute()) {
    ----------- end diff -----------

Applied rules:
 * RemoveAlwaysTrueIfConditionRector

https://github.com/codeigniter4/CodeIgniter4/actions/runs/5471544778/jobs/9962789821?pr=7650


Updated link to the current .NET runtime repo

Thank you

I also updated the source of the problem, but no hopes that this template is still alive.


Update get_latest_tag.sh

Minor typo in this file.

@googlebot I signed it!

Thanks, @mpomarole!


python311Packages.pytest-cases: 3.8.4 -> 3.8.5

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.pytest-cases is: Separate test code from test cases in pytest
meta.homepage for python311Packages.pytest-cases is: https://github.com/smarie/python-pytest-cases
meta.changelog for python311Packages.pytest-cases is: https://github.com/smarie/python-pytest-cases/releases/tag/3.8.5
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.8.5 with grep in /nix/store/4r0nbv3wkwknkpanwnx14q4nhbsppgci-python3.11-pytest-cases-3.8.5
found 3.8.5 in filename of file in /nix/store/4r0nbv3wkwknkpanwnx14q4nhbsppgci-python3.11-pytest-cases-3.8.5

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

21 total rebuild path(s)

21 package rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.sia
python311Packages.cloudpathlib
python311Packages.fastai
python311Packages.mne-python
python311Packages.pins
python311Packages.pysiaalarm
python311Packages.pytest-cases
python311Packages.pytest-harvest
python311Packages.spacy
python311Packages.spacy-lookups-data
python311Packages.spacy-transformers
python311Packages.textacy
python311Packages.textnets
python311Packages.weasel
python312Packages.cloudpathlib
python312Packages.mne-python
python312Packages.pins
python312Packages.pysiaalarm
python312Packages.pytest-cases
python312Packages.pytest-harvest
python312Packages.weasel

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4r0nbv3wkwknkpanwnx14q4nhbsppgci-python3.11-pytest-cases-3.8.5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.pytest-cases https://github.com/r-ryantm/nixpkgs/archive/0e011d203802f9d2898e5a8c2f1e86bb0a7787f8.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/0e011d203802f9d2898e5a8c2f1e86bb0a7787f8#python311Packages.pytest-cases

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4r0nbv3wkwknkpanwnx14q4nhbsppgci-python3.11-pytest-cases-3.8.5
ls -la /nix/store/4r0nbv3wkwknkpanwnx14q4nhbsppgci-python3.11-pytest-cases-3.8.5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

10 packages failed to build:

python311Packages.mne-python
python311Packages.mne-python.dist
python312Packages.mne-python
python312Packages.mne-python.dist
python312Packages.pins
python312Packages.pins.dist
python312Packages.pytest-harvest
python312Packages.pytest-harvest.dist
python312Packages.weasel
python312Packages.weasel.dist

31 packages built:

home-assistant-component-tests.sia
python311Packages.cloudpathlib
python311Packages.cloudpathlib.dist
python311Packages.fastai
python311Packages.fastai.dist
python311Packages.pins
python311Packages.pins.dist
python311Packages.pysiaalarm
python311Packages.pysiaalarm.dist
python311Packages.pytest-cases
python311Packages.pytest-cases.dist
python311Packages.pytest-harvest
python311Packages.pytest-harvest.dist
python311Packages.spacy
python311Packages.spacy-lookups-data
python311Packages.spacy-lookups-data.dist
python311Packages.spacy-transformers
python311Packages.spacy-transformers.dist
python311Packages.spacy.dist
python311Packages.textacy
python311Packages.textacy.dist
python311Packages.textnets
python311Packages.textnets.dist
python311Packages.weasel
python311Packages.weasel.dist
python312Packages.cloudpathlib
python312Packages.cloudpathlib.dist
python312Packages.pysiaalarm
python312Packages.pysiaalarm.dist
python312Packages.pytest-cases
python312Packages.pytest-cases.dist

Maintainer pings
cc @fabaff for testing.

Done in #302498.


Add recommendation to pcli to try pcli tx sweep for planning failures

When attempting to plan transactions, if a wallet has too many dust notes it's likely that the user will receive an "Error: can't plan delegation"/"failed to plan transaction after 100 iterations" error message. The way to resolve this is to run pcli tx sweep to combine the low-value notes, however the current error message doesn't make this clear and it's been a point of confusion for users.
Since validators will mostly be using pcli, it seems worthwhile to add a hint to the text that they may wish to try running pcli tx sweep and re-submitting the transaction.

Closed as duplicate of #4414


Update generators.js

function squareBlueCloud()

Could you use push() and pop()  when changing the drawing settings so that your changes don't cause collateral effect to the project. Could you also fix your bounding box so that the name shows properly (once you have inserted the push and pop, the bounding box would be [width / 2 - maxLen * 15 / 2, height / 2 - maxLen * 15 / 2, maxLen * 15, maxLen * 15])

@G4m3M4ni4c It should be fine without push/pop, because these are reset when drawing occurs again

@meiamsome Ok, that's cool. @juansrx If you don't add push/pop, you can use the bounding box [width / 2, height / 2, maxLen * 15, maxLen * 15]

@juansrx I have made some changes to fix your cloud, please validate that you are good with the changes, and I will merge the PR.

@G4m3M4ni4c Hello, thanks for your help, feel free to make any change you need, I'm completely ok with them.

I really like you cloud, by the way!

Thank you

@juansrx I don't think this cloud will be usable in its current form for the name tags because it doesn't really have room for a name (And I don't think colour is necessarily allowed). Do you want to whip up a b&w one which is primarily the border?

@meiamsome I made a pull request with some changes, feel free to tell me if you need something else.


Dismiss question as host

(NOTE: This issue is a migrated issue from the old git instance)

Just kidding, it's been in there since 589e63ca6e243c00667bce5b4080543cd80a6e51

Just kidding, it's been in there since 589e63ca6e243c00667bce5b4080543cd80a6e51


Kamel install -o yaml should not try to connect to a cluster

In general, we can try to remove all installation specific checks done by the kamel binary and install something that works on all platforms. We can embed in the user cluster role also special permissions for knative, so we always install them, even if the cluster has not knative installed.
So kamel install -o yaml should return something generic for all platforms.

I think this is the same as #886


PowerShell mode for CodeMirror

This is a PowerShell mode for CodeMirror.
I've done it a while ago, so I don't remember all details, but the following should work well:

Various literals
Variables, including ${}
Various operators
String interpolation, including nested string interpolation
Builtins (known variables and functions)

And I've just added some tests (around 94% code coverage).
Let me know if there are any issues.

@ashmind Can you squash the commits? Thanks.

@Dominator008 I thought about squashing them, but wouldn't that eliminate @benpmiller and @VapidWorx from the history?

@ashmind Maybe squash into three / four commits?

@Dominator008 OK I'll try that.

@Dominator008 See #3911.


[99] Show Issue Title

Summary
If the commit we receive references an issue number in the format [99], replace the issue number with the Issues title.
This works for as many matches of [{issue number}] there are in a commit message.
Raw Commit Message:
[1] another one
Coda Table Entry:

Github Issue:

Done! Both [99] [#99] will work now


Update to latest eslint-config-zeal and eslint-plugin-react

This fixes an issue in eslint-plugin-react and allows us to have the react/no-danger-with-children rule enabled.

LGTM


[22.05] cmark-gfm: 0.29.0.gfm.3 -> 0.29.0.gfm.6

Description of changes
https://nvd.nist.gov/vuln/detail/CVE-2022-39209
All small releases. Addressed in  #191937 for unstable. Didn't include the test enablement from that PR here as it fails - I suspect it's related to the older cmake we have in 22.05.
Checked pkgsMusl & pkgsCross.aarch64-multiplatform build happily.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[x] 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/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

heya, do we wanna backport all changes from https://github.com/NixOS/nixpkgs/pull/191937  ?
if so - would switching the tests to be enabled be worth adding here as well ?

Didn't include the test enablement from that PR here as it fails - I suspect it's related to the older cmake we have in 22.05.


Fix misalignment of the sidebar and the content

Motivation
Resolving this issue https://github.com/facebook/Docusaurus/issues/647
Have you read the Contributing Guidelines on pull requests?
Yes
Related Issues
https://github.com/facebook/Docusaurus/issues/647

Nice work @ahmadalfy

Looks great !


Report Review, writing checklist check

This PR covers the next draft after going through the writing checklist, along with adding/altering figures that needed improvement, and re-making the tables I had as figures in the introduction as tex tables.
The report pdf is here.

I added more to the lit review on the PBMR and a few of its benchmarks/power peaking/burnup simulations, and a section on the HTR-10.

Hi @ZoeRichter do you mind uploading an updated PDF for us to read. You've pushed since you last uploaded the PDF I think.

I think the checklist branch is up-to-date, the main.pdf shows its last commit is the same as the one here.  The report pdf is here

@ZoeRichter does this still need to be merged?

@ZoeRichter --- ping.


Loading dialog Compose

Description
PR to create indeterminate loading dialog component which could be used for loading portal items, mmpks etc.
Links and Data
Sample Epic: runtime/kotlin/issues/2502
How to test if the dialog works
Run the sample load-portal-item using the branch https://github.com/Esri/arcgis-maps-sdk-kotlin-samples/tree/priyanka/loadingDialogTestCase/load-portal-item

Thanks @shubham7109. I applied your suggestions. 👍

Thanks @shubham7109 for the review.
I see we moved this to verify. are we okay with one review on this? I am fine either way.

Yes, we lets use one review for new compose components and use the daily build for verification.


Add ControlNet tile model handling to img2img and inpaint modes

Use alwayson_scripts in payload to submit the img2img or inpaint image to ControlNet 'tile' model. With added controls for ControlNet weight, guidance start, and guidance end, this allow to use a much greater denoising strength when inpainting, and let the tile model handle the image coherency.
To do :

[x] Add radio button to select ControlNet mode
[x] Add sliders to control CN weight, guidance start, guidance end
[x] Alter API payload
[x] Remove unwanted returned image by CN API
[x] Store settings locally
[ ] Load controlnet modules from API on launch
[ ] Replace hardcoded tile model name by the correct one from the API

Added tentative support for other ControlNet modules and models. This allow the feature detection, and use of adapted controlnet model.
Associated modules to models :

lineart_coarse => lineart
pidinet_scribble => scribble
openpose_faceonly & openpose_full => openpose


apache graceful restart + Apache connector + rules = memory leak

Set up memory test script

create this script at the end of this post
Make sure/etc/systemd/system.conf has these settings:

DefaultMemoryAccounting=yes
DefaultStartLimitInterval=1s
systemctl daemon-reexec if you had to edit those (and hard restart apache for good measure, systemctl status httpd | grep Memory should not have output).

install and configure apache connector (but do not configure any rules)

run memory test script ➜ no leak

# ~/check_httpd_memory_usage.sh
Memory usage before 200 restarts:
   Memory: 67.4M
...
Memory usage after 200 restarts:
   Memory: 67.3M
#

install and configure OWASP CRS
run memory test script ➜ leak

# ~/check_httpd_memory_usage.sh
Memory usage before 200 restarts:
   Memory: 67.4M
...
Memory usage after 200 restarts:
   Memory: 1.3G
# ~/check_httpd_memory_usage.sh

change script to do a hard restart (e.g. systemctl restart httpd) and the leak goes away

#!/bin/bash

set -e

NREQUESTS=200

# for good measure
systemctl stop httpd
systemctl start httpd

echo "Memory usage before $NREQUESTS restarts:"
systemctl status httpd | grep Memory

for ((i = 0 ; i < $NREQUESTS ; i++)); do
    echo -n "$i … "
    /usr/sbin/apachectl graceful
    sleep 2;
done

echo
echo "Memory usage after $NREQUESTS restarts:"
systemctl status httpd | grep Memory

apache 2.4.48 mpm_event
I'm also having a problem with modsecurity-apache and memory leak issue.
even without apachectl graceful, the memory usage keeps on growing until crash.

As mentioned in other issues, the ModSecurity-apache connector for use with ModSecurity v3 is not ready for production use.
With Apache, the recommendation is to use ModSecurity v2.9.

thought of using nginx instead of apache as reverse proxy but modsecurity-nginx seems to have the same issue.
https://github.com/SpiderLabs/ModSecurity-nginx/issues/236
and even same issue on modsecurity3 itself.
https://github.com/SpiderLabs/ModSecurity/issues/2552
hope it'll be fixed soon, and also modsecurity-apache to stage to production.


external sql + corrected test

external sql + corrected test

Ok, I fixed that one, but it still doesn't work.
Upon closer analysis I see code inside the library that is not valid.
Here's an example:
function pgjson (cn) {
    this.db = pgp(cn)

    this.wait = Promise.resolve()
    this.init()
  }

One cannot call a method that returns a promise, and then not chain it. The result of such a call is unpredictable.

The point is that the method returns a promise, but it also assigns the promise to this.wait, so you can ignore the returned value and chain from this.wait.


libRDKitChemReactions.so boost undefined reference

Description:

RDKit Version: rdkit_2018_03_4
Platform: x86_64 GNU/Linux

I am trying to build rdkit using instructions described here, with changes for new versions:
https://sourceforge.net/p/cfm-id/wiki/Home/#on-linux
I am also using following modules:

Boost 1.66.0
python/2.7.14
gcc/5.3.0
cmake/3.11.4

When I run "make install" in the rdkit_2018_03_04/build directory, I get the following error:
[ 77%] Built target ChemReactions_static
[ 77%] Linking CXX executable testReaction
../../../lib/libRDKitChemReactions.so.1.2018.03.4: undefined reference to boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load(std::string&)' ../../../lib/libRDKitChemReactions.so.1.2018.03.4: undefined reference to boost::archive::text_oarchive_implboost::archive::text_oarchive::save(std::string const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [Code/GraphMol/ChemReactions/testReaction] Error 1
make[1]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/all] Error 2
make: *** [all] Error 2
Not sure what is wrong. Any suggestions will be helpful!

Your code sample here

Can you please try doing: VERBOSE=1 make testReaction and make sure that the version of boost that is being linked against is the one you think it should be?

I'm having the exact same problem with RDKit 2018.09.1, using Boost 1.62 and gcc 5.2
[ 58%] Linking CXX executable testReaction ../../../lib/libRDKitChemReactions.so.1.2018.09.1: undefined reference to boost::archive::text_iarchive_implboost::archive::text_iarchive::load_override(boost::archive::class_name_type&)'
../../../lib/libRDKitChemReactions.so.1.2018.09.1: undefined reference to boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)' collect2: error: ld returned 1 exit status make[2]: *** [Code/GraphMol/ChemReactions/testReaction] Error 1 make[1]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/all] Error 2 make: *** [all] Error 2

I'm having the same issue with rdkit-Release_2018_09_3.tar.gz, using Boost 1.69 and gcc 4.85
I was able to get past it with
-DRDK_USE_BOOST_SERIALIZATION=OFF
but will this turn off all serialization or just use another method?
../../../lib/libRDKitChemReactions.so.1.2018.09.3: undefined reference to boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load_override(boost::archive::class_name_type&) ../../../lib/libRDKitChemReactions.so.1.2018.09.3: undefined reference to boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&) collect2: error: ld returned 1 exit status make[3]: *** [Code/GraphMol/ChemReactions/testReaction] Error 1 make[2]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/all] Error 2 make[1]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/rule] Error 2 make: *** [testReaction] Error 2

This turns off serialization for the reaction library enumeration, substructlibrary and filtercatalog
Basic pickling of molecules is not affected.

Hi,
I'm running into pretty much the same problem just with maeparser. I try to build from the source with Python 3.6.7, cmake 3.15, boost 1.70, rdkit 2019.03.2, ubuntu 18.04. Zlib is visible to boost.
I've tried to run VERBOSE=1 make testReaction, get the same error, don't know why:
Scanning dependencies of target testReaction
[100%] Building CXX object Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/testReaction.cpp.o
[100%] Linking CXX executable testReaction
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::deflated'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::before(char const*&, char const*, char*&, char*)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib_error::check(int)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::okay'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::xdeflate(int)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::reset(bool, bool)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::gzip_footer::reset()'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::stream_end'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::no_flush'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::best_speed'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::xinflate(int)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::zlib_base()'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::gzip_footer::process(char)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::best_compression'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::~zlib_base()'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::gzip_header::process(char)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::gzip_header::reset()'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::default_strategy'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::sync_flush'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::finish'
../../../lib/libRDKitmaeparser.so.1.2019.03.2: undefined reference to `boost::iostreams::zlib::default_compression'
collect2: error: ld returned 1 exit status
Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/build.make:110: recipe for target 'Code/GraphMol/ChemReactions/testReaction' failed
make[3]: *** [Code/GraphMol/ChemReactions/testReaction] Error 1
CMakeFiles/Makefile2:5410: recipe for target 'Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/all' failed
make[2]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/all] Error 2
CMakeFiles/Makefile2:5417: recipe for target 'Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/rule' failed
make[1]: *** [Code/GraphMol/ChemReactions/CMakeFiles/testReaction.dir/rule] Error 2
Makefile:1835: recipe for target 'testReaction' failed
make: *** [testReaction] Error 2

@untom , @greglandrum do you know where the problem may hide, maybe you have solved somehow?

@Ubikas Can you please share the exact cmake command that you executed?

Also note that I have not tested the code with boost 1.70, so that could be a problem.

@greglandrum , thank you for the fast response.
cmake -D PYTHON_LIBRARY=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a -D PYTHON_INCLUDE_DIR=/usr/include/python3.6/ -D PYTHON_EXECUTABLE=/usr/bin/python3 -DRDK_INSTALL_INTREE=OFF ..
by default there was boost 1.65.1, switching to 1.70 have soled lots of problems, but this reference problem... i'm stuck

so 1.65.1 is also known to work. What problems did switching to 1.70 solve?

I am not at my linux box right now, but I will try to take a look at this either later today or tomorrow.

that was yesterday, I have tried lot of things :) I think it was related with python. It wasn't able to identify python3 I guess and something else.
Just in case cmake log
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found Catch2 source in /home/darius/rdkit/External/catch/catch
CATCH: /home/darius/rdkit/External/catch/catch/single_include
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.7")
-- Found PythonLibs: /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a (found version "3.6.7")
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS python3
-- Found boost_headers 1.70.0 at /usr/local/lib/cmake/boost_headers-1.70.0
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS python-py36
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS python3
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS python36
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS python
-- Found boost_python 1.70.0 at /usr/local/lib/cmake/boost_python-1.70.0
--   libboost_python36-3.a
--   libboost_python27.a
-- Adding boost_python dependencies: headers
-- Found Boost: /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.56.0") found components:  python
Python Install directory /usr/local/rdkit/lib/python3.6/site-packages
PYTHON Py_ENABLE_SHARED: 1
PYTHON USING LINK LINE: -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions  -Wl,-z,relro
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET COMPONENTS serialization
-- Found boost_serialization 1.70.0 at /usr/local/lib/cmake/boost_serialization-1.70.0
--   libboost_serialization.a
-- Adding boost_serialization dependencies: headers
-- Found Boost: /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.56.0") found components:  serialization
== Using strict rotor definition
-- maeparser include dir set as 'maeparser_INCLUDE_DIRS-NOTFOUND'
-- maeparser libraries set as 'maeparser_LIBRARIES-NOTFOUND'
-- Could NOT find maeparser (missing: maeparser_INCLUDE_DIRS maeparser_LIBRARIES)
-- Found MAEParser source in /home/darius/rdkit/External/CoordGen/maeparser
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS system;iostreams
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
--   libboost_system.a
-- Adding boost_system dependencies: headers
-- Found boost_iostreams 1.70.0 at /usr/local/lib/cmake/boost_iostreams-1.70.0
--   libboost_iostreams.a
-- Adding boost_iostreams dependencies: headers
-- Found Boost: /usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.56.0") found components:  system iostreams
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- coordgen include dir set as coordgen_INCLUDE_DIRS-NOTFOUND
-- coordgen libraries set as 'coordgen_LIBRARIES-NOTFOUND'
-- coordgen templates file set as 'coordgen_TEMPLATE_FILE-NOTFOUND'
-- Could NOT find coordgen (missing: coordgen_INCLUDE_DIRS coordgen_LIBRARIES coordgen_TEMPLATE_FILE)
-- Found coordgenlibs source in /home/darius/rdkit/External/CoordGen/coordgen
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS system;iostreams
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
--   libboost_system.a
-- Adding boost_system dependencies: headers
-- Found boost_iostreams 1.70.0 at /usr/local/lib/cmake/boost_iostreams-1.70.0
--   libboost_iostreams.a
-- Adding boost_iostreams dependencies: headers
-- Found Boost 1.70.0 at /usr/local/lib/cmake/Boost-1.70.0
--   Requested configuration: QUIET REQUIRED COMPONENTS system;iostreams
-- Found boost_system 1.70.0 at /usr/local/lib/cmake/boost_system-1.70.0
--   libboost_system.a
-- Adding boost_system dependencies: headers
-- Found boost_iostreams 1.70.0 at /usr/local/lib/cmake/boost_iostreams-1.70.0
--   libboost_iostreams.a
-- Adding boost_iostreams dependencies: headers
== Making EnumerateLibrary without boost Serialization support
== Making FilterCatalog without boost Serialization support
== Updating Filters.cpp from pains file
== Done updating pains files
== Making SubstructLibrary without boost Serialization support
-- Found RapidJSON source in /home/darius/rdkit/External
-- Configuring done
-- Generating done
-- Build files have been written to: /home/darius/rdkit/build

This Dockerfile shows how to do an RDKit build on an Ubuntu 18.04 system using the system Python and Boost versions:
https://github.com/rdkit/rdkit_containers/tree/master/docker/ubuntu_bionic

yes, I I've found it earlier and followed, but unfortunately I'm getting these undefined reference errors anyway. I will downgrade boost to 1.69. Don't have any other thoughts

I’m not sure what you mean by you followed it. That recipe uses the system version of boost, which is certainly not 1.70. If you install the packages that the Dockerfile installs and issue the build command the same way, it really should work.

well, I installed packages defined in the docker file. Nevertheless I do not see cmake, boost versions defined in the docker, so like I mentioned before, used the latest ones. Cmake 3.15 and boost 1.70.

The Dockerfile installs boost and cmake here on lines 10 and 11:
https://github.com/rdkit/rdkit_containers/blob/master/docker/ubuntu_bionic/Dockerfile#L10
It installs the versions that you get from ubuntu 18.04: cmake 3.10 and boost 1.65.1
I would really suggest starting with this and then, once you have things working with the "simple" case, you can try newer boost and cmake versions if you need to.

yes, thank you, that's where i actually started and unfortunately it didn't work out, so I started to upgrade to newer. Probably would be healthy to reinstall ubuntu, but I'm not sure I'm willing to do that just because of rdkit :) In case there are no any other ideas where the problem could hide I will probably try to play around a little bit and I will drop a line here if I will succeed. Thank you @greglandrum for the assistance.

Sorry to revive an old thread, but I have just run into the same issue and I found the reason. I was using g++ 8 (CentOS 8) for the first time to build RDKit, and I was attempting to link against Boost 1.66 build on GCC 5.3.0 (CentOS 8 devtoolset-4). Apparently GCC 5.3.0 in devtoolset-4 defaulted to _GLIBCXX_USE_CXX11_ABI=0, whereas GCC 8 defaults to _GLIBCXX_USE_CXX11_ABI=1. As name mangling for boost::archive::text_oarchive_impl symbols is quite different in the two ABIs, this is why linking fails.
Adding a
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=0")

in the root CMakeLists.txt file of the project allows building and linking g++-8 compiled objects against g++-5 Boost without problems.

I am trying to build the dockerfile above, and get:
Step 18/20 : RUN cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
 ---> Running in 29d7cdac92fc
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Catch not found in /src/rdkit/External/catch/catch
Downloading https://github.com/catchorg/Catch2/archive/v2.12.1.tar.gz...
CATCH: /src/rdkit/External/catch/catch/single_include/catch2
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.9")
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
  No header defined for python3; skipping header check
Call Stack (most recent call first):
  CMakeLists.txt:281 (find_package)

PYTHON Py_ENABLE_SHARED: 1
PYTHON USING LINK LINE: -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions  -Wl,-z,relro
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   serialization
== Using strict rotor definition
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   iostreams
--   regex
-- maeparser include dir set as 'maeparser_INCLUDE_DIRS-NOTFOUND'
-- maeparser libraries set as 'maeparser_LIBRARIES-NOTFOUND'
-- Could NOT find maeparser (missing: maeparser_INCLUDE_DIRS maeparser_LIBRARIES)
Downloading https://github.com/schrodinger/maeparser/archive/v1.2.3.tar.gz...
-- coordgen include dir set as coordgen_INCLUDE_DIRS-NOTFOUND
-- coordgen libraries set as 'coordgen_LIBRARIES-NOTFOUND'
-- Could NOT find coordgen (missing: coordgen_INCLUDE_DIRS coordgen_LIBRARIES)
Downloading https://github.com/schrodinger/coordgenlibs/archive/v1.4.1.tar.gz...
Downloading https://github.com/rareylab/RingDecomposerLib/archive/v1.1.3_rdkit.tar.gz...
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   iostreams
--   regex
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   iostreams
--   regex
== Updating Filters.cpp from pains file
== Done updating pains files
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindFreetype.cmake:157 (find_package_handle_standard_args)
  Code/GraphMol/MolDraw2D/CMakeLists.txt:42 (find_package)

-- Configuring incomplete, errors occurred!
See also "/src/rdkit/build/CMakeFiles/CMakeOutput.log".
See also "/src/rdkit/build/CMakeFiles/CMakeError.log".
The command '/bin/sh -c cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 ..' returned a non-zero code: 1

@jeichenseerNRX : that dockerfile hasn't been updated in a bit and some additional dependencies have been added to master (it looks like you are building against master).
I think if you add libfreetype6-dev and libfreetype6 to the apt install command at the top things should work.

That worked!
The build completed, all tests passed. Thank you.


can't initiate xss scan

when i start i see this error:
[i] Starting scan...
┌───────────────────────────────────────────────┐
│ → Scanning URL: https://site.com/search?q= │
└───────────────────────────────────────────────┘
Traceback (most recent call last):
File "/home/user/tools/loxs/loxs.py", line 1754, in
main()
File "/home/user/tools/loxs/loxs.py", line 1747, in main
handle_selection(choice)
File "/home/user/tools/loxs/loxs.py", line 1724, in handle_selection
run_xss_scanner()
File "/home/user/tools/loxs/loxs.py", line 1153, in run_xss_scanner
main()
File "/home/user/tools/loxs/loxs.py", line 1143, in main
vulnerable_urls, scanned = run_scan([url], payload_file, concurrency, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/tools/loxs/loxs.py", line 1003, in run_scan
driver = webdriver.Chrome(service=driver_service, options=chrome_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init
super().init(command_executor=executor, options=options)
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 212, in init
self.start_session(capabilities)
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 129.0.6668.89 with binary path /usr/bin/chromium
Stacktrace:
#0 0x5642334134e3
#1 0x564233142c76
#2 0x56423317004a
#3 0x56423316b4a1
#4 0x564233168029
#5 0x5642331a6ccc
#6 0x5642331a647f
#7 0x56423319dde3
#8 0x5642331732dd
#9 0x56423317434e
#10 0x5642333d33e4
#11 0x5642333d73d7
#12 0x5642333e1b20
#13 0x5642333d8023
#14 0x5642333a61aa
#15 0x5642333fc6b8
#16 0x5642333fc847
#17 0x56423340c243
#18 0x7f65dc791732

Hello,
You didn't install chromedriver, download it and try again ;)
hexsh1dow

i have the same issue and i have chrome driver installed

Hello,
Can you send the version of chromedriver you have ?
Everything is explained on the readme file Make sure everything is good | If it still doesn't work, reinstall ChromeDriver and make sure to install all requirements
hexsh1dow

ChromeDriver 126.0.6478.126

when i reinstalled chromedriver while following the directions in the readme, it installs chromedriver 128.0.6613.119. with this version i get a different error message which reads as follows:
raceback (most recent call last):
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1754, in
main()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1747, in main
handle_selection(choice)
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1724, in handle_selection
run_xss_scanner()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1153, in run_xss_scanner
main()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1143, in main
vulnerable_urls, scanned = run_scan([url], payload_file, concurrency, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1003, in run_scan
driver = webdriver.Chrome(service=driver_service, options=chrome_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WebDriver.init() got an unexpected keyword argument 'service'
this only happens when trying to do an XSS scan

Hey,
upgrade selenium :
pip install --upgrade selenium
hexsh1dow

okay, just tried that and not its back to saying
Traceback (most recent call last):
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1754, in
main()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1747, in main
handle_selection(choice)
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1724, in handle_selection
run_xss_scanner()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1153, in run_xss_scanner
main()
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1143, in main
vulnerable_urls, scanned = run_scan([url], payload_file, concurrency, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1003, in run_scan
driver = webdriver.Chrome(service=driver_service, options=chrome_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init
super().init(command_executor=executor, options=options)
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 212, in init
self.start_session(capabilities)
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/home/ciznaa/.local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 126.0.6478.126 with binary path /usr/bin/chromium
Stacktrace:
#0 0x55b7de8f34e3
#1 0x55b7de622c76
#2 0x55b7de65004a
#3 0x55b7de64b4a1
#4 0x55b7de648029
#5 0x55b7de686ccc
#6 0x55b7de68647f
#7 0x55b7de67dde3
#8 0x55b7de6532dd
#9 0x55b7de65434e
#10 0x55b7de8b33e4
#11 0x55b7de8b73d7
#12 0x55b7de8c1b20
#13 0x55b7de8b8023
#14 0x55b7de8861aa
#15 0x55b7de8dc6b8
#16 0x55b7de8dc847
#17 0x55b7de8ec243
#18 0x7f5eb0b07dab
any other suggestions? maybe i have to downgrade chrome to verison 114

Hello,
Yeah try to do that
hexsh1dow

Hello,
Yeah try to do that
hexsh1dow

how to regrade man ? i reinstalled python and most of things are fixed and how to degrade ?

Hello,
uninstall and reinstall chrome driver and put it on /usr/bin folder
hexsh1dow

Hello,
uninstall and reinstall chrome driver and put it on /usr/bin folder
hexsh1dow

could you please give me the commands ?

Hello,
follow this tutorial : https://www.youtube.com/watch?v=dz59GsdvUF8
hexsh1dow

My linux got destroyed 😂 so installing it again

Hello,
follow this tutorial : https://www.youtube.com/watch?v=dz59GsdvUF8
hexsh1dow

bruh i am using linux

dont run with root permission chrome not work on root.make sure you dir is not root


unciv: 4.7.6-patch1 -> 4.7.8-patch1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/yairm210/Unciv/releases.
meta.description for unciv is: An open-source Android/Desktop remake of Civ V
meta.homepage for unciv is: https://github.com/yairm210/Unciv
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.7.8-patch1 in filename of file in /nix/store/1jrlmsfsfkd3zd0yf9hb9b2y1r5nlgxw-unciv-4.7.8-patch1

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
unciv

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1jrlmsfsfkd3zd0yf9hb9b2y1r5nlgxw-unciv-4.7.8-patch1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A unciv https://github.com/r-ryantm/nixpkgs/archive/1d6af5dde1aaf79650af9ab4a20a9c44dd55570e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1jrlmsfsfkd3zd0yf9hb9b2y1r5nlgxw-unciv-4.7.8-patch1
ls -la /nix/store/1jrlmsfsfkd3zd0yf9hb9b2y1r5nlgxw-unciv-4.7.8-patch1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

unciv

Maintainer pings
cc @tex for testing.

Result of nixpkgs-review pr 243700 run on aarch64-darwin 1

1 package built:

unciv


Don't forget to strip trailing \x01

The IRC protocol describes /me as
... \x01ACTION writes some specs!\x01
The MM > IRC conversion already handles both delimiters, while the IRC >
MM was missing the trailing one. Thus causing visual artefacts in the MM
web interface.
Issue: https://github.com/42wim/matterircd/issues/127
Signed-off-by: Emil Velikov<EMAIL_ADDRESS>

Hi Emil,
Thanks! unfortunately this is a vendored file.
Could you make the PR on https://github.com/42wim/mm-go-irckit ?

@42wim it took me a bit to realise what you meant with "vendored". I believe many others use "third-party" instead.
Regardless - moved as requested to https://github.com/42wim/mm-go-irckit/pull/10

Afaik for go they use the term "vendoring"


Handle every and cron

Struct Task have both fields but scheduler do not use it.

See #43

Closed by #43


pallet-scheduler: Fix migrations V2 to V3

V2 already supported origins, so we need to move them over instead of setting it to Root. Besides
that it also removes the custom Releases enum and moves it over to StorageVersion.
Fixes: https://github.com/paritytech/substrate/issues/10754

bot merge


Update Qiskit Homepage Banners for Sunset

The current banners for the Qiskit Homepage must be updated to the new wording as we get closer to sunset. The updated banners can be found here

Can I help you @javabster?

hi @yusharth sorry there is already a PR open for this, I just forgot to link it to the issue :)


Add links to Github discussions

I confirmed that anyone logged into github can participate.

If you change the separator let's go ahead and merge.


added option to disable script injection

In some cases it's necessary to disable prismic script injection. For example if we don't want to have the additional script for production environment but only for stage.

Thanks @sergaks
Could you also update the documentation for it please? https://github.com/nuxt-community/prismic-module/blob/master/docs/configuration.md

Sure, docs updated

Thanks you @sergaks
Actually, I think this could be disabled by directly setting preview to false instead of adding a script option. Indeed, the script is used only for the preview mode.


Doesn't scroll to expected location when coming from a different page.

When I'm coming from a different route the page doesn't scroll to the expected position but rather the section before it, if I click on a link to a section close to the top the offset isn't too bad, but if I request an offset towards the bottom of the page then it gets worse and worse.
I've seen a few stack overflow posts around this here and here, but no answers.
Has anybody experienced this?

Hi, I have not experienced this issue. Do you experience it with the demo app when navigating to section two or three from the home page?
Can you create a minimal reproduction in CodeSandbox? If it's helpful you can fork the demo app in CodeSandbox as a starting point: https://codesandbox.io/s/github/rafgraph/react-router-hash-link/tree/main/demo, thanks.

One thought is you might be loading asynchronous content of unknown height on the new route. The scroll could be happening on the new route based on the page height without the new content, and then loading the content causes the offset. In this case, don't add the id to the page that you want to scroll to until the content is loaded as the scroll happens as soon as the id is found.

Hi, thanks for the quick response and sorry for the slow reply.
That might well be the case, there's a few carousels in the page that load in an async fashion.
I'm very new to react, have you got any suggestion on what would be the best way to add these id after the page is loaded?

If the content that you want to scroll to is unrelated to the carousels, my suggestion would be to layout the page so the height of the carousels is known before the content loads, and then don't worry about waiting to add the id. If the content that you want to scroll to is the async carousel/content, then render a loading spinner/component (which doesn't have the same id) until it's loaded.
Note that if the page has multiple independent async carousels/content loads, you'll be better off using first approach regardless of what you want to scroll to.

Having the same issue w/o async -- content higher up has less offset issues but further down the page it's way off

If the content that you want to scroll to is unrelated to the carousels, my suggestion would be to layout the page so the height of the carousels is known before the content loads, and then don't worry about waiting to add the id. If the content that you want to scroll to is the async carousel/content, then render a loading spinner/component (which doesn't have the same id) until it's loaded.
Note that if the page has multiple independent async carousels/content loads, you'll be better off using first approach regardless of what you want to scroll to.

Is there a reference/illustration that you can provide for this? I am stuck here as well. The offset doesn't work for me so I need to try to load the component, that is disrupting the scroll before I can add the id.

sometimes the problem happens when the height is auto, you may need to use aspect-ratio instead of height.


bug fix in wpscan args

fixed typo in --enumerate argument

@nwinkler kindly review this pr and merge it

Thanks!


Algorithm-specific arguments in constructor

It would be nice to expose things like chains, number of iterations, etc, as a dictionary argument or by using **kwargs

This has been completed as of commit 3588a4a. Parameters are passed as a dictionary with fields corresponding to each field the same way that the CmdStanPy algorithm parameters are called. Validation also occurs through the CmdStanPy parameter validation helper methods.
Because the optimization and variational inference choices have several options for algorithms to use, admissible names for that field of the constructor have been changed to sample, optimize, and variational with defaults for each following CmdStanPy.


Updated demo

Hi Colin!
I was looking to learn about adding coverage to a rust-pyo3 project and was delighted to come across your wonderful demo!
In following it, I had to clear out some standard bit-rot things (cargo llvm-cov --no-run is deprecated in favor of cargo llvm-cov report, for example), upgraded the dependencies (pyo3's new Bound<'_, T>) and added a few clarifications to questions that I personally had.
I have a note with these updates at the top of the README.
https://github.com/Michael-J-Ward/rust-python-coverage
Would you like me to create a PR with these updates?
If not, is it OK if I share my forked demo with people?
Hope you're doing well!
Cheers

Hey Mike! Sorry I missed your message. Yes, please create a PR, that would be awesome! :rocket:


[Config] SplitAuthzUser3Way in identity.xml file is not templated

According to the this doc, Configuring JWT bearer Grant Type,
the following config  need to be added in identity.xml file. But that is not templated in identity.xml.j2 file .
<SplitAuthzUser3Way>true</SplitAuthzUser3Way>

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Add new resource console_plugin

Short description: Adding new resource console_plugin to interact with ConsolePlugin kind.
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

!verified

!verified


Add an option to change the casing of the celebration names

Related: comment in #175, comment in #194

This issue deals with the casing of the celebration names mainly in English. If in other languages they use different (title) casing, we might want to add an option for those languages too.

In English, there sa three main casings used fro titles/headings:

capitalise each word (e.g. Sacred Heart Of Jesus or This Is A Heading);
sentence case: capitalise the first letter of the first word and the proper names only (e.g. Sacred Heart of Jesus or This is a heading;
(true) title case: this one has different rules, however (IMO) the most used is based on the Chicago Manual of Style (paragraph 8.159; e.g. Sacred Heart of Jesus or This is a Heading):

The conventions of headline style are governed mainly by emphasis and grammar. The following rules, though occasionally arbitrary, are intended primarily to facilitate the consistent styling of titles mentioned or cited in text and notes:

Capitalize the first and last words in titles and subtitles (but see rule 7), and capitalize all other major words (nouns, pronouns, verbs, adjectives, adverbs, and some conjunctions—but see rule 4).
Lowercase the articles the, a, and an.
Lowercase prepositions, regardless of length, except when they are used adverbially or adjectivally (up in Look Up, down in Turn Down, on in The On Button, to in Come To, etc.) or when they compose part of a Latin expression used adjectivally or adverbially (De Facto, In Vitro, etc.).
Lowercase the common coordinating conjunctions and, but, for, or, and nor.
Lowercase to not only as a preposition (rule 3) but also as part of an infinitive (to Run, to Hide, etc.), and lowercase as in any grammatical function.
Lowercase the part of a proper name that would be lowercased in text, such as de or von.
Lowercase the second part of a species name, such as fulvescens in Acipenser fulvescens, even if it is the last word in a title or subtitle.

We might want to use change-case NPM package:

titleCase readme;
titleCase example from the main readme of the package;
titleCase function source code.

It also supports capitalCase and sentenceCase.

Note that we need to take some grammar rules into account. For example, in English, the canonisation level (when it precedes the name of person it is connected to) is always written with uppercase first letter.


Improve openvino example

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


APT whitelist request for shtool

shtool provides the shtoolize command (which generates an install-sh script so you don't have to bundle your own, which could become outdated).

As mentioned in the PR these "setuid bits" are simply in comments and have no impact on the execution of shtool.


EventListener only triggers once unless props change

Hi @emilhe, first of all, thanks for the excellent package you have created! Lots of great work in here!!
It's possible this behaviour is actually correct/intentional, but it was not obvious to me at first, and maybe would benefit from a note or warning in the docs.
When listening for the change event, I noticed that even though the console logs the change even (using logging=True in your EventListener), the callback associated with it only fires once unless the props value also changes.
Here's a minimal example that demonstrates the issue.

app.layout = html.Div(
    [
        html.Div("With prop that changes"),
        EventListener(
            id="event-listener-with-prop",
            events=[
                {
                    "event": "change",
                    "props": ["srcElement.value"],
                }
            ],
            logging=True,
            children=[
                dcc.Input(id="input-with-prop", type="text"),
            ],
        ),
        html.Div(id="output-with-prop"),
        html.Hr(),
        html.Div("Without prop that changes"),
        EventListener(
            id="event-listener-no-prop",
            events=[
                {
                    "event": "change",
                    "props": [],
                }
            ],
            logging=True,
            children=[
                dcc.Input(id="input-no-prop", type="text"),
            ],
        ),
        html.Div(id="output-no-prop"),
    ]
)

with_prop_counts = 0

@app.callback(
    Output("output-with-prop", "children"), Input("event-listener-with-prop", "event"), prevent_initial_call=True
)
def update_output(event):
    global with_prop_counts
    with_prop_counts += 1
    return f"Num times triggered: {with_prop_counts}\nEvent triggered with: {event}"

without_prop_counts = 0

@app.callback(Output("output-no-prop", "children"), Input("event-listener-no-prop", "event"), prevent_initial_call=True)
def update_output(event):
    global without_prop_counts
    without_prop_counts += 1
    return f"Num times triggered: {without_prop_counts}\nEvent triggered with: {event}"

if __name__ == "__main__":
    app.run(debug=True)

Both trigger once when typing text then changing focus away from the text box.

But, if I change the text in both boxes and then change focus away again, only the one with a prop that changes updates.

Possible that this relates to #282 as I expect that would have similar behaviour since there are no props specified.

In Dash, callbacks are triggered on property changes, which is why e.g. button clicks are typically signaled by incrementing a counter. Hence, what you are seeing is indeed expected behavior.

Thanks for the speedy response! Ok, well that does make sense, although it still might be worth a little note in the docs.
I was wrongly assuming that the EventListener was directly triggered by the js events and that the event prop was just a convenient way to get the event details... But, it does of course make more sense that the event propery is just like any other dash property... Anyway, it wasn't immediately obvious that I would need to add in a prop that I don't necessarily care about to catch the event I was listening for, and I imagine it might catch others out when using it for things like resize events as in #282.
Anyway, thanks again!

Thanks! I'll keep that in mind 👍 . I don't think that it's realted to #282 though.

Docs are now updated. http://localhost:7879/components/event_listener

@emilhe New docs look great! I think you meant to post this link :)
https://www.dash-extensions.com/components/event_listener

Ah, yes, you are correct 😀


How to make grid lines in vector tiles ( when maps are  not loaded )

Many the times we see that when vector tiles are slow to load we see gridline . How it works ? is it something can be done at vector tile level or  ?

What is displayed before tiles are loaded is out of the control of tippecanoe.


[1.18.2 Forge]Conversion stopped after a period of time

I am using Lootr on a 1.18.2 Forge server. When I started the server, everything was normal, but after the player played for a period of time (all loot table containers were successfully converted to Lootr chests), the containers stopped converting to Lootr chests. After restarting the server, the containers that were not successfully converted before were successfully converted to Lootr boxes.
This is my log:
https://gist.github.com/sweetymajo/ea16a855f01ebf7ea95518536fb31250
I am not sure if there is any additional content required to address this issue. If there is any further content required, please let me know.

I'll have to make an issue about this and pin it. The most likely explanation is that the maximum_age default value (of 3 minutes) is too short.
maximum_age is how long from when a block entity is detected until it is removed from the conversion queue automatically. It stays in this queue until it's converted, which only happens once world generation has completed.
If your TPS is low or world generation is laggy for whatever reason (especially after a server has been online for a long period of time), it will result in containers not being converted.
Logically I should increase the default to around 10 minutes (20 * 60 * 10 instead of 20 * 60 * 3), but unfortunately that doesn't help if you've already generated a configuration file.
So, the solution should be: change maximum_age to a higher value from what it currently is.

I've created a new pinned issue for this with more details. Please check out #226.


The Hero Editor example in plunker has errors and does not run.

URL: https://angular.io/docs/ts/latest/tutorial/
I tried and see it stuck on Loading... in plunkr, with chrome 47.

yes, this is due to a new issue beta 0 introduced. this line of code causes it
<div *ngFor="#hero of heroes | slice:0:4" class="col-1-4" (click)="gotoDetail(hero)">
I can remove it for now til the issue is resolved.
here is the issue https://github.com/angular/angular/issues/5918

fixed now as per the merge tonight
the slice pipe is removed and is not being handled in code.

please verify and close @naomiblack

Fixed at least as of f4acc0ccbcb167d769edce892f1d3bfde0810707


Ensure seed is first-class citizen

Changes Unknown when pulling 35fd8972f9b7df1b3a503362768528369f63f01d on hash-participates-in-signed-content-comparison into ** on master**.


Roll engine 83e493ae6262..a9c6222cdc31 (3 commits)

https://github.com/flutter/engine/compare/83e493ae6262...a9c6222cdc31
git log 83e493ae6262..a9c6222cdc31 --first-parent --oneline
2020-04-03<EMAIL_ADDRESS>Roll fuchsia/sdk/core/mac-amd64 from 6V5BR... to tKvUB... (flutter/engine#17497)
2020-04-03<EMAIL_ADDRESS>Roll src/third_party/skia 8efbbbc0d1d4..e70e0c055f56 (1 commits) (flutter/engine#17496)
2020-04-03<EMAIL_ADDRESS>Use const refs in for loops where reasonable (flutter/engine#17484)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Commit queue failed; closing this roll.


⚠ SolarOscp has degraded performance

In bbe23a7, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 336 ms

Resolved: SolarOscp performance has improved in 659d3b9 after 9 minutes.


(Desktop) Portfolio - my created markets - countdown timer

Component needs to be updated to have 1 consistent pattern for the countdown timers across the app.
Cillian is working on this today. Will update here when done.

this tix might get fixed indirectly when the other tix to standardize all countdown timers gets worked.

Do you want to close this one in favour of the other?

Yes, closing this in fav of other tix


Game broken after update to latest version

axmol version: 2.1.0 rc3 (dev branch)
devices test on: macos
developing environments

NDK version: n/a
Xcode version: 15.0.1
Visual Studio: n/a
cmake version: 3.27.6
Steps to Reproduce:

Hi,
My game broken after update to latest version. I only reclone, as suggested.
The line where is happen.
auto background = LayerColor::create(Color4B(64, 31, 7, 255));

Error:
Loading shader: 5 positionTextureColor_vs, positionTextureColor_fs ...
axmol: fullPathForFilename: No file found at positionTextureColor_vs. Possible missing file.
axmol: fullPathForFilename: No file found at positionTextureColor_fs. Possible missing file.
libc++abi: terminating due to uncaught exception of type std::out_of_range: ibstream_view::consume out of range!

Screenshot:

@paulocoutinhox I cannot reproduce the problem.  I am assuming you're using Xcode, and building for iOS.  Using Xcode 15, and a build for iOS, it's running fine on an iPhone 7:
2023-12-08 16:13:27.976534+1100 test1[355:6604] Metal GPU Frame Capture Enabled
2023-12-08 16:13:27.976783+1100 test1[355:6604] Metal API Validation Enabled
...
Loading shader: 5 positionTextureColor_vs, positionTextureColor_fs ...
Loading shader: 7 positionTextureColor_vs, label_normal_fs ...
Loading shader: 0 positionColorLengthTexture_vs, positionColorLengthTexture_fs ...
Loading shader: 1 positionColorTextureAsPointsize_vs, positionColor_fs ...
axmol: QuadCommand: resizing index size from [-1] to [2560]

Just something to note, there are two templates made for these github issues in this repo, one of which is named "Bug report".  The reason I'm mentioning it is because it wasn't used in this case, and can be difficult trying to replicate an issue when information such as the OS, development environment, and target build type is not listed anywhere.  The whole point of that template is to act as a reminder to the person filling it out as to what information is required.  I strongly suggest you use it for any future reports, otherwise you'll forget to include a lot of important information in your post.

Maybe not important but: No problem on Windows

It only happen with dev branch.
My steps to reproduce in a new project:

New project: axmol new -p com.paulocoutinho.layerbug -l cpp layerbug
In HelloWorldScene.cpp i change from:

auto visibleSize = _director->getVisibleSize();
auto origin = _director->getVisibleOrigin();
auto safeArea = _director->getSafeAreaRect();
auto safeOrigin = safeArea.origin;

to:
auto visibleSize = _director->getVisibleSize();
auto origin = _director->getVisibleOrigin();
auto safeArea = _director->getSafeAreaRect();
auto safeOrigin = safeArea.origin;

auto background = LayerColor::create(Color4B(64, 31, 7, 255));
addChild(background);

And run with: axmol run

Error:
Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x186800744 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x186837c28 pthread_kill + 288
2   libsystem_c.dylib             	       0x186745ae8 abort + 180
3   libc++abi.dylib               	       0x1867f0b84 abort_message + 132
4   libc++abi.dylib               	       0x1867e03b4 demangling_terminate_handler() + 320
5   libobjc.A.dylib               	       0x1864b6e68 _objc_terminate() + 160
6   libc++abi.dylib               	       0x1867eff48 std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x1867f2d34 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36
8   libc++abi.dylib               	       0x1867f2ce0 __cxa_throw + 140
9   layerbug                      	       0x102fd1788 ax::backend::ShaderModuleMTL::ShaderModuleMTL(id<MTLDevice>, ax::backend::ShaderStage, std::__1::basic_string_view<char, ax::backend::ShaderStage::char_traits<char>>) + 1276
10  layerbug                      	       0x102fcf118 ax::backend::DeviceMTL::newShaderModule(ax::backend::ShaderStage, std::__1::basic_string_view<char, std::__1::char_traits<char>>) + 68
11  layerbug                      	       0x102fc9f74 ax::backend::ShaderCache::newShaderModule(ax::backend::ShaderStage, std::__1::basic_string_view<char, std::__1::char_traits<char>>) + 288
12  layerbug                      	       0x102fcf354 ax::backend::ProgramMTL::ProgramMTL(std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>) + 80
13  layerbug                      	       0x102fcf218 ax::backend::DeviceMTL::newProgram(std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>) + 68
14  layerbug                      	       0x102fc3c50 ax::backend::ProgramManager::loadProgram(std::__1::basic_string_view<char, std::__1::char_traits<char>>, std::__1::basic_string_view<char, std::__1::char_traits<char>>, unsigned int, unsigned long long, ax::backend::VertexLayoutType) + 500
15  layerbug                      	       0x102fc9540 ax::backend::ProgramStateRegistry::newProgramState(unsigned int, int) + 296
16  layerbug                      	       0x102ecad78 ax::Node::setProgramStateWithRegistry(unsigned int, ax::Texture2D*) + 56
17  layerbug                      	       0x102ee3d18 ax::Sprite::initWithTexture(ax::Texture2D*, ax::Rect const&, bool) + 188
18  layerbug                      	       0x102ee38b8 ax::Sprite::init() + 32
19  layerbug                      	       0x102ebdd3c ax::LayerColor::initWithColor(ax::Color4B const&, float, float) + 44
20  layerbug                      	       0x102ebde54 ax::LayerColor::create(ax::Color4B const&) + 76
21  layerbug                      	       0x102e562fc HelloWorld::init() + 152
22  layerbug                      	       0x102e561dc AppDelegate::applicationDidFinishLaunching() + 316
23  layerbug                      	       0x102faa2d8 ax::Application::run() + 56
24  layerbug                      	       0x102e56cfc main + 32
25  dyld                          	       0x1864dff28 start + 2236

It only happen with dev branch.

The shader changes are only in the dev branch, since v1.0 didn't use the same structure, so I'm not quite sure why you stated that.

And run with: axmol run

I don't know if that would cause the issue, since I don't use it, but perhaps someone else may.    Can you try building the project from within Xcode to see if it works?

Hi,
I tried in my other games and all is broken. If i try create a sprite, it break:
auto background = Sprite::create(backgroundImage);

Error:
Loading shader: 5 positionTextureColor_vs, positionTextureColor_fs ...
axmol: fullPathForFilename: No file found at positionTextureColor_vs. Possible missing file.
axmol: fullPathForFilename: No file found at positionTextureColor_fs. Possible missing file.
libc++abi: terminating due to uncaught exception of type std::out_of_range: ibstream_view::consume out of range!

I only put axmol run to you reproduce, because i tried from xcode too.

Check the build folder to see if the shaders are actually processed and saved in there, for example, build_arm64/runtime/axslc.
Also check if the shaders have been copied across the output package.
Once again, I cannot reproduce this issue at all.

Yes, it is there:

ls -l build_arm64/runtime/axslc/positionTextureColor*
-rw-r--r--  1 paulo  staff   901B Dec  8 03:54 build_arm64/runtime/axslc/positionTextureColorAlphaTest_fs
-rw-r--r--  1 paulo  staff   619B Dec  8 03:54 build_arm64/runtime/axslc/positionTextureColor_fs
-rw-r--r--  1 paulo  staff   1.0K Dec  8 03:54 build_arm64/runtime/axslc/positionTextureColor_vs

I put the ZIP on dropbox with all the simple test:
https://www.dropbox.com/scl/fi/b0tbv51o6jnn9vab1j3oy/layerbug.zip?rlkey=qdyzpnm5zoqr6u8wsj3sk3tvx&dl=1

I also add it to github to make easy see the files:
https://github.com/paulocoutinhox/layerbug

Yes, it is there:

What about the generated package, do the files exist in there?

You mentioned that you can reproduce the issue with a new project, so post that project up somewhere if you can (without the build folder).

@paulocoutinhox I just tested a MacOS arm64 build, and it ran fine.  The shaders are all in the correct folder. There is something about your development environment that may be causing all these issues.

note cmake 3.28.0 required

Good point. My MacOS has cmake 3.28 installed, so that could very well be the reason.

humm....mine have cmake version 3.27.6

I follow, but there dont have this info:
https://github.com/axmolengine/axmol/blob/dev/docs/DevSetup.md
When i redownload axmol i see it installing cmake 3.28 but it don't change nothing to this problem. I manually install now with brew (brew install cmake).


Provide jquery-formset example

I browsed the issues and this issue seemed to be fixed long time ago. However, when working with both django-autocomplete-light stable and with 2, I couldn't get it to work.
After debugging the code for around 20 minutes, I just added:
$('[data-widget-ready]',row).removeAttr('data-widget-ready');

In the jquery.formset.js code, right before inserting the element. So it looks like this:
applyExtraClasses(row, formCount);
$('[data-widget-ready]',row).removeAttr('data-widget-ready');
row.insertBefore(buttonRow).show();

I did so because I noticed on the django-autocomplete-light JS code that when validating for an added widget, you check for the attribute if it is set.
I decided that I shouldn't make modifications to jquery-dynamic-formset since this is more of a django-autocomplete-light issue. So, I removed the change and actually commented out the ':not([data-widget-ready])' from the validation to see if it is an added widget. Probably because I haven't used it much and I haven't read all of the docs (pretty extensive documentation out there! That's great), but I don't really understand the need for the not in the css query.
else { // added a widget ?
    var notReady = '.autocomplete-light-widget';//:not([data-widget-ready])'
    var widget = $(e.target).find(notReady);

    if (!widget.length) {
        return;
    }

    // Ignore inserted autocomplete box elements.
    if (widget.is('.yourlabs-autocomplete')) {
        return;
    }

    // Ensure that the newly added widget is clean, in case it was
    // cloned with data.
    widget.yourlabsWidget('destroy');
    widget.find('input').yourlabsAutocomplete('destroy');

    // added a widget: initialize the widget.
    widget.trigger('initialize');
}

See, the problem appears to me that is that when the jquery.formset plugin clones the row, it does it keeping the data-widget-ready attribute. Thus the new row is not taken into account by the code.
I am unaware of rows that have the autocomplete-light-widget class, the data-bootstrap="normal"  attribute and are being just inserted into the document that should have the widget-ready data as 1. Of course, I don't know much of what is going on behind the scenes, since I barely read some of the code.
My forms look like this:
class OrdenForm(ModelForm):
    justificacion = forms.CharField(
        max_length=300,
        widget=forms.Textarea(attrs={'cols': 80, 'rows': 3}))

    class Meta:
        model = Orden
        fields = ('justificacion',)

class OrdenProductoForm(autocomplete_light.ModelForm):
    orden = forms.ModelChoiceField(
        label="", queryset=Orden.objects.all(),
        widget=forms.HiddenInput())

    class Meta:
        model = OrdenProducto
        fields = ('producto', 'cantidad', 'orden')

class ProductoForm(forms.ModelForm):

    class Meta:
        model = Producto
        fields = '__all__'

OrdenProductoFormSet = inlineformset_factory(
    Orden, OrdenProducto, form=OrdenProductoForm, extra=2)

My autocomplete_light_registry looks like this:
class ProductoAutocomplete(autocomplete_light.AutocompleteModelBase):
    search_fields = ['^modelo', 'nombre']
    attrs = {'placeholder': 'Modelo y/o nombre', }
    empty_html_format = """

    %s

      Crear producto

"""

# This will generate a PersonAutocomplete class
autocomplete_light.register(Producto, ProductoAutocomplete)

The template (simplified) looks like this:

Crear orden

        <form action="{% url 'maindemo:orden_crear' %}" method="post" id="orden_crear_forma">
            {% csrf_token %}

                {{ form.as_p }}

            <fieldset>
                <legend>Productos de la orden</legend>
                {{ ordenproducto_form.management_form }}
                {{ ordenproducto_form.non_form_errors }}
                {% for form in ordenproducto_form %}
                    {{ form.id }}

                        {{ form.description.errors }}
                        {{ form }}

                {% endfor %}
            </fieldset>
            <input type="submit" value="Crear orden" class="submit" id="orden_crear_submit" />
        </form>

By keeping it like this with the modifications I added, it is working perfectly. However, I don't like the idea of changing the widgets.js code of the imported app, since an update would break the code. Am I doing something wrong?

Instead of overriding the whole code, try overriding just methods: http://django-autocomplete-light.readthedocs.org/en/stable-2.x.x/script.html#overriding-widget-js-methods
A pull request would be great.

We should remove data-widget-ready on clone, i thought it was the case already ?
Time to add this example app.

It does work in inline relateds.

Ok, let's have a jquery-formset example in 2.3.

where I can find jquery-formset example for v3 stable ?
http://django-autocomplete-light.readthedocs.org/en/stable-2.x.x/script.html#overriding-widget-js-methods   This link is not working.

It was not implemented, PRs welcome.
But I suggest that a PR be made on django-dynamic-formset instead, so that it matches django.contrib.admin's formset system, or perhaps even reuse its scripts, because all widgets are compatible with django.contrib.admin's formset by design.

Wait, so DAL v3 isn't compatible with django-dynamic-formset? I've got things seemingly working, except when I try to add a row I get a select2 javascript error which makes things go wonky.

Rather, django-dynamic-formset is not compatible with django. DAL is compatible with dynamic formsets the way django.contrib.admin does it. If django-dynamic-formsets worked the way django.contrib.admin's dynamic formsets do, which it should, then DAL would be compatible with it.
For the moment, I don't need this. However, if you want I can make a crowdfunding campaign to fix django-dynamic-formset.

Ahhh, okay I understand now. Wish I'd realized that a few hours ago, but it's been a good learning experience. Since I'm already shoehorning Selectize in to DAL, but I'll try work on manually using it with my formset fields. Would love to be able to contribute to fixing dynamic-formset but it's both beyond my abilities and budget :)
Thanks for the quick reply. Any chance you know of another formset library that just works with DAL?

We now have an example outside the admin https://github.com/yourlabs/django-autocomplete-light/blob/master/test_project/select2_outside_admin/templates/select2_outside_admin.html


Pull Rust dependency from upstream

It pulls the Rust dependency used by the buildpack directly from the upstream Rust Language project.
Resolves #199
Signed-off-by: Daniel Mikusa<EMAIL_ADDRESS>

Yes, the code is in pipeline-builder, rust-dependency action and rustup-init-dependency action.


Bundling not currently supported

When I try to bundle I get an error in the fetch implementation, which doesn't seem like it is designed to run in the browser. This probably needs to be subbed for an fs implementation. Just let me know if you need any help with this at all.

+1 Must have bundling support.

Hmm I am using the shiny new fetch API. Because this is currently not supported in all browsers I use this polyfill. The polyfill is designed to run only in the browser. @guybedford could you please help me with that? I don't know why I get self is not defined. If I run the code that should be bundled directly in the browser everything works fine.
❯ jspm bundle test/bundle-test.js test/bundle.js
     Building the bundle tree for test/bundle-test.js...

/home/me/development/plugin-sass/node_modules/jspm/node_modules/systemjs/dist/system.src.js:1262
        throw addToError(e.toString(), 'Evaluating ' + load.address);
              ^

err  ReferenceError: file:///home/me/development/plugin-sass/jspm_packages/npm/whatwg-fetch@0.9.0/fetch.js:6
       if (self.fetch) {
      ^
     self is not defined
	Evaluating<EMAIL_ADDRESS>	Evaluating<EMAIL_ADDRESS>	Error loading file:///home/me/development/plugin-sass/src/sass.js

Today I tried it once again and now it seems to work magically :hushed:
Maybe there was an update on a library or something?
I will close this for now but feel free to reopen it when this error happens again.

I have to reopen this issue.
Bundling is not supported in the following case: the SCCS file(s) should be converted to a static CSS file and this CSS file should be included in the bundle so that there is no need for heavy SASS compiling at runtime in the browser. Runtime compiling should only be needed for testing / development.

Fixed with 6a4829b6142e9bf6dfa1f1b67462542b9f51db3c


Markdown Hover images broken

VSCode Version: 1.38.0
OS Version: Windows 10

I have hovers as MarkdownString containing the following:
[![alt text](${imageUri})](${linkUri})
The imageUri is a file URI to a local PNG image. Instead of the image, it now shows
 with the alt text.
This issue started with v1.38.0, so is a regression.

I've done some searching and found a similar issue microsoft/vscode-remote-release#465. Note that this is not using any remote dev. The recommendation in https://github.com/microsoft/vscode-remote-release/issues/465#issuecomment-506724863 from @jrieken  is what I was following, which is to use vscode.Uri.file(extensionContext.asAbsolutePath(...)).toString().
I've used the integrated element inspector and found that the <img> tags only have an alt.

assigned to @jrieken since you might know more

@KamasamaK Do you have a pointer to your extension - sources or extension itself?

I could reproduce with kisstkondoros.vscode-gutter-preview
h3 {
    color: red;
    background-image: url("./symbol-sprite.svg")
}

have above CSS snippet, make sure that the SVG exists
hover over url
🐛 no images is shown, the insane library seems to remove the src attribute 😱

@mjbvz The seems to be that we don't allow the file scheme. I am not sure if that's on purpose or an oversight. Then the vscode-remote scheme is missing as well.

The issue might actually be bigger, e.g I can contribute a file system for the foo-scheme and it should be valid/possible to generate links like so [path.foo](foo:///some/path.foo). I think we should remove the scheme restriction all together. Risky links should still be taken care of with this: https://github.com/microsoft/vscode/blob/3db7e09f3b61f915d03bbfa58e258d6eee843f35/src/vs/base/browser/markdownRenderer.ts#L102

Ok, it looks like insane cannot be configured to allow all schemes... Unless I am missing something with insane we might need to extend MarkdownRenderOptions with a set of schemes that we populate at the places that have service access (requires to add IFileService#schemes)

I suspect that file will cover the vast majority of use cases (and is the safer fix for a recovery)


About downstream task on audioset classification or clap

Thank you for the amazing work!
Have you explored to fine-tune this model on downstream tasks such as audioset or clap?
It is excited to finally see a 1d audio foundation model which will be way friendly for down-stream sequential tasks such as sound event detection, speech phoneme recognition!
Would this method still be robust as 2d methods on audioset?

Hey there @haidog-yaqub ,
thanks for your interest!

Have you explored to fine-tune this model on downstream tasks such as audioset or clap?

Surely I did fine-tune it on Audioset, using CED. Performance is alright, reaching mAP of 49.7 for the base model. I made the checkpoint available if you would like to use it:
from typing import Any, Mapping
import dasheng
import torch

class DashengAudiosetClassifier(torch.nn.Module):

    def __init__(self) -> None:
        super().__init__()
        self.dashengmodel = dasheng.dasheng_base()
        self.classifier = torch.nn.Sequential(torch.nn.LayerNorm(self.dashengmodel.embed_dim), torch.nn.Linear(self.dashengmodel.embed_dim, 527))

    def load_state_dict(self, state_dict: Mapping[str, Any], strict: bool = True, assign: bool = False):
        self.dashengmodel.load_state_dict(state_dict, strict=False)
        for_classifier_dict = {}
        for k,v in state_dict.items():
            if 'outputlayer' in k:
                for_classifier_dict[k.replace('outputlayer.','')]  = v
        self.classifier.load_state_dict(for_classifier_dict)
        return self

    def forward(self, x):
        x = self.dashengmodel(x).mean(1)
        return self.classifier(x).sigmoid()

mdl = DashengAudiosetClassifier()
check = torch.hub.load_state_dict_from_url('https://zenodo.org/records/13315686/files/dasheng_audioset_mAP497.pt?download=1',map_location='cpu')
mdl.load_state_dict(check)

mdl(torch.randn(1, 16000))

I also added the above codescript to the README for future use.

It is excited to finally see a 1d audio foundation model which will be way friendly for down-stream sequential tasks such as sound event detection, speech phoneme recognition!

Yeah thanks for the comment, so obviously my baseline uses patches, but patches are you know not very "general".
In HEAR, I would get ~ + 5 points of performance for FSD50k across all dasheng-models when using patches, but I loose performance for Maestro ( musical notes, frame-level) and DCASE2016 ( Sound event onset).
In most cases patches are too coarse in their time resolution, which would not work for tasks as you said like phoneme recognition.
Also to the best of my knowledge, ASR does not work well with inputs coarser than 40ms, that's why dasheng uses this "magic number".

Would this method still be robust as 2d methods on audioset?

Yeah I think so, at least the clip-level performance seems to be outperforming pretty much everything available except for CED-base.
You can have a try yourself! :D

Hey there @haidog-yaqub , thanks for your interest!

Have you explored to fine-tune this model on downstream tasks such as audioset or clap?

Surely I did fine-tune it on Audioset, using CED. Performance is alright, reaching mAP of 49.7 for the base model. I made the checkpoint available if you would like to use it:
from typing import Any, Mapping
import dasheng
import torch

class DashengAudiosetClassifier(torch.nn.Module):

    def __init__(self) -> None:
        super().__init__()
        self.dashengmodel = dasheng.dasheng_base()
        self.classifier = torch.nn.Sequential(torch.nn.LayerNorm(self.dashengmodel.embed_dim), torch.nn.Linear(self.dashengmodel.embed_dim, 527))

    def load_state_dict(self, state_dict: Mapping[str, Any], strict: bool = True, assign: bool = False):
        self.dashengmodel.load_state_dict(state_dict, strict=False)
        for_classifier_dict = {}
        for k,v in state_dict.items():
            if 'outputlayer' in k:
                for_classifier_dict[k.replace('outputlayer.','')]  = v
        self.classifier.load_state_dict(for_classifier_dict)
        return self

    def forward(self, x):
        x = self.dashengmodel(x).mean(1)
        return self.classifier(x).sigmoid()

mdl = DashengAudiosetClassifier()
check = torch.hub.load_state_dict_from_url('https://zenodo.org/records/13315686/files/dasheng_audioset_mAP497.pt?download=1',map_location='cpu')
mdl.load_state_dict(check)

mdl(torch.randn(1, 16000))

I also added the above codescript to the README for future use.

It is excited to finally see a 1d audio foundation model which will be way friendly for down-stream sequential tasks such as sound event detection, speech phoneme recognition!

Yeah thanks for the comment, so obviously my baseline uses patches, but patches are you know not very "general". In HEAR, I would get ~ + 5 points of performance for FSD50k across all dasheng-models when using patches, but I loose performance for Maestro ( musical notes, frame-level) and DCASE2016 ( Sound event onset). In most cases patches are too coarse in their time resolution, which would not work for tasks as you said like phoneme recognition. Also to the best of my knowledge, ASR does not work well with inputs coarser than 40ms, that's why dasheng uses this "magic number".

Would this method still be robust as 2d methods on audioset?

Yeah I think so, at least the clip-level performance seems to be outperforming pretty much everything available except for CED-base. You can have a try yourself! :D

Thats great! thank you so much!


New shortcodes

I'm using this theme for one of my projects and I'm doing some changes and adding shortcodes. You can see the theme used here guumaster/hostctl
Are you interested on getting PRs with any of that?
Currently my shortcodes are:
Github buttons
{{<github-button repo="guumaster/hostctl" >}}
{{<github-button repo="guumaster/hostctl" type="fork" >}}

The required js can be enable/disable with a site param githubButton = "true"
Asciinema player
{{< asciinema key="your-cast-file" rows="20" cols=100 preload="1" >}}

In the case of asciinema it only add the required js/css on pages that used the player.

@guumaster Yes, please do! 😄


Repository Trigger - None Azure Repos

I'm a bit confused by this statement because my code was triggered. Is this outdated or am I missing something?
trigger:  # CI trigger for this repository, no CI trigger if skipped (only works for Azure Repos)
resources:
  repositories:
    - repository: SourceCode
      type: githubenterprise
      name: DevOps/Automation
      endpoint: GitHub Enterprise - DevOps
      trigger:
        branches:
          include:
            - refs/heads/master
        tags:
          include:
            - "*"

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

ID: ee4ec9d0-e0d5-4fb4-7c3e-b84abfa290c2
Version Independent ID: 3e2b80d9-30e5-0c48-49f0-4fcdfedf5eee
Content: Define YAML resources for Azure Pipelines - Azure Pipelines
Content Source: docs/pipelines/process/resources.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@coolhome -- Preston, thank you for your question.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

@juliakm -- Julia, please look into this issue.

@coolhome - I'll double-check but my understanding is that Azure Repos are still the only supported repository. THe workaround is to use a pipeline resource trigger.

@juliakm that is correct. I was thinking about this and I think the lack of a explicit trigger is what was causing it to trigger. I was originally confused because the code above looked like it was triggered. Could be useful to emit a warning when $.type is not azure repos AND $.trigger is set.
Feel free to close!

Thank you for following up @coolhome! Another writer will take a look at our docs to make sure this is clear.


[FORMS-9155] fix setFocus using rules

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

Test case missing

@rismehta done. please check


Backend server monitoring and HA

What is the design for / current implementation if any for:

monitoring of the backend server
redundancy of the backend server

For example, my backend server disk filled and OneUptime was inaccessible. Ideally there would be a solution to a) notify when that happens and b) have another backend server pickup where the first one left off.

You can use docker swarm for HA. We have a docker compose file that you can convert into docker stack.


Missing functions in gamecontroller.go

Go version: 1.22.0
Go-SDL2 version: 0.4.38
SDL2 version: 2.30.0
OS: MacOS
Architecture: arm64
Hi!
Let me preface this by saying I'm a rookie in Go programming.
I'm trying to use this library to work with game controllers.
It seems like I'm missing some of the go-sdl2 gamecontroller functions, like HasLED(), SetLED(), HasSensor(), SetSensorEnabled(), IsSensorEnabled(), and SensorData().
I saw the TODO comment near them and that they are missing from the documentation, but they seem complete to me...
Is this not the case?

I'm also missing some gamecontroller related hints, like HINT_JOYSTICK_HIDAPI_PS4, HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, HINT_JOYSTICK_HIDAPI_PS5, HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED.

Hi @Genio2003, the TODO was to mark unavailable documentation page at the time. Could you try the master branch for the hints? It should have more up-to-date bindings.

I have installed the library by specifying the import in my main.go file and by running go mod tidy.
By doing so doesn't it pull from master?

Hi @Genio2003, the TODO was to mark unavailable documentation page at the time. Could you try the master branch for the hints? It should have more up-to-date bindings.

If the documentation page exists, should the TODO comment be removed?
If so, I would like to contribute with a pull request.

Hi @Genio2003, by default I believe it pulls from the available stable tags such as 0.4.x. You should be able to specify it to use master by running go get github.com/veandco/go-sdl2@master.
And yes! The TODO should ideally be removed if the documentation page for specific function exists. Please feel free to open a pull request to update the markings!

It worked! Now I have all the functions and hints.
I have opened the pull request to update the markings (#590).
Thank you so much for your help!