ArchWSL Install not working under Windows 10 Enterprise 1803 - build 17134.228

Describe the issue
After install and running pacman-key commands successfully.  I get:
[root@XFactor ~]# pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key 7145C0492CFBCFDF marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/B9DB93F55496D48C90B3B56A7145C0492CFBCFDF.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
[root@XFactor ~]# pacman-key --populate
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
-> Locally signing key DDB867B92AA789C165EEFA799B729B06A680C281...
-> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
-> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
-> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
-> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
-> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
-> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
-> Disabling key 40440DC037C05620984379A6761FAD69BA06C6A9...
-> Disabling key B1F2C889CB2CCB2ADA36D963097D629E437520BD...
-> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
-> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
-> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
-> Disabling key 4FCF887689C41B09506BE8D5F3E1D5C5D30DB0AD...
-> Disabling key FB871F0131FEA4FB5A9192B4C8880A6406361833...
-> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
-> Disabling key 5E7585ADFF106BFFBBA319DC654B877A0864983E...
-> Disabling key 50F33E2E5B0C3D900424ABE89BDCF497A4BBCC7F...
-> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
-> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
-> Disabling key 40776A5221EF5AD468A4906D42A1DB15EC133BAD...
-> Disabling key 8CF934E339CAD8ABF342E822E711306E3C4F88BC...
-> Disabling key 5696C003B0854206450C8E5BE613C09CB4440678...
-> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
-> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
-> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
-> Disabling key 34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5...
-> Disabling key 39F880E50E49A4D11341E8F939E4F17F295AFBF4...
-> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
-> Disabling key DBE7D3DD8C81D58D0A13D0E76BC26A17B9B7018A...
-> Disabling key 07DFD3A0BC213FA12EDC217559B3122E2FA915EC...
-> Disabling key 44D4A033AC140143927397D47EFD567D4C7EA887...
-> Disabling key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
-> Disabling key 8840BD07FC24CB7CE394A07CCF7037A4F27FB7DA...
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: bad data signature from key 20E8A9C77716EB4F: Wrong key usage (0x19, 0x2)
gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: bad data signature from key 20E8A9C77716EB4F: Wrong key usage (0x19, 0x2)
gpg: depth: 1  valid:   5  signed:  70  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  70  signed:   8  trust: 70-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2018-12-13
[root@XFactor ~]# pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'core.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'core.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'extra.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'extra.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'community.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'community.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update community (download library error)
error: failed to synchronize all databases
[root@XFactor ~]# pacman -Syyu
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'core.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'core.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'extra.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'extra.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirrors.evowise.com : Empty reply from server
error: failed retrieving file 'community.db' from mirrors.kernel.org : Empty reply from server
error: failed retrieving file 'community.db' from mirrors.kernel.org : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.kernel.org:443
error: failed to update community (download library error)
error: failed to synchronize all databases
To Reproduce
Expected behavior
Pacman to work
Screenshots
If applicable, add screenshots to help explain your problem.
Enviroment:

Windows build number: [e.g. 10.0.17134.228] (Type ver at a Command Prompt)
ArchWSL version [e.g. 18081100] (version of zip)
Launcher version [e.g. 18080900] (Type Arch.exe version at a Command Prompt)

Additional context
Add any other context about the problem here.

Does the nameservers work?
Have you launched Arch.exe while connected to the Internet?
WSL generates resolv.conf at startup.
Please tell me cat /etc/resolv.conf output.
Thanks.

[root@XFactor ~]# cat /etc/resolv.conf
This file was automatically generated by WSL. To stop automatic
generation of this file, remove this line.
nameserver <IP_ADDRESS>
nameserver fec0:0:0:ffff::1
nameserver fec0:0:0:ffff::2
On 8/20/2018 6:39 PM, yuk7 wrote:

|cat /etc/resolv.conf|

Ok. Probably,It seems that creation of resolv.conf is done.
Please also tell me the output of these commands to isolate the problem:
ping mirrors.kernel.org -c 4
curl https://mirrors.kernel.org -o /dev/null

Ok. It seems that resolv.conf was generated correctly.
Is the computer connected to the internet?
Please excute these line in Arch shell
ping <IP_ADDRESS> -c 4
ping www.google.com -c 4

