Duet IndexError when given identical channels

Description
Passing a mixture of 2 sources with identical l/r channels to Duet produces an IndexError at line 349 in _compute_masks.
Steps/Code to Reproduce
    flute = nussl.AudioSignal('flute.wav')
    drums = nussl.AudioSignal('drums.wav')

    if flute.signal_length > drums.signal_length:
        flute.truncate_samples(drums.signal_length)
    elif flute.signal_length < drums.signal_length:
        drums.truncate_samples(flute.signal_length)

    signal = np.repeat((flute + drums).audio_data, 2, axis=0)
    signal = nussl.AudioSignal(audio_data_array=signal)

    algo = nussl.Duet(signal, num_sources=2)
    algo()

Expected Results
No error is thrown or a ValueError is thrown with a description that the signal is incompatible with the algorithm
Actual Results
Traceback (most recent call last):
  File "duet.py", line 19, in <module>
    algo()
  File "C:\Users\maxrm\Anaconda3\envs\nussl\lib\site-packages\nussl\separation\separation_base.py", line 158, in __call__
    return self.run()
  File "C:\Users\maxrm\Anaconda3\envs\nussl\lib\site-packages\nussl\separation\duet.py", line 174, in run
    computed_masks = self._compute_masks()
  File "C:\Users\maxrm\Anaconda3\envs\nussl\lib\site-packages\nussl\separation\duet.py", line 349, in _compute_masks
    phase = np.exp(-1j * self.frequency_matrix * self.delay_peak[i])
IndexError: index 1 is out of bounds for axis 0 with size 1

Versions

Windows-10-10.0.17134
('Python', '2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:09) [MSC v.1500 64 bit (AMD64)]')
('NumPy', '1.15.2')
('SciPy', '1.1.0')
('librosa', '0.6.2')
('nussl', '0.1.6')

I'm getting this even when the channels are different
File "/Users/radkoff/anaconda3/envs/nussl/lib/python2.7/site-packages/nussl/separation/duet.py", line 349, in _compute_masks
    phase = np.exp(-1j * self.frequency_matrix * self.delay_peak[i])
IndexError: index 1 is out of bounds for axis 0 with size 1

Same size, different values
>>> time_series_stereo[0].shape
(6630912,)
>>> time_series_stereo[1].shape
(6630912,)
>>> time_series_stereo[0][4000]
-1.1044885e-05
>>> time_series_stereo[1][4000]
-4.0526193e-05

Mac os
python                    2.7.15
nussl                     0.1.6
numpy                     1.15.4
vamp                      1.1.0
librosa                   0.6.2

Fixed this by adjusting the default peak_threshold down from 0.2 to 0.0. The threshold was set too high, filtering out some of the peaks even if they do exist. Haven't merged into master yet, but here it is:
https://github.com/interactiveaudiolab/nussl/commit/e8261ca29e9b68b577cd3abcf3d530c16a90ee77

Thanks for figuring this out prem!
I'm not convinced that just changing the default value is the right move in this situation. For one, it changes the behavior of the algorithm for those who aren't taking the time to understand and change these settings (and we'll have to rerender our benchmark file for DUET).
But more importantly, I think the real issue is that the error message is too oblique to parse usefully. If the error message read Couldn't find peaks in the attenuation/delay histogram! Try changing peak_threshold. perhaps these smart nusslers would have enough information to debug their algorithms themselves.
So, I'm advocating for keeping the default value as is, and rather detecting this case and still crashing, just with a better error message.


hi，the coding of "https://github.com/gpt-open/rag-gpt/tree/main/server/rag/pre_retrieval/query_expansion" is none?

https://github.com/gpt-open/rag-gpt/blob/main/server/app/queries.py#L84
The processing strategy for query rewriting is currently implemented in the file above.


Allow specifying of buildId

This will allow a user to use the following command:
ionic package download --buildId=50

Is there anything I need to do to get this thing approved?


Update i18n.js

Fixed typo

for posterity, this is re: https://github.com/balderdashy/sails/issues/3794


:seedling: refactor basecontroller with sdk-go and move certrotation to sdk-go

Summary
Related issue(s)
Fixes #

we should also remove be basecontroller or mark them as deprecated.

@qiujian16 yes, basecontroller has been removed too.

/approve
/lgtm


Hangs on INFO: Synchronizing King Phisher's pipenv environment

Issue Description
I'm installing King Physher as part of TrustedSec's The PenTester's Framework: PTF Github page
It got hung up each time at the INFO: Synchronizing King Phisher's pipenv environment point despite having googled that error message and attempting to install python, python3, cairo, etc.  Based on issue #353 I also tried:
cd /opt/king-phisher
sudo ./KingPhisherServer -L DEBUG -f ./server_config.yml
Which produced the error: ModuleNotFoundError: No module named 'termcolor'
More context below.
Reproduction Steps
sudo su -
git clone https://github.com/trustedsec/ptf /opt/ptf
cd /opt/ptf && ./ptf
use modules/exploitation/install_update_all
The above freezes at: INFO: Synchronizing King Phisher's pipenv environment
Environment Details
Host OS: Ubuntu 18.04 LTS
King Phisher Version: x.y.z  -- not sure of this.  I assume the latest version.
Error Details / Stack Trace
Note that the trace below got hung up for over an hour at INFO: Synchronizing King Phisher's pipenv environment and was interrupted by me with ^C and exit which I also included because of additional data generated.
...
adwaita-icon-theme-full is already the newest version (3.28.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
gir1.2-vte-2.91 is already the newest version (0.52.2-1ubuntu1~18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
INFO: Successfully installed gir1.2-webkit2-4.0 with apt-get
INFO: Synchronizing Python package dependencies from PyPi
pip 19.0.3 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
Requirement already up-to-date: pip in /usr/local/lib/python3.6/dist-packages (19.0.3)
pip 19.0.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/dist-packages (40.8.0)
Requirement already up-to-date: six in /usr/local/lib/python3.6/dist-packages (1.12.0)
Requirement already satisfied: pipenv in /usr/local/lib/python3.6/dist-packages (2018.11.26)
Requirement already satisfied: virtualenv in /usr/local/lib/python3.6/dist-packages (from pipenv) (16.4.3)
Requirement already satisfied: virtualenv-clone>=0.2.5 in /usr/local/lib/python3.6/dist-packages (from pipenv) (0.5.1)
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (40.8.0)
Requirement already satisfied: pip>=9.0.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (19.0.3)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pipenv) (2018.1.18)
INFO: Synchronizing King Phisher's pipenv environment
^Cexit
^CTraceback (most recent call last):
  File "./KingPhisher", line 45, in <module>
    sys.exit(main())
  File "./KingPhisher", line 42, in main
    return startup.pipenv_entry(parser, os.path.basename(__file__))
  File "/opt/king-phisher/king_phisher/startup.py", line 161, in pipenv_entry
    results = _run_pipenv(('--site-packages', 'install'), cwd=target_directory)
  File "/opt/king-phisher/king_phisher/startup.py", line 87, in _run_pipenv
    results = run_process(args, cwd=cwd)
  File "/opt/king-phisher/king_phisher/startup.py", line 203, in run_process
    process_handle.wait()
  File "/usr/lib/python3.6/subprocess.py", line 1457, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.6/subprocess.py", line 1404, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
INFO: Installing the client desktop application file
INFO: Updating the GTK icon cache
gtk-update-icon-cache: Cache file created successfully.
exit
INFO: Configuring the PostgreSQL server
INFO: PostgreSQL configuration file found at /etc/postgresql/10/main/pg_hba.conf
WARNING: The PostgreSQL king_phisher user already exists! The password will need
WARNING: to be manually updated to match the one automatically generated by this
WARNING: installation script (by using the ALTER ROLE PostgreSQL command) or
WARNING: restored from a previously backed up server configuration file.
INFO: Installing the King Phisher systemd service file in /lib/systemd/system/
INFO: Starting the King Phisher service
Job for king-phisher.service failed because the control process exited with error code.
See "systemctl status king-phisher.service" and "journalctl -xe" for details.
--------------------------------------------------------------------------------
INFO: You can start the King Phisher client with the following command:
/opt/king-phisher/KingPhisher

Trying the install as described in #353 generates the following:
ubuntu@ip-XXX:~$ sudo su -
root@ip-XXX:~# cd /opt/king-phisher
root@ip-XXX:/opt/king-phisher# sudo ./KingPhisherServer -L DEBUG -f ./server_config.yml
DEBUG    target diretory: /opt/king-phisher
INFO     checking for the pipenv environment
DEBUG    pipenv path: '/usr/local/bin/pipenv'
DEBUG    pipenv Pipfile: /opt/king-phisher/Pipfile
Loading .env environment variables…
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/king-phisher/king_phisher/server/__main__.py", line 42, in <module>
    from king_phisher import color
  File "/opt/king-phisher/king_phisher/color.py", line 41, in <module>
    import termcolor
ModuleNotFoundError: No module named 'termcolor'
root@ip-XXX:/opt/king-phisher# exit
logout

Very grateful for this project and everything the King Phisher team does.  Thank you!

From the information you provided, it appears you did a keyboard interrupt while King Phisher was setting up its pipenv environment.  Steps to have King Phisher reinstall its pipenv dependencies is located in the FAQ

The installation process could hang on the pipenv step for quite awhile, upwards of 15 minutes if I remember correctly. About how long did you wait at that phase?
You should be able to do the following, as root from in the /opt/king-phisher directory:

First remove the existing pipenv environment, it's probably corrupted so start fresh

pipenv --rm

Next reinstall the pipenv environment, this time you should see more output as it's working

pipenv install

Finally, re-run the installation script which will just note that the pipenv environment is already setup

tools/install.sh

That last step should work as all of the OS packages have already been installed by the first run on the installer. @wolfthefallen do you know of any that are missing, given that this user is running the master branch and not dev?

Very grateful to you both.  I couldn't figure out how to implement the commands described in the FAQ's in this environment though that might work.
I waited over an hour previously and, with your note, @zeroSteiner, I waited over 16 minutes again.  Still, I did implement the commands you describe which got hung up as well for over 10 minutes at the point below:
ubuntu@ip-XXX:~$ sudo su -
root@ip-XXX:~# cd /opt/king-phisher/
root@ip-XXX:/opt/king-phisher# pipenv --rm
Removing virtualenv (/opt/king-phisher/.venv)…
root@ip-XXX:/opt/king-phisher# pipenv install
Creating a virtualenv for this project…
Pipfile: /opt/king-phisher/Pipfile
Using /usr/bin/python3 (3.6.7) to create virtualenv…
⠏ Creating virtual environment...Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /root/.local/share/virtualenvs/king-phisher-RbupqVtz/bin/python3
Also creating executable in /root/.local/share/virtualenvs/king-phisher-RbupqVtz/bin/python
Installing setuptools, pip, wheel...
done.

✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/king-phisher-RbupqVtz
Installing dependencies from Pipfile.lock (49fa41)…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 15/66 — 00:00:21

After around 10 minutes:
An error occurred while installing advancedhttpserver==2.1.0 --hash=sha256:2dd28a788aaaebcf7aa7a2bfb788e6bdbf02f85684e5c0ac27b588b15288e479!
Will try again.
An error occurred while installing alembic==1.0.2 --hash=sha256:04bcb970ca8659c3607ddd8ffd86cc9d6a99661c9bc590955e8813c66bfa582b!
Will try again.

This stuff mean anything?

If pipenv has issues installing a dependency, It will let you know and then attempt to install them again after all other pypi packages have completed, as @zeroSteiner stated it can take sometime to complete.

Time did seem to help the pipenv install though I had to restart it several times and give it hours. Still, tools/install.sh hangs at INFO: Synchronizing King Phisher's pipenv environment  More context below.  I guess no-one else is having this problem so perhaps the problem is within TrustedSec's Pen Testing Framework..  Thanks again for everything.
...gir1.2-vte-2.91 is already the newest version (0.52.2-1ubuntu1~18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
INFO: Successfully installed gir1.2-webkit2-4.0 with apt-get
INFO: Synchronizing Python package dependencies from PyPi
pip 19.0.3 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
Requirement already up-to-date: pip in /usr/local/lib/python3.6/dist-packages (19.0.3)
pip 19.0.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/dist-packages (40.8.0)
Requirement already up-to-date: six in /usr/local/lib/python3.6/dist-packages (1.12.0)
Requirement already satisfied: pipenv in /usr/local/lib/python3.6/dist-packages (2018.11.26)
Requirement already satisfied: virtualenv-clone>=0.2.5 in /usr/local/lib/python3.6/dist-packages (from pipenv) (0.5.1)
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (40.8.0)
Requirement already satisfied: pip>=9.0.1 in /usr/local/lib/python3.6/dist-packages (from pipenv) (19.0.3)
Requirement already satisfied: virtualenv in /usr/local/lib/python3.6/dist-packages (from pipenv) (16.4.3)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pipenv) (2018.1.18)
INFO: Synchronizing King Phisher's pipenv environment

by chance are you running through a proxy?

Yes.  On aws lightsail per the setup in The Hacker Playbook 3: Practical Guide To Penetration Testing.  Is that the problem?

Ok I think I know what the issue is. pipenv is hanging when trying to connect with pypi because ssl certificate is failing through the proxy. Try the following to see if it will resolve the issue.
do export PIP_TRUSTED_HOST=pypi.org then try reinstalling.

So are were we able to get this issue resolved or are we still trying to figure out why it's hanging. Strictly speaking, I don't think we've tested KP on AWS Lights and depending on the flavor of Linux it may not be supported.

Sorry for delay.  I haven't yet tried that last step and you can mark this issue as closed.  Lightsail on AWS offers Ubuntu LTS 16.04 and 18.04 and I was using 18.04.
I'm really very impressed by the great work you both do with King Phisher and how patient and responsive you've been to an insignificant user like me.  I'm sure that the internet is much more secure because of your work.  Thank you.
tl;dr
I confess that I set the project aside, bothered by the book, The Hacker Playbook 3's, errors.  I don't expect a technology book to be completely up-to-date and error free but it should have a dynamic errata page to correct issues and/or the community to discuss work-arounds like those needed here.  I got stuck here within the first pages in the 1st chapter and can't be the only person having this problem.  I suspect the author uses some VPN besides lightsail on AWS and wrote about light sail because there's a cheap intro level without testing it or maybe Ubuntu 16.04 without specifying which Ubuntu.

We all start somewhere and we're glad you decided to try out King Phisher. If you have more issues in the future just open another ticket and we'll help you out.


Add in-depth rails tutorial

This PR adds an in-depth Ruby on Rails tutorial that's suitable for complete beginners. Readers learn how Rails works by modifying a Craiglist clone.
This tutorial was written by Aidan Feldman and yours truly.

@JonHMChan, wanted to check in and see if anything else should be included in this PR.
Thanks!

Merged - this is a great guide!

Awesome, thanks Jon!
--
Carl Sednaoui
+1<PHONE_NUMBER>
@carlsednaoui http://www.twitter.com/carlsednaoui
CoderDojo http://www.coderdojonyc.com/ | MailCharts
http://www.mailcharts.com/ | Thinkful http://www.thinkful.com/
On Mon, Feb 9, 2015 at 10:29 AM, Jon H.M. Chan<EMAIL_ADDRESS>wrote:

Merged - this is a great guide!
—
Reply to this email directly or view it on GitHub
https://github.com/bento-io/collection/pull/211#issuecomment-73527610.


Typescript fails to compile due to import type syntax in 3rd party TS declaration files

I'm running testcafe version 1.9.2 which seems to be using Typescript version 3.5.3.
When I try to compile a file, I get the following error. Inspecting each file and line that raises the error, it seems they all are using the import Type syntax. According to TS's website, this syntax is only allowed in versions 3.8 and above (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html)
Do we know when this will be fixed?
Error: TypeScript compilation failed.
<EMAIL_ADDRESS>(7, 13): '=' expected.
<EMAIL_ADDRESS>(7, 18): ';' expected.
<EMAIL_ADDRESS>(7, 31): ';' expected.
<EMAIL_ADDRESS>(7, 36): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 41): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 60): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 34): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 34): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 34): ';' expected.
<EMAIL_ADDRESS>(1, 13): '=' expected.
<EMAIL_ADDRESS>(1, 54): ';' expected.

