add E2E framework

Signed-off-by: Joseph<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
Migrate the kubernetes e2e framework to koordinator to help us write E2E test cases.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/lgtm

/approve


Error about null files property in tsconfig.json

TypeScript Version:  2.0RC (<IP_ADDRESS>)
I found really mysterious error.
I started by having problems with my TS 1.8 so i moved to 2.0RC. in 2.0 i encountered completely new error:

I tried asking in asp/Tooling https://github.com/aspnet/Tooling/issues/760) but i found this github. Being intrested i looked into TS 2.0 code and from what i see my error should never appear because i don't have any "files" property in my tsconfig.json file :
{
    "compilerOptions": {
        "declaration": false,
        "removeComments": true,
        "noImplicitAny": true,
        "noImplicitReturns": true,
        "noImplicitUseStrict": false,
        "noFallthroughCasesInSwitch": true,
        "noEmitOnError": true,
        "sourceMap": true,
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "pretty": true,
        "allowUnreachableCode": false,
        "allowUnusedLabels": false,
        "target": "es5",
        "module": "commonjs",
        "outDir": "../wwwroot"
    },
    "compileOnSave": true
}

When i add "files" property and set it to [] the compilation works but i don't want to list every file i have to use. I tried reinstalling TS 2.0 RC but the problem doesnt want to go away. I work now on TS 1.8 but my visualstudioonline continous integration doesn't want to work because of (i suppose)the same error(i specifically configuered xproj to use 1.8 and i know visualstudioonline CI uses TS 1.8 but the error still exists while on my local machine it doesn't.)
Log from visualstudioonline:
1_Build.txt
Expected behavior: Successful compilation
Actual behavior: Error

i can not reproduce this on TS 1.8 or TS 2.0. do you see this with any project? or a specific project? if any project, can you share a sample i can try locally?

Here's the project(filedropper because github doesn't accept the zip)
http://www.filedropper.com/project_11
I can also give you access to my project repo and my tsc.exe files if you want.

mmm. i just tried, and tsc.exe returns 0 on MGMS\src\MGMS.Web\app\tsconfig.json. so something else is going on here.
do you see the same issue on diffrent machines? what is the version of your OS? what is the version of IE?

I haven't tried on different machine, i will do that as soon as i can but if it counts this error occurs as well on visualstudioonline repository(i posted log in my first post) when i do continous integration.

Here is link to my typescript 1.8/2.0 libaries. Are you able to reproduce an error using them ?
http://www.filedropper.com/typescript
OS: Windows 8
IE: 10.0.9200.17607

works fine for me still.

I don't know what to say, it's that user-developer case when something doesn't work in my enviroment. I'm sorry but I'm very occupied right now but as soon as i will have time i will try to run it directly from myself compiled tsc.js. Now i'm at work where i can test it too but no time so far.

This issue does not seem to be actionable at the moment. Closing for housekeeping purposes. Please reopen if this is still an issue or there is more information to share.


Urgent TODOs for data plane SDK Release Readiness

This epic is to track the minimum todos that need to be completed before user's will be able to use the data plane SDK Release Readiness application.
Ready for Dev:

[x] Make welcome page look like management plane - https://github.com/Azure/azure-sdk-tools/issues/5221
[x] Ensure we can get APIView approval status in the release planner app - https://github.com/Azure/azure-sdk-tools/issues/4692
[ ] https://github.com/Azure/azure-sdk-tools/issues/4595
[ ] Enable checks to make sure SDK release requests meet release requirement- https://github.com/Azure/azure-sdk-tools/issues/5087

Pending on PM:

[ ] The Intro Meeting vs SDK Reviews need to be earlier in the UI flow, include package name approval required for initial Beta SDK release  (Package name approval) - https://github.com/Azure/azure-sdk-tools/issues/4601 & https://github.com/Azure/azure-sdk-tools/issues/4599
[ ] SDK Release Readiness signoff (for APEX) (no actual release) - https://github.com/Azure/azure-sdk-tools/issues/5126
[ ] GA SDK Release SDK Release Readiness validation for APEX signoff
[ ] Public Preview SDK Readiness validation for APEX signoff
[ ] Enable user to change the PR in the SDK release planner app - https://github.com/Azure/azure-sdk-tools/issues/5157#top

Hi @ladonnaq  for

GA SDK Release SDK Release Readiness validation for APEX signoff
Public Preview SDK Readiness validation for APEX signoff

We check if SDK PR are merged and the apiview are approved in 'Sign Off DATA PLANE SDK Readiness' step.

And we check if the SDK release pipeline are finished in 'Release DATA PLANE SDK Libraries' step.

Can you help me what items should we add for these two tasks?

Hi @ladonnaq for

GA SDK Release SDK Release Readiness validation for APEX signoff
Public Preview SDK Readiness validation for APEX signoff

We check if SDK PR are merged and the apiview are approved in 'Sign Off DATA PLANE SDK Readiness' step.
And we check if the SDK release pipeline are finished in 'Release DATA PLANE SDK Libraries' step.
Is it ok for you? Can you help me what items should we check for these two tasks?

@zzvswxy  Had a discussion with @ladonnaq, the information on SDK signoff page is enough for now.


New WMS image source not working

Hi,
I had set up s WMS feed and also added two different years of available imagery following the CEO Manual V2 guidelines.   Until yesterday I could see image from those options but now has stopped loading images. The default imagery options like 'DigitalGlobeRecentImagery" is working but not the ones that I set up.  Would appreciate any help.
Thank you.

We experienced a temporary outage for the DigitalGlobeWMSImagery source starting on Thursday afternoon. This was due to an invalid CONNECTID generated by the DigitalGlobe Cloud Services team. A valid CONNECTID has now been installed in the site for that layer, so it should work correctly going forward. Please be aware that the DigitalGlobeWMSImagery layer will become private sometime this month and will only be available to SERVIR-related institutions going forward, due to a recent decision by NASA (the organization which funds that imagery source).


Error: qdisc root handle could not be created

ERR  qdisc root handle could not be created. maybe flush network settings (--flush).
Raspberry pi 3 with kali.
I did the --flush but still same error

This should be fixed by #5.

The same issue here - manjaro linux 4.9, run in venv python 3.7

This issue should be fixed by ab73d5e0a12bf39fe18cc686f561aefd169d3284. Feedback would be appreciated.

new here but i have same error Kali Linux

also not blocking anything

new here but i have same error Kali Linux

Are you running a release, or did you git clone the latest version?

I have git clone. Today
On Mon, May 27, 2019, 4:06 AM leonardus<EMAIL_ADDRESS>wrote:

new here but i have same error Kali Linux
Are you running a release, or did you git clone the latest version?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bitbrute/evillimiter/issues/3?email_source=notifications&email_token=AHNFNY76AWFXJXZKD7JVY2LPXOI7LA5CNFSM4HN3RN32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJDE7Y#issuecomment-496120447,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHNFNY2DDSXLCXQGOOVHRSLPXOI7LANCNFSM4HN3RN3Q
.

Since you opened up another issue, the discussion will be redirected to #6 .

ERR qdisc root handle could not be created. maybe flush network settings (--flush).

i also have the same error can anyone help me in removing it

can't block or limit, help pls

same problem of qdisk in bash
pls help

Have you tried running EvilLimiter with the --flush flag?

If it still does not work, could you send me the output of this command:
tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb
... replace [YOUR INTERFACE NAME] with the actual network interface name.

the same problem but when I ran the command you said this was the output
LINK answers: No such file or directory.

If it still does not work, could you send me the output of this command:
tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb
... replace [YOUR INTERFACE NAME] with the actual network interface name.

the same problem but when I ran the command you said this was the output
LINK answers: No such file or directory.

Maybe the Kernel module sch_netem is missing. You can check it using modprobe sch_netem.

I don't have modprobe and i can't find a way to install it.

Can I ask what operating system you are using?

Distributor ID: Debian
Description:    Debian GNU/Linux 9.11 (stretch)
Release:        9.11
Codename:       stretch

termux
در تاریخ دوشنبه ۴ نوامبر ۲۰۱۹، ۱۷:۲۳ bitbrute<EMAIL_ADDRESS>نوشت:

Can I ask what operating system you are using?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bitbrute/evillimiter/issues/3?email_source=notifications&email_token=ANJJGMT2YBQLXQ6CLHSNG5LQSASMVA5CNFSM4HN3RN32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7JZWY#issuecomment-549362907,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANJJGMXIF7M77ZSO6CMPSW3QSASMVANCNFSM4HN3RN3Q
.