[root@XFactor ~]# ping mirrors.kernel.org -c 4 ; curl
https://mirrors.kernel.org -o /dev/null
PING mirrors.pdx.kernel.org (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from mirrors.pdx.kernel.org (<IP_ADDRESS>): icmp_seq=1 ttl=54
time=26.5 ms
64 bytes from mirrors.pdx.kernel.org (<IP_ADDRESS>): icmp_seq=2 ttl=54
time=28.2 ms
64 bytes from mirrors.pdx.kernel.org (<IP_ADDRESS>): icmp_seq=3 ttl=54
time=27.5 ms
64 bytes from mirrors.pdx.kernel.org (<IP_ADDRESS>): icmp_seq=4 ttl=54
time=29.4 ms
--- mirrors.pdx.kernel.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 6ms
rtt min/avg/max/mdev = 26.514/27.901/29.354/1.045 ms
  % Total    % Received % Xferd  Average Speed   Time    Time Time  Current
                                 Dload  Upload   Total   Spent Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to
mirrors.kernel.org:443
[root@XFactor ~]#
On 8/20/2018 7:29 PM, yuk7 wrote:

|ping mirrors.kernel.org -c 4 curl https://mirrors.kernel.org -o /dev/null|

I fixed it. Here's what I did, as root.
mkdir /mnt/c/ProgramData/ssh
cp /mnt/c/Windows/System32/OpenSSH/sshd_config_default /mnt/c/ProgramData/ssh/sshd_config
sshd.exe

ok. got it.

Hello, I have the same problem. I copied the sshd config as stated in the solution, but now i get a "Privilege separation user sshd does not exist" from sshd.exe...
Still an empty response from server with pacman.

Never mind, Kaspersky is not happy with WSL

Had the same issue
Solved it with
sudo pacman -Syu i3
Putting that here in case someone needs it


where is module bluetooth pod?!

please add module bluetooth!😭

Hi, I'm still working on new version of websploit.
We will have it in future version.

Thanks for working on this. Is there any way to get an old version working in the meantime? I'm on macOS.

Is there any update on bluetooth module availability?

Any news on bluetooth module?

 Guess I have to continue to tolerate obnoxious and loud music at 3am.

Aged like milk :(

Websploit? More like Web-spoiled. Never had a popular tool drop support so hard it rivals the time my granny fell down the stairs. Crazy. I had mad respect for all the hard work till I saw the latest commit was 2 years ago.

use this
https://github.com/The404Hacking/websploit
I recommend you to use old python version

How do you actually add bluetooth_pod.py to the mod directory?

Nope… could not get it to work
Sent from Yahoo Mail for iPhone
On Thursday, June 8, 2023, 4:34 PM, kurazli @.***> wrote:
any news on this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Import % complete gives incorrect progress if input csv data file has blank lines.

So, in the unusual event that an input file has blank datalines pgmonkey correctly skips these...
but, the progres bar calculation counts the blank lines and leads to an incorrect % complete.
All the data is imported but 100% is never reached, which is wrong.

Fixed.
pgmonkey doesn't count blank lines to the calculation of the progres bar.
This means an accurate representation of the import data is given.
Will be releases in next version v1.1.1

Fixed.
pgmonkey doesn't count blank lines to the calculation of the progres bar.
This means an accurate representation of the import data is given.
Will be releases in next version v1.1.1


Middle mouse button does not close tabs anymore

Describe the bug
Middle mouse button does not close tabs anymore.
To Reproduce
...
Expected behavior
Clicking the middle mouse button should close hovered tabs.
Environment (please complete the following information):

Lens Version: 2024.11.261604-latest
OS: Windows 11

Hello @morinow,
thank you for your feedback!
We are already aware of this issue and plan to have it fixed in one of the upcoming releases.


【代码迁移】任务64-2：RawNet: Advanced end-to-end deep neural network using ra…

…w waveforms for text-independent speaker verification

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


Fix for 2023.1.0

Hotfix for #899, not breaking backward compatibility

A dup of https://github.com/AlexxIT/XiaomiGateway3/pull/901 - which is better?

Thanks! This one better because backwards compatible


refactor rake tasks WIP

What do you think of using an alternate filename for non-release (or non-master) branch builds? That would make it easier to differentiate test builds on jenkins.

@acidprime I mean alternate filename for the output, not maintaining multiple rake files. So we'll know what artifact we're testing.


Flash messages work locally but not online on live server

What steps will reproduce the problem?
Simply trying to use flash messages in a contact form.
It works locally on Windows7 with XAMPP but does not work on the live dedicated server.
Controller code:
public function actionContact()
{
	$model = new ContactForm();
	if ($model->load(Yii::$app->request->post()) && $model->validate()) {
		if ($model->sendEmail()) {
			Yii::$app->session->setFlash('success', Yii::t('app', 'Gracias por contactar. Te responderemos a la mayor brevedad posible.'));
		} else {
			Yii::$app->session->setFlash('error', Yii::t('app', 'Hubo un error al enviar tu mensaje.'));
		}
		return $this->refresh();
	} else {
		return $this->render('contact', [
			'model' => $model,
		]);
	}
}

View code:
<?php if(Yii::$app->session->hasFlash('error')): ?>

	  <button id="close-error" type="button" class="error close" data-dismiss="alert" aria-label="Close">×</button>
	  <?= Yii::$app->session->getFlash('error') ?>

<?php endif; ?>

<?php if(Yii::$app->session->hasFlash('success')): ?>

	  <button id="close-success" type="button" class="close success" data-dismiss="alert" aria-label="Close">×</button>
	  <?= Yii::$app->session->getFlash('success') ?>

<?php endif; ?>

What is the expected result?
I expect to see the flash message but I do not see it.
What do you get instead?
Nothing, the flash never appears.
Additional info

Q
A

Yii version
v2.0.9

PHP version
PHP 5.6.24

Operating system
CentOS Linux release 7.0.1406 x86_64

It does work if switching to databse session
If I configure the session component like this it does work:
'session' => [
  'class' => 'yii\web\DbSession',
  'sessionTable' => 'session', // session table name. Defaults to 'session'.
],

So what do you suggest to try? Could this be a bug? Or maybe something wrong with the server setup?

Try regular session handler.

If it works locally, it is very likely a problem in your setup and not a problem with yii.

Not sure if I understand what you mean, but I've tried outside the framework with this script.
<?php

error_reporting(-1);
ini_set('display_errors', 'On');

// Start the session
session_start();
?>
<!DOCTYPE html>

<?php
if (isset($_GET['set'])) {
  // Set session variables
  $_SESSION["favcolor"] = "green";
  $_SESSION["favanimal"] = "cat";
  echo "Session variables are set.";
}

?>

<?php
if (isset($_GET['get'])) {
  // Echo session variables that were set on previous page
  echo "Favorite color is " . $_SESSION["favcolor"] . ".
";
  echo "Favorite animal is " . $_SESSION["favanimal"] . ".";
}
?>

Results
Warning: session_start(): open(/var/lib/php/session/sess_2ucajoeqpdnv2vqdkglqcm4vb2, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/.../.../frontend/web/test-session.php on line 7
Warning: Unknown: open(/var/lib/php/session/sess_2ucajoeqpdnv2vqdkglqcm4vb2, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

So I guess indeed must be something wrong with my setup.
All other applications were running php 5.4 on this server, then last week I've upgraded to php 5.6 from Plesk Panel and setup this domain to run 5.6 instead of 5.4.
But what I find strange is how come Yii doesn't detect this problem and show error or log it? Is it because it's just a php warning and in production mode this is not logged?

Warning: Unknown: open(/var/lib/php/session/sess_2ucajoeqpdnv2vqdkglqcm4vb2, O_RDWR) failed: Permission denied (13) in Unknown on line 0

PHP does not have permission to write sessions on your server.
Yii does log an error if session generation fails, if you have setup logging correctly you should see this being logged in yiis /runtime folder.

I've managed to fix it running this:
cd /var/lib/php
chmod 1733 session/

After reading some related articles:
https://kb.plesk.com/en/127510
https://talk.plesk.com/threads/issues-with-var-lib-php-session-after-plesk-update.282891/

Okay I understand but just to get it clear. If I make a fresh installation of the advanced application and init it in production mode, I think it won't log this error.
What would be the correct way to debug the application that is currently running in production mode?
Editing the index.php file and setting YII_DEBUG to true?

This should cause the error message to be logged: https://github.com/yiisoft/yii2-app-advanced/blob/a85ffce09cd3a72bce106f59573d2656970d7c2e/frontend/config/main.php#L29-L34


Quick Solution Not Found

Hi, thanks a lot for the nice integration.
I was trying to reproduce exactly the same example that you have already shown with the exact fairlight file.
Unfortunatly, the plugin quickly shows that the solution not found in less than a second. so I assume something is going wrong, becasue I assume that it should at least spend some time in the calculations.

This is strance because the addresses I used in the solver python script, and it works.

Is there anything that I have missed?
Thanks for your time!

I am using the release  ghidra_10.2.2_AngryGhidra.zip

Hello!
I've tested the plugin on my Ubuntu workhost and I didn't find any problems, the solution was found perfectly. Seems that you're using Windows as the main OS, check out on your side that angr is installed and python3 directory added to the PATH, it's necessary.
If you encounter with any problems, let me know.
Also, I've added the plugin build for the latest Ghidra 10.2.3: https://github.com/Nalen98/AngryGhidra/releases/download/0.1/ghidra_10.2.3_AngryGhidra.zip

Hello,
I have spotted where was the issues, I looked at the src code, it seems that you are using python3 command and on my windows machine I have installed angr using python -m pip install angr, and python here is python 3.10.9, but the plugin was trying to use python3 which in my case point to python 3.10.10

I have installed angr for python 3.10.10 using python3 -m pip install angr, and the plugin works.


References within remote references are not in metadata

Right now, the metadata returned from #resolveRefs is only for the original document.  Whenever we resolve remote references, we need to include their resolved references and so on, to the returned metadata so we have the full picture of the resolution table.

This brings up a good question...how should nested remote references be reported?  Imagine you have this document
top.json
{
  project: {
    $ref: 'project.json'
  }
}

project.json
{
  name: 'something',
  owner: {
    $ref: 'owner.json'
  }
}

owner.json
{
  name: 'whitlockjc'
}

Right now, you'd only get one item in metadata having a key of #/project/$ref.  But what about the reference in project.json?  Should it be #/project/$ref/owner/$ref or #/project/owner/$ref?  Collapsing the references tells you where in the resolved document the reference is but depth could be lost.  Not collapsing the references means for heavily nested remote documents, especially when you have references at the root of the document, you could end up with something like #/project/$ref/$ref/$ref.  Now that would be the full path to the reference but in the document, you'd have to do some reference collapsing to find it.
Talking this out, I think we should avoid collapsing references so as not to lose depth and provide some API for collapsing references to the actual resolved reference.

Also, what should the metadata value for ref be?  For nested documents, the relative ref could end up not being useful.  Imagine a structure like this:
/project.json
/nested/project.json

If /nested/project.json has a relative reference of ../project.json, what should ref be?  Should it be project.json, ../project.json or the full path/url to project.json?  The latter would be most descriptive but could also be a security concern if those paths leaked.
/cc @theganyo


Fix indentation

The way most of the Python code blocks are written, it looked as though these were functions and not methods of the actual skill.  In one case, the indentation was totally off, using only one space.
There's also a number of cases in this file where () were escaped as \(\) even though this isn't necessary in Markdown unless they're following a ] character.  Still, I didn't want to remove them in case there was some other reason for this that I don't know about.

Yeah I can see how this is clearer that they are intentionally indented blocks.
The escaped parantheses might be left over from our previous documentation platform, or it might have just been me trying to play it safe... either way, I think we can remove them :)
Thanks again for all these, once we get a signed CLA I think they can all be merged.


[plugin-add-graphql] Nested arrays are removed from existing schema

When using the Add GraphQL Plugin to gradually migrate from Nexus to Pothos, the schema outputted by Pothos is incompatible with the original schema because it collapses nested list arguments into non-nested lists.
In Nexus I'm defining an argument like this arg({ type: list(list(CollectionFilter)) }). The generated schema from Nexus for this arg has type: [[CollectionFilter!]!]
I then pass the schema from Nexus into Pothos:
const builder = new SchemaBuilder({
  plugins: [AddGraphQLPlugin],
  add: {
    schema: nexusSchema,
  },
});
const schema = builder.toSchema()

if I take that schema from Pothos and lookup the same arg type, I now get back: [CollectionFilter!] which is incompatible with what the original schema because it is no longer a nested list.
I can sort of manually override / repair the schema like:
const arg = // lookup the arg in the schema generated by Pothos
arg.type = new GraphQLList(new GraphQLNonNull(arg.type));

Interestingly it seems like any arbitrary amount of list nesting gets collapsed in Pothos. Meaning if I define an argument's type as something like: list(list(list(list(CollectionFilter)))) Nexus would output this as: [[[[CollectionFilter!]!]!]!]. When that schema gets added to Pothos, this is again interpreted as a non-nested array [CollectionFilter!].

I've done some debugging here and the issue seems to come from the resolveInputType function here: https://github.com/hayes/pothos/blob/afdce2b39f7d95e39f3e3dd14979a9d95cd754e4/packages/plugin-add-graphql/src/schema-builder.ts#L86-L110 which assumes that only one level of nesting is possible for a list

thanks for reporting this, should be fixed now if you upgrade

Awesome, thanks so much! Just upgraded to the latest release and my problem is solved.


Improved Pull Request refs

The previous PR #2524 was not creating refs/pull/<pr-id>/head when a PR was freshly created but only after a explicit push to the corresponding head branch.
This PR adds this functionality (issue #1655).

Thanks!


Getting Connection reset by peer - Errno::ECONNRESET

Hi,
After deploying SCK 1.4.3 I am getting below error in logging and metric pods. Could you please help here. I am not able to find the cause of this Connection reset by peer error.
2020-12-17 13:40:26 +0000 [warn]: #0 failed to flush the buffer. retry_time=0 next_retry_seconds=2020-12-17 13:40:27 +0000 chunk="5b6a921cd5cd7d6de301a9d194f98515" error_class=Net::HTTP::Persistent::Error error="too many connection resets (due to Connection reset by peer - Errno::ECONNRESET) after 0 requests on<PHONE_NUMBER>7480, last used<PHONE_NUMBER>.2300029 seconds ago"
2020-12-17 13:40:26 +0000 [warn]: #0 suppressed same stacktrace
2020-12-17 13:40:27 +0000 [warn]: #0 retry succeeded. chunk_id="5b6a921cd5cd7d6de301a9d194f98515"
2020-12-17 13:40:28 +0000 [info]: #0 stats - namespace_cache_size: 6, pod_cache_size: 9, namespace_cache_api_updates: 43, pod_cache_api_updates: 43, id_cache_miss: 43

it got resolved by team managing SPLUNK. Splunk DB was almost full causing this error.


508 compliance

https://www.w3.org/TR/WCAG20/
https://www.w3.org/WAI/
http://webaim.org/
http://a11yproject.com/
https://a11ywins.tumblr.com/

closing - app will be moved to mature support at 6.1. Use Minimal Gallery app instead.


[KOGITO-9914] Setting LD_LIBRARY_PATH to include Jep

Fixing native image generation issue when using python. The Jep library was not included if LD_LIBRARY_PATH is not set.

I am trying a native build in CI first, will approve based on the outcome.


Add serialize to Summary

Fix #3978

Appveyor's failure seems not related to this PR.

Jenkins test this please

Jenkins test this please

Jenkins test this please

LGTM!

@kmaehashi Thank you for reviewing and merging. I think #3978 is a bug and it also exists in v3. Isn't this PR to-be-backported?

I agree to consider this issue as a bug.  I'll backport this.


cmd and cmd_ get slow on linux if there is a high RLIMIT_NOFILES (open files)

https://github.com/ndmitchell/shake/blob/0eda14aaea8a893524248855064a3415ab3fe67a/src/General/Process.hs#L155
Here close_fds = True is set, which causes https://hackage.haskell.org/package/process-<IP_ADDRESS>/docs/System-Process.html#v:createProcess to loop from 3 to the maximum file descriptor number the process might have (RLIMIT_NOFILES, ulimit -n) and calling close on each one.
(Can be easily confirmed by using strace.)
In an environment with ulimit -n set to 1000000, this burns 10 seconds on around 30 cmd_
calls on a machine used at the company I work for. (Small demo shake system, only doing
touch.)
If you don't know what is going on, you have that puzzling behaviour of having a very slow build system on one machine/environment and a fast one on a different machine/environment without a clue, why that is. Even knowing, what is going on now, it is still a very surprising behaviour.
Please consider making close_fds configurable and change the default to False (at least on linux). That's the usual behaviour of most programs shelling out commands, like bash, make, etc ..
If you explain, how would like to handle that, I am glad to provide a PR.

That's horrible! And very hard to discover - well done for finding it. I set close_fds because in #243 @nomeata said I should. Given the performance impact, I'm inclined to set it back to False. However, I'm woefully ignorant here, so I'll just follow everyone else's advice 😄.

I suggest making close_fds configurable (with an parameter to cmd_ like Shell.) and setting the default to False. I suggest CloseFDs as an identifier.
Of course, that's an API change, which needs to be advertised, at least in the change notes.
The database should be opened with a O_CLOEXEC flag (I need to research, how to do this with the haskell standard library.) That would address #243 a bit.
Some arguments:

If one kept the default close_fds = True, the behaviour needs to be explained in the manual directly in the documentation of cmd and cmd_, as it is not the expected behaviour and has potential performance implications. The other way round, you only need explanations on a strange, rarly used flag CloseFDs.

On linux, you usually flag fds with FD_CLOEXEC which you don't want to inherit to shelled out commands, so the OS closes them for you efficiently on any exec* call. (But that's a consideration
more for the standard library.)

Its the default behaviour of most unix programs shelling out commands.

You could want to inherit fds to shake and from shake to a program called by shake. That's admittedly really really rare, but impossible at the moment with shake.

If this sounds convincing to you, let me know and I start working on a PR.

For "your code might slowdown by 30s in a way you'll never find" an entry in the manual is insufficient 😉. In my view the default has to change to close_fds = False. Adding CloseFDs seems a good way out, if anyone will want to use it - if you have FD_CLOEXEC on the database, would anyone want it? If it's never used, or likely to be a serious slowdown, we could just not provide it until someone asks for it. But I'm not going to object to it at all.
I'm convinced!

Okay, I'll will start working on it tomorrow.
The decision wether the database should be opened with FD_CLOEXEC is up to you. Should that file descriptor intentionally leak? I would say no. So mark that fd and the os will handle it for us.
(Or is there a feature, where a recursively started shake shares a database fd with its parent process? I don't know anything like that.)

If two processes open the Shake database, things will go very wrong. As a result, I use a file lock on it, which means that two Shake processes will never inadvertently share the file. I don't think it should be accessible by the child processes, but if it's hard to do, I suspect leaving it open won't cause any serious issues (but I'm mostly ignorant on these matters).

See #727 for the CloseFileHandles option.
I didn't find, where the shake database file is opened.
it is in src/Development/Shake/Internal/Core/Storage.hs and src/General/Chunks.hs somehow, but I can't see where the file is opened.
If you could point me to the right place, I would add the call setting the close_on_exec thing if it is
a posix platform.

Solved in #727.

The openFile call in https://github.com/ndmitchell/shake/blob/master/src/General/Chunks.hs#L108-L114 is where the file is opened.

Okay, I can set the flag there, but I don't know, how to write an automated test for it (at least not in a "nice" way).
I would need a way to get at the file descriptor number for the file handle of the shake database file (for example put it in the environment or in some IORef) and this code doesn't belong in production.
Do you have a suggestion, how to get that handle in a test case?

I just wouldn't bother with a test case. The cost of the the test case is too high, and the thing its testing too low value.

I don't understand the life time of the file handle opened in usingChunks.
I set the flag and wrote a test for it, getting the file handle by traversing /proc/self/fd, but in the child process its often already closed, but sometimes not. Seems to be asynchronously closed?

I just wouldn't bother with a test case. The cost of the the test case is too high, and the thing its testing too low value.

One anecdata point about potential cost of the issue if it does slip through testing again:  I just ran into this in a large project's build and spent around 20-30 frustrating hours tracking it down, only to discover it's an issue that's been known and diagnosed for 3 months.
An easy way to reproduce is to try to anything at all in docker, which I was setting up for a CI build - the default ulimit allows something like 1M files, the build on the same host ended up being many times slower than outside docker, and consuming 800% CPU for the duration of the build (20-30 min).

The problem in generell is already solved in master, but not yet released.
Here we were just discussing how (and if) to test, that the file descriptor for the shake database is (should) be closed. (If its not, it shouldn't be a performance problem.)
We should have split the ticket I suppose, sorry.

Sorry @mokus0 - I should have made a release ages ago. Now done so!
If we have no immediate plan or idea how to test, maybe we should close this ticket? Or at least rename it?

Let's close. Happy to take a test, but it looks difficult. I did blog about it though, to increase awareness. https://neilmitchell.blogspot.com/2020/05/shake-019-changes-to-process-execution.html


envoy mobile should pass through connection: close header

possibly other hop by hop headers.  this one I can take :-)
cc @carloseltuerto

code is here: https://github.com/envoyproxy/envoy/blob/main/source/common/http/conn_manager_utility.cc#L439
offhand I think we want a knob "preserve hop by hop headers" which undoes
response_headers.removeConnection();
response_headers.removeUpgrade();
response_headers.removeTransferEncoding();
response_headers.removeKeepAlive();
response_headers.removeProxyConnection();
cc @DavidSchinazi @RyanTheOptimist in case naming if off (maybe one isn't hop by hop)

hey @envoyproxy/api-shepherds  I'll send a WIP PR out for this shortly but it's kind of a weird case.
I believe the way Envoy mobile works, we need an HCM config knob to preserve the hop by hop headers.  It basically should never be used by Envoy-the-server and there's AFIK no validation checks we can put in place.
How do we feel about a field saying "don't use this for Envoy as a proxy"? Normally I'd think about putting it in some extensible any MobileConfig field but the code needs to go in the upstream HCM so that feels weird too.

I think this is okay.  We can catch the problem at runtime when the client reads the resource from the xDS server, in which case it can NACK if it's set wrong.

Do we actually need configuration here? If the Envoy Mobile library has some way of conveying to HCM that this is in fact a linked-in client library (and hence there is no additional hop for removing headers), then we can avoid having to expose this as configuration.

AFIK Envoy mobile uses standard factory creation.  @junr03 or @goaway could comment if there's an easy way to access the HCM directly but there's not that I know of.

AFIK Envoy mobile uses standard factory creation. @junr03 or @goaway could comment if there's an easy way to access the HCM directly but there's not that I know of.

One thing we might consider is sub-classing HCM for Envoy Mobile and then instantiating that version?

I haven't thought deeply about it yet, but my gut reaction is I'm a little hesitant to subclass the HCM since it seems like it might increase the surface area for surprises when upstream changes (e.g., we implement some overriding business logic, and then the part we're overriding upstream changes to do something different, maybe critical, or moves parts around such that they're no longer overridden).

OTOH if all we're doing is setting up construction differently, and all the business logic remains in upstream Envoy, maybe that's not really as much of a can of worms.

OTOH if all we're doing is setting up construction differently, and all the business logic remains in upstream Envoy, maybe that's not really as much of a can of worms.

Yes, exactly. I don't think it's that big of a deal as long as you have upstream tests for whatever you are setting/doing.

(You could even have the sub-class upstream with tests.)


Add a link to this tutorial to Helm's related.md page?

You're welcome to add a link to this tutorial to the official Helm docs here:
https://github.com/helm/helm/blob/master/docs/related.md
Thanks for the tutorial! It looks great!

@technosophos wow that's cool I will create a pull request ;)

helm/helm#4466


js friendly queries

Hi to everybody.
I don't know if this has discussed before,  but i want to know if this is possible.
I write an angularjs app, and i want to pass some filters as js object on post, and make a layer to tranform these filters to a bookshelf query.
In sequelize i was before, this was easy because it has a mongodb like query system , and just passing an object its easy to build a query.
How can i do something like that on bookshelf?
For example, in sequelize you can do things like this:
{
  where: {
    somenumber: { $gt: 42 }
    $or: [
     { someOthernumber: { $in: [1,2 ] },
     { name: { $like: 'jan%' }
   ]
  }
}

and its easy to build.
I dont know if im clear enough, if you want to know more please tell me.
Thanks a lot.

There is also a "where" function in bookshelf.
On Fri, Feb 19, 2016, 6:49 AM Antony Agrios<EMAIL_ADDRESS>wrote:

Hi to everybody.
I don't know if this has discussed before, but i want to know if this is
possible.
I write an angularjs app, and i want to pass some filters as js object on
post, and make a layer to tranform these filters to a bookshelf query.
In sequelize i was before, this was easy because it has a mongodb like
query system , and just passing an object its easy to build a query.
How can i do something like that on bookshelf?
For example. where in sequelize is something like this:
where:{
something: value
}
and its easy to build.
I dont know if im clear enough, if you want to know more please tell me.
Thanks a lot.
—
Reply to this email directly or view it on GitHub
https://github.com/tgriesser/bookshelf/issues/1134.

No doc? How to use the where function?

??? Look at the website
On Fri, Feb 19, 2016, 2:50 PM YangLe<EMAIL_ADDRESS>wrote:

No doc? How to use the where function?
—
Reply to this email directly or view it on GitHub
https://github.com/tgriesser/bookshelf/issues/1134#issuecomment-186040271
.

Oh, sorry. I was responding via email and the message only included this example (maybe you edited your original?):
where:{
  something: value
}

Look at the knex.js docs for info on this, but you can do:
{
  where: {
    somenumber: { $gt: 42 }
    $or: [
     { someOthernumber: { $in: [1,2 ] },
     { name: { $like: 'jan%' }
   ]
  }
}

Model.query(function(query) {
  query
    .where('somenumber', '>' 42)
    .orWhereIn('someOtherNumber', [1, 2])
    .or('name', 'like', 'jan%')
}).fetch().then(models =>

The actual question is how i can implemet this.I mean its easier to loop my filters and graduaĺly build an object and then return it from a helper function. Has anyone has an idea how i can abstract things in bookshelf?I dont want to have all my logic in a function.

Please close this issue, as i see i can pass an object to query function, and i think this is what i was looking for.
Thank you all for your answers!


How can I use $t in vue.js methods?

I'm trying to use $t() In vue.js methods, because of pluralization.
Something like that:
pluralCheck() {
                if(1){
                    return $t('messages.one');
                }else{
                    return $t('messages.many')
                }
            }

But I'm getting: ReferenceError: $t is not defined
How can I use this in methods or how to deal with pluralization?
Thanks!

$t() is defined in vue-i18n, see https://kazupon.github.io/vue-i18n/en/started.html
or vuex-i18n, see https://github.com/dkfbasel/vuex-i18n#usage
Please refer to their documentations and issue trackers, as the $t is not a functionality of this project.


Documentation missing

Is it possible to add the documentation to the repository? This way, PRs implementing feature requests can also include documentation, or mistakes in documentation can be fixed by the community.
Ideally the documentation would be a document that can be easily tracked by git. I'm not sure how the netlify app user manual is built, but do you reckon it can be used with git, and if not, transformed to something that can, e.g. a markdown readme? This could also be a community goal, we can rewrite sections of the current documentation into markdown together piece by piece.

It already exists. Although in a separate repo.
We are yet to write contribution guidelines for the docs though.
https://github.com/Dreamteck/splines-docs

Good to know.
I wonder if there's any convenient way of contributing to docs linked through git similarly to how the utilities currently work. To be more specific, if I fork both the splines and utilities repo, add a utility function, push that to my fork, and then use that utility in a splines class and push that to my splines fork, the utilities change will be shown as part of the modifications. This way, when the feature gets merged, both the splines and utilities repos should pull their relevant changes. (at least, I think this is what would happen, haven't tried it yet)
If that could work for docs too, that would be ideal, but that would involve adding the docs as a module to splines and that may complicate things for #6 significantly, as we probably don't want the whole node project to be pulled into unity.

If I understand the documentation from Unity correctly, it should be possible to simply add the docs as module which by default are not loaded in by the package manager, and add the utilities as dependency. This would ensure that the utilities are present when splines is added to the project, and that the docs are (somewhat[^1]) conveniently available to those who contribute on git.
Let me know your thoughts.
[^1]: I'm not sure if I've been using the correct flow. I had to fork all git repos, clone splines with submodules enabled, change refs in git config to point to my forks and then push to one repo before the other for it to correctly show up.


Updated profile to use v3.2

Upgrades the profile API version to v3.2
Resolves #252

Thanks @abury! :sparkles: :cake: :sparkles:

👍


Simple Linear Regression / Stochastic Gradient Descent

SimpleLinearRegression.ipynb.zip
I'm trying the example provided in the chapter containing Simple Linear Regression using SGD, and the result does not converge. The value of the function keeps getting bigger, and the gradient direction is not changed. So, the first theta, randomly generated, is returned.

the error function in your notebook is the opposite of the one in the code:
https://github.com/joelgrus/data-science-from-scratch/blob/master/first-edition/code/simple_linear_regression.py#L11
which makes the gradient have the wrong sign


add link to aarch64 canary builds

follow up from #433.

note: link will not work until https://github.com/deislabs/krustlet/runs/1310354747 completes

https://github.com/deislabs/krustlet/runs/1316331481


Remove deprecated Buffer API for NULL driver and EnttecUSBDMXPRO driver

The Buffer constructor has been deprecated. This switches to newer node versions using Buffer.alloc and Buffer.from

I am eager to merge this, but I want to avoid that we have one driver file using the old API and the other one the new. Do you mind updating the others too?
I can't test this PR in real production because I do not have an enttec :/

The reason I didn't update the others is that I didn't have anything to test them against. I'll take a pass at it.

Thats a very valid point. I'll take a look at the dmx4all device, that is what I am using. Don't know what @wiedi and @Fensterbank are using - maybe we can fix them all together :)

Thanks for working on this!
I'm not a fan of all the duplicate code.
I think it would be better to have some compat shim that handles Buffer instantiation for both versions or let's just say that the minimum required version is node 5.10.
Already in this PR there are errors in the legacy code (e.g. using .from) and it will only rot more with future changes where adjusting one half will be forgotten.
Is node 5.10 something that we can require people to run e.g. also on older raspberries?

@wiedi Here is a polyfill you could add as a dependency and get rid of the if's... I'm not sure what versions of node run on original pi's. https://www.npmjs.com/package/buffer-v6-polyfill

I can't find any restrictions on node version even on old Pi's. So I think we'd probably be pretty safe setting the minimum version. And if someone complains then you can grab a polyfill and crank the version back down. Right now the serialport stuff already puts us a minimum version of 4. One Major version up doesn't seem that bad to me.

Don't know what wiedi and Fensterbank are using - maybe we can fix them all together :)

I'm using Enttec USB DMX PRO too, so I could only test this, not the others.

Is node 5.10 something that we can require people to run e.g. also on older raspberries?

I don't think there are any difficulties to run new node version on older devices.
Current versions are Node 8 LTS and Node 10, while Node 6 is in Maintenance and reaches the End-of-life in April 2019, see here.
Since Node 5 reached End-of-life and is not safe to use anymore, it would be perfectly fine to set the minimum required node version to 6.x (or even higher)

Sounds good, and the latest patch looks much cleaner. Thanks!

Obsolete by PR #61 which has cleaner code.


About the instance segmentation task

Thanks for your excellent work and for sharing the code. Even though it is not the main task in this paper, this paper also reports the performance of the instance segmentation task. I am interested in the OV-IS too, could you provide the config and corresponding code of OADP for training and evaluation on the OV-IS task?
Look forward to your reply, thank you!

We have updated the README and provided commands to evaluate the instance segmentation performance of OV-LVIS OADP. Just so you know, the accuracy reported in our paper was obtained using a model with large-scale jitter augmentation, so there is a gap compared to the checkpoints currently provided.


Add option to rotate log file daily.

Adds a command line option to rotate the log daily at midnight and
retain up to the specified amount of days.

:+1: Neat addition! This would be very useful too in ensuring that verbose log files don't grow to be ridiculously large.


Updated Style Cursor like ChatGPT

Summary
Updated the layout of the cursor to the new ChatGPT style
Change Type

[x] Layout Updated

Now:

Thanks @itzraiss
For a long time I've wanted to remove my original implementation of the cursor animation. I've noticed that as the result is streaming, the cursor no longer blinks, and there is only an animation at the start.
In observing how they do this new method, I saw the trick to making it work almost exactly like on ChatGPT.
This way we won't rely on stringified HTML and I think will make for a smoother experience as there is less logic to execute as text is generated.


Decorative Block Update

Updating various blocks in the decorative category including:
#129 Lightning Rods
#91 Beacon
#83 Lectern
#82 Enchantment table
#79 Conduit
#56 Bell
#86 Flower pots
Stonecutter block
Adjusted rotation on chiseled bookshelves, anvils and furnaces to match rotation in All Block world.  Rotation was off
Adjust size, offset and rotation on chests and echests.
Adjusted trapdoor side textures
Adjusted thickness on pressure plates - previously showed no thickness

Um this broke every block except the ones you pushed. Reverting

Sorry Hatter, didn't mean to create work for you. I was testing by building locally but loading my changs with VSCode.  I'll leave it to those with a developer background next time.

No worries, just run APItest.py and if that works then we are good to go. I
can build it into an exe if you need
On Sun, Oct 29, 2023, 12:27 PM Machbar24 @.***> wrote:

Sorry Hatter, didn't mean to create work for you. I was testing by
building locally but loading my changs with VSCode. I'll leave it to those
with a developer background next time.
—
Reply to this email directly, view it on GitHub
https://github.com/RavinMaddHatter/Structura/pull/211#issuecomment-1784203792,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBUC5H4MYX3SAQ3XHRB4PLYB2U25AVCNFSM6AAAAAA6AT5CPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGIYDGNZZGI
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


402 version 0025 updates

closes #275
closes #405
closes #235
closes #347
closes #398
closes #406
closes #390
closes #405

Still cannot predict all the conflicts, but will probably just hard merge in VSCode once testing (and minor patches) finished tomorrow


IssuerRefSelector + Webhook

Branched from #18 which should be merged first.
This PR introduces the Webhook as a member of Approver. Webhook is responsible for implementing admission functions for that approver. Shared webhook server exposes these funcs to kube.
AllowedIssuers has been changed to IssuerRefSelector which is used to match over CertificateRequests. If no policies are bound or matched against a request then it is unprocessed. Tests have been updated to reflect this.
IssuerRefSelector is a wildcard string matcher. The following IssuerRefSelector would match all IssuerRefs:
issuerRefSelector: {}

I haven't updated the README.md since I want to do all the docs in a separate PR.
I want to update the controller integration tests in a later PR to extend its coverage.
/assign @charlieegan3

/assign
I'll review this once #18 gets merged and this rebased


SNAP-2602 : On snappy UI, add column named "Overflown Size"/ "Disk Size" in Tables.

Changes proposed in this pull request

SnappyRegionStats is updated for holding tables size on disk i.e. tables overflown size.
SnappyRegionStatsCollectorFunction is updated to set tables size on disk.

Patch testing

Tested Manually.

Is precheckin with -Pstore clean?
ReleaseNotes changes

NA

Other PRs
SnappyData: https://github.com/SnappyDataInc/snappydata/pull/1185
Spark: https://github.com/SnappyDataInc/spark/pull/127

I also had thought to keep calculation of overflown size on front end but could not find it convenient, as I am using JSON response object as an input to tables grid. I tried to avoid function execution for each table cell otherwise it may cause slower re/loading data into table.

@snappy-sachin Not in display, but couldn't you calculate it when creating TableSummary (in TableDetails.scala)?

Yes, That can be done.
I thought putting this value in SnappyRegionStats itself will help not only web services but also all those  who need Snappy Region Stats.
Having said that, as you said I can keep calculation of on disk size in Table Details to use it in only in web services.

Ok, sounds fine. Perhaps in future we may calculate them differently.

All feedback comments are taken care. Hence Merging.

@snappy-sachin this broke AnalyzeSerializablesJUnitTest. No merges to store should ever be done without "precheckin -Pstore" task being clean (or with only known failures).

@snappy-sachin this broke AnalyzeSerializablesJUnitTest. No merges to store should ever be done without "precheckin -Pstore" task being clean (or with only known failures).

Oops! I missed it. Thank you for adding the fixes. Henceforth, I will take care of such things too.


SLIM-2046 Smr5 configuration object

SonarQube analysis reported 2 issues

 2 major

Watch the comments in this conversation to review them.

SonarQube analysis reported 1 issue

 1 info

Watch the comments in this conversation to review them.


Session termination service should notify the service providers that the session is terminated

When a session is terminated via the session termination service, the service providers related to that session should be notified.

@janakamarasena can you verify whether these are captured in latest session related git issues?

Related to https://github.com/wso2/product-is/issues/10410

Related to https://github.com/wso2/product-is/issues/10410


Predicting wrong speaker many times

Hi Yuxin Wu,
I've cloned your nice solution for some testing, but after training, it is not predicting as expected.
I am not using the gui. Only using ./speaker-recognition.py
In fact, it got trained well and is responding to all prediction attempts, but pointing to a person in which is not the one who is speaking.
Follows an explanation on how I am handling it:
I've created a training/ directory with the following content:

training/
├── fegens
│   ├── Fegens2.wav
│   └── Fegens.wav
├── hudson
│   ├── hudson2.wav
│   ├── hudson3.wav
│   └── Hudson.wav
├── jan
│   └── Jan.wav
├── paulo
│   └── Paulo.wav
└── pedreau
├── Pedreau2.wav
├── pedreau3.wav
└── Pedreau.wav
5 directories, 10 files

..and ran enroll task like you've documented:
$ ./speaker-recognition.py -t enroll -i "./training/*" -m model.out
Then I've tried predictions this way:
$ ./speaker-recognition.py -t predict -i "already_trained_file.wav" -m model.out
If, and only if, predicting input file a) is exactly the same or b) isn't the same file but is a re-recording of it with exactly the same content, and same duration or near, then obviously it's predicting very well! Even if I predict those same audios simulating with a smartphone, recording them again, and predicting, like if some of those peole were talking to microfone.. then software can say who is talking!! It's amazing!! Very nice!
But if I play only five or seven seconds of a random voice, even with a voice software should know, it is predicting with a error rate too high. Seems random.
Here is the duration of my voice files:

Duration       5.120 seconds
Duration       3.560 seconds
Duration       40.320 seconds
Duration       28.860 seconds
Duration       20.480 seconds
Duration       13.200 seconds
Duration       14.160 seconds
Duration       19.320 seconds
Duration       15.880 seconds
Duration       23.360 seconds

Note: I am working at home, with good silence conditions. No significant SNR affecting the audios.
And I've already tried to multiply those same voice samples, with different filenames but under each person directory (just for testing, cause I think for machine learning is means not so much difference), remaining 5 directories, and 70 files..and training it again to a new model_2, predicting using this new model_2 and even so error rate too high, like randomizing.
I would like to let you know it is a very nice software! Very nice documentation PDFs. Congratulations!
And if you can, it would be nice if you can give us some help on what do you think is going on... Am I using right methods to get it trained? Is the directory structure fine? Does quantities I've used are fine? Do you have any other suggestions?
Thank you very much! Greetings from Brazil.

Please put data of the same person into same directory.
And you'll need more data in your case.
Usually at least one minute of constant talking per person is needed, but the more the better.

Ok Thanks! About "put data of the same person into same directory" i've already done this.
But regarding "more data" I'll do that. I'll enroll with more constant talking.
Thanks!

predict/Fegens2.wav -> fegens___________________[OK!]
predict/Fegens.wav -> fegens____________________[OK!]
predict/fozy.wav -> tairon______________________[OK!]
predict/hudson2.wav -> pedreau__________________[ERROR!]
predict/hudson3.wav -> pedreau__________________[ERROR!]
predict/Hudson.wav -> pedreau___________________[ERROR!]
predict/Jan.wav -> jan__________________________[OK!]
predict/mpl_Fegens2.wav -> tairon_______________[ERROR!]
predict/mpl_Fegens.wav -> tairon________________[ERROR!]
predict/mpl_hudson2.wav -> tairon_______________[ERROR!]
predict/mpl_hudson3.wav -> tairon_______________[ERROR!]
predict/mpl_Hudson.wav -> tairon________________[ERROR!]
predict/mpl_Jan.wav -> tairon___________________[ERROR!]
predict/mpl_Paulo.wav -> tairon_________________[ERROR!]
predict/mpl_Pedreau2.wav -> tairon______________[ERROR!]
predict/mpl_pedreau3.wav -> tairon______________[ERROR!]
predict/mpl_Pedreau.wav -> tairon_______________[ERROR!]
predict/Paulo.wav -> paulo______________________[OK!]
predict/Pedreau2.wav -> pedreau_________________[OK!]
predict/pedreau3.wav -> pedreau_________________[OK!]
predict/Pedreau.wav -> pedreau__________________[OK!]
predict/sim_eu_mesmo.wav -> hudson______________[OK!]

Information on OK and ERROR I've writed based on results prediction said itself. I am very excited with this project! I have no doubt I'm gonna find out what I am doing wrong! ...and post here. All ideas are welcome.

Hi @hudsantos , has the prediction improved for you ?

noup... prediction has not improved in my case..
I am still following this project aside with this thread to see if someone can discover why it is not working.. because I couldn't.

@hudsantos  I am trying to run the project, I followed the instructions in the docker file. All the dependencies are installed. Then I execute
$ docker run speaker-recognition
/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
usage: speaker-recognition.py [-h] -t TASK -i INPUT -m MODEL
speaker-recognition.py: error: argument -t/--task is required
Could you please help me out. I cannot get this project to start.

@hudsantos some years passed. I wonder if you figured anything out?


circle.yml: no automatic updates and no analytics

This sets HOMEBREW_NO_AUTO_UPDATE=1 and HOMEBREW_NO_ANALYTICS=1

❄ Linuxbrew/brew is frozen for https://github.com/Linuxbrew/brew/pull/294


It seems that there are still some issues in the master branch.
Use the branch release-* to package fat-jar.


POC Add validation logic when passing datafit, penalty and solver to _glm_fit

A quick proof-of-concept of a function that checks if the combination (solver, datafit, penalty) is supported. Currently we have some edge cases where one can pass ProxNewton solver with L0_5 penalty without any error being raised.
Pros of this design: the validation rules are centralized and validating a 3-uple is a one-liner in glm_fit.
Cons: we have to update the rules as we enhance the capabilities of the solver.
All in all, I think it is very valuable to have more verbose errors when fitting estimators (e.g. Ali Rahimi initially passed a combination Quadratic, L2_3, ProxNewton which cannot be optimized at the moment of writing).
Closes #101
Closes #90
Closes #109

@mathurinm Yes I think it's cleaner, currently refining the POC.

This would be a nice addition if we can ship it in the 0.3 release @Badr-MOUFAD , given that we added a few datafits, penalties and solvers !

@Badr-MOUFAD the issue popped up in https://github.com/scikit-learn-contrib/skglm/issues/188, do you have time to take this over ? A simple check, at the beginning of each solver, that the datafit and penalty are supported (eg AndersonCD does not support Gamma datafit)

Sure, I will resume this PR.

Requires #191 to be implemented fit to allow for better checks

Trying to revive this to release v0.4. Some comments for discussion @QB3 @Badr-MOUFAD

I feel strongly against having both solver.solve() and solver(). "There should be one-- and preferably only one --obvious way to do it".
The way I see it, all solve methods should be renamed _solve, and BaseSolver should implement its solve that does the checks then call _solve. What do you think? This is non-breaking from the API point of view, just requires people implementing their own solver to adapt (I have no such example in mind ; we can implement a test that no Solver implements solve by checking that A.solve == BaseSolver.solve)
BaseSolver.solve can have a run_checks method which is True by default, and disabled if one wants to be faster (any idea on the impact of the checks @Badr-MOUFAD ?)
I feel like checking for the sparse support is heavy at the moment and could be done in another PR, but that may just be me :)
I have mixed feelings for the name check_obj_solver_attr; see my comment, I'd go for check_attr and not pass solver, which is used only for its name.
custom_compatibility_check could be custom_checks (?)

I’m +1 with having _solve method and adding run_checks argument to solve method.
I feel it give us more freedom to standardize the behavior and make less verbose the solve method.
I don’t think the check have a big overhead, though I didn’t check that in practice
The support of sparse data is covered in check_obj_solver_attr function, so I don’t think it hurts us to cover it  in this PR
I have no strong opion about the names, I’m +1 with your proposed name @mathurinm

I think the error messages help a lot.
Suggestion: add datafit/penalty and sovler
from
AttributeError: Poisson is not compatible with AndersonCD. It must implement `get_lipschitz` and `gradient_scalar`
Missing `get_lipschitz`.

to
AttributeError: Datafit `Poisson` is not compatible with solver `AndersonCD`. It must implement `get_lipschitz` and `gradient_scalar`
Missing `get_lipschitz`.

I’m +1 with having _solve method and adding run_checks argument to solve method.
I feel it give us more freedom to standardize the behavior and make less verbose the solve method.
I don’t think the check have a big overhead, though I didn’t check that in practice

Let's perform checks all the time for now, this will simplify our lives. WDYT?

* The support of sparse data is covered in `check_obj_solver_attr` function, so I don’t think it hurts us to cover it  in this PR

OK

* I have no strong opion about the names, I’m +1 with your proposed name @mathurinm

@QB3 any opinion?


copy_activity = CopyActivity(act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink) TypeError: init() takes exactly 1 argument (6 given)

blob_source = BlobSource()

blob_sink = BlobSink()
dsin_ref = DatasetReference(value=ds_name)
dsOut_ref = DatasetReference(value=dsOut_name)
copy_activity = CopyActivity('copyBlobtoBlob',inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

`
getting this issue
No handlers could be found for logger "msrest.serialization"
Traceback (most recent call last):
File "app.py", line 113, in
main()
File "app.py", line 105, in main
copy_activity = CopyActivity(act_name,inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)
TypeError: init() takes exactly 1 argument (6 given)

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

ID: 06b12410-3d72-8cc9-be6c-3b8e8521b90d
Version Independent ID: 9ef477fb-8321-4763-d340-0fee977f4beb
Content: Create an Azure data factory using Python
Content Source: articles/data-factory/quickstart-create-data-factory-python.md
Service: data-factory
GitHub Login: @sharonlo101
Microsoft Alias: shlo

@bl-deepakchawla Thank you for your query. This repository is for improvements in the Azure Documentation . It would be great if you could tell us which exact document you are trying to follow on this one so that we can help your with the right team.

https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python

@bl-deepakchawla Thank you for providing the details.

@shashishailaj how I get rid of this issue????

@bl-deepakchawla
copy_activity = CopyActivity('copyBlobtoBlob',inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)
should be
copy_activity = CopyActivity(**name=**'copyBlobtoBlob',inputs=[dsin_ref], outputs=[dsOut_ref], source=blob_source, sink=blob_sink)

@bl-deepakchawla Thank you for bringing this to our attention.  While reproducing your issue I discovered many other bugs in the document.  I will make appropriate changes.  Most of the changes involve changing positional arguments to keyword arguments.

Changes to be made:
SecureString(value=...
LinkedServiceReference(reference_name=
AzureBlobDataset(linked_service_name=
DatasetReference(reference_name=
CopyActivity(name=
please let me know if I missed any.

I have created a pull request 82982.  Only tested and corrected code up to and including the CopyActivity line.
Have not tested beyond that.  Need to do it time permitting.

@MartinJaffer-MSFT The Full Script section still contains wrong codr for DatasetReference and CopyActivity.


Added a reverse capability

Added a way to reverse your entire collection on a per page basis. Why would anyone do that? I'm making a gallery with files similar to 001-painting.md, 002-painting.md. When adding to the collection I don't want to have to rename every file again just to add one to the front.
More context: https://github.com/octopress/paginate/issues/11

Can we get this merged?

Ping @parkr @imathis

@parkr: this can be merged.

This LGTM, @shawnthroop. Would you please document the reversed option in the README? Thanks!

@parkr: can you merge this and add the info to readme later? I could make a PR for that if needed.

@parkr I'm recently relocated and still waiting for an internet connection like an animal. Once I'm online again I will do my best.

@parkr it appears you've beat me to it. Would you like me to add a sentence or two of more detail or are your additions enough?


A depositor should be able to order the authors

@astridu would you be able to develop this a bit more?

Sure, the explicit up/down arrows will be more accessible so I went with those. I put them on the right side, which is what I'm seeing is more common after a brief search. User can click the up arrow to move the item up one and the down arrow moves the item down one.
@jcoyne @amyehodge I was wondering since you can't delete the first entry for some of these, do we allow the user to move the 2nd entry to the first position if there are only 2 entries? or does the reordering functionality only enable when there are at least 3 entries to reorder?
And if we do allow the 2nd entry to become a first entry, does that one then become the one that cannot be deleted?

@astridu I think the "don't delete the top entry" was the first draft level of functionality.  At this point we can make that more complex. We can make every entry have a delete button and remove the delete button if there's only one remaining.

@jcoyne and @astridu Justin's suggestion sounds right. We definitely want them to be able to rearrange the first entry as well. I'm very excited about this!

If there is only 1 entry, then don't show any arrows.
If there are 2 entries, show the down arrow in the first entry, and the up arrow in the second entry.
If there are 3+ entries, show the down arrow in the first entry, and the up and down arrows in the second and subsequent entries.


[$500] Login - Blank screen and infinite spinner when logging in using magic link

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.36
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Open the app
Enter the email and tap "Continue"
Find the email and use the magic link to log in (change to staging if needed)

Expected Result:
User is logged in and lands on LHN
Actual Result:
The blank screen and the infinite spinner displayed
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/60d90526-0b8b-4290-81bb-42dcd0ca635b
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01b3cfffaf993f802b
Upwork Job ID:<PHONE_NUMBER>046606336
Last Price Increase: 2024-02-05
Automatic offers:

situchan | Contributor | 28142697
aswin-s | Contributor | 28142698

We think that this bug might be related to #vip-vsp
CC @quinthar

I have not been able to reproduce this. Is it only happening on staging?

@Gonals You need to use the link from the email, have you tried that. I was able to reproduce, this is a real blocker.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Infinite spinner when logging in using magic link
What is the root cause of that problem?
In ValidateLoginPage a useEffect is used to authenticateUser and signIn. When sign-in using deep link Navigation.isNavigationReady() return in false when invoked the first time. This results in non action.
What changes do you think we should make in order to solve the problem?
We should wait till Navigation.isNavigationReady() is ready before invoking the effect.
    const [isNavReady, setIsNavReady] = useState(false)
    useEffect(() => {
        if (!isNavReady) { return }
        if (session?.authToken) {
            // If already signed in, do not show the validate code if not on web,
            // because we don't want to block the user with the interstitial page.
            Navigation.goBack();
        } else {
            Session.signInWithValidateCodeAndNavigate(Number(accountID), validateCode);
        }
        // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [isNavReady]);

    useEffect(() => {
        // Wait till navigation becomes available
        Navigation.isNavigationReady().then(() => {
            setIsNavReady(true)
        })
    }, [])

What alternative solutions did you explore? (Optional)
None

We should wait till Navigation.isNavigationReady() is ready before invoking the effect.

Yep. I was able to reproduce this time

@aswin-s Can you also test if this fixed https://github.com/Expensify/App/issues/35782

@aswin-s, the proposal looks good! I'll assign you so we can get it fixed ASAP! Could you check the other issue @mountiny mentioned here?

Nice! I wonder if this solution could be simplified to this form.
useEffect(() => {
  // Wait till navigation becomes available
  Navigation.isNavigationReady().then(() => {
    if (session?.authToken) {
      // If already signed in, do not show the validate code if not on web,
      // because we don't want to block the user with the interstitial page.
      Navigation.goBack();
    } else {
      Session.signInWithValidateCodeAndNavigate(Number(accountID), validateCode);
    }
  })
}, [])

Ok raising PR shortly

@situchan @aswin-s please test on the PR if this was fixed too https://github.com/Expensify/App/issues/35782, thank you!

@mountiny Recording final video 😎

Feel free to make drafts first in these scenarios so C+ can jump in sooner than later.

Draft PR here

@situchan @aswin-s please test on the PR if this was fixed too #35782, thank you!

@mountiny
Nope. This one looks like a different issue.  However it affects testing of this issue on desktop environment.
https://github.com/Expensify/App/assets/6880914/b5a3d029-b4f2-4667-b1d2-c7f82fea618a

yup different issue.
While #35745 is android/iOS bug, https://github.com/Expensify/App/issues/35782 is web bug (wrongly tagged platform)

Testing well on iOS staging. Gonna remove the blocker here. Thanks for the quick solutions 🙇

Payment has been issued! 🎉
@situchan, can you complete the BZ Checklist above? Thank you!

I think this regression came from ideal nav.
As this was caught in staging by QA team, we don't need another regression test.

Sounds great! Thanks for confirming that!


Issue from website page 入门: 在macOS上搭建Flutter开发环境

while running flutter doctor  I'm getting -bash: /Users/XXX/flutter/bin/flutter: Permission denied

Mac OS Mojave 10.14.4

I'm using macOS Mojave 10.14.4 but $flutter doctor works.
I've installed flutter in ~/Documents/flutter and used environment variables.
For example, declare -x PWD="/Users/suhwan/Documents/flutter"

@Sxiaobai did you manage to get it working? Did you try to change permissions on the flutter folder?

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Explore pspline option

It would be super interesting to develop a pspline interpolator/extrapolator.
For example: http://pypspline.sourceforge.net/
One major complexity is that interpolators/extrapolators currently assume that the input x,y are the same as the target x,y.

@SciTools/peloton no immediate prospect of this, with no-one really pushing for it, sadly. So we'll close for now.
@pelson is there anything you can add that might make this seem easier to aim at?


Trusted Contacts: adding secondary sub-account via action

Part 2 of the following issue #2515
This would remove non UI code for TC away from screens and move to redux-saga while adding the sec sub-account to the appropriate parent shell

@cakesoft-swati Would require extensive testing of the flows (TC, TC-Guardian, and TC-payment).

This is completed, doesn't have a testable functionality yet. This will be tested after we use the new action with trusted contact journey in the next release.


Shortcut for Selecting Placeholder Text in Snippets

Description:
In Visual Studio Code, when a snippet is inserted, it often contains placeholders that are highlighted in a gray box. Currently, we can navigate through these placeholders using the Tab key and Shift + Tab keys, but there isn't a shortcut to select the content of these placeholders.
Feature Request:
I propose a new shortcut that allows users to quickly select the content of these placeholders. This would improve the efficiency of using snippets, as users could quickly replace the placeholder content without having to manually select it.
Steps to Reproduce:

Insert a snippet that contains placeholders.
Try to select the content of the placeholder using a shortcut.

Expected Result:
There should be a shortcut that selects the content of the placeholder.
Actual Result:
Currently, there is no such shortcut.
Additional Information:
This feature would be particularly useful for snippets that contain multiple placeholders. It would allow users to quickly replace all placeholder content without having to manually select each one.
Please consider adding this feature. Thank you for your time and consideration.

There should be a shortcut that selects the content of the placeholder.

Snippets already do that. You can declare a placeholder like so ${1:willBeSelected} and when navigating to that place the text will be selected. Is this what you mean?

https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax

yup i got it after using snippets we simply start typing and then for next part we click on tab


[SQL] Address APIView comments

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Please check some new comments in the apiview


Don't require the provider name when auto-enrolling repositories

Summary
We used to require the provider name when auto-enrolling for no reason
at all really. Let's just iterate over RepoLister providers
automatically instead.
Fixes: #3877
Change Type

[x] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
manually
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 53.655%. remained the same
when pulling 93f2bb8241b42e496c50acb9a2465bc8e3dc43ad on jhrozek:repo_register_no_provider
into a175dd92e9cfe6114dea52548fa81b8a157497b3 on stacklok:main.


ARROW-822: [Python] StreamWriter Wrapper for Socket and File-like Objects without tell()

Added a wrapper for StreamWriter to implement the required tell() method so that python sockets and file-like objects can be used as sinks.  The tell() method will report the position by starting at 0 when the StreamWriter is created and incrementing by number of bytes after each write.
Added unittests that use local socket as the source/sink for streaming.

@wesm, I just added a simple wrapper to implement tell() which works fine for the case of using a python socket or file-like object from socket.makefile().  I still get the below error when trying to use the socket file, for example sink = os.fdopen(sock.fileno(), "wb", 65536)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid

This is the way Spark sets up sockets, so it would be great to get that fixed here.  I'm not sure where exactly this is happening, just somewhere in the StreamWriter constructor, but I'll keep trying to debug it.

This is the way Spark sets up sockets

Can you paste a standalone repro here (or with this PR) and I can help debug?

Ok, that strange error is coming from CheckPyError() because the bytes obj in stringified is NULL, then tries to construct the std::string
49	    std::string message(stringified.bytes);
(gdb) print stringified
$14 = {
  tmp_obj = {
    obj_ = 0x0
  },
  bytes = 0x0,
  size = 2
}

Looks like the real error is (gdb) print PyErr_Print() TypeError: expected string or Unicode object, tuple found after calling
PyObject* result = cpp_PyObject_CallMethod(file_, "tell", "()");
Is it taking the empty parenthesis to be a tuple argument?

@wesm I removed the wrapper and made changes to PyOutputStream instead.  This fixes both ways of using StreamWriter with file-like objects from a socket - of course you can't use the socket object directly but I think that's fine.  I can look into the issue with CheckPyError a bit later.

@BryanCutler I can't get the code from ARROW-822 to work either with Python 2.7 or 3.5. Can you paste a reproduction?
In [3]: paste
import pyarrow as pa
import socket, os, io

port = 8080

for res in socket.getaddrinfo("localhost", port, socket.AF_UNSPEC, socket.SOCK_STREAM):
    af, socktype, proto, canonname, sa = res
    sock = socket.socket(af, socktype, proto)
    try:
        sock.settimeout(3)
        sock.connect(sa)
    except socket.error:
        sock.close()
        sock = None
        continue
        raise
    break

if not sock:
    raise Exception("could not open socket")
## -- End pasted text --
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-3-010c27b951bd> in <module>()
     18
     19 if not sock:
---> 20     raise Exception("could not open socket")

Exception: could not open socket

Sorry @wesm, I should have said you need to run "netcat -l 8080" in another
terminal before running the code to give it something to connect to.  It
might be "nc -l 8080" depending on what os you have.
On Apr 20, 2017 6:54 PM, "Wes McKinney"<EMAIL_ADDRESS>wrote:
@BryanCutler https://github.com/BryanCutler I can't get the code from
ARROW-822 to work either with Python 2.7 or 3.5. Can you paste a
reproduction?
In [3]: paste
import pyarrow as pa
import socket, os, io
port = 8080
for res in socket.getaddrinfo("localhost", port, socket.AF_UNSPEC,
socket.SOCK_STREAM):
af, socktype, proto, canonname, sa = res
sock = socket.socket(af, socktype, proto)
try:
sock.settimeout(3)
sock.connect(sa)
except socket.error:
sock.close()
sock = None
continue
raise
break
if not sock:
raise Exception("could not open socket")
-- End pasted text --

Exception                                 Traceback (most recent call last)
 in ()
18
19 if not sock:
---> 20     raise Exception("could not open socket")
Exception: could not open socket
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/arrow/pull/569#issuecomment-296011406, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEUwdeJMwQhy-eSuml7zEuF0abDEILtiks5ryAxEgaJpZM4NCVfh
.


Rust Book Chapter 5: Using Structsd to Structure Related Data

Sections:

[x] Defining and instantiating Structs
[x] An Example Program Using Structs
[x] Method Syntax

Finished: 1 Hour


Horizontal Pod Autoscaler Addon

Why do we need this? Is not it handled by the metrics server?

@shapirov103 you are correct. Closing this ticket.


edgeCollection.save with just a document fails due to invalid documentHandle

Hey
First of, loving the newly refactored driver with simplified collection retrieval and cleaner syntax. Thanks
I normally use AQL queries, but with the cleaner syntax I've started the use ArangoJS functions more so.
I just tried to use edgeCollection.save and ran into an issue:
Using a document like:
     _to: 'studios/falcon-studios',
  createdAt: Sun Sep 13 2015 12:02:06 GMT+0100 (BST) }````

variation 1 works:

````  producedByCollection.save({createdAt: new Date()}, doc._from, doc._to, callback)````

but variation 2 fails as per your documentation - shows it's a possibilty:

```` producedByCollection.save(doc, callback)````

the returning documentHandle is a function, and not an expected JSON object

Thought I'd let you know

Thanks

Sky

Thanks for catching that.


Update the databricks documentation

What does this PR do?

Update the databricks documentation to stop using DBFS scripts.
Modify the scripts to:

Leverage environment variables when possible instead of the sed+yaml or echo+yaml combo
Simplify the scripts a little bit where possible
Add more logs
The previous version of the script created the start_datadog.sh script and ran it no matter what. Now we only create it if needed

Motivation

https://github.com/DataDog/integrations-core/issues/14497
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Thanks, created DOCS-5993 to review


Add a list of challenging python language features to the LaTeX documentation

https://www.overleaf.com/project/6177d231ad16318fb519b0de

the list is up to date with my understanding


Add OpenSpecy

Insert URLs to the project here:
https://github.com/wincowgerDEV/OpenSpecy-package
In one sentence, explain what the project is about:
Raman and (FT)IR spectral analysis tool for plastic particles and other environmental samples.

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues marked as 'Good First Issue' of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.

@wincowgerDEV @zsteinmetz


Adjust code block display in mobile for better UX

When view Code block in mobile device frequently need to drag horizontal bar, consider it is not long enough, so make code block full-width in mobile.

Thanks. :+1:


Using external list of authorized domains for CORS

Hi there! I'm lookin for right way to construct CORS headers by getting domain list from Consul API for example. I'm trying to find out is it right way to getting list domains from Consul https://www.consul.io/docs/agent/http/catalog.html and if domain that Kong should redirect to according to one of them, construct CORS with allowing this domain or not.
CORS plugin stacked me, does he allow to static definition only? It's hard to support plugin's data in actual state. Does my thoughts have meaning?

The documentation for the CORS plugin (that you have probably already consulted) is available at: https://getkong.org/plugins/cors/
It is complete and the plugin does what is documented, aka enabling CORS headers on the API on which it is enabled on. Beyond that, I am unsure what is your actual question, so please elaborate on what is your use-case.

Ok, I'll try to explain,
According to CORS plugin documentation, I have to fill out "config.origin=mockbin.com" where domains as static string. My question is about way to use any dynamic list of Origin domains, for example – Consul API that contains of all of my front-ends. Other way is changing Origin domains every time new front-ends comes to the system.

considering this answered, closing


NLB's UnHealthyHostCount data cannot be scraped

apiVersion: v1
data:
config.yml: |
discovery:
exportedTagsOnMetrics:
nlb:

Department

Tier

Environment

Project
jobs:

type: "nlb"
regions:

cn-north-1
nilToZero: true
metrics:
- name: ActiveFlowCount
statistics: [Average]
period: 300
length: 600
- name: ActiveFlowCount_TCP
statistics: [Sum]
period: 300
length: 600
- name: UnHealthyHostCount
statistics: [Maximum]
period: 300
length: 600
aws_dimensions: ["TargetGroup"]
- name: HealthyHostCount
statistics: [Minimum]
period: 300
length: 600
- name: TCP_ELB_Reset_Count
statistics: [Sum]
period: 300
length: 600

version  is v0.23.0-alpha

still happens in version v0.32.0-alpha. UnHealthyHostCount and HealthyHostCount aren't scraped.


Give a better description for the commands in the usage of the build system script

hello @antoyo, i would love to contribute to this

Thanks. Feel free to ask questions if you need help.

okay, sure

hello @antoyo, assign this task to me

which of the build script are you referring to tho?

The one in this directory.
The description of the commands are there.

hey @antoyo i just committed, please check

hey @antoyo i just committed, please check

@g4titan: Please do not ping me as I get a notification from GitHub so I already know you pushed your changes :) .
I'll review them when I have time (still work hours here for me).

hello @antoyo, i dont know y my github acct got flagged, but I have written several support tickets to github and I didn't get a reply, so I created a new github
I would love to work on this issue again

Good, I assigned you this issue.
Thanks!

great! thanks

hello @antoyo, you can close this issue now I guess

Done in #490.
Thanks for your contribution!


[BUG] Need a way to inject partitionKey for CosmosContainer.queryItems method

Description
I'm trying to use the method CosmosContainer.queryItems to query db.
However, I am not able to set partition key in CosmosQueryRequestOptions, as the setters is of default type.
Also, ModelBridgeInternal doesn't have a means to equip  CosmosQueryRequestOptions with partition key.
Expected behaviour
Need a way to inject partition key in CosmosContainer.queryItems method
SDK version:

4.2.0

@zahiritpro - why can't you use CosmosQueryRequestOptions#setPartitionKey(PartitionKey partitionKey) API ?
/**
* Sets the partition key used to identify the current request's target
* partition.
*
* @param partitionkey the partition key value.
* @return the CosmosQueryRequestOptions.
*/
public CosmosQueryRequestOptions setPartitionKey(PartitionKey partitionkey) {
this.partitionkey = partitionkey;
return this;
}

@kushagraThapar  CosmosQueryRequestOptions#setPartitionKey(PartitionKey partitionKey) -- This setter method has default modifier. So is not accessible outside package.
Same issue with CosmosItemRequestOptions is solved by the method ModelBridgeInternal#setPartitionKey.
CosmosQueryRequestOptions might also need a similar setter in ModelBridgeInternal.

@zahiritpro - this code is from V4.2.0 - and I can see that it is public: https://github.com/Azure/azure-sdk-for-java/blob/azure-cosmos_4.2.0/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java#L281
Can you please make sure the version you are using ?
Also, you should never use ModelsBridgeInternal - as this is only for internal usage and not for customers.

@kushagraThapar  Probably I had checked the  wrong version. I can see the setter public in V4.2.
Thank you. Will close the issue.
Also, I use ModelsBridgeInternal.getInternalObjectNode(CosmosItemResponse) to retrieve id and partition key from response.. Is it discouraged to use ModelsBridgeInternal for this  task..Is there an alternative ?

Yes, you should be able to call CosmosItemResponse#getItem() API - and that will return the saved response object in the same Object model that you provided it with initially.
Make sure you enable this property contentResponseOnWriteEnabled in CosmosClientBuilder because SDK doesn't return full responses by default for write operations.
Read the docs and it should be clear on how and when to use it : https://github.com/Azure/azure-sdk-for-java/blob/azure-cosmos_4.2.0/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java#L362


No trade buttons?

I don't see the trade buttons on my site using the newest Discourse install. I see some of the code for generating the buttons but there are no buttons visible

You have to enable desired buttons in category settings. Also you may have to restart discourse instance for plugin to take effect.

Restarting the discourse instance fixed it - thanks!

Installed the plugin and I will try the Discourse restart later to see of the buttons start to appear.


Fix multiple event calls when removing/re-adding same record key

This mostly fixes #36 so that child_changed and value events are not called redundantly. The core problem was that the old unwatch() call did not reference the correctly bound function ref.
A secondary, more subtle, issue was that changes to the records may trigger value events, although the data being displayed to the client (which is determined by the select() clause) may not actually changed. I added a check into the AbstractRecord's _trigger() event to ensure value events are only triggered at appropriate times.
There are still a couple of edge cases where child_changed events can be triggered multiple times, such as when I manually delete the merged paths one-by-one, and do not start with the master record (this will result in a child_changed event for each secondary path, followed by a final one with null when the master is removed. These are appropriate and we don't have a way to distinguish these from normal changes to the data (i.e. we can't tell the users' intent and we can't wait indefinitely to see if they other paths are deleted because this mucks with the timing of events and ordering).

@jwngr if you have time, please give this a brief review.

Gave this a cursory look and it looks good. I don't fully understand everything that's going on in this code, but you told me not to try to figure it all out. But things in general look good.


NullPointerException in ArrayOutput

Bug Report

Current Behavior
Unstable error
Caused by: java.lang.NullPointerException
at io.lettuce.core.output.ArrayOutput.set(ArrayOutput.java:48)
at io.lettuce.core.output.MultiOutput.set(MultiOutput.java:70)
at io.lettuce.core.protocol.RedisStateMachine.safeSet(RedisStateMachine.java:374)
at io.lettuce.core.protocol.RedisStateMachine.decode(RedisStateMachine.java:178)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:716)
at io.lettuce.core.protocol.CommandHandler.decode0(CommandHandler.java:680)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:675)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:596)
at io.lettuce.core.protocol.CommandHandler.channelRead(CommandHandler.java:565)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:792)
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:475)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:811)

Stack trace
// your stack trace here;

Input Code

Input Code
            final RedisCommands<String, String> sync = j.sync();
            sync.multi();
            for (PojoMap x : keyValues_org)
                x.del(sync, orderedFieldsByType, indexedFieldsByType);
            sync.exec();

x.del() function contains srem, zrem, del invocations

Expected behavior/code

Environment

Lettuce version(s): 5.3.1.RELEASE
Redis version: e.g. 5.05

Possible Solution
No solution found

At the same time I also noticed another NullPointerException (please let me know  if they are not connected and should be logged selarately)
Caused by: java.lang.NullPointerException
at io.lettuce.core.StatefulRedisConnectionImpl.preProcessCommand(StatefulRedisConnectionImpl.java:262)
at io.lettuce.core.StatefulRedisConnectionImpl.dispatch(StatefulRedisConnectionImpl.java:166)
at io.lettuce.core.AbstractRedisAsyncCommands.dispatch(AbstractRedisAsyncCommands.java:472)
at io.lettuce.core.AbstractRedisAsyncCommands.xadd(AbstractRedisAsyncCommands.java:1519)

Thanks for the report. I'm not able to reproduce the issue. The second exception indicates that connections are shared across multiple threads in combination with transactional use. When using transactions, ensure that the connection isn't used by other threads at the same time since transactions affect the connection state and weird exceptions may happen. I assume that's also the case for the error above.

Your finding is absolutely correct. A shared connection, multi-threaded system, transactions.
But please guide and/or correct me.. I might be confused about the connections usage
after reading the https://github.com/lettuce-io/lettuce-core/wiki/Connection-Pooling-5.1 and https://github.com/lettuce-io/lettuce-core/wiki/Stateful-Connections  my understanding was that until I use blocking operations I can safely share one stateful connection (created via client.connect() ) and use it the way I do.
I definitely missed the notes from https://github.com/lettuce-io/lettuce-core/wiki/Pipelining-and-command-flushing
especially

You should not use transactional commands (MULTI) on shared connection. If you use Redis-blocking commands (e. g. BLPOP) all invocations of the shared connection will be blocked until the blocking command returns which impacts the performance of other threads. Blocking commands can be a reason to use multiple connections.

I was under impression that shared connections and blocking operations is the no-go combination. And as I see it after your response the MULTI is also not for the shared connections.
I will re-do my code.
Thank you for the prompt reply!

The both limitations are probably mentioned everywhere (reader, wiki start page at https://github.com/lettuce-io/lettuce-core/wiki).
Closing this ticket then.


Pawlean/add jetbrains sponsorship 156

Fixes #156

@nisarhassan12 Can you help me with the JetBrains svg logo? Struggling to get to look consistent with the other logos.