What is your Test Scenario?

What is the Current behavior?

What is the Expected behavior?

What is your web application and your TestCafe test code?

Execute this command...
See the error...

Your Environment details:

testcafe version:
node.js version:
command-line arguments:
browser name and version:
platform and version:
other:

TestCafe can operate with TypeScript v3.8.x. I suggest that you delete package_lock.json and update your node_modules. Make sure that TypeScript v3.8.x is installed.


Unable to build without InnoSetup on Windows

It is currently not possible to build for Windows without InnoSetup installed. This should be optional.

I tried this again with a clean VM without InnoSetup installed and the application built without any issues.


[Question] What should be the flow for resolving reference ids inside results from server?

Hey,
What would be the right flow of resolving reference ids on the client itself? I know the relationship setup when the data is populated from the API server but for scenarios where that may not be ideal - can it be done in a way where the records can be fetched on setup or something? Basically, how do I remove the dependency of the API returning populated data and yet keep the rest of the app abstracted from that?
Right now, I have something like this in my setup -
  static setupInstance (data, { models, store }) {
    const { Tag} = models.ProductAPI
    if (data.tags) {
      data.tags= data.tags.map(tag => {
        const tagObj = new Tag(tag)
        return tagObj
      })
    } else if (data.tagIds) {
      data.tagIds= data.tagIds.filter(r => r)
      data.tags = data.tagIds.map(tagId => {
        const tagObj = Tag.getFromStore(tagId)
        return tagObj
      })
    }
    return data
  }
}

For this to work, I have to make sure that the Tags are pre-loaded before this runs - so I have a pre-loader script that retrieves all the tag objects from the server and adds them to the store. It's been working fine for me so far but it doesn't feel like the right way to go about this.
The use case seems quite common so not sure if there is already a thread that goes over this or not.
Thanks!

I do have a solution for this in mind, but nothing finished.  My current, preferred solution is to populate on the server and use the useFind and useGet utilities inside of components to retrieve related records.

My current recommendation is to use feathers-graph-populate (https://feathers-graph-populate.netlify.app/) to allow the client to tell the server which relationships to populate with the first request.
I don't have a baked-in solution for doing this after the data has loaded.  For situations that require doing this after the initial request (where using $populateParams is not an option) I usually use the useFind and useGet Composition API utilities to bring in the data that's required.  This keeps the data reactive to when the base record changes, and only requires a few lines of code.

@marshallswain Oh awesome - looks like what I've been trying to find exactly! I'll check it out and see how it would fit into my specific use-case. Thanks!


Latest version ?

Subject of the issue
Where do I find the version number for adding to the dependency?

0.0.6 but seems like its not working, atleast for me it dont give any results

0.0.6 but seems like its not working, atleast for me it dont give any results

Okay.


Update Kotlin to 1.8.22

Updates Kotlin to 1.8.22
Updates Gradle to 8.1.1 to support this
Replaces deprecated kotlinOptions.jvmTarget with type-safe compilerOptions.jvmTarget

@AChep, I've fixed the conflicts and updated to Kotlin 1.8.22. My project is having some issues with KotlinX DateTime since adding this project's dependency, which I think is down to the outdated Kotlin version.

@russellbanks any chance we update to the latest version of Kotlin supported by the stable version of Multiplatform Compose? I believe that's 1.8.20 but I'll check that later today.

@russellbanks any chance we update to the latest version of Kotlin supported by the stable version of Multiplatform Compose? I believe that's 1.8.20 but I'll check that later today.

I can do that if you want but we only need to follow that versioning as a library if we rely on Multiplatform Compose as a dependency. As long as projects that use this library use that Kotlin version if they rely on it, then it will still work fine.

For some reason I can't merge because of the conflicts But it doesn't say what files exactly have conflicts. :thinking:

For some reason I can't merge because of the conflicts But it doesn't say what files exactly have conflicts. 🤔

Hmm GitHub says "This branch has no conflicts with the base branch". If you're still not able to, there's GitHub CLI?

Took a bit different approach, the build with Kotlin 1.8.22 should be available soon :)