sudo evillimiter --flush
That command should fix it

sudo evillimiter --flush
That command should fix it

Need to re-run this command every times. Its means you can't limit any devices.

sudo evillimiter --flush
That command should fix it

tried, not fixing the problem. any other way to fix?

Same

termux

EvilLimiter does not and will never work on Termux. See #36

Distributor ID: Debian
Description: Debian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch

Are you running the commands as a root user (sudo)?

tried, not fixing the problem. any other way to fix?

What is your output when you execute the command I posted recently?:

If it still does not work, could you send me the output of this command:
tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb
... replace [YOUR INTERFACE NAME] with the actual network interface name.

I have the same problem please help. I flush it using  sudo evillimiter --flush, then it says flush ok but then it says ERR  qdisc root handle could not be created. maybe flush network settings (--flush).

I have
Error: Exclusivity flag on, cannot modify.
with the "tc" commandline

Seems like the TC command has some sort system error? I know Deb16.04+ has an working TC command. Could be an system error, try and see if you can find the current build with an PPA

Here is more about TC qdisk
Link1 @ Linux.com
Link2 @ stackexchange.com

qdisc root handle could not be created. maybe flush network settings (--flush).

Have you tried running EvilLimiter with the --flush flag?

i hate myself lmao

Still getting the error even with the --flush flag, running version 1.5.0 on Arch.

sudo evillimiter --flush
That command should fix it

Need to re-run this command every times. Its means you can't limit any devices.

Thanks It Works

I just encountered this same error msg. I've been using evillimiter for a while, and now it doesn't work out of the blue. I also tried -f and nothing's changed. I'm on Arch.

If it still does not work, could you send me the output of this command: tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb ... replace [YOUR INTERFACE NAME] with the actual network interface name.

It shows Cannot find device "[eth0]"
What shall I do?

If it still does not work, could you send me the output of this command: tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb ... replace [YOUR INTERFACE NAME] with the actual network interface name.

It shows Cannot find device "[eth0]" What shall I do?

are you sure your interface is called eth0?

You are not supposed to put you interface name in square brackets. Type eth0, instead of [eth0].

Yes it is

You are not supposed to put you interface name in square brackets. Type eth0, instead of [eth0].

Yea your right, but it showed a new error.
Error: Specified qdisc not found.

Err to (tc qdisc add dev eth0 root handle 1:0 htb) specified qdisc not found

thank brow work

Some of you guys might have this problem:
Install iproute-tc package on your system and you are good to go
For Fedora
sudo dnf install iproute-tc


Publish newest version (1.1.20)

Hey, @brianleroux. I'm running into the issue which was fixed here https://github.com/arc-repos/arc-workflows/commit/23489ae6194deb240702efd6f2008deedf3a2d60. You seem to have pushed a new version but it was never published to npm. The latest version on npm is 1.1.19.

DOH omg so sorry! Published ❤


parseAsync method Error handling

json2csv v4.5.2
node v10+
I'm running into either an error in documentation or an issue with error handling of the parseAsync method.
I would expect, based on the documentation, for the code below to be caught in the catch block and run the resulting error handling, but the method throws early without the error bubbling out, making it impossible to catch this way
json2csv.parseAsync({}, {fields: [undefined]})
  .then(() => console.log('it works'))
  .catch(err => console.log('an error occurred'))

Wrapping the function in a try / catch block solves the issue
try {
  json2csv.parseAsync({}, {fields: [undefined]})
} catch (err) {
  console.log('there was an error yo')
}

So maybe either the docs should be updated or the behavior changed as desired.
Thanks so much for your work on the tool - it's extremely useful and well done!

You are right. It's a bug.
I'll fix it asap.
Thanks for reporting!!


Running MriLab from MATLAB command window.

I have multiple 3D digital phantoms and I want to simulate MR image volumes using those. However, in order to change the phantom to be used I have to load the new phantom using the GUI of MriLab and this process takes a lot of time given that I want to simulate using a lot of digital phantoms. Is it possible to run MriLab directly from MATLAB command window with prescribed digital phantom location, the pulse sequence to be used and the default attributes associated with the pulse sequence.
Thanks.

I am also working on this. The problem here is the engine needs to interact with the GUI in order to perform some extended event (e.g. display execution time in the frontend). Of course, you can safely turn off these features to prevent GUI interaction during the simulation. The simulated signal needs to be reconstructed and displayed in the preview window which is required by default. You might want to find and modify relevant code to turn off this too.
A quick solution is to use the batch simulation mode (user guide 4.1). However, I noticed that the newer version of MATLAB (after 2015a) changed the graphical system so MATLAB took so much time and space to save the figure handle which isn't necessary. As of now, I would recommend you using the older version of MATLAB and using the batch simulation mode. This won't require you to do extra work in order to simulate a lot of scans.
Long story short, you can do a command line (see how I use the DoScanGPU in the main code) if you can turn off the GUI interaction during and after the signal simulation. However, there might be glitches.

Thanks Dr. Liu. I am currently using MATLAB 2015a for running MriLab. I have previously tried the batch simulation mode, however the time for simulation does not scale linearly with number of slices. For example, for simulating 1 slice (256*256) it takes about 3-4 minutes on my laptop's GPU (GTX 1050); for 2 slices 10-11 minutes; and around 2 hours for 6 slices. Due to this I have had to break each phantom into small volumes and simulate one-by-one. Do you have any idea why the time required does not scale linearly? I was actually expecting that once the phantom has been loaded and all other attributes prescribed, the time required per slice would be about the same.

The time increase is not linear. For example, comparing to 1 slice, simulating 2 slices computes both 2x spins and 2x TRs. You will likely expect around x^2 computation time.


Adopt pyproject.toml

I think it's about time that pyee adopt pyproject.toml. It already has a file for configuring isort and pyright, but a lot of fields can be actively moved there from setup.py.
Note, I should retain a setup.py for compatibility purposes; I shouldn't do away with it completely! But if I can move the package name/version into the toml file, that could enable automating the version bump in the sphinx docs.

This was resolved in version 10.0.0! :raised_hands:


Config example for bidirectional search

Hi,
I'm struggling to understand how to activate bidirectional search because I believe the documentation is impartial or only vaguely explains how to do it. Could you please add a working example to the doc?

Hi! What is unclear about the snippet? This is all what you have to do. (<modes> is e.g. {'n', 'x', 'o'}, <key> is the key you want to use, e.g. 's'. :help vim.keymap.set)
vim.keymap.set(<modes>, <key>, function ()
  require('leap').leap { target_windows = { vim.api.nvim_get_current_win() } }
end)

6362976


Split Transaction

Trying to enter a split transaction.  As soon as I select "split" (under category) it bombs and I get an "Uh Oh" message box.

Same exact problem here. Every time I go to make a new transaction and click the split button I get the error below.
"An error occurred in Toolkit for YNAB (a browser extension you installed to enhance YNAB). Click here to report the issue to the YNAB Toolkit project."

When opening issues, please fill out all the information in the form provided. Either way, I'm closing this in favor of the duplicate: #1806


ImportError: cannot import name 'User' from 'githubkit.versions.latest.models'

Is there anything that am I missing?
What the reason  that  getting this error eventhough I have setup up githubkit in virtualenv well.
with poetry add githubkit[auth-app]
file.py
from githubkit import GitHub
from githubkit.versions.latest.models import User

Error reproduce when run
python file.py
on Window 11
Python version 3.11
Poetry version 1.3.2

It seems the code example in the readme is outdated. GitHub has changed the model name of User into PrivateUser | PublicUser. I will update the examples in the readme.

You can simply remove the type hint and you can see the inferred type of the return value from IDE.

I have a question that
Is this package allow to return authorize url like
https://github.com/login/oauth/authorize?response_type=code&client_id=codeID&redirect_uri=REDIRECT_URL&scope=user+user%3Aemail
I am new to this package, when i visit readme section, may be i missed, I didnot get it.

I have a question that
Is this package allow to return authorize url like
https://github.com/login/oauth/authorize?response_type=code&client_id=codeID&redirect_uri=REDIRECT_URL&scope=user+user%3Aemai

In the oauth flow, you should redirect user to the authorize page first. After user authorized your app, github will redirect user to your callback url. You can get the code from the callback url and give the code to githubkit to exchange access token.
In the flow above, you should handle the web related things by yourself, including redirect user to authorize and handle the callback from github. githubkit will use the code to exchange access_token and you can use the token to act as user.


Node Seeding - Randomize Issue

I've noticed that whenever I type in node seeds to refresh the seeding, the values for assigned_id and user.username seem to always be mixed up with each ticket.
I noticed this after reseeding to test out assigned roles and usernames from the 2 models.
Not sure where the issue is.

Won't be fixing this issue at the moment. Closed for now.


added headers subdirective for nats_request and nats_subscribe

Added an optional sub-directive named 'headers' to nats_request and nats_subscribe that allows a user to enable or disable adding HTTP headers to a NATS message. The default value for the new 'headers' sub-directive is false, i.e. no headers are added to the message.

Thanks @sapergus for your PR ❤
I am a bit hesitant to set the headers default to false, because this would be a breaking (and rather non-obvious) change. My thinking so far was that having the headers around usually does not hurt, if one does not read them.
What is your use case of having them removed? // And second, would you be OK with having "headers" true by default; or at least include the X-NatsBridge-... headers always?
All the best,
Sebastian

Hello,
I guess the answer to your question is lack of knowledge about NATS. I used the nats client to test the plugin and could not find any flags for the subscribe command that disabled printing the headers, and I did not think of checking the Go API.
But, after reading the documentation it is clear to me now that one can simply ignore reading the headers. However, I still would like to control if the headers are added to the message or not, but I don't mind if the default value for 'headers'  is set to true.
Br
Per


unresolved import bevy_renet2::netcode::NativeSocket

Hello,
I have an issue where I cannot replicate the example provided for bevy_renet2 crate. I cannot use bevy_renet2::netcode::NativeSocket. While searching for solutions, I found NativeSocket in renet2_netcode, but still couldn't use it. Any help will be appreciated. Thank you.

Sorry about that, fixed in https://github.com/UkoeHB/renet2/commit/c301a22845c0adfe3e379a2fa75b7ce5d9c0f81e


Nuke auto updates

As Twitter did just go wild on that, we should consider adding one additional mu-plugin to the setup (or recommend installing it):
<?php
/**
 * Plugin Name: Updates Disabled
 * Description: Disable all automatic updates (for themes and plugins)
 * Plugin Author: wecodemore
 */

add_filter( 'automatic_updater_disabled', '__return_true' );

add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );

add_filter( 'auto_update_core', '__return_false' );
add_filter( 'allow_dev_auto_core_updates', '__return_false' );
add_filter( 'allow_major_auto_core_updates', '__return_false' );
add_filter( 'allow_minor_auto_core_updates', '__return_false' );

Not sure if we should throw in all options and add an explanation, or simply just close everything off.

Simply defining DISALLOW_FILE_MODS has the same effect. No need of any filter.
Filters are required only for fine grained control.
I don't think it worth to add that to wpstarter. Not in that form, at least.
Maybe we can add support for a new environment var that allows a more user friendly and centralized setup.
E.g. AUTO_UPDATES_STRATEGY or something like that.

Let's just say it's not worth it :)

Note to whoever reads this ticket in the future: There's this WP.SE question around DISALLOW_FILE_MODS and this years old Trac ticket that clearly explains the UI problems around that topic. Also looking at the code, the constant and the core structure would make adding a new constant pretty much useless. Maybe inspect filter vs. constants and the differences it makes … in case someone has too much time on their table.


Beginner Friendly Issue - Didn't Get Mail Link Broken

Hi,
👉  So I think you found this issue from the Beginner-friendly issues list, and you are just getting started with Open Source.
👉  This is a perfect opportunity to get your hand dirty, and not get overwhelmed at the same time.
👉 I have deliberately introduced a bug into my website.
💕 Problem
The Hyperlink attached to the Didn't Get Mail  in the footer is no more working. I want you to prank the user (Rick Roll). Replace the current hyperlink address with the this.
Damn you got Rick Rolled as well.

Kindly help me prank my users 🥺.
💕Assistance
It's under the client folder, inside the src folder, inside the views folder, inside the index.vue file.
Search for the Didn't get mail anchor tag.
💕How to contribute.
Send a PR, and I review it. If it's up to the mark, I will approve it and merge it to the main codebase.
Learn how to send a PR here.

@wimpywarlord is this issues categorized under Hacktoberfest 21

@Niyati3031 Hi Nitya go ahead and send a PR.

@Niyati3031 Hi Nitya go ahead and send a PR.

But I should make pr after 1 october then it will be counted am i right..

Yes, that would be a wise decision.

Can u assign me this one as it would help me in getting more confident before hacktoberfest?

Hi @Rajeet10,
Sure you can go ahead and send a PR, since the main objective is to learn the git and open source.
Assignment holds little value.
Even if your PR doesn't get merged, you will learn the whole process never the less.
Thanks

The issue is been assigned to @satkar2001 and the Raised PR has been merged. The issue is not being closed.


Why does console size affect data redirected to files?

Start with a narrow (50 characters) console window and run:
PS C:\temp> ps >ps.txt
PS C:\temp> (gc .\ps.txt | %{ $_.length } | measure-object -max).maximum
49
PS C:\temp>

Then make your console window full screen and run it again:
PS C:\temp> ps >ps.txt
PS C:\temp> (gc .\ps.txt | %{ $_.length } | measure-object -max).maximum
157
PS C:\temp>

Why does the console size affect output written to (redirected to) a file?
Is there a way to not see this behavior?  I'd like my scripts to generate the same file data regardless of the size of the console they happen to be invoked in.
In Linux/bash, you can only query the window dimensions thru a tty handle, and when you redirect an operation to a file handle, that query fails, so all console/window processing (even pagers) get disabled...  But with powershell, it seems file redirection still leaves the underlying operation inherently knowing (and using!) the console handle (that is not even involved in the write!).
Thanks for any explanation!
PS You can see the same behavior with write-information "..." 6>file, but not with write-output "..." >file -- I am not sure why...

Out-String with Width parameter
Get-Process | Format-Table * | Out-String -Width 1000 | Set-Content gps.txt

That still doesn't answer my question -- why would (should) the console width affect files my script generates?  There are lots of cases where this happens and it seems fundamentally wrong -- shouldn't the console width only be used for output actually going to the console, not output redirected to files?
In my case the issue is more complicated than adding an out-string -width -- I'm using information stream file redirection to allow a script to both have console output the user can see (which I'm fine being clipped) as well as writing all unclipped data to a log file...  But my log file ends up with line breaks every time a line is wider than the console width, which of course, makes the log file impossible to grep/parse.
This seems like a trivially simple example that should always work:
ps >ps.txt
But it doesn't -- can we fix it?  Thanks!

PS any idea how I would fix this in a 50 character console?  I don't see where to put the out-string or other command.
PS C:\temp> write-information ("*"*200) 6>info.log
PS C:\temp> (gc .\info.log | %{ $_.length } | measure-object -max).maximum
49
PS C:\temp>

PPS interesting -- write-output behaves differently than write-error, write-warning, and write-information (which all clip strings to the console width):
PS C:\temp> write-output ("*"*200) >output.log
PS C:\temp> (gc .\output.log | %{ $_.length } | measure-object -max).maximum
200

PS C:\temp> write-error ("*"*200) 2>error.log
PS C:\temp> (gc .\error.log | %{ $_.length } | measure-object -max).maximum
49

PS C:\temp> write-warning ("*"*200) 3>warning.log
PS C:\temp> (gc .\warning.log | %{ $_.length } | measure-object -max).maximum
49

PS C:\temp>

You're redirecting output that normally comes to the console. That output is going to be formatted for the current console width for display. If you want to serialise data instead, you need to indicate what format you want to use. You could convert it to JSON, CSV, or CLIXML as you please, but the default redirection behaviour doesn't have a set serialization format, it just redirects whatever the console output would be.

Understood -- I'm questioning if that's a valid model when compared to Linux/bash, which says that once output is redirected to a file, it no longer has console artifacts...  I think folks use powershell both to talk to the console and to talk to files and other objects -- but they seem inseparable from the console now.
Any idea why the information stream behaves differently than the output stream in the example above?  It almost seems like "write-output" was fixed, and "write-error", "write-warning", and "write-information" got missed?
I'd expect them all to be "formatted for the current console" from what you indicate?  (Or none of them, if I had my way! :-)