@AChep The gradle binary still needs updating. You can do that by running ./gradlew wrapper --gradle-version=8.2


After unsnap, marker of another polygon follows dragged marker

wtf? Fix it!

ok this has something to do with the raise of markers on hover.


Activity: new renamed folder name shown in previous folder share activity

Describe the bug
Sharing folder activity before renaming the folder contains the renamed folder name.
Steps to reproduce

Create a folder "FOLDER"
Share folder "FOLDER" via link
Rename folder "FOLDER" to "FOLDER RENAMED"

Expected behavior
Old activity before renaming should contain old folder name i.e. "FOLDER" in this case.
Actual behavior
New renamed folder name is shown in previous activity.

Nice catch! @tbsbdr


GTest functional tests that include parameters and uORB messaging

Describe problem solved by the proposed pull request
Right now our unit tests only work for the limited subset of code that doesn't depend on any parameters or uORB messages. This adds an example of building tests that depend on these.
Test data / coverage
Just some simple tests so far. Writing and reading parameters, sending and receiving uORB messages. The more complex test gets data into the CollisionPrevention library via parameters and uORB messages, which then constrains a setpoint. This is more proof of concept than trying to get good test coverage of the library.
Additional context
Having to list all of the dependencies again to get the stubs to be last is a pain. I'd love for there to be better tooling for that somehow.
This should enable full-coverage testing of the uORB and parameter API which most libraries use.

@jkflying Given you're in the guts of this, could you check that https://dev.px4.io/master/en/test_and_ci/unit_tests.html is accurate and insert docs that show the essential things you had to do to get the uORB/param stuff working? (I am fairly sure this is not up to date, because it does not even mention any limitation w.r.t. uorb/params).
What I'd really like is a template test that might live against this template application module example created by @bkueng. Thoughts?

@hamishwillee there have been some improvements by @MaEtUgR since that was written, with tests now being able to be added in the library folders and using the more industry-standard GTest framework.
There are also definitely some issues in the documentation there, eg make px4_sitl_shell doesn't actually exist anymore.
Running make tests runs the tests listed there, but for some reason they each take (on my system) 1.3s to run with RelWithDebInfo builds, and Debug builds they just hang. The GTest based tests are basically instant (a few ms maximum). I guess those tests need to set up the entire SITL environment? Seems like a big pain for running local tests, and it prevents us from having better test coverage too.
Also those tests are very fine-grained. The tests this PR enables will make sure that entire systems are working correctly together, that they read their uORB messages and parameters correctly, and we can even check that the messages published by one library can be read by another library.
Right now this is still in draft. I will update docs when it is complete :+1:

I agree there are a lot of dependencies that get brought in, and it would be nice to have more self-contained tests, but it seems to me that the actual API used for most things is parameters and uORB messages. Those are what ultimately define the behavior.
So, if we really want to do functional testing in a nice easy-to-read style of
setup input
run the code
verify output

which is generally how business logic tests should work, we need to be doing this at the uORB and parameter layer. Otherwise we need to wrap everything with an extra layer just to test it, and there is a big swathe of code (the translation from the uORB API to the C/C++ API) that doesn't get tested, which is very prone to bugs due to eg. different naming in messages and C/C++ API.
TLDR: I also think this is messy, but it's the only way I see to not have gaps in our testing with a pub-sub architecture.

Right now this is still in draft. I will update docs when it is complete