Write-Output doesn't demand a specific format, it's designed to handle any kind of object. Submitting a string to it and then writing it to a file is the exact same operation (albeit effectively doing a little bit of work twice) as just saving that string directly to the file. In other words, these two statements are equivalent:
"*"*200 > file.txt
Write-Output ("*"*200) > file.txt

No formatting really happens here because you only have a simple string, there's no complex object to format.
However, non-output streams are strongly typed -- they enforce a specific object type which all other output sent to them must be converted to. For Write-Warning, this is WarningRecord, much as for Write-Error it's ErrorRecord, and similar for all the others.
When saving this to a file, they're not simple strings or values, and get run through the formatter to determine the appropriate string representation. So, much like other examples that have been mentioned, the exact representation can depend on the console size at the time.
Whether that's the "correct" model or not is a bit of a debate topic, I suppose, but it's how it has been designed up to this point. This has been the case since sometime around PSv3 when most of the alternate streams were introduced (Information stream was a bit later, being introduced in PS 5.1).

Thanks for the explanation -- might there be a way to get something like this not to clip?  I'm using stream 6 as a detailed log file -- that might have more information (i.e., many more lines) than are sent to the console, though typically a pure superset of that -- that seems to be in line with the intended usage of stream 6 here.
PS C:\temp> write-information ("*"*200) 6>info.log
PS C:\temp> (gc .\info.log | %{ $_.length } | measure-object -max).maximum
49
PS C:\temp>

But I can't seem to figure it out...
IIUC, write-information generates -- and stream 6 only accepts -- [InformationRecord] objects.  The "6>info.log" above has to convert these objects to strings, and always uses the console width to do so.  Is that accurate?
I can definitely hack the console width with the following, but if I don't have to, I'd rather not:
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (1000, $Host.UI.RawUI.BufferSize.height)
Thanks again.

If you intend the result to go purely to a file and never the console, I probably wouldn't really bother involving stream 6; you can redirect or otherwise write strings to files without it.
If for whatever reason you need to use the information stream to output text data, it'd probably be a better idea to just take the MessageData property off of the object when saving to a file, or if you need the other data that InformationRecords contain, you could convert it to CSV perhaps.
(Write-Information ("*"*200) 6>&1).MessageData | Set-Content -Path info.log

# or perhaps
Write-Information ("*"*200) 6>&1 | Export-Csv -Path info.log

Thanks.
So my main script starts with just re-invoking itself recursively (BTW, I'd love to have a bash-like "exec 6>runust.log" to skip the reinvocation and just redirect the stream in the main script live, but the reinvocation is easy enough!):
if (! $redirected) {
    & $PSCommandPath -include $include -exclude $exclude -failure $failure -list:$list -redirected $hash 6>runust.log
    exit 0
}

And then all my jobs launched by the sub-script can use write-output (to just go to the console), write-information (to just go to the log file), or both (to go to both :-).
(The main script is careful to do timely receive-jobs for all jobs as they run.)
Maybe there's a much better way to do this, but other than the line breaks in the log file, it is really simple and works really well...
Anyway, thanks again for all the explanations and thoughts/recommendations -- it really is amazing how responsive (all) you folks are for powershell issues (or enhancements :-).

Since > is a wrapper for out-file, you can achieve something close to what you want directly with out-file. It's not quite the same but it may be something you can do. Also, you can use $PSDefaultParameterValues['out-file:width'] = 200 to increase the default output width. Then this would work as you expect
.{ "#" * 200; write-error ("*"*200);write-verbose -verbose ("@"*200) } > /tmp/output 2>/tmp/errout 4>/tmp/verbout

each redirected file should use the width as designated

$PSDefaultParameterValues['out-file:width'] = 200

That's a nice way to handle this.  This is something that I have struggled with RE logging over the years.  I created my own set of Write-Log functions (alias Log) that would use Out-String -Width to control the "width of output" in the log file.  I wonder if the $PSDefaultParameterValues idea could be made a bit more discoverable?  Maybe via a help topic on logging output to file?

Wow, that is totally nice thank you -- this makes everything good for me, without resizing my window!!!
$PSDefaultParameterValues['out-file:width'] = 1000
Thank you again!

Wow, that is totally nice thank you -- this makes everything good for me, without resizing my window!!!
$PSDefaultParameterValues['out-file:width'] = 1000
Thank you again!
PS is there a list of default parameter values documented anywhere? How did you find this?

Basically it can be used to set and cmdlet/function's default parameter values for the session. The syntax is $PSDefaultParameterValues['Cmdlet-Name:ParameterName'] = $value -- and note that you can use wildcards for cmdlet or parameter names, so for example you could enable -Force by default for all *Item commands (get-item, get-childitem, etc) with: $PSDefaultParameterValues['-*Item:Force'] = $true

Opened #15474 to track the future enhancement. 🙂

As is called out in https://github.com/PowerShell/PowerShell/issues/15404#issuecomment-849674486, we should make this workaround more discoverable by updating the powershell help docs.
@rkeithhill has volunteered to open issues regarding this in the PowerShell-Doc repo, thanks @rkeithhill!


Memory occasionally has a random number generation error

This happens often. Let's find out why.

The issue seems to be here. Despite the fact that n is just the batch size, and that should always be 32, giving priority_segment a constant value, sometimes priority_segment shoots up to nan.
https://github.com/AnimeshSinha1309/quantum-rl/blob/e1baa99e274409bf63b3c7bfb3f1bff737724c23/qroute/environment/memory.py#L85

Nope, it's because self.tree.total_priority is nan. Finding out why.


make input underline thick when in error state.

also add underline ripple effect from the mocks
demo: https://mmalerba-demo1.firebaseapp.com/input
fixes #3490

Shouldn't it also be thicker under hover too?

And maybe it isn't as high of a priority and could be done later, but it looks like switching to error state should also trigger a ripple. Seen here


Cannot read property style of Undefined

When i use StripeCheckout in expo and run then give me error property style undefined

Has there been any progress on this issue?

same issue

@amitkadivar1 @jcuanmeverquote @waqaramjad
The issue is stemming from line 85 from the expo-stripe-checkout index.js
Replace style: View.propTypes.style with style: ViewPropTypes.style and import ViewPropTypes from react-native import { WebView, Platform, View, ViewPropTypes } from 'react-native';

Hey! wondering if you could publish the latest master?

has the latest been published to master?


added snowflake support and url obfuscation

update dependencies
add snowflake url and cleanup unused urls
revise analytics to include direct urls as selected url events
urls included in events and logging are not obfuscated

🚢

revised this to use the new envoy version of the UrlUtil class: https://github.com/greatfire/envoy/pull/67  will need to make one more commit to update the dependencies when that version of envoy is published.


Let compiler generation fail for unproductive nonterminals

If nonterminals are unproductive the compiler generator does not fail but issues a warning only.
However, the subsequently running D compiler almost fail due to a missing method.
It would be appreciated if the compiler generator already fails for unproductive terminals and only succeeds if it is forced to do so (with command line argument "--force").
Example for reproduction:
Code = Code Code "ADD" | number "ENTER".

Expr <+ Code2>:
    Term <Code1> ExprTail<Code1,Code2>.

ExprTail<- Code1, + Code3>:
    "+" Term<Code2> ExprTail<Code1 Code2 "ADD", Code3>.
//ExprTail<- Code,  + Code>: .

Term <+ number "ENTER": Code>:
    number <number>.

number = "0" | "1".

number:
    <+ "0": number> "0"
  | <+ "1": number> "1".

The example results with epsilon in the following output:
denis@modula:~/tmp/epsilon$ ./epsilon expr-bnf.eag
info: Epsilon 1.02   JoDe/SteWe  22.11.96
info: SOAG-Evaluatorgenerator 1.06 dk 14.03.98
info: Analysing Expr
warn: 2 warnings
info: OK
warn: Analyser warnings on Expr's hyper-nonterminals:
warn: Expr unproductive
warn: ExprTail unproductive
Predicates in     Expr:  none.
ELL(1) testing    Expr   ok
SLEAG testing   Expr   ok
info: ScanGen writing Expr
info: compile ExprScan.d
ELL(1) writing   Expr   +rc +ct info: compile Expr.d
dmd Expr.d ExprScan.d -g include/runtime.d src/epsilon/io.d src/io.d src/log.d src/epsilon/soag/listacks.d
Expr.d(627): Error: undefined identifier P0, did you mean function P1?

It's because the start symbol is not productive, so that no code is generated for it!
Strange things happen, if you forcefully set the start symbol to be productive (segmentation fault caused by infinite loop in error recovery mode).
When writing a grammar piece by piece, it can be helpful to generate compilers even if there are non-terminals that are not (yet) productive ("unfinished business"). Therefore, the compiler generation should only be aborted if the start symbol itself is not productive.
(Later on, we can add a general option "treat warnings as errors" for finished grammars.)

You mean, I should adapt the PR #12 to report an error only if the start symbol is affected?
However, if a different non-terminal than the start symbol is affected, a warning is sufficient and a compiler should be generated and D-compiled.


Parse and index packet's DCSP CS field value

Is your feature request related to a problem? Please describe.
Currently Moloch/Arkime doesn't index and store values of DSCP/TOS fields (DSCP CS in particular) of the packet in the ES database, however this feature would be extremely useful to graph and perform deep analytics of the QoS queue utilization for network links in SPI graph section of viewer web interface. At this moment we have to filter out the interesting application traffic from Moloch web-interface (indexed data) and then we have to download and poke through the sample pcap to get the dscp fields. This might not be the option for some historical analysis as for some of our busy nodes pcap storage is limited for less than 24 hours while indexed data can be stored much longer.
Describe the solution you'd like
Having the DSCP Class Selector field of the IP header parsed, indexed and stored in the ElasticSearch. to make it appear as additional column in Sessions view and to build graphs based on these fields' values in the SPI Graph view.
I assume this feature would be really handy for all network engineers who are using Moloch/Arkime to analyze link loads.
Describe alternatives you've considered
Elastiflow is able to parse dscp fields from Netflow entries and push these values into the ES instance for further analysis.
Additional context
DSCP CS filed is part of every IP packet header as per the IETF RFC2474.
Thanks!

Please provide sample pcaps or links to sample pcaps.
Since this is a field that can be different in every packet what should we do about different values?
Should the value be value be tracked differently per direction?

Please provide sample pcaps or links to sample pcaps.
Since this is a field that can be different in every packet what should we do about different values?
Should the value be value be tracked differently per direction?

It would be handy if there are three fields in the database for each session, like src.dscp - list of values for one direction,  dst.dscp - list of values for another direction and dscp (combined list of values). In "ideal" world these values should be equal to one class for the session, while if there are more than one values in each field or src.dscp != dst.dscp this is a fair indicator that something goes wrong with qos setup. I've attached sample pcap and a screenshot to illustrate these fields:
example_assymetrically_dscp_marked_traffic.zip


When I use RDN as the generator for training, the details of the generated image will appear R, G or B color spots.

Hello, I have a problem. When I use RDN as the generator for training, the details of the generated image will appear R, G or B color spots. Have you encountered similar problems. BI down sampling is used for low resolution images, and this problem will not occur using residual network.


use 64 bits in btf that is used by transforms

ax + by can get into the signed range.
https://bugs.chromium.org/p/aomedia/issues/detail?id=2151
32-bit will be fine for simd.
"In terms of hardware and vectorized implementations, this shouldn't cause any issues - you'll still get the correct result as long as you calculate everything using wrapping 32-bit arithmetic. But the assertion should be modified or removed, and an appropriate comment added."

We can just use the explicit overflow behaviour as well. Willing to go his way?

[ ] write the benchmarks
[ ] see how using wrapping overflow compares
[ ] see how using 64bit compares

(I can help if you feel that it is too confusing)


Review of Known limitations is due?

The Known limitations section hasn't changed in a long time. I think this should be reviewed and updated, as hopefully some limitations are gone after review/testing. These two for sure should be reviewed:

"The new Teams 2.1 preview client gets blocked after sign out due to a bug. This bug should be fixed in a future service update." - This client isn't Preview anymore - it is GA and the old Teams client will be out of support as of July 1, 2024. I'd sure hope this was fixed before going GA. My org is all new Teams client with a Token Protection CA policy on, and we've had no reports of this issue.
"Windows-based Microsoft Teams Rooms (MTR) systems" - I submitted this originally as my org found it in our early testing. Now that MTRs have been upgraded to the new Teams client as of MTR v<IP_ADDRESS> (see https://learn.microsoft.com/en-us/microsoftteams/rooms/rooms-release-note?tabs=Windows#501110-4242024), are they still unsupported? Someone should retest.

I also hope PowerQuery extension for Excel has been addressed or is on a backlog in the Excel team to be addressed soon. Please add a more specific status of it if not yet fixed, to acknowledge the Excel team will eventually deal with it.
Thank you.

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

ID: 9ec45091-ab65-7d9d-8915-26f5e56aa274
Version Independent ID: 13a637da-8ded-72a0-464c-61efdef2a199
Content: Token protection in Microsoft Entra Conditional Access - Microsoft Entra ID
Content Source: docs/identity/conditional-access/concept-token-protection.md
Service: entra-id
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@DJHowellCA
Thanks for your feedback! We will investigate and update as appropriate.

@DJHowellCA
Thank you for your feedback!
I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.
[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows.
[Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1)
Thank you for your time and patience throughout this issue.


ImportError DLL load failed: The specified module could not be found

Im on windows 64bit,
Have installed python 3.5 and cannot load the Fiona module (Fiona source is from Golke: Fiona‑1.7.1‑cp35‑cp35m‑win_amd64.whl)
GDAL is also from Golke, first I had GDAL‑2.0.3‑cp35‑cp35m‑win_amd64.whl, but after an update to GDAL‑2.1.2‑cp35‑cp35m‑win_amd64.whl it fails to load as well.
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-5228042b14eb> in <module>()
----> 1 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator

c:\python35\lib\site-packages\fiona\__init__.py in <module>()
     74 except ImportError:
     75     pass
---> 76 from fiona.collection import Collection, BytesCollection, vsi_path
     77 from fiona._drivers import driver_count, GDALEnv
     78 from fiona.drvsupport import supported_drivers

c:\python35\lib\site-packages\fiona\collection.py in <module>()
      6
      7 from fiona import compat
----> 8 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
      9 from fiona.ogrext import Session, WritingSession
     10 from fiona.ogrext import (

ImportError: DLL load failed: The specified module could not be found.

p.s I've another win 64-bit system running Fiona 1.7.0 with GDAL just fine
add. Hm, using the Fiona 1.7.0 wheel it als fails on my windows system (windows server 2012)

Have you tried uninstalling fiona, gdal and eventually rasterio and installing the latest version again? I got this kind of error message when I upgraded gdal without recompiling fiona.

I forced to install newest gdal from golke (pip install gdal.xx.xx.whl --upgrade) and also the whl from fiona (pip install fiona.xx.xx.whl --upgrade) and after that I could import all modules. Issue can be closed

Thanks for following up @mattijn!

i seem to run into this issue as well
Using:
GDAL-2.1.2-cp27-cp27m-win32.whl and
Fiona-1.7.1-cp27-cp27m-win32.whl
on a win 8 machine (with python 2.7), running from git bash.
Uninstalling, wiping the venv or running the upgrade as @mattijn suggested does not wor either
Traceback (most recent call last):
  File "importer.py", line 4, in <module>
    import fiona
  File "D:\code\dvh2-prototype\venv\lib\site-packages\fiona\__init__.py", line 76, in <module>
    from fiona.collection import Collection, BytesCollection, vsi_path
  File "D:\code\dvh2-prototype\venv\lib\site-packages\fiona\collection.py", line 8, in <module>
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The specified module could not be found.

i tried re-installing python (this time 64 bit) and installing the 64-bit versions, same error. Also tried
Fiona-1.7.1-cp27-cp27m-win_amd64.whl, still no luck

Have you installed the Microsoft Visual C++ 2008 redistributable packages?

Many binaries depend on numpy-1.11+mkl and the Microsoft Visual C++ 2008 (x64, x86, and SP1 for CPython 2.6 and 2.7), Visual C++ 2010 (x64, x86, for CPython 3.3 and 3.4), or the Visual C++ 2015 (x64 and x86 for CPython 3.5 and 3.6) redistributable packages.

From http://www.lfd.uci.edu/~gohlke/pythonlibs/

I had a similar error, that could be recreated with the following script on Windows 10 x64, Python27:
rmdir C:\VirtualEnvs\test /S /Q
md C:\VirtualEnvs\test
cd C:\VirtualEnvs
C:\Python27\Scripts\virtualenv test
C:\VirtualEnvs\test\Scripts\activate
python -m pip install pip -U
pip install D:\Installation\Python\GDAL-2.2.4-cp27-cp27m-win_amd64.whl
pip install D:\Installation\Python\Fiona-1.7.13-cp27-cp27m-win_amd64.whl
python -c "import fiona"

Caused:
(test) C:\VirtualEnvs>python -c "import fiona"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\VirtualEnvs\test\lib\site-packages\fiona\__init__.py", line 77, in <module>
    from fiona.collection import Collection, BytesCollection, vsi_path
  File "C:\VirtualEnvs\test\lib\site-packages\fiona\collection.py", line 9, in <module>
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The specified module could not be found.

As hinted at above The solution for was to install numpy:
pip install numpy
Then all imports etc. were fine. Is numpy a required dependencyfor fiona?

I have the same issue on Windows 10 in an Anaconda environment.  I have tried to update both with conda update and nothing has changed.
fiona 1.8.6
gdal 2.4.2


Consolidate the error behaviour for required args.

This adds the argument name to the validation exception.
Required args errors can now be overridden, thus following the
existing argument API.
Some personal notes...
Current error messages are spread all-over the codebase.
I suggest adding the messages to the validation exception class
as class attributes. This should provide an easier way to customize
general error messages and make it easier to refactor/test things.
Thanks in advance for reviewing the changes.

Thanks @stas. I will look at this more closely within the next day or two.

It may make sense to use a similar API to marshmallow's (see https://github.com/marshmallow-code/marshmallow/issues/78) whereby the required validation message can be different from the "user" validators' message.
It would look like:
args = {
    'username': Arg(str, required='Must provide username',
        validate=lambda v: len(v) > 6, error='Must be > 6 characters')
}

Current error messages are spread all-over the codebase.
I suggest adding the messages to the validation exception class
as class attributes.

Yes, I think that would be an improvement. Would you like to send that change in a separate PR?

It may make sense to use a similar API to marshmallow's (see marshmallow-code/marshmallow#78) whereby the required validation message can be different from the "user" validators' message.

Alright, this sounds good.

Yes, I think that would be an improvement. Would you like to send that change in a separate PR?

Yep, I'll try to make some time. Worst case, I will add an issue with a reference to this discussion.
Thanks for all the help with this!

Pass finished. :+1: Some minor refactoring and this should be good to merge.

@sloria, could you take another look.
I didn't want to move the required argument message handling in a separate method, instead I tried to find a way to avoid handling required args in two places. To my despair I think there's something wrong with the way nested args are being handled now, I would say it is a little smelly.
This looks like a chicken and the egg problem. I believe the parser should be responsible for handling all the missing required args errors and leave args outside of this.
I would suggest leaving this the way it is now (or move the error extraction part right inside the  RequiredArgMissingError constructor) and add a todo task for future, describing some ideas how this can be improved.
Please let me know what you think.
And thanks for all the feedback so far.

I agree that the nested arg handling could use some work, but that's for another PR. =)
In the meantime, I still think you could reduce the duplication with a simple helper function. Something like:
def _raise_required(arg, arg_name):
    if isinstance(arg.required, basestring):
        msg = arg.required
    else:
        msg = 'Required parameter "{0}" not found.'.format(arg_name)
    raise RequiredArgMissingError(msg, arg_name=arg_name)

@sloria last review please :)

Thanks @stas!


Optimize unit tests

Description

#1170
Related Issues

Checklist

[ ] Is this code covered by new or existing unit tests or integration tests?
[ ] Did you run make test successfully?
[ ] Do new classes, functions, methods and parameters all have docstrings?
[ ] Were existing docstrings updated, if necessary?
[ ] Was external documentation updated, if necessary?

Additional Notes or Comments

Codecov Report
Attention: 297 lines in your changes are missing coverage. Please review.

Comparison is base (cbe6b32) 78.22% compared to head (a4e18dd) 79.90%.
Report is 140 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1204      +/-   ##
==========================================
+ Coverage   78.22%   79.90%   +1.68%
==========================================
  Files         101       95       -6
  Lines        6351     6535     +184
==========================================
+ Hits         4968     5222     +254
+ Misses       1383     1313      -70

Files
Coverage Δ

superduperdb/__init__.py
100.00% <100.00%> (ø)

superduperdb/__main__.py
71.42% <100.00%> (ø)

superduperdb/backends/base/backends.py
100.00% <100.00%> (ø)

superduperdb/backends/ibis/field_types.py
100.00% <100.00%> (ø)

superduperdb/backends/mongodb/__init__.py
100.00% <100.00%> (ø)

superduperdb/base/config.py
100.00% <ø> (ø)

superduperdb/base/cursor.py
92.15% <ø> (ø)

superduperdb/base/datalayer.py
68.30% <ø> (ø)

superduperdb/base/document.py
93.33% <ø> (ø)

superduperdb/base/exceptions.py
100.00% <ø> (ø)

... and 22 more

... and 78 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

After this PR merged, then I will start to optimize UT of classes

PTAL thanks @blythed @thejumpman2323


Way to force channel name also in Title, not only on Name

Is your feature request related to a problem? Please describe.
I would like to be able to align the Titles as we can do for Names. Actually, if the providers are publishing the same channel, but the Title has a different case, the mapping only force the Name Value, the Title seems to be a captured group :shrug:(?) from the regex. This lead to the channel title be rendered differently for the same channel. In some cases, I saw the channel "mis-"ordered in kodi because it sorts matching case...
This a simulation of what I get: (mind the Title values)
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD]" group-title="PROV1|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", TF1 HD
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD]" group-title="PROV2|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", Tf1 HD

Describe the solution you'd like
I would like to be able to force the Title value. In my case having it the same value as Name would be fine for me
Expected output: the Titles to be the same
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD]" group-title="PROV1|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", TF1 HD
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD]" group-title="PROV2|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", TF1 HD