Thank you (re Re https://github.com/PX4/Firmware/pull/12521#issuecomment-513699277)
If at all possible, please do consider adding a test module alongside Beat's example module. We're hoping more people take that and copy it as "best practise" so having good test alongside it makes sense. If not, then perhaps minimal would still be to link to the tests you think work well.

The problem with this testing is that it's harder to run on NuttX, and it conflicts with ntest which would be very minimal and simple/stupid.
#12106

In my view, gtest running on the build computer and ntest running on the device serve very different purposes. We need them both.
With the amount of functionality that the firmware has, I would expect to need several thousand tests to get basic coverage of the critical components (navigator, commander, flight tasks, helper libraries and maybe some select drivers). We need to design for where a single developer can easily write 20+ tests a day, to achieve this. So, to make this feasible, the testing environment needs to be as flexible as possible so that we don't need to do much refactoring while writing tests. The tests also need to be fast to run, and every contributor needs to be able to run all of them locally, quickly (in a few seconds), to make sure nothing was broken.
Given this, I don't think adding the constraint of running them all on embedded hardware is going to be feasible. It will be slow, and we'll quickly hit the 2MB flash limit. On the other hand, most of the 'business logic' can be tested very easily on faster hardware which has more storage, with the basic assumption that the problems we are trying to prevent are due to bugs in the code itself, not things which are accidentally different between the build system and the device.
What needs to run on the device itself (eg. with ntest) are the tests which make sure the hardware platform is as expected, so that the above assumption holds true. Testing the POSIX interface. Testing the driver interfaces. Testing threading issues and that network and serialization code works with big and little endian environments correctly. This way we can confidently transfer the results of the much larger suite of tests running elsewhere to the embedded platform.

@julianoes Ok, so instead of changing the existing unit tests too much I instead decided to introduce a new test class, functional tests. This way the tests which don't have dependencies on parameters or uorb can still be used with ntest, and it makes adding new functional tests easier because we don't need to list all of the dependencies each time.
@hamishwillee I added a minimal example in the parameters library which just sets parameters and publishes uOrb messages. I'll be sure to mention this and link to it in the docs when I do that.

So, the testing environment needs to be as flexible as possible so that we don't need to do much refactoring while writing tests. The tests also need to be fast to run, and every contributor needs to be able to run all of them locally, quickly (in a few seconds), to make sure nothing was broken.

I agree with that!

@julianoes Ok, so instead of changing the existing unit tests too much I instead decided to introduce a new test class, functional tests. This way the tests which don't have dependencies on parameters or uorb can still be used with ntest, and it makes adding new functional tests easier because we don't need to list all of the dependencies each time.

Ok sounds like a good trade off.

@dagar @MaEtUgR I'd like to get this in, do you have anything that you'd like changed?

Could you rebase quickly and push? Thanks!


Implement support for Regex Rewrite for URI's

Please provide a description of this PR:
This PR implements the API change here https://github.com/istio/api/pull/2753. Regarding issue: https://github.com/istio/istio/issues/22290

Adds support for uriRegexRewrite under HTTPRewrite in Virtual Service.
Update validation webhook to understand the new field. URI rewrite and uriRegexRewrite cannot be used together

Hi @wujiaqi. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

Sorry. We do not backport features especially with API changes.

Gotcha - will wait for the 1.19 upcoming version then. Thanks for the quick update!


add suport to DateTime type

add suport to DateTime type

Hi, thanks for your feedback.
The problem here is how to differ a date from a simple string? I could try to parse an ISO8601 format from any string, but the format might be accidental.

it would be a nice try, and ISO8601 will be good enough


[rapids] bringing action up to date

adding functions to check running environment OS
set rapids version to 23.12
set cuda version to 11.8
remove cudf variables - they are unused
set xgboost version to 2.0.3
created variable to store scala version for future move from 2.12 to 2.13
setting python_ver by operating system

Manually tested on
❌

2.0-ubuntu18 — ✅
2.1-ubuntu20 — ✅
2.2-ubuntu22 — ✅
2.2-rocky9 — ✅
2.2-debian12 — ✅

/gcbrun

/gcbrun

/gcbrun

this may depend on #1200 since I developed those changes as I was exercising these manual test runs.

Step #5 - "dataproc-2.1-debian11-tests": 2024-07-22T14:53:01.119357965Z NameError: name 'metadata' is not defined
https://github.com/GoogleCloudDataproc/initialization-actions/blob/master/rapids/test_rapids.py#L98
The presubmits seems to be failing because of this.

/gcbrun

/gcbrun

/gcbrun


Otros locks the file

when I open a log file in OTROS , it locks it so the directory cannot be deleted (in our deployment process we delete all the tomcat directory, including the logs dir). when we use notepad++ there is no lock so the directory can be deleted.
is there a way to solve this?
is it a bug? (or enhancement?)

thanks!


Include recording settings in binary format

A new magic string, b'SDRFFX' is used to specify that we are using the new format.
All arguments passed to the SoapyDevice are captured, as well as the arguments to SoapyPower.sweep()
A device info string from detect_devices is also recorded (which includes all available information, like the label, the serial and the driver of the device).
Test recording:

Test read script:
import soapypower.writer

formatter = soapypower.writer.SoapyPowerBinFormat()

with open('output', 'rb') as f:
    header, _, args, device_info = formatter.read(f)

    print("DEVICE INFO:", device_info)
    print("DEVICE HEADER:", args['device'])
    print("SWEEP HEADER:", args['sweep'])

    print("REGULAR HEADER:", header)

Output:

Closes #6.

alexnask, thanks so much for this work!
@xmikos, are you around to merge this PR?
alexnask, if there’s no reply from xmikos, ping me and I’ll close the issue

Hello, I am still around, but I had no time to work on my SDR projects :-( I will try to look at it and merge it today or tomorrow evening.

@xmikos
Hi, thanks for your time :)
The only part I'm a bit unsure about is
device_info = simplesoapy.detect_devices(self._args['device']['soapy_args'], True)[0]

The assumption is that SoapySDR opens the device that matches the soapy_args that it finds first and it seems to work out well with some tests.
Apart from that, the rest of the code is just reading and writing the arguments passed to the SoapyDevice and to the sweep function, it is pretty trivial (the only slight complications are string, where length + data is used and the time_limit option which can be None).

@xloem
Hi, I would really appreciate if you could close the issue if you are satisfied with this solution.
I will be working on any improvements on this pull request if xmikos deems they are necessary, so that it can be merged in master.

thanks alexnask; I'll close.
I've started using your work already, although I haven't tried reading the data back for processing yet.  My only concern is I noticed the header information is output with every single data packet.  This might be overkill.  What do you think?

thanks alexnask; I'll close.
I've started using your work already, although I haven't tried  reading the data back for processing yet.  My only concern is I noticed  the header information is output with every single data packet.  This  might be overkill.  What do you think?

@xloem
Yes, this is true.
I could make it a file header instead of a header for every measurement run, I just wrote it that way to match the old binary format, it seams that each packet is independent by design.

@xloem @xmikos
Updated the code to write/read the recording settings once, in the beginning of the file.
Here is a test reading script:
import soapypower.writer

formatter = soapypower.writer.SoapyPowerBinFormat()

with open('output', 'rb') as f:
    args, device_info = formatter.read_header(f)
    print("DEVICE INFO:", device_info)
    print("DEVICE HEADER:", args['device'])
    print("SWEEP HEADER:", args['sweep'])

    i = 1
    tup = formatter.read(f)
    while tup is not None:
        tup = formatter.read(f)
        i += 1

    print("READ {} MEASUREMENTS".format(i))

If you need any help converting your measurements from the previous format to this one, I could write a script to do so.


Add ability to disable security for InfoBox

This fixes #5446, also see this forum post.
This adds the ability to disable the sandboxing on the iFrame in an InfoBox, as well as allow for the title to contain HTML, by setting the new disableSecurity property. If there are other security things that could be disabled, they could go here as well. The idea was to have a top level InfoBox property, but since the InfoBox isn't usually directly Instantiated (at least in my case), I also added the ability to set the property directly.
I don't know much about knockout, so to accomplish HTML in the title I had to remove the data-bind, add the bind as html, then clear and apply bindings. If someone knows a different/more efficient way of doing this, that would be cool.
There are 3 failed tests, but I checked the master, and there are 3 failed checks there as well, so I'm not to blame.
I also just sent the CLA to whoever it is important.

Thanks for the pull request @burn123!  This will be helpful to a number of people.  We did receive your CLA, so we'll try to review this soon.  @ggetz do you want to review this?
Meanwhile, it looks like you have a merge conflict in CHANGES.md.  Can you merge in master?
What tests are failing for you in master?  We try to minimize this by tracking test failures with this label: https://github.com/AnalyticalGraphicsInc/cesium/issues?q=is%3Aopen+is%3Aissue+label%3A"test+failure"
If you don't see an issue open already, it would be helpful if you could open one with the tests that are failing, and info about which OS, browser and graphics card your computer has so we can try to fix it in the future.

@hpinkos I was confused about the merge conflict, only because there was that other release that was done, and it looks like some of the changes were removed from the file.
I will look at the test failures tomorrow!

My errors when running Jasmine seem to be the same as the errors you posted in #5610, so I posted my error output as a comment on that issue.
The TravisCI build error seems to be the same problem with ESLint that other pull requests near this one are also experiencing.

I implemented all of the changes suggested. I had to create a container for each title div, otherwise I couldn't apply the if binding.

Awesome, thanks @burn123! Please remove the .idea file.

@ggetz Ah sorry, that file kept popping up and I guess it slipped past me. I updated it to be the same, though it is still saying something has changed.

@hpinkos I think this is ready to go.

I just had that one comment @burn123, then this should be ready to go! To keep with the MVVM pattern knockout uses, we want to keep all of the logic in the ViewModel.  The View should update using data-binding wherever possible.

I'm not sure why making the zip file failed, but that seems to be the only error. Other than that, it should be good!

@ggetz Fixed, thanks for your help and patience!

@burn123 Not a problem, we appreciate your contribution!
Thanks, @hpinkos! Is this good to merge?

@hpinkos if this is good to go, I would still like to take a quick look at this given security implications.  Hopefully tonight.

Yep, I think this is ready to go.  Great work @burn123!
@mramato merge when you're ready

Sorry for the delay on this, a quick pass brought up one major concern: previously users could manipulate the sandbox property directly in order to enable or disable the settings, now it looks like the same settings will always be returned because of the sandboxOptions knockout property.  In fact, since the getter is readonly and hardcoded, it looks like it may be impossible to permanently change what the Sandbox attributes actually are (because knockout may set them back on a binding refresh).
It's possible I'm missing something and my concerns aren't really valid, but since this would be a breaking change, it would be nice to have a good explanation of exactly what the impact is.
Perhaps a much simpler approach here would be to make securityDisabled a one time constructor option, and that's it.  Don't allow it to be changed after the fact.  I think this would simplify the code and still cover the use case.  What do you guys think?

@mramato Is there a way to manually do a binding refresh to test if this is an issue?

@mramato I updated InfoBox to use a disableSecurity param instead of doing it with observables.  You're right, I think that makes more sense.  I don't expect people to toggle on and off security.
I think this is ready to go

Thanks again for your contribution @cguldner!
No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?
I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:


Determine if we can compile in .zshrc pre-initialization

[ ] Determine whether there would be a speed decrease when doing this.
[ ] Determine whether we could have users just sourcing one file in .zshrc (for sake of simplicity), or if it's better to keep separated code being sourced by .zshrc and .zlogin.
[ ] Determine whether we can make core one (1) file (again, for simplicity even during installation of zimfw).

This would fix #232, #231

@Eriner, I had new ideas about this. To reduce the number of times we try to zrecompile code, we could narrow down these scenarios:

when the zmodules array changes by being manually edited by the user (maybe we could keep a copy of the array that was last zcompiled, or maybe we could just ignore this scenario)
when a module changes using the zimfw tool, either when it's installed as a new one, or when it's updated because new commits were pulled
when modules with existing directories but not referenced from zmodules are cleaned using the zimfw tool (maybe we can ignore this scenario if we're considering scenario 1)

TL;DR The overall idea is to just do the recompile when the zimfw tool is used.

@ericbn I might have a use case that isn't covered by those optimizations:
Currently I have a lot additional code for my bash and zsh environments that resides in my dot files. I have a daily routine that updates those every day and that process also updates zim itself but also generates a new digest of all my additional code. This digest file is symlinked into the custom module.
This allows me to maintain custom zsh code independently of zimfw, but still makes it work within it. Right now recompile detects if the init.zsh changes, but wouldn't with those changes as the module setup itself never changes.

@PatTheMav, in this case you would have to call zimfw cache-build manually after you make changes to your custom code.
Or yeah, you have a point: people can have custom modules which code changes. And that is not covered in my list above.
Suggestions?

@ericbn - true, I could make that part of the update process that updates zim itself anyway.
From personal experience I know how hard it is to make something fast as well as making it dynamic and reactive. The latter part will introduce overhead and code that mostly eats up the speed improvements. And the basic idea is to avoid as many file consistency checks as possible (even comparing the given zmodules array with a cached version could be undesirable).
I'll try to think about this a bit, as I don't really have a "better" option right now.


Replace html tags in the description field

Replaced html tags in the description field with markdown and put it in the description.md file.
Github Issue (if applicable): #677
Trello Link (if applicable):
Forum Link (if applicable):
Explanation of Bugfix/Feature/Enhancement:
Took advantage of markdown support for the feature description.
Recommended Release Notes:
Feature moved to the General section since it affects both the account and budget screens.

Thanks!


JVM resources are not copied into jar

tl;dr
Files in the resource directory are not being copied into the built jar file.
the sordid details
I've set up a project that mimics a sbt/maven layout (src/main/scala, src/main/resources, etc). The source for the project is at https://github.com/hohonuuli/demoseed. In this project there is a resource file at src/main/resources/logback.xml.  My module is configured like so:
[module.demoseed.jvm]
root = "."
resources = [
  "src/main/resources"
]
sources = [
  "src/main/scala",
  "src/main/java"
]
scalaDeps = [
  ["io.circe", "circe-core", "0.13.0"]
]

I ran the following:
seed all
seed package demoseed --libs

Everything compiles just fine, but I can't find the logback.xml file from resources in the built jar. e.g.
❯ jar -tvf build/dist/demoseed.jar
   702 Mon Jun 22 17:39:16 PDT 2020 META-INF/MANIFEST.MF
     0 Mon Jun 22 17:39:14 PDT 2020 demoseed/
   925 Mon Jun 22 17:39:14 PDT 2020 demoseed/Main$.class
   301 Mon Jun 22 17:39:14 PDT 2020 demoseed/Foo.class
   635 Mon Jun 22 17:39:14 PDT 2020 demoseed/Main.class

At this point, I can't tell if this is a bug in seed or if I've missed some configuration. Any help is appreciated. (BTW, seed is pretty cool!)

Thanks for the detailed bug report! I agree that package should copy resource files too. #108 will fix this.


Exact (deep) match array

There seems to be no way to exactly match an array.

'use strict';

const pify      = require('pify');
const Datastore = require('nedb');

const d = new Datastore();

const insert = pify(d.insert.bind(d));
const find   = pify(d.find.bind(d));

insert({'foo': ['bar', 'baz']})
    .then(() => find({'foo': ['bar', 'baz']}))
    .then(console.log);

This will not return any documents (which is inconsistent with the behaviour of MongoDB)
The best approximation right now would be

insert({'foo': ['bar', 'baz']})
    .then(() => find({$and: [
        {'foo': 'bar'},
        {'foo': 'baz'},
        {'foo': {$size: 2}}
    ]}))
    .then(console.log);

But this does not perform an exact match (e.g. documents where foo equals ['baz', 'bar'] would also be returned).

If submitting what you think is a bug, please follow the bug reporting guidelines (see end of readme).
In that specific case it's a non-existing feature, as nedb is not 100% on par with MongoDB for obvious reasons. I'm not planning on adding it but I can review a PR.


[PROPOSAL] Ability to annotate datasets with metadata without a job run

Purpose:
We need a way to make observations about a Dataset current state outside of a run reading or writing the data.
For example, this could be:

collecting schema information about a table from a warehouse
informing that a table has been deleted
etc

Proposed implementation
Adding Dataset event types that are not lineage events. This would be the Dataset entity with its facets:
https://github.com/OpenLineage/OpenLineage/blob/3a1ccbd854bbf202bbe6437bf81786cb01ed4d01/spec/OpenLineage.json#L178-L203
"Dataset": {
      "type": "object",
      "properties": {
        "namespace": {
          "description": "The namespace containing that dataset",
          "type": "string",
          "example": "my-datasource-namespace"
        },
        "name": {
          "description": "The unique name for that dataset within that namespace",
          "type": "string",
          "example": "instance.schema.table"
        },
        "facets": {
          "description": "The facets for this dataset",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DatasetFacet"
          }
        }
      },
      "required": [
        "namespace",
        "name"
      ]
    }

covered by: https://github.com/OpenLineage/OpenLineage/issues/1837


cherrypick: semver, qna fixes

Pull Request Test Coverage Report for Build 702221761

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage increased (+84.9%) to 84.941%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

libraries/adaptive-expressions/src/triggerTrees/node.ts
2
95.26%

Totals

Change from base Build 702023573:
84.9%

Covered Lines:
18896

Relevant Lines:
21184

💛  - Coveralls


Dorine

What?
I've ammended  production-environment to mention load balancing for workloads. It includes suggestion that the best solutions are external projects and the links to the pages with suggestions. See ticket #28060.
Why?
Readers might want to know how to set up a cluster with load balancing implemented in a resilient and scalable way. See #28060 for more information.
How?
This includes mentioning the need for load balancing for workloads, suggesting that the best solutions are external projects and linking a setting up external load balancer  modified to mention op-premises options and include a warning shortcode.
Screenshots (optional)
0

/retitle Add load balancing guidance for workloads in "Production environment" page

Hello @MissTipo .
I don't think these changes are helpful. The existing formatting on the page is okay.
/close


Function for constructing integer sequences

Summary
This PR adds the math function necessary for constructing a sequence of integers given just the lower and upper bounds, so that the convenience function (1:N) can be added to the Stan language
Tests
prim tests added.
Side Effects
N/A
Release notes
Added function for creating an ordered integer sequence
Checklist

[x] Math issue #2107

[x] Copyright holder: Andrew Johnson
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

@serban-nicusor-toptal Would you mind having a look a the Jenkins for this PR? It looks like the ‘gelman-group-linux’ box is offline and it's causing the tests hang

Hey @andrjohns I'm on it. Sorry for the inconvenience.

No worries at all, thanks for the help!


Add draggable option

Added an option to disable rotation by dragging and swiping.
I'm sorry if there is an existing way to do that :pray:

Could you please explain why you'd like such an option? I'm not sure I see a use case for disabling the primary input method. I'd be happy to merge the pull request if I understood what it's for.

I'm trying to create a navigation system, so I want to display a scenery of the right direction that the user should head for.
It's preferred that the user cannot rotate the scenery in my case.

Makes sense. Thanks!


Use qlalchemy/pydantic to avoid using SQL directly and prevent SQL injections

Implementation completed. All the SQL queries are done via SQLalchemy


 [mode] and [sidenavWidth] don't work.

Bug Report
From https://teradata.github.io/covalent/#/layouts
<td-layout [mode]="side" [opened]="true" [sidenavWidth]="257px">
  <div td-sidenav-content>
   .. more sidenav content
  </div>
  .. main content
</td-layout>

The [mode] doesn't respect "side" and "push" options.
The [sidenavWidth] doesn't respect the width. If you specifie "px" like the example above the app breaks.
Which version of Angular and Material, and which browser and OS does this issue affect?
"angular/core": "^4.3.3",
"angular/material": "^2.0.0-beta.8",
"covalent/core": "^1.0.0-beta.6",

You are adding them as variable names, not as strings.. please remove the [] off the inputs.
Adding [] to an input makes angular evaluate whats assigned to it, in this case its looking for a variable called side and a variable called 257px

Without the [] it worked.
Just want to point out that the [opened]=true also works and that I was following instructions from the

TdLayoutComponent - td-layout -> API Summary -> Usage
It'll be necessary to update this doc.


更新/ql失败，请检查原因...

开始更新仓库：/ql

Fetching origin
fatal: unable to access 'https://github.com/whyour/qinglong.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
error: Could not fetch origin
HEAD is now at ddee69d 更新版本 v2.10.13
From https://github.com/whyour/qinglong
 * [new branch]      beta       -> origin/beta
   ddee69d..99d7eae  develop    -> origin/develop
   ddee69d..99d7eae  master     -> origin/master
 * [new tag]         v2.13.1    -> v2.13.1
 * [new tag]         v2.11.0    -> v2.11.0
 * [new tag]         v2.11.1    -> v2.11.1
 * [new tag]         v2.11.2    -> v2.11.2
 * [new tag]         v2.11.3    -> v2.11.3
 * [new tag]         v2.12.0    -> v2.12.0
 * [new tag]         v2.12.1    -> v2.12.1
 * [new tag]         v2.12.2    -> v2.12.2
 * [new tag]         v2.13.0    -> v2.13.0
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

更新/ql失败，请检查原因...

开始克隆仓库 https://github.com/whyour/qinglong-static.git 到 /ql/repo/static

Cloning into '/ql/repo/static'...
fatal: unable to access 'https://github.com/whyour/qinglong-static.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

更新/ql失败，请检查原因...

## 执行结束... 2022-05-29 02:31:12  耗时 242 秒

同+1


Problem with getUserPlaylists parameters

Hello, I am using this wrapper for NodeJS. I have a question about the getUserPlaylists method and its parameters. I want to specify the limit and the offset and I don't know how to specify them because it is not clear in the docs.
I did it like this but it doesn't work.
spotifyApi.getUserPlaylists({limit: 27, offset: 7})         .then(function(data) {

Use getUserPlaylists to fetch a certain user's playlists. You need to pass the userId as the first parameter. See https://github.com/thelinmichael/spotify-web-api-node/blob/master/src/spotify-web-api.js#L445-L455 for more information.
There is another endpoint to fetch the current user's playlists that doesn't need an explicit userId, but it's not implemented in this library yet.

That's not what I was asking, but thanks. getUserPlaylists does not need the userId and in that case, it will fetch the playlist of the user that is logged in. I want to know info about the parameters of getUserPlaylists and how to specify them. I did it like I specified it in the question but it doesn't work. In the link that you wrote for more information it is stated that it can have an object with options as parameters but I don't know how to write it. Can you help me with that? Because, in my opinion it is not well explained in the docs.

True, my fault. I should have read the documentation of the function better.
The options that you can pass are the ones that the endpoint supports, which are limit and offset.
The problem is that there is a bug in the implementation. When the userId is not provided it should set options to the first parameter of the function, which it doesn't do. A workaround for now is to pass null as the userId:
spotifyApi.getUserPlaylists(null, {limit: 27, offset: 7}).then(function(data) {

Let me know if that solves it and I'll file a ticket to fix this.

Yes, that solves it! Thank you very much! Muchas gracias (también soy español) :)

¡Me alegro de que haya funcionado!

spotifyApi
.getUserPlaylists()  is returning an empty item list  how to solve that ?

spotifyApi
.getUserPlaylists()  is returning an empty item list  how to solve that ?

@piyushsingh0992  i am getting same proble if you have solved the problem can you help me?

This is not working for me.  Consistently returns:
WebapiRegularError: An error occurred while communicating with Spotify's Web API.
Has the methodology for this changed?


Static site wasn't generated

I miss the feature which generate HTML (and related... js, css, img and fonts) in the static folder. Or I miss something in the docs?

Hello @gigante,
which feature do you exactly mean? Usually you setup your Hugo website and run the hugo command in the root of the website. By default the generated HTML will be saved in the public directory.

I was looking in the static folder. My mistake. Thx @digitalcraftsman


Feature/integration improvements

This pull request fixes:
Memory leaks caused by not unsubscribing from events when object is not used any more
Handle refresh annotation action properly
This pull request adds:
Events that handle all annotation logic inside overlay in order to remove them from the annotation-tooltip object

Coverage increased (+0.3%) to 47.197% when pulling c0313d6183ae5b1840cd9c9e55ed54f95b957f88 on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

Coverage increased (+0.3%) to 47.197% when pulling c0313d6183ae5b1840cd9c9e55ed54f95b957f88 on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

@radpet I noticed (and I don't know if this happened in this PR or a previous one), but when you go into Edit mode for an annotation and click on one of the shapes and then click outside of it, it draws that shape.  It should only draw a shape when the user explicitly selects one of the shapes by the top icons.  A user should be able to click around the rest of the image when in pointer mode without drawing a shape.  I believe this was working at one point, so I don't know when it broke.

@rsinghal

@radpet I noticed (and I don't know if this happened in this PR or a previous one), but when you go into Edit mode for an annotation and click on one of the shapes and then click outside of it, it draws that shape. It should only draw a shape when the user explicitly selects one of the shapes by the top icons. A user should be able to click around the rest of the image when in pointer mode without drawing a shape. I believe this was working at one point, so I don't know when it broke.

Nah this happens in annotation-work too... I'll try to fix it in another pull request.

Coverage increased (+0.3%) to 47.197% when pulling a0597936151e23e22cb66550e5c8dde662607a0d on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

Coverage increased (+0.3%) to 47.168% when pulling 1b1833577f1fc34b100c93765563314383b70ee5 on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

Coverage increased (+0.3%) to 47.158% when pulling 57ea3615127238db0d11d0659e53633a85b229ba on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

Coverage increased (+0.3%) to 47.138% when pulling 676306e5fcd849e5a075968f2118c578fc671bf6 on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

Coverage increased (+0.3%) to 47.168% when pulling bb4edbc52d332fbeaecdc1c3829c82552ced1e42 on SirmaITT:feature/integration-improvements into 5d67ac218d70232afe2198f642c62aab9f2e3717 on IIIF:annotation-work.

We need that bug fixed as soon as possible as we will be doing a code freeze early next week.

Right I will start fixing it right now, meanwhile please checkout this pull request.


chore: bump celestia-app to v1.0.0-rc1

Overview
bumps app to latest release candidate. I'm not sure how celestia-node wants to handle app version changes. I'm completely unaware of any existing plans, so aplogies if this is already planned for, but ideally we don't rely on the latest appversion constant. This is definitely fine for v1, but when v2 comes along we will want to change which version we use according to what is in the header.
Checklist

[x] New and updated code has appropriate documentation
[x] New and updated code has new and/or updated testing
[x] Required CI checks are passing
[x] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

@evan-forbes, linter seems to complain after the merge, do you mind fixing it?

sorry forgot to mention @Wondertan fixed in https://github.com/celestiaorg/celestia-node/pull/2305/commits/46e2a70f918ed97c19d9600b65bcf66b17ba8b03
also bumped to rc2 since why not


Doesn't work anymore?

I'm just getting an error saying the model is not found. Is it possible to update to support GPT4 models?

Hey, I don't use the extension myself anymore (I developed it based on my needs in my previous position)
Do you know what's not working? I can probably fix that fast if it's just a semantic.


Cannot configure ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH

When I configure it and try to login, zulip responds 500 Internal Server Error and logs as follows:
2015-11-17 01:28:41,380 ERROR    Internal Server Error: /accounts/login/
Traceback (most recent call last):
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/zulip/zerver/views/__init__.py", line 634, in login_page
    extra_context=extra_context, **kwargs)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/contrib/auth/views.py", line 44, in login
    if form.is_valid():
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/forms/forms.py", line 184, in is_valid
    return self.is_bound and not self.errors
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/forms/forms.py", line 176, in errors
    self.full_clean()
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/forms/forms.py", line 393, in full_clean
    self._clean_form()
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/forms/forms.py", line 417, in _clean_form
    cleaned_data = self.clean()
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/contrib/auth/forms.py", line 157, in clean
    password=password)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 74, in authenticate
    user = backend.authenticate(**credentials)
  File "/srv/zulip/zproject/backends.py", line 162, in authenticate
    return ZulipLDAPAuthBackendBase.authenticate(self, username, password)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 167, in authenticate
    user = ldap_user.authenticate(password)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 337, in authenticate
    self._authenticate_user_dn(password)
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 447, in _authenticate_user_dn
    if self.dn is None:
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 411, in _get_user_dn
    self._load_user_dn()
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 474, in _load_user_dn
    self._search_for_user_dn()
  File "/srv/zulip-venv/local/lib/python2.7/site-packages/django_auth_ldap/backend.py", line 494, in _search_for_user_dn
    results = search.execute(self.connection, {'user': self._username})

It works fine when I set AUTH_LDAP_USER_SEARCH with the same value in /etc/zulip/settings.py.

I guess that docker-compose.yml stores the value as a string, not a python object, and it causes the problem.

Could you provide an example value for the AUTH_LDAP_USER_SEARCH?
So I can test and fix it properly. Thanks.

Can you try with the latest v1.3.9 image?

Thanks. The error does not reproduce anymore at v1.3.9. But now it seems that zulip ignores ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH in docker-compose.yml and uses AUTH_LDAP_USER_SEARCH in /etc/zulip/settings.py.
I didn't quote the value as follows:
    ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")

You have to quote the value in the docker-compose.yml, with single quotes
or double quotes.
Can you do docker cp ZULIP_CONTAINER_NAME:/etc/zulip/settings.py .;cat settings.py and post the output as a gist please?
On Wed, Nov 18, 2015 at 11:29 AM Yi EungJun<EMAIL_ADDRESS>wrote:

Thanks. The error does not reproduce anymore at v1.3.9. But now it seems
that zulip ignores ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH in
docker-compose.yml and uses AUTH_LDAP_USER_SEARCH in /etc/zulip/settings.py.
I didn't quote the value as follows:
ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")

—
Reply to this email directly or view it on GitHub
https://github.com/Galexrt/docker-zulip/issues/49#issuecomment-157672564
.

I quoted it with single quotes.
ZULIP_SETTINGS_AUTH_LDAP_USER_SEARCH: 'LDAPSearch("ou=mycompany,dc=mycompany,dc=com", ldap.SCOPE_SUBTREE, "(&(mail=%(user)s)(objectClass=user))")'

But it still not works.  Here is the output of docker-compose up zulip:
$ docker-compose up zulip
zulip_redis_1 is up-to-date
zulip_memcached_1 is up-to-date
zulip_rabbitmq_1 is up-to-date
zulip_database_1 is up-to-date
Starting zulip_zulip_1
Attaching to zulip_zulip_1
zulip_1 | === Begin Initial Configuration Phase ===
zulip_1 | Preparing and linking the uploads folder ...
zulip_1 | Prepared and linked the uploads directory.
zulip_1 | Executing nginx configuration ...
zulip_1 | Nginx configuration succeeded.
zulip_1 | Exectuing certificates configuration...
zulip_1 | Certificates configuration succeeded.
zulip_1 | Setting Zulip secrets ...
zulip_1 | Secrets already generated.
zulip_1 | Secret found for "email_password".
zulip_1 | Secret found for "rabbitmq_password".
zulip_1 | Zulip secrets configuration succeeded.
zulip_1 | Setting database configuration ...
zulip_1 | Setting key "DATABASES", type "array".
zulip_1 | Database configuration succeeded.
zulip_1 | Setting caches configuration ...
zulip_1 | Setting key "CACHES", type "array".
zulip_1 | Caches configuration succeeded.
zulip_1 | Activating authentication backends ...
zulip_1 | Setting key "AUTHENTICATION_BACKENDS", type "array".
zulip_1 | Adding authentication backend "ZulipLDAPAuthBackend".
zulip_1 | Authentication backend activation succeeded.
zulip_1 | Setting LDAP settings if set ...
zulip_1 | Setting key "LDAP_APPEND_DOMAIN", type "string".
zulip_1 | LDAP settings set.
zulip_1 | Setting redis configuration ...
zulip_1 | Setting key "RATE_LIMITING", type "bool".
zulip_1 | Setting key "REDIS_HOST", type "string".
zulip_1 | Setting key "REDIS_HOST_PORT", type "int".
zulip_1 | Redis configuration succeeded.
zulip_1 | Setting rabbitmq configuration ...
zulip_1 | Setting key "RABBITMQ_HOST", type "string".
zulip_1 | Setting key "RABBITMQ_USERNAME", type "string".
zulip_1 | Rabbitmq configuration succeeded.
zulip_1 | Executing Zulip configuration ...
zulip_1 | Setting key "EMAIL_HOST_USER", type "string".
zulip_1 | Setting key "AUTH_LDAP_SERVER_URI", type "string".
zulip_1 | Setting key "NOREPLY_EMAIL_ADDRESS", type "string".
zulip_1 | Setting key "EMAIL_HOST", type "string".
zulip_1 | Setting key "EXTERNAL_HOST", type "string".
zulip_1 | Setting key "AUTH_LDAP_BIND_DN", type "string".
zulip_1 | Setting key "ADMIN_DOMAIN", type "string".
zulip_1 | Setting key "DEFAULT_FROM_EMAIL", type "string".
zulip_1 | Setting key "AUTH_LDAP_BIND_PASSWORD", type "string".
zulip_1 | Setting key "ZULIP_ADMINISTRATOR", type "string".
zulip_1 | Zulip configuration succeeded.
zulip_1 | Auto backup enabled.

Here is my /etc/zulip/settings.py: https://gist.github.com/npcode/dcff245588768fa30ac7

Thanks for the settings.py. I'm looking into it.

@npcode I fixed the problem now. Please repull the v1.3.9 image and try again.
Please remove the old containers before retrying. Thanks.

Now it works very well. Thanks a lot!
On Thu, Nov 19, 2015 at 4:28 AM, Alexander Trost<EMAIL_ADDRESS>wrote:

@npcode https://github.com/npcode I fixed the problem now. Please
repull the v1.3.9 image and try again.
Please remove the old containers before retrying. Thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/Galexrt/docker-zulip/issues/49#issuecomment-157833242
.


Documentation issue: needed to enable Google+ APIs in developer console

Setup failed until I enabled "Google+ API" in the developer console for the App I created for SSO authentication.
By "failed", I mean that I'd receive an Internal Error after signing into Google and being redirected back to Sentry during the SSO configuration process. Digging into it showed that it was a 403 response to a request to the google plus address for getting user profile data.
Not sure if this is expected, but if it is, would be worth documenting it here.

Thanks for pointing this out. It's expected, and I've opened a PR to update the documentation.

@DominicWatson there's a new release out that documents the requirement: https://pypi.python.org/pypi/sentry-sso-google
Thanks for the report!

Awesome :)


Update one package based on a dist tag

Hello!
I'm trying to trigger a PR everytime a package is updated in a specific npm tag (ex next). I'm able to trigger the update only on the package I want for stable releases if a stable version is specified in package.json and also for unstable releases if an unstable version is specified in package.json file.
Is there a way to update the package if it comes from both of the tags (eg: latest and next)

The goal is to trigger updates for a library in bigger libraries repositories that rely on it to see if anything breaks (the PR would trigger CI) before releasing a patch to latest in npm. These bigger libraries would have configured renovate before

cc @rarkins

Hi @posva, you should be able to achieve your goal with the respectLatest config option. It defaults to true, which means it only upgrades a version past the latest version if you are already past it. In your case, you want to upgrade it past latest at any time, so you should set this to false.
If you want to do this for a particular package only, then put it in a package rule like so:
 "packageRules": [
     {
       "packageNames": ["package-to-test"],
       "respectLatest": false
     }
   ]

By the way, it sounds like you might be interested in this idea and your feedback there would be welcome, to firm up the requirements to help make it a "reality": https://github.com/renovateapp/renovate/issues/1453

Also, if you want those "downstream" repositories to also get separate PRs when there is a stable (i.e. latest) update (i.e. one PR for stable/latest and one for unstable/next) then it might require some more "tricky" configuration - let me know

Thank you very much. This should do! I didn't see the respectLatest option.
I +1 the issue, it would be interesting for us


libsForQt5.qca-qt5_2_3_2: drop

Description of changes
There seems to be no reference to it now.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] 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

[ ] 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

[x] Fits CONTRIBUTING.md.

We should also drop the file then. Actually, you might be able to just revert 252458b9c556a31c5c52f3e9ead169ef49e38d29.
This was introduced in #168506, but a search with git log -p -Gqca-qt5_2_3_2 does not show that it was ever used in nixpkgs.
cc @ttuegel @willcohen


Adobe Network Block completely overwrites existing hosts file. Should append or if overwrite is needed, should make a backup of the original file first.

Describe the bug
Adobe Network Block completely overwrites existing hosts file.
Should append or if overwrite is needed, should make a backup of the original file first.
Using winutil 24.06.28.

I restored my original hosts file and rerun winutil and now it did even worse. The hosts file is 0 bytes.
:(
Here is the JSON file with the tweak options I selected.
WindowsUtility.json
Here is the output of the script:

    CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
 CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T                                                         CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T                                                        C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T                                                       C:::::C       CCCCCCTTTTTT  T:::::T  TTTTTTTTTTTT  T:::::T  TTTTTT                                                      C:::::C                     T:::::T                T:::::T                                                              C:::::C                     T:::::T                T:::::T
C:::::C                     T:::::T                T:::::T
C:::::C                     T:::::T                T:::::T
C:::::C                     T:::::T                T:::::T
C:::::C                     T:::::T                T:::::T
C:::::C       CCCCCC        T:::::T                T:::::T
C:::::CCCCCCCC::::C      TT:::::::TT            TT:::::::TT
CC:::::::::::::::C       T:::::::::T            T:::::::::T
CCC::::::::::::C         T:::::::::T            T:::::::::T
  CCCCCCCCCCCCC          TTTTTTTTTTT            TTTTTTTTTTT

====Chris Titus Tech=====
=====Windows Toolbox=====
Running Script for WPFTweaksRestorePoint
WARNING: The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management'
snap-in was already imported.
System Restore Point Created Successfully
Set HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting\Value to 0
Set HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots\Value to 0
Setting Service HomeGroupListener to Manual
Setting Service HomeGroupProvider to Manual
Running Script for WPFTweaksDisableLMS1
Kill LMS
Stopping and disabling service: LMS
Removing service: LMS
Removing LMS driver packages
No LMS driver packages found in the driver store.
Searching and deleting LMS executable files
No LMS.exe files found in Program Files directories.
Intel LMS vPro service has been disabled, removed, and blocked.
Set HKLM:\System\CurrentControlSet\Control\Session Manager\Power\HibernateEnabled to 0
Set HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings\ShowHibernateOption to 0
Running Script for WPFTweaksHiber
Setting Service AGSService to Disabled
Setting Service AGMService to Disabled
Setting Service AdobeUpdateService to Manual
Setting Service Adobe Acrobat Update to Manual
Setting Service Adobe Genuine Monitor Service to Disabled
Setting Service Adobe Licensing Console to Manual
Setting Service CCXProcess to Manual
Setting Service AdobeIPCBroker to Manual
Setting Service CoreSync to Manual
Running Script for WPFTweaksDebloatAdobe
Adobe Desktop Service is not in the default location.
Acrobat Updates have been disabled.
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableWindowsConsumerFeatures to 1
Set HKCU:\System\GameConfigStore\GameDVR_FSEBehavior to 2
Set HKCU:\System\GameConfigStore\GameDVR_Enabled to 0
Set HKCU:\System\GameConfigStore\GameDVR_HonorUserFSEBehaviorMode to 1
Set HKCU:\System\GameConfigStore\GameDVR_EFSEFeatureFlags to 0
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR\AllowGameDVR to 0
Disabling Scheduled Task Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser
Disabling Scheduled Task Microsoft\Windows\Application Experience\ProgramDataUpdater
WARNING: Unable to set Microsoft\Windows\Application Experience\ProgramDataUpdater due to unhandled exception
WARNING: O sistema não conseguiu localizar o ficheiro especificado.
Disabling Scheduled Task Microsoft\Windows\Autochk\Proxy
Disabling Scheduled Task Microsoft\Windows\Customer Experience Improvement Program\Consolidator
Disabling Scheduled Task Microsoft\Windows\Customer Experience Improvement Program\UsbCeip
Disabling Scheduled Task Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector                 Disabling Scheduled Task Microsoft\Windows\Feedback\Siuf\DmClient                                                       Disabling Scheduled Task Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload                                     Disabling Scheduled Task Microsoft\Windows\Windows Error Reporting\QueueReporting                                       Disabling Scheduled Task Microsoft\Windows\Application Experience\MareBackup
Disabling Scheduled Task Microsoft\Windows\Application Experience\StartupAppTask
Disabling Scheduled Task Microsoft\Windows\Application Experience\PcaPatchDbTask
Disabling Scheduled Task Microsoft\Windows\Maps\MapsUpdateTask
Set HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection\AllowTelemetry to 0
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection\AllowTelemetry to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\ContentDeliveryAllowed to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\OemPreInstalledAppsEnabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEnabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEverEnabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SilentInstalledAppsEnabled to 0
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-338387Enabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-338388Enabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-338389Enabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContent-353698Enabled to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SystemPaneSuggestionsEnabled to 0
Set HKCU:\SOFTWARE\Microsoft\Siuf\Rules\NumberOfSIUFInPeriod to 0
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection\DoNotShowFeedbackNotifications to 1
Set HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableTailoredExperiencesWithDiagnosticData to 1
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo\DisabledByGroupPolicy to 1
Set HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Disabled to 1
Set HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config\DODownloadMode to 1
Set HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance\fAllowToGetHelp to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager\EnthusiastMode to 1
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowTaskViewButton to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People\PeopleBand to 0
Set HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\LaunchTo to 1
Set HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1
Set HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching\SearchOrderConfig to 1
Set HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\SystemResponsiveness to 0
Set HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\NetworkThrottlingIndex to<PHONE_NUMBER>
Set HKCU:\Control Panel\Desktop\MenuShowDelay to 1
Set HKCU:\Control Panel\Desktop\AutoEndTasks to 1
Set HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown to 0
Set HKLM:\SYSTEM\ControlSet001\Services\Ndu\Start to 2
Set HKCU:\Control Panel\Mouse\MouseHoverTime to 400
Set HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize to 30
Set HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds\EnableFeeds to 0
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds\ShellFeedsTaskbarViewMode to 2
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\HideSCAMeetNow to 1
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement\ScoobeSystemSettingEnabled to 0
Running Script for WPFTweaksTele
Running Script for WPFTweaksBlockAdobeNet
Set HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot\TurnOffWindowsCopilot to 1
Set HKCU:\Software\Policies\Microsoft\Windows\WindowsCopilot\TurnOffWindowsCopilot to 1
Set HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowCopilotButton to 0
Running Script for WPFTweaksRemoveCopilot
Remove Copilot
Set HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Value to Deny
Set HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}\SensorPermissionState to 0
Set HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration\Status to 0
Set HKLM:\SYSTEM\Maps\AutoUpdateEnabled to 0
Setting Service ALG to Manual
Setting Service AppIDSvc to Manual
Setting Service AppMgmt to Manual
Setting Service AppReadiness to Manual
Setting Service AppVClient to Disabled
Setting Service AppXSvc to Manual
Setting Service Appinfo to Manual
Setting Service AudioEndpointBuilder to Automatic
Setting Service AudioSrv to Automatic
Setting Service Audiosrv to Automatic
Setting Service AxInstSV to Manual
Setting Service BDESVC to Manual
Setting Service BFE to Automatic
Setting Service BTAGService to Manual
Setting Service BcastDVRUserService_* to Manual
Setting Service BluetoothUserService_* to Manual
Setting Service BrokerInfrastructure to Automatic
Setting Service Browser to Manual
Setting Service BthHFSrv to Automatic
Setting Service CDPUserSvc_* to Automatic
Setting Service COMSysApp to Manual
Setting Service CaptureService_* to Manual
Setting Service ClipSVC to Manual
Setting Service ConsentUxUserSvc_* to Manual
Setting Service CoreMessagingRegistrar to Automatic
Setting Service CredentialEnrollmentManagerUserSvc_* to Manual
Setting Service CryptSvc to Automatic
Setting Service CscService to Manual
Setting Service DPS to Automatic
Setting Service DcomLaunch to Automatic
Setting Service DcpSvc to Manual
Setting Service DevQueryBroker to Manual
Setting Service DeviceAssociationBrokerSvc_* to Manual
Setting Service DeviceInstall to Manual
Setting Service DevicePickerUserSvc_* to Manual
Setting Service DevicesFlowUserSvc_* to Manual
Setting Service Dhcp to Automatic
Setting Service DialogBlockingService to Disabled
Setting Service DispBrokerDesktopSvc to Automatic
Setting Service DisplayEnhancementService to Manual
Setting Service DmEnrollmentSvc to Manual
Setting Service Dnscache to Automatic
Setting Service DsSvc to Manual
Setting Service DsmSvc to Manual
Setting Service DusmSvc to Automatic
Setting Service EFS to Manual
Setting Service EapHost to Manual
Setting Service EntAppSvc to Manual
Setting Service EventLog to Automatic
Setting Service EventSystem to Automatic
Setting Service FDResPub to Manual
Setting Service Fax to Manual
Setting Service FontCache to Automatic
Setting Service FrameServer to Manual
Setting Service FrameServerMonitor to Manual
Setting Service GraphicsPerfSvc to Manual
Setting Service HomeGroupListener to Manual
Setting Service HomeGroupProvider to Manual
Setting Service HvHost to Manual
Setting Service IEEtwCollectorService to Manual
Setting Service InstallService to Manual
Setting Service InventorySvc to Manual
Setting Service IpxlatCfgSvc to Manual
Setting Service KtmRm to Manual
Setting Service LSM to Automatic
Setting Service LanmanServer to Automatic
Setting Service LanmanWorkstation to Automatic
Setting Service LicenseManager to Manual
Setting Service LxpSvc to Manual
Setting Service MSDTC to Manual
Setting Service MSiSCSI to Manual
Setting Service MapsBroker to AutomaticDelayedStart
Setting Service McpManagementService to Manual
Setting Service MessagingService_* to Manual
Setting Service MicrosoftEdgeElevationService to Manual
Setting Service MixedRealityOpenXRSvc to Manual
Setting Service MpsSvc to Automatic
Setting Service NPSMSvc_* to Manual
Setting Service NaturalAuthentication to Manual
Setting Service NcaSvc to Manual
Setting Service NcbService to Manual
Setting Service NcdAutoSetup to Manual
Setting Service NetSetupSvc to Manual
Setting Service NetTcpPortSharing to Disabled
Setting Service Netman to Manual
Setting Service NgcCtnrSvc to Manual
Setting Service NgcSvc to Manual
Setting Service NlaSvc to Manual
Setting Service OneSyncSvc_* to Automatic
Setting Service P9RdrService_* to Manual
Setting Service PNRPAutoReg to Manual
Setting Service PNRPsvc to Manual
Setting Service PeerDistSvc to Manual
Setting Service PenService_* to Manual
Setting Service PerfHost to Manual
Setting Service PhoneSvc to Manual
Setting Service PimIndexMaintenanceSvc_* to Manual
Setting Service PlugPlay to Manual
Setting Service PolicyAgent to Manual
Setting Service Power to Automatic
Setting Service PrintNotify to Manual
Setting Service PrintWorkflowUserSvc_* to Manual
Setting Service ProfSvc to Automatic
Setting Service PushToInstall to Manual
Setting Service QWAVE to Manual
Setting Service RasAuto to Manual
Setting Service RemoteAccess to Disabled
Setting Service RemoteRegistry to Disabled
Setting Service RetailDemo to Manual
Setting Service RmSvc to Manual
Setting Service RpcEptMapper to Automatic
Setting Service RpcLocator to Manual
Setting Service RpcSs to Automatic
Setting Service SCPolicySvc to Manual
Setting Service SDRSVC to Manual
Setting Service SEMgrSvc to Manual
Setting Service SENS to Automatic
Setting Service SNMPTRAP to Manual
Setting Service SNMPTrap to Manual
Setting Service SSDPSRV to Manual
Setting Service SamSs to Automatic
Setting Service ScDeviceEnum to Manual
Setting Service Schedule to Automatic
Setting Service SecurityHealthService to Manual
Setting Service Sense to Manual
Setting Service SensorDataService to Manual
Setting Service SensorService to Manual
Setting Service SensrSvc to Manual
Setting Service SessionEnv to Manual
Setting Service SharedAccess to Manual
Setting Service SharedRealitySvc to Manual
Setting Service ShellHWDetection to Automatic
Setting Service SmsRouter to Manual
Setting Service Spooler to Automatic
Setting Service SstpSvc to Manual
Setting Service StateRepository to Manual
Setting Service SysMain to Automatic
Setting Service SystemEventsBroker to Automatic
Setting Service TabletInputService to Manual
Setting Service TapiSrv to Manual
Setting Service TextInputManagementService to Manual
Setting Service Themes to Automatic
Setting Service TieringEngineService to Manual
Setting Service TimeBroker to Manual
Setting Service TimeBrokerSvc to Manual
Setting Service TokenBroker to Manual
Setting Service TrkWks to Automatic
Setting Service TroubleshootingSvc to Manual
Setting Service TrustedInstaller to Manual
Setting Service UI0Detect to Manual
Setting Service UdkUserSvc_* to Manual
Setting Service UevAgentService to Disabled
Setting Service UmRdpService to Manual
Setting Service UnistoreSvc_* to Manual
Setting Service UserDataSvc_* to Manual
Setting Service UserManager to Automatic
Setting Service VGAuthService to Automatic
Setting Service VMTools to Automatic
Setting Service VSS to Manual
Setting Service VacSvc to Manual
Setting Service WEPHOSTSVC to Manual
Setting Service WFDSConMgrSvc to Manual
Setting Service WMPNetworkSvc to Manual
Setting Service WManSvc to Manual
Setting Service WPDBusEnum to Manual
Setting Service WSService to Manual
Setting Service WSearch to AutomaticDelayedStart
Setting Service WaaSMedicSvc to Manual
Setting Service WalletService to Manual
Setting Service WarpJITSvc to Manual
Setting Service WbioSrvc to Manual
Setting Service Wcmsvc to Automatic
Setting Service WcsPlugInService to Manual
Setting Service WdNisSvc to Manual
Setting Service WdiServiceHost to Manual
Setting Service WdiSystemHost to Manual
Setting Service WebClient to Manual
Setting Service Wecsvc to Manual
Setting Service WerSvc to Manual
Setting Service WiaRpc to Manual
Setting Service WinHttpAutoProxySvc to Manual
Setting Service Winmgmt to Automatic
Setting Service WpcMonSvc to Manual
Setting Service WpnUserService_* to Automatic
Setting Service XblAuthManager to Manual
Setting Service XblGameSave to Manual
Setting Service XboxGipSvc to Manual
Setting Service XboxNetApiSvc to Manual
Setting Service autotimesvc to Manual
Setting Service bthserv to Manual
Setting Service camsvc to Manual
Setting Service cbdhsvc_* to Manual
Setting Service cloudidsvc to Manual
Setting Service dcsvc to Manual
Setting Service defragsvc to Manual
Setting Service diagnosticshub.standardcollector.service to Manual
Setting Service diagsvc to Manual
Setting Service dmwappushservice to Manual
Setting Service dot3svc to Manual
Setting Service edgeupdatem to Manual
Setting Service embeddedmode to Manual
Setting Service fdPHost to Manual
Setting Service fhsvc to Manual
Setting Service gpsvc to Automatic
Setting Service hidserv to Manual
Setting Service icssvc to Manual
Setting Service iphlpsvc to Automatic
Setting Service lfsvc to Manual
Setting Service lltdsvc to Manual
Setting Service lmhosts to Manual
Setting Service mpssvc to Automatic
Setting Service msiserver to Manual
Setting Service netprofm to Manual
Setting Service nsi to Automatic
Setting Service p2pimsvc to Manual
Setting Service p2psvc to Manual
Setting Service perceptionsimulation to Manual
Setting Service pla to Manual
Setting Service seclogon to Manual
Setting Service shpamsvc to Disabled
Setting Service smphost to Manual
Setting Service spectrum to Manual
Setting Service sppsvc to AutomaticDelayedStart
Setting Service ssh-agent to Disabled
Setting Service svsvc to Manual
Setting Service swprv to Manual
Setting Service tiledatamodelsvc to Automatic
Setting Service tzautoupdate to Disabled
Setting Service uhssvc to Disabled
Setting Service upnphost to Manual
Setting Service vds to Manual
Setting Service vm3dservice to Manual
Setting Service vmicguestinterface to Manual
Setting Service vmicheartbeat to Manual
Setting Service vmickvpexchange to Manual
Setting Service vmicrdv to Manual
Setting Service vmicshutdown to Manual
Setting Service vmictimesync to Manual
Setting Service vmicvmsession to Manual
Setting Service vmicvss to Manual
Setting Service vmvss to Manual
Setting Service wbengine to Manual
Setting Service wcncsvc to Manual
Setting Service webthreatdefsvc to Manual
Setting Service webthreatdefusersvc_* to Automatic
Setting Service wercplsupport to Manual
Setting Service wisvc to Manual
Setting Service wlidsvc to Manual
Setting Service wlpasvc to Manual
Setting Service wmiApSrv to Manual
Setting Service workfolderssvc to Manual
Setting Service wscsvc to AutomaticDelayedStart
Setting Service wuauserv to Manual
Setting Service wudfsvc to Manual
Set HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents to 1
Running Script for WPFTweaksTeredo
Running Script for WPFTweaksDeleteTempFiles
Set HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal to 1
=================================
--     Tweaks are Finished    ---
=================================

To test if the AV had anything to do with this weird behavior, I restored my original hosts file, uninstalled the AV, restarted the PC and rerun winutil.
It gave the same result. The hosts file is 0 bytes after running winutil.

Hello @jcrmatos
First I want to thank you for reporting issues & giving suggestions for WinUtil, it helps the project alot more than people think, and I'd like to give an update on this problem you're facing...
After further testing & investigation on this problem.. we couldn't reproduce the same result you're getting, which means we can't find the root cause of the issue you're having (which's your Host File getting overwritten entirely).. I'm sad to hear that we couldn't help you out with this.. For now, I'll be closing this issue, and if it's still present on the latest stable & dev branches of WinUtil, we'll resume our efforts into this problem, and re-open this issue. Thanks again for helping WinUtil improve by providing valuable feedback 👍
/close


chore(Blog): update “2021-10-06-léglise”

Automatically generated by Netlify CMS

👷 Deploy Preview for lucileetguillaume processing.

Name
Link

🔨 Latest commit
14f8de8a9f79562ed5f3f0a49ef4bb18847cef49

🔍 Latest deploy log
https://app.netlify.com/sites/lucileetguillaume/deploys/6241d644cbff0a0009ff8ac0


Fix ShardSelection if deprecated DB config [RUBY-467]

When the database configuration is already "exploded" with deprecated keys, i.e. contains a configuration for test_slave, the ConfigurationParser.explode doesn't get the chance to rename that config into test_replica. It would convert/explode test[slave] into test_replica (previously test_slave), but not if it is already exploded.
The ShardSelection#shard_name/ShardSelection#resolve_connection_name would in that case end up refering to non-existing database names, since test_replica etc. does not exist in the database configuration. We fix that by ~checking if the configuration includes *_replica or *_slave before using them~ adding an extra step to the ActiveRecordShards::ConfigurationParser.configurations= method.

Would it be cleaner to fix ConfigurationsParser instead to rewrite pre-exploded configuration keys?

Would it be cleaner to fix ConfigurationsParser instead to rewrite pre-exploded configuration keys? That way the internals don't have to deal with it.

Yeah, we considered it briefly. Since the ConfigurationParser (currently) only “explodes” the config, and the problem is with “already exploded” config, it should probably be a separate method call to “validate” the exploded config. Writing tests for that implementation would certainly be easier, and for that reason alone it might be worth doing it. I’ll take a look tomorrow.

How’s this, @mervync?

Squashed commits & added a Changelog entry.

Released as v3.19.2.


upgrading webpack-dev-server

I couldn't get yarn start to work since it complained about webpack-cli/bin/config-yargs
I followed this thread to update webpack-dev-server and since I was updating it, I thought I might as well update typescript, ts-loader, & webpack-cli too
I'll create a fork for this changes and do a PR if that's cool...
changes:
"devDependencies": {
		"copy-webpack-plugin": "^4.5.2",
		"file-loader": "^1.1.11",
		"fork-ts-checker-webpack-plugin": "^1.3.7",
		"less": "^3.8.0",
		"less-loader": "^4.1.0",
		"less-plugin-clean-css": "^1.5.1",
		"rimraf": "^2.6.2",
		"ts-loader": "6.2.0",
		"typescript": "3.6.4",
		"webpack": "^4.16.3",
		"webpack-cli": "3.3.9",
		"webpack-dev-server": "3.7.1"
	}

yes, thank you, i'd be appreciated.

It works fine in these versions too:-
"webpack": "^5.4.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.7.1"