I'm not sure what would be best in the config file to represent that, sorry :shrug:
Describe alternatives you've considered
I'm living with it :cry:
Additional context
Implementation may conflict with #9? I technically would be able to use both features at the same time ->
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD] - PROV1" group-title="PROV1|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", TF1 HD - PROV1
#EXTINF:-1 tvg-id="TF1.fr" tvg-name="TF1 [HD] - PROV2" group-title="PROV2|FR|TNT" tvg-chno="1" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/TF1_logo_2013.svg/320px-TF1_logo_2013.svg.png", TF1 HD - PROV2

I have refactored mapping. The mapping.yaml is now different.
mapper has the following top level entries:

pattern
attributes
suffix
prefix

pattern is like the filter statement  (you can use capturing groups) now you can match Name, Title, Group and Url
attributes is a map of new values to be set. You can now set

name
group
title
logo
id
chno

The value is set as given, no replacements.
preifx and suffix:  are maps of values used as prefix/suffix for a field. You can set

name
group
title

prefixand suffixcan have a special text <tag> which will be replaced by the  tag-text which is defined by the tag part.
Have a look at the  mappings.yml.
Is this enough for doing what you want ?

The special text is now  tag:tag_name where tag_name is the unique name given in the tag definition.
Now it is possible to  use multiple tags.
Example:
You have defined two tags named quality and bubblegum then you can use them togehter
  suffix:
      name: <tag:quality> <tag:bubblegum>

i have added assignments property to mapper.  After applying attributes, suffixand prefix it is now possible to assign properties to other properties.
  assignments:
      title: name

This will assign the value of name to title.

At first glance, that looks fine, thanks

I've implemented it, in the usaual mapping.yml we share, but it's really repetitive :( however working...

Do you have any other idea ?

What about having it at top level, and allow eventual local overrides in .mappings.mapping[]. That could looks like:
mappings:
  assignments:
     title: name
  mapping:
        - pattern: 'Name ~ "!start!TF1!~!Series?!~!(Films?)?!end!" OR Name ~ "!start!HD1!end!"'
          attributes:
            name: 'TF1 Séries Films'
            id: 'TF1SeriesFilms.fr'
            chno: '20'
            logo: 'https://upload.wikimedia.org/wikipedia/commons/d/d4/Logo_TF1_S%C3%A9ries_Films_2018.jpg'
          suffix:
            group: 'FR|TNT'
          assignments:
             title: group

BTW, the released binaries for 0.9.7 are showing 0.9.6 internally
$ /tmp/m3u-filter --version
m3u-filter 0.9.6


Extend ServerCall.Listener to enable usage of rpc calls in ServerInterceptor without blocking

…erceptor without blocking.

This change is

a discussion (no related file):
Previously, SanjayVas (Sanjay Vasandani) wrote…
Can you describe exactly what was happening here and how this helps fix it? I'm not entirely certain how having the delegate initialized late vs. in the constructor addresses the issue.

@sanjayvas I need to get rid of runblocking, but since rpc calls are suspend functions they need to be run in a coroutine. If I just create a coroutine and use the default listener, since I am not blocking the interceptor will move on regardless of whether or not the rpc call finishes and the following code dependent on it runs. With this listener, the interceptor cannot move on to the next step until the rpc call finishes. It is best to just look at the way I use it in the other pull request I have.

a discussion (no related file):
Previously, SanjayVas (Sanjay Vasandani) wrote…
I see how it's being used, but I can't verify how it solves the problem and if this is the best approach without knowing what caused the deadlock. e.g. which two things were interfering?
Given that the deadlock was appearing in GHA and not on your local machine, my guess was that it had something to do with Dispatchers.Default and the number of cores. This implies that two things that conflict are using the same dispatcher, e.g. if interceptors run in the same dispatcher as that used to handle incoming RPCs or having the public server interceptor and internal server interceptor both blocked. I figured this could be solved simply by ensuring all RPCs made by all interceptors use Dispatchers.IO.

Runblocking always blocks regardless of which dispatcher is used: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html

a discussion (no related file):
Previously, tristanvuong2021 (Tristan Vuong) wrote…
Runblocking always blocks regardless of which dispatcher is used: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html

Changing the dispatcher just changes what runs the code inside the runblocking block, but doesn't prevent the runblocking itself trying to block the current thread.


Nested SQL block comments not formatted correctly

Issue Type: Bug
Open a new tab, change the language to SQL and paste the following:
/*
/*
SELECT 'hello1'
*/
SELECT 'hello2'
*/
SELECT 'hello3'
If the formatting was correct, the hello2 line would also be green however it is displaying as if it's uncommented (when it's not). The only uncommented (non green) line here should be the last one with 'hello3'
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.89GB (20.36GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

Are you sure this code is correct and not just error swallowed by DB?
Haven't seen language that supports nested comments, therefore first all /* inside comment are just text and first */ will end multiline comment. In your case you just have extra */ in the middle of  your code.

If you copy and paste the code I provided into SSMS, the formatting is different to how it is being displayed. If you also execute the code in SSMS, the only result you get back is 'hello3'. The issue i've raised isn't about the code being correct, it's the formatting display for SQL language which clearly shows SELECT 'hello2' as being not being commented whereas it is actually commented.
In SSMS (with results):

In Visual Studio Code:

It's valid in T-SQL and looks like PostgreSQL also allows nested comments in most cases, on the other hand it's not supported in MySQL.

Moved to the repo that owns the grammar we use for SQL: https://github.com/microsoft/vscode-mssql/issues/1654


option to specify rate limit

some users may have higher rate limits: https://www.regulations.gov/faq
delays should default to the default rate limit with local and global options to change it.
we may also want to provide an option to provide multiple keys to cycle through, in wich case the delay will be divided by the number of keys provided

Since functions now take rate limits into account automatically, we no longer need an option to specify rate limits, but it would still speed things up to be able to cycle through keys.

get_searchTerm_batch.R implements this with an argument "api_keys" replacing "api_key" and adding the following to the
# EXTRACT THE MOST RECENT x-ratelimit-remaining and pause if it is less than 20 (since we call 20 pages at a time)
  remaining <<-  map(result, headers) |>
    tail(1) |>
    pluck(1, "x-ratelimit-remaining") |>
    as.numeric()

  if(remaining < 20){

    message(paste(Sys.time()|> format("%X"), "- Hit rate limit, will continue after one minute"))

    # ROTATE KEYS
      api_keys <<- c(tail(api_keys, -1), head(api_keys, 1))
      api_key <- api_keys[1]
      message(paste("Rotating to api key", api_key))

    Sys.sleep(60)
  }

FYI, @mzkhuzam2 -- I made breaking changes to get_comment_details. It now requires an api_keys argument. It should be able to use an api_keys object in the environment as the default, but that was not working for me for some reason. Either way, an "api_key" object in the environment is no longer sufficient, though perhaps we should make that the default instead.

Currently, when a rate limit is hit, we rotate keys AND pause for one minute.
A better approach would be to rotate keys without pausing and then, if it rotates through all of them in less than an hour, pause. This could be done by storing the last key and a timestamp at the very beginning and then whenever the last key is hit, it pauses and resets the timestamp.
At the start:
time <<- Sys.time()
last_key <<- tail(keys, 1)

Inside the batch
if(sys.time() - time < 1 hour & api_key = last_key * remaining == 0){
message("Tried all api keys, pausing for one minute" )
sys.sleep(60)
time <<- Sys.time()
}

in get_comment_details, keys either failing to rotate or failing to rotate in the message, and the message being triggered is behaving oddly, with the two messages saying different things. It seems that the "trying again" message is correct since these date did come through:
| EPA-HQ-OAR-2021-0317-0188 | status: 429 | limit-remaining 0 |
429 - rotating api key to 2
| Trying EPA-HQ-OAR-2021-0317-0188 again | now 200 | 672 remaining |
| EPA-HQ-OAR-2021-0317-0187 | status: 429 | limit-remaining 0 |
429 - rotating api key to 2
| Trying EPA-HQ-OAR-2021-0317-0187 again | now 200 | 671 remaining |
| EPA-HQ-OAR-2021-0317-0184 | status: 429 | limit-remaining 0 |
429 - rotating api key to 2
| Trying EPA-HQ-OAR-2021-0317-0184 again | now 200 | 670 remaining |


Prototype pollution vulnerability

Minimal reproduction:
var camelize = require("camelize");

var json = {
  ____proto____: {
    isAdmin: true,
    toString: null,
  },
};

var response = camelize(json);

console.log(response); // {}

console.log(response.isAdmin); // true
console.log(response.toString()); // TypeError: response.toString is not a function

Disclosed responsibly because this was deemed as not a vulnerability by the maintainer on January 12, 2023 via Tidelift's email communications. I originally forgot about the issue last year, but after noticing that a prototype pollution vulnerability was found and reported with a CVE by the maintainer in minimist I found the motivation to post publicly.

Indeed, it’s not prototype pollution because that term describes polluting shared prototypes. Nobody cares if you hijack the prototype of an object you create.


IGMPv2

Working example of IGMPv2 protocol.
Short summary:

subscribing to and leaving from multicast groups is now handled by the application layer (similar to Linux mreq struct and sockopt())
smoltcp only automatically responds to group membership requests (and at this point in a limited way - see comments in the code)
I am providing a multicast example to illustrate how this could be used
decided to enable IGMP by default since it is an important protocol (although it should be possible to disable it)
still uncertain how to handle timers and how to propagate the states (i.e. when group subscription changes). Ideally this would be handled automatically based on what address is a socket bound to similarly to join_multicast()

Caveats:

missing framework for managing timers (like when a membership report has to be sent at some time in the future rather than immediately)
I know about the hash set back end, I would like to replace it with some generalized Cache based on a ManagedSlice
the TTL value for group query has to be set to 1, and to 255 for membership report (according to Wireshark and RFC 3717)

Other protocol implementations:

see for example picotcp (for IGMPv3)

Of course the build fails now because it depends on std.

@whitequark sorry I didn't get back to this for a while - I had to focus my attention elsewhere. I will revisit this PR in January, I am excited to get IGMP merged.

@podhrmic Ping?

Yep, sorry for the delay. I am working now on adding a seL4 backend for smoltcp so that should be an interesting addition. Then I should be able to get back to this. But if you want to clean up the stale PR's, I am ok with closing it (the list of merge conflicts is getting longer) and then making a new PR later. Thoughts?

Sure.


it should be able to edit the yaml file online when creating service using yaml file.

In GitLab by @luotian-github on Jun 12, 2018, 15:51
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.

In GitLab by @liyanq528 on Nov 8, 2019, 07:52
fixed by pull request #1452

In GitLab by @sokril on Nov 8, 2019, 08:23
closed

In GitLab by @sokril on Nov 8, 2019, 08:23
assigned to @tmon546596046

In GitLab by @liyanq528 on Nov 11, 2019, 09:07
mentioned in merge request !604

In GitLab by @liyanq528 on Nov 12, 2019, 02:42
mentioned in merge request !991

In GitLab by @liyanq528 on Nov 13, 2019, 07:44
mentioned in merge request !654

In GitLab by @liyanq528 on Nov 13, 2019, 09:09
mentioned in merge request !1229

In GitLab by @liyanq528 on Nov 13, 2019, 11:07
mentioned in merge request !901


MacVim / Norton Firewall Issue

My apologies if this isn't the right forum for this, but I thought I'd at least start here...
I use Norton Internet Security as a firewall for my Mac, and with a recent update to MacVim (via Homebrew), I've been receiving the following warning approximately every 10-15 minutes, and it won't go away regardless of whether I click accept or decline...

Is this a possible issue in MacVim? Or should I reach out to Norton about this? Other ideas?
Again, sorry for wasting time if this is the wrong forum, but thanks in advance for at least having a look.
Update
Here's where I see the files in question:
/usr/local/Cellar/macvim/8.0-127/MacVim.app/Contents/Resources/vim/runtime/autoload/decada.vim
/usr/local/Cellar/macvim/8.0-127/MacVim.app/Contents/Resources/vim/runtime/compiler/decada.vim
/usr/local/Cellar/vim/8.0.0386/share/vim/vim80/autoload/decada.vim
/usr/local/Cellar/vim/8.0.0386/share/vim/vim80/compiler/decada.vim

Please take a look at https://github.com/macvim-dev/macvim/issues/366
And you can stop auto update (Sparkle) https://github.com/macvim-dev/macvim/wiki/FAQ#how-can-i-disable-autoupdate-sparkle
Please let me know if you find something suspicious.


Optional One to Many relationship support

Is it possible to have a predicate for an optional one to Many relationship?
An example of what I'm trying to achieve is this
I want to get the objects without a relation
class NoteGroup: NSManagedObject {
    var notes: [Note]?
}

class Note: NSManagedObject {
    var group: NoteGroup?
}

let predicate = (\Note.group) == nil

unfortunately that currently doesn't work since NoteGroup is not a primitive type so it can't be passed as a fetch where condition

Hey! Thanks for opening this issue. I'll look into adding support for something like this. Will update this issue with my findings.

Fixed in 1.4.0.
You should be able to write the following once you update to 1.4.0 @omiz.
let predicate: Predicate<Note> = \Note.group == nil

If you store your predicate in a variable, you may need to explicitly provide the type (as in the example above) to help the compile disambiguate between \Note.group == nil // => Predicate<Note> and \Note.group == nil // => Bool.


thread '' panicked at 'Client::new()

🐛 Bug Report
Just installed Wrangler with:
npm install -g @cloudflare/wrangler
First command used:
wrangler --version
returns:
wrangler 1.12.2
thread '' panicked at 'Client::new(): reqwest::Error { kind: Builder, source: Normal(ErrorStack([])) }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.10.8/src/blocking/client.rs:575:38
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Environment

operating system: Debian 10 (up to date)
output of rustc -V: command not found - installed it, then: rustc 1.41.1 (wrangler error unchanged)
output of node -v: v12.10.0
output of wrangler -V: see above
contents of wrangler.toml none yet

Steps to reproduce
repeating 'wrangler --version' gives same error message.
What did you expect to see?
wrangler 1.12.2
What did you see instead?
wrangler 1.12.2
thread '' panicked at 'Client::new(): reqwest::Error { kind: Builder, source: Normal(ErrorStack([])) }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.10.8/src/blocking/client.rs:575:38
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

After continuing the getting started doc with:
wrangler generate my-worker
(completed without any error messages)
the problem seems to be solved:
wranger --version
👷 ✨  wrangler 1.12.2
(No more error messages)

closing as dupe of #1743, more info in that thread


Replace Keys in .env

Client will need to set-up accounts and provide keys to replace the following:
VITE_RIVET_KEY=
VITE_EXPLORER_KEY=
VITE_GRAPH_API_KEY_MAINNET=
Bufficorn Ventures 2 Actual
VITE_TARGET_KEY=0x473ca6a81a5bbcdf235920f37bbcc24d9d5ff1e3

Started some instructions for the client: https://hackmd.io/PwTQ2GVkTH6_K1xMtbZeYg?view

Updated environment variables in Vercel
Updated

VITE_POLYGONSCAN_KEY
VITE_GRAPH_API_KEY_MAINNET
VITE_RIVET_KEY
VITE_TARGET_KEY

Removed

VITE_GNOSISSCAN_KEY
VITE_EXPLORER_KEY

Old Settings

New Settings


Set https the default on the debian keybase repository

It would be nice if Keybase used https:// instead of http:// when adding the Keybase repository to a system.

Here is why it’s not done via https:
[https://whydoesaptnotusehttps.com](Why apt doesn’t use https)
I guess they could implement it, but it doesn’t really protect like most people think https does.
TLDR:  “HTTPS can not detect if malicious tampering has occurred on the disks of the server you are downloading from. There is little point “securely” transfering a compromised package.” -from site linked above

CVE-2019-3462 and potentially other vulnerabilities and bugs beg to differ.

@jgreever
Worth also reading this thread about other issues people have encountered with not using HTTPS with repositories: https://news.ycombinator.com/item?id=18958679&p=2
In this case though, it's just the matter of replacing http:// with https:// because the latter already works and there's no good reason not to.

To start, I want to state that I DO NOT work for Keybase in anyway, just a person who loves to help out when I can.
There are many reasons why a company/person uses http over https. Personally, I don’t mind if it’s http vs https, but I do understand various potential security issues that can make a person feel safer with https.
The more attention to this request we can get might help Keybase implement an https apt repo.


v13.0.0 new Player Phase System

Current coverage is 98.61%

Merging #261 into master will increase coverage by +0.48% as of fc3a1ab

@@            master    #261   diff @@
======================================
  Files           25      24     -1
  Stmts          376     360    -16
  Branches         0       0
  Methods         81      77     -4
======================================
- Hit            369     355    -14
  Partial          0       0
+ Missed           7       5     -2

Review entire Coverage Diff as of fc3a1ab

Powered by Codecov. Updated on successful CI builds.


BZ 1277883

@jlindop @csadilek @manstis
PR for BZ 1277883 - check if global directory is present before trying to create it . Same for the default workitem definition

I know the issue, I see the solution.. unfortunately I don't see any tests :(

@manstis It is hard to have Designer-specific tests for new project creation within the designer code itself. I can add tests in kie-wb do you think that would be better?

This is true, if you're looking at an integration test, but for a unit test you could manually invoke the createGlobalDirOnNewProject() method and check (1) the global files are only created once and (2) no FileAlreadyExistsException error is thrown.

Yes, it should be relatively easy to write a unit test for this method. Can you please add the test @tsurdilo?

@csadilek @manstis
test added

@csadilek I would like to go through all the tests and fix the assertNotNull where needed since the place/test in question is not related to this commit (is some old test). I think for the second comment the test should fail if that exception is thrown so it's good as it is now I think.

Changed the assert as requested and squashed commits into one.

+1, thanks for updating the tests @tsurdilo . @manstis do you want to take a look again, before I merge?

+1 to merge.

Thanks!
master: b665841062851844b4f6fc8757555edff58f5049
@tsurdilo, just a reminder if you want this for 6.3.x as well, please send a separate PR.


[Settings] check link "Request a function"

When I click on "request a function" on the General page in Settings, it opens https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=&template=feature_request.md&title=
When I open a new issue via GitHub, with the "Feature / enhancement request" title, I get https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=Triage-Needed&template=feature_request.yml

Hi @Jay-o-Way ,
Thank you for reporting it.
The button actually just calls https://aka.ms/powerToysRequestFeature , so it needs to be changed on that redirect.
@dedavis6797

Updated, thanks!


change NewClient to accept an *http.Client instead of token, httpRoundTripper

By accepting a http.Client we leave more of the http client configuration and configuration up to the API consumer.  For example, the oauth2.NewClient can now be passed in to provide Oauth2 client workflows (with client_id, client_secret, and refresh tokens).
In the examples and tests I am only making use of personal access tokens.

Relates to https://github.com/chiefy/linodego/pull/23

Tests won't pass from here, I think.  I'll merge this PR and PR against master.