chore(turborepo): add failing test for output-logs of cache:false tasks

Fixes #6677
Closes TURBO-1836

I won't be able to follow through on this right now, closing.


AddCommand() in python [$5]

---
There is a **[$5 open bounty](https://www.bountysource.com/issues/656-addcommand-in-python?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).

I encountered the same issue....

Why don't you circumvent the issue by implementing an independent command system in python?

That would be a possible solution, yes.
As for why, because noone did it?

Does this mean it isn't currently possible to do something like this:
/msg *module command
because it isn't possible to call AddCommand in a Python module?

OnModCommand() is still available, but you need to parse the line yourself.
вт, 19 мар. 2019 г. в 11:53, Philip Colmer<EMAIL_ADDRESS>
Does this mean it isn't currently possible to do something like this:
/msg *module command
because it isn't possible to call AddCommand in a Python module?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/znc/znc/issues/198#issuecomment-474331096, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAT15MtrkWYJoaQkAq8_0DBW9RNdjFmOks5vYM-0gaJpZM4AFEbH
.

@DarthGandalf thanks. If I add OnModCommand and send a private message to my module, I get:
This module doesn't implement any commands.
which seems to suggest that I still need to call AddCommand somehow, but I'm struggling with the parameters to give it. The call is insisting that I pass it a CModCOmmand::ModCmdFunc.
What am I misunderstanding here?

You don't just add it. You need to implement it. The default implementation
uses commands which were added via AddCommand().
CModCommand::ModCmdFunc is exactly why AddCommand doesn't work currently,
this is what this issue is about - to make AddCommand work.
вт, 19 мар. 2019 г. в 13:52, Philip Colmer<EMAIL_ADDRESS>
@DarthGandalf https://github.com/DarthGandalf thanks. If I add
OnModCommand and send a private message to my module, I get:
This module doesn't implement any commands.
which seems to suggest that I still need to call AddCommand somehow, but
I'm struggling with the parameters to give it. The call is insisting that I
pass it a CModCOmmand::ModCmdFunc.
What am I misunderstanding here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/znc/znc/issues/198#issuecomment-474379678, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAT15BUsPQEWZ1fuLlXArM5wKRW6USfDks5vYOuqgaJpZM4AFEbH
.

I'm sorry - I don't understand.
If AddCommand doesn't work then how do I implement OnModCommand? The code for the pyeval module just adds the function and has code to do processing when the function is called. I've added a definition for OnModCommand but it doesn't get called - I just get that error message displayed.
    def OnModCommand(self, message):
        print("OnModCommand")

Hmm … I've just realised that my OnModCommand is getting called as the print statement is being executed.
So what do I need to do to tell ZNC that the call has been handled? It is a void function and this is partly why I'm confused about this.

OK … if I call something like PutModule, I stop getting the error message about there not being any commands implementation. I think I'm OK with this now.


Issue when category slug & product slug are same

Bug report
Title
An application couldn't specify the different URL when the product slug & category slug are the same.
Issue Description
Getting category page when click on any product, as both category & product slug are same
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- put the same slug in both category and product
2. step2-  next, click to the product image in the shop view

Expected result

when we mention the same slug, then redirect URL should different.

Actual result

Dear @vaishaliwebkul
please excuse my contradiction: This is not a bug, it is just a question of configuration.
When a product or category link is clicked, the system has to determine, where the URL should direct to. And first, it has a look at all category slugs. If no category with the slug defined in the URL could be found, the system searches a product with that slug.
In the present case with a product and a category sharing the same slug, the system always will direct to the category. Something has to win the debate, and it is the category.
To prevent categories and products from sharing the same slug, one could add new validation rules: Before storing any slug, it could be checked in both, categories and products, for that slug to be unique. You possibly may open an according issue?
Anyhow, for good reasons, slugs can be changed by admins. For now, I propose to change one of the slugs, e.g. to "t-shirt" with a dash, or to "T-Shirts" for the category.
Best regards,
Annika

This is definitely a bug and the reasoning above does not make much sense. Seeing that both Category Slugs and Product URLs are both fighting for the same root path there should be a check done to make sure both cannot be the same as the first occurrence will win (In this case the category slug). A user/admin should not have to wait until this happens to know that there is a conflict.
To prevent this, the core solution should give either the product or category a sub-path (product/{url} or category/{slug}) to prevent such a case.
A more SEO friendly solution should be implemented to allow for both packages to use the root path once the path is available. This should also allow other packages to utilize the root path as well they can tap into the validator to know whether or not the URL path is available.


[AutoDiff] NFC: minor cleanup after TF-1077.

Fix inaccurate test comment.

@swift-ci Please test tensorflow


Popovers not positioned correctly for absolutely positioned anchors

If an anchor has :position "absolute" styling (probably also "fixed". To be tested), the popover is positioned away from the anchor, and in some cases the anchor also changes position.

@Gregg8 are you still getting this issue in the latest version of re-com? I can't reproduce this issue in re-com version 2.13.2. Maybe it was fixed along the way?

@MawiraIke Still there. To reproduce, simply add:
:style {:position "absolute"} ;; or "fixed"

after the highlighted line in the following link:
https://github.com/day8/re-com/blob/master/src/re_demo/popover_dialog_demo.cljs#L77
Without the line...

WITH the line...

Thanks @Gregg8 let me try that.


Changed pk() types, replace 'null' with 'undefined'

Fixes #118  .
Motivation

I believe this is exactly what was asked for. I updated the docs as well and think everything is in order.
Solution

"One of the main purposes of SimpleResource.pk() is to pass as a key in React. However, React types keys as possibly being undefined - not null so the type should reflect that here."
Open questions

There's also a bunch of example pk() definitions in both the docs and tests that use | null now


feat: get variation details by variation type

Related https://github.com/bucketeer-io/bucketeer/issues/886
Changes

Create a new data class BKTEvaluationDetail<T> to support get variation details by variation type.
Introduce new interface to get variation details by variation typefun intEvaluationDetails(
  featureId: String,
  defaultValue: Int,
): BKTEvaluationDetail<Int>

fun doubleEvaluationDetails(
  featureId: String,
  defaultValue: Double,
): BKTEvaluationDetail<Double>

fun boolEvaluationDetails(
  featureId: String,
  defaultValue: Boolean,
): BKTEvaluationDetail<Boolean>

fun stringEvaluationDetails(
  featureId: String,
  defaultValue: String,
): BKTEvaluationDetail<String>

fun jsonEvaluationDetails(
  featureId: String,
  defaultValue: JSONObject,
): BKTEvaluationDetail<JSONObject>

The class BKTEvaluation & the method getEvaluationDetails will be deprecated after this PR.

@duyhungtnn, please fix the conflict.

@cre8ivejp I fixed the conflict.

@duyhungtnn, sorry for asking for these changes so late.
Can you rename the interfaces as follows? The idea is to keep the same name as the non-details interfaces, too.
E.g.
intVariation("id", 0)
intVariationDetails("id", 0)

fun intVariationDetails(
  featureId: String,
  defaultValue: Int,
): BKTEvaluationDetail<Int>

fun doubleVariationDetails(
  featureId: String,
  defaultValue: Double,
): BKTEvaluationDetail<Double>

fun boolVariationDetails(
  featureId: String,
  defaultValue: Boolean,
): BKTEvaluationDetail<Boolean>

fun stringVariationDetails(
  featureId: String,
  defaultValue: String,
): BKTEvaluationDetail<String>

fun jsonVariationDetails(
  featureId: String,
  defaultValue: JSONObject,
): BKTEvaluationDetail<JSONObject>

hi @cre8ivejp
Please help me to take a look at this PR.
Changes

Added a new data class BKTValue to reference a JSON node value
Added a new method

fun objectVariationDetails(
 featureId: String,
 defaultValue: BKTValue,
): BKTEvaluationDetails<BKTValue>

Removed the method jsonVariationDetail
Deprecated the method jsonVariation

New changes

Add support to return intValue even when the underlying value is a double https://github.com/bucketeer-io/android-client-sdk/pull/180/commits/b8c7ab9555485a668d94f1f0e7f5c6a701c8413e

New changes
keep the detail interface right after the non-detail interface


Angle axis in polar axis not rendering negative values correctly

Version
4.6.0
Steps to reproduce
option = {
    angleAxis: {
        type: 'category',
        data: ['S1', 'S2', 'S3']
    },
    radiusAxis: {
        min:-1,
        max: 3

    },
    polar: {
    },
    series: [{
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        itemStyle:{
            color:"blue"

        },
        name: 'A',
        stack: 'a'
    }, {
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        name: 'B',
        stack: 'a'
    }, {
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        name: 'C',
        stack: 'a'
    }],
    legend: {
        show: true,
        data: ['A', 'B', 'C']
    }
};

What is expected?
Stack values should start at 0 and reflect correct values across the radius axis
What is actually happening?
Stack values resize and are forced to start at center of circle rather than 0 point of radius axis

I have located the problem at the file barPolar.js,  it seems that the value of baseCoord is incorrect. based on the code, baseCoord = valueAxis.getExtent()[0]; Howerver I can't find out the correct  variable to replace it. If anyone solves the problem, please @ me and give me a chance to learn, TX!

This case I have modified the data [1,1,1]to [2,2,2],and change the radiusAxis.min to 1, and found that the view is wrong.
This is my option:
option = {
    angleAxis: {
        type: 'category',
        data: ['S1', 'S2', 'S3']
    },
    radiusAxis: {
        min: 1,
        max: 6
    },
    polar: {
    },
    series: [{
        type: 'bar',
        data: [2, 2, 2],
        coordinateSystem: 'polar',
        itemStyle:{
            color:"blue"

        },
        name: 'A',
        stack: 'a'
    },
    {
        type: 'bar',
        data: [2, 2, 2],
        coordinateSystem: 'polar',
        name: 'B',
        stack: 'a'
    },
    {
        type: 'bar',
        data: [2, 2, 2],
        coordinateSystem: 'polar',
        name: 'C',
        stack: 'a'
    }],
    legend: {
        show: true,
        data: ['A', 'B', 'C']
    }
};

So I guess this ”min“ do not support value except 0.


irmin-pack: make instance sharing explicit

Do we still need this one?

Yes, AFAIK. Something like this is needed to fix https://github.com/mirage/irmin/issues/1017, which I believe is necessary for the layered store.

Closing this for now, until the day when we make a larger pass over the caching semantics of store constructors.


⚠ Bofrost.de has degraded performance

In cf09e74, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1625 ms

Resolved: Bofrost.de performance has improved in f47ab9f after 1 hour, 16 minutes.


fix: Hover Card and Tooltip delay open and close

[x] implement delay open and close behavior
[x] create open and close delayMs props

Behavior

[x] dont open if not hovered for the delay duration
[x] dont close if not hover outside for the delay duration
[x] handle wether open/close if hover over card/tooltip

closed #88


Add an option to pass a global config provider function

Fix for:

#137 How to set the the default options for the directive?

Hello there :)

Up :)

Up :D

@phazei , honestly I don't remember.
I think I would have tried to do this.


Different styles at mount/unmount

Hi! Thanks for this plugin!
I have tried AnimatedSwitch from the example, and it works fine with:
atEnter={{opacity: 0}}
atLeave={{ opacity: 0}}
atActive={{ opacity: 1}}
How exactly do I pass some other styles?
Let's say atEnter={{opacity: 0, color: 'red'}} does not work. What am I missing or doing wrong?

hi @ilya404! the objects that get passed into atEnter, atLeave and atActive are values that are to be interpolated by react-motion–thus the only valid value types are numbers. you should be able to make the color red inside of your component, perhaps based on some other piece of state.


more sophisticated scoring

if no one objects I would work on this
... just to be clear: I will do it! No one else should create a pull request! No. One.

Ideas from today's coding dojo

gadgets result object will get a new collection called 'stats'. A stat item consists of description, gadget reference, category, value und commit reference
value is a number between 0..1, 0..100 (0..100 might be a good idea, because we should stick to ints in the database + a resolution of 1 percent should suffice when it comes to precision)
category is an optional field
some tools (e.g. phpmetrics) already compute an overall score by themselves, for other tools the gadgets will have to implement a logical calculation by themselves.

anything I missed? @simplethings/simpspector

move to analyzer?

No, the analyzer will not provide a score.

great discussion :wink:

We had this discusion serval times :P

I know, therefore the emoticon :smile:

concept abandoned, we decided to improve details on badges instead


[Suggestion] Light/white ground EVERYWHERE

Could someone make a plug-in/code that changes the ground/floor into a very light color (for example: desert ground EVERYWHERE)?
The purpose is for dark places in runescape that make it hard to play/difficult to see in light real-life enviroments, to make it easier to see.
Perhaps also add the option to make the ground completely white.
If this is possible, could someone pm me (in-game name=cristo rei) when it is in the client and what the name is called?

You can turn up your brightness in runescape's settings menu, that might help

That does barely anything in places like wildy.


hello，I want to remote an windows app,but the winappdriver told me "unknown error Failed to locate opened application window with appId: E:\Program Files (x86)\Thunder Network\Thunder\Program\thunderstart.exe, and processId: 4896",please help me

hello，I want to remote an windows app,but the winappdriver told me "unknown error Failed to locate opened application window with appId: E:\Program Files (x86)\Thunder Network\Thunder\Program\thunderstart.exe, and processId: 4896",please help me

this is my code

Hi @freechenh,
Thanks for reaching out. For questions regarding WinAppDriver error responses like this in particular, we added a new section on our Wiki to address - please refer to here.
If that doesn't solve it for you, please continue to keep us updated on this thread.
Thanks


visa help

Hello, could you to provide visa support letter? We are team from RHT(https://russianhackteam.com)

Please send your request to<EMAIL_ADDRESS>


Added mythmaker.ai

Added mythmaker.ai; uses AI to procedurally generate text-based game content, but couldn't confirm whether the artwork is also AI generated or not.

The artwork is AI generated btw.


download progress (and solutions) for backup

Progress: what if FreeCodeCamp lost my progress? I'd have a backup of my own.

It's your data so theoretically this could be possible. In addition, there would probably only be a small group of users that keep own backups and therefore the downloads of big json-responses wouldn't be too much of a load for FCC's servers.
But the question is what FCC would do when users wanted to upload their own json-data to "restore" their progress. Because I see a possibility for users to exploit this functionality to add progress without achieving it.
At the same time, this backup of the progress would most likely only cover the basic concepts users work with for their own learning and not the projects or non-profit work which is what's required for the certifications. Therefore cheating would only hurt the users themselves and because of this situation, this would definitely be possible to implement.

We could start with downloads only. At least then if FCC lost data, users could "prove" their progress, and FCC would be in control of restoring progress, as opposed to letting users upload their own progress. I would encourage all users to download their progress.

@willnwhite let's assume we've implemented this. What if FCC "loses" your data and you still haven't downloaded it? Do you know when such a thing will happen? No, of course. And even if you regularly download your data lots of other campers won't do that. I'm not sure if we'll implemented this but I want @BerkeleyTrue to decide what to do with this issue.

A "back up your progress" download link in the "success" dialog box would help minimize the number of campers who hadn't backed up.

@willnwhite That's impractical. It's unnecessary UI clutter and we don't want someone downloading their entire user object from the db every time they finish a challenge.

We do plan on, eventually, providing a facility to export your challenges to GitHub.  This will not be coming soon, but it will be coming.

@ltegman Or progress could just be downloaded in the background after each challenge, without UI clutter. An array of integers of completed challenges would be small compared to a page load.

Especially if ranges were represented: [1, ..., 49, 51]

Closing this as we have GitHub export planned and challenges shouldn't be done for the sake of doing them, but for the sake of learning. If something catastrophic were to happen to the DB people should just pick up wherever their learning is without worrying too much about completing everything, since projects are what really matter (and those are stored outside the DB). Thanks and happy coding!

Is there a chance for just exporting them to GitHub?


More useful examples of Exclusions

Reading this page, I still have no idea how exclusions work. What is a "request attribute"? Is it a header? And what does it exclude? The header, or the whole request?
More specifically, I'd like to know:

Can we ignore specific query string parameters by name?
Can we ignore specific header values by name? The documentation makes it
Can we ignore the body of a request by hostname?

The examples using "abc" aren't helping to answer those questions. Also, having at least a few clues on how this should work in GitHub while the documentation is being written would be greatly helpful in the meantime.
Note that most of this have been asked in #19424 after it was closed, and was not resolved.

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

ID: c0c27cd7-15fd-7358-9740-734cfa6b641f
Version Independent ID: 9cbc5678-98e1-3c21-df0a-81d8b7e21241
Content: Web application firewall request size limits and exclusion lists in Azure Application Gateway - Azure portal
Content Source: articles/application-gateway/application-gateway-waf-configuration.md
Service: application-gateway
GitHub Login: @vhorne
Microsoft Alias: victorh

Also more specifically about this part:

Request Headers

Request Cookies

Request Body

Form multi-part data
XML
JSON

I have no idea what this refers to; is this the list of strings I can enter in the "Request attribute" field? If so, how does "Request Body" differs from "XML", since it will do a string comparison anyway?

@christianrondeau Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Regarding to this page, I have a lot of concerns.

As per: https://docs.microsoft.com/en-us/powershell/module/az.network/new-azapplicationgatewayfirewallexclusionconfig?view=azps-1.6.0. MatchVariable is not supported by "New-AzApplicationGatewayFirewallExclusionConfig". I suppose you have to update this command.

In example:  $exclusion1 = New-AzApplicationGatewayFirewallExclusionConfig -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "StartsWith" -Selector "xyz".
What does that mean? Is it the request header name contains "xyz" and then is whitelisted or something else?

The second example: $exclusion2 = New-AzApplicationGatewayFirewallExclusionConfig -MatchVariable "RequestArgNames" -SelectorMatchOperator "Equals" -Selector "a". Does this match a) or b) or both?
a) https://xx.xx.com/search?category=Category&a=hello
b) https://xx.xx.com/search?a=hello

I would like to suggest to add more scenarios, with request contents, and how to whitelist via WAF exclusion.
For example: If customer wants to whitelist https://xx.xx.com/search?a=hello, we can configure $exclusion2 = New-AzApplicationGatewayFirewallExclusionConfig -Variable "RequestArgNames" -SelectorMatchOperator "Equals" -Selector "a".

Thanks a lot!

I couldn't agree more with @christianrondeau and @oaas.
Based on this documentation I have no idea whatsoever how to accomplish a simple exclusion for specific request urls. I hope MS provides more thorough examples asap.

I had the same troubles with docs and wrote to support. I asked to show me some examples based on headers.
Case:
WAF blocks request because User-Agent is 'Arachni'. I want to pass these requests.

Exclusions talk about only parameter NAMES, not parameter contents, so you can’t only exclude “Arachni” from blocking, but you can just exclude “User-Agent” header, and the whole User-agent header will not be evaluated.
The same for request attribute.
Example:
curl -v -A "Arachni/v1.5.1" "http://--.northeurope.cloudapp.azure.com/"
HTTP/1.1 403 ModSecurity Action

rule exclusions:
Request header name --> Equals --> User-Agent
curl -v -A "Arachni/v1.5.1" "http://--.northeurope.cloudapp.azure.com/"
HTTP/1.1 200 OK
rule exclusions:
(this is how it does not work, because exclusion contains not only username, but also contents of the header)
Request header name --> Contains --> User-Agent: A
curl -v -A "Arachni/v1.5.1" "http://--.northeurope.cloudapp.azure.com/"
HTTP/1.1 403 ModSecurity Action
request attribute name -> equals -> q
curl -v "http://--.northeurope.cloudapp.azure.com/?q='>"
> GET /?q='><script>alert(1)</script> HTTP/1.1
> User-Agent: curl/7.55.1
< HTTP/1.1 200 OK

request attribute name -> equals -> q
(excluding q, but requesting b)
curl -v "http://--.northeurope.cloudapp.azure.com/?b='><script>alert(1)</script>"
> GET /?b='><script>alert(1)</script> HTTP/1.1
> User-Agent: curl/7.55.1
< HTTP/1.1 403 ModSecurity Action

@koraven Thanks for sharing! So the exclusion lists are basically for white listing http header fields and request params with no extra control over the content.. Sounds to me like it's better idea to disable individual WAF rules than to allow too loose control over those.

I don't agree that disabling rules is better. WAF just doesn't analyze header/param you specified. The rest of request will be analyzed.
There is good case in documentation

A common example is Active Directory inserted tokens that are used for authentication or password fields. Such attributes are prone to contain special characters that may trigger a false positive from the WAF rules.

So you just ignore these tokens. Or for example you have GET parameter which triggers WAF. You can just add it to exclusions. If you disable a rule it will be applied to whole request. Exclusions work for header/parameter only.

Well, here is one example I tried.
Application is making requests to following kind of url:
/WebResource.axd?d=x2nkrMJGXkMELz33nwnakBtj8_wwSb6SD2q3v6EXOnEehzSF5WulAH5VQWl1XV_235TYl9te0oW9jcos8nz_Yp1qxLQWEO3cE0E8Lo1q_R41&t=636849238732623132
Added exclusion rules for the params:
$exclusion1 = New-AzApplicationGatewayFirewallExclusionConfig -Variable "RequestArgNames" -Operator "Equals" -Selector "d"
$exclusion2 = New-AzApplicationGatewayFirewallExclusionConfig -Variable "RequestArgNames" -Operator "Equals" -Selector "t"
$firewallConfig = New-AzApplicationGatewayWebApplicationFirewallConfiguration -Enabled $true -FirewallMode Prevention -Exclusion $exclusion1,$exclusion2
When trying to query the url:
GET https://beta.terveystalo.com/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZJVzvP4rOWcZXejkHC3Oax6SCfEC3VvVelGSFWOLeefVRqVC-rB88uVxAfiW1ZdD2A2&t=636849238732623132 net::ERR_ABORTED 403 (ModSecurity Action)
-->
ruleId_s
920440
Message
URL file extension is restricted by policy
Excluding the params does not help in this case - there's a WAF policy that restricts specific file extensions.
Another case I'd need to tackle would be to exclude a specific url path, doesn't seem possible.

Hi All,
We have implemented WAF and getting some false postives for one of the web applications we have and hence in prevention mode 403 (log screenshot below). Can someone help with how I can get rid of these false positives so that we can get the web-application to work with WAF Prevention mode enabled

Additional info has been added:
https://docs.microsoft.com/azure/application-gateway/application-gateway-waf-configuration
https://docs.microsoft.com/azure/application-gateway/custom-waf-rules-overview
https://docs.microsoft.com/azure/application-gateway/create-custom-waf-rules
https://docs.microsoft.com/azure/application-gateway/configure-waf-custom-rules

#please-close

The documentation doesnt say that this is applicable only to V2 App Gateways and will not work with V1 App Gateways. Please point me where it has been updated to mention it. @vhorne

@ketaanhshah Did you found a way?

Is there any progress on this?

Is the short answer "You cannot create Azure WAF exclusions based on URL of the request?
This is a basic and fundamental feature.
A quick web search will reveal that "rule exclusion based on URL's" feature is available for Palo Alto, Cisco, Fortinet, Sophos and SonicWall firewalls since the beginning of time - not only in next-gen.

@koraven Thanks for sharing! So the exclusion lists are basically for white listing http header fields and request params with no extra control over the content.. Sounds to me like it's better idea to disable individual WAF rules than to allow too loose control over those.

This is NOT a better idea. Just because I identified that one request parameter on one page is generating a false positive for SQL injection on my application, shall I disable the entire rule? Or shalI I exclude that parameter for any URL? Sorry, but neither option sounds like a good idea. URL based exceptions existed since the beginning of time for all layer 7 firewalls but Azure WAF.

Regarding to this discussion:
I am searching for a solution to exlude certain requests based on the request body which is JSON. What we do is uploading a list of jailbreak rules to the application which is behind the Azure WAF. I have added a screenshot of the logs below where you can see why the requests are being blocked.

Is it possible to exclude the WAF from checking based on the body of the request? And if so, where can I find an example for this?
PS: I don't want to simply create an exlusion rule that excludes the WAF on /upload for example. I think that this would be unsafe.

Hello,
I am going through this thread and I am getting desperate.. What is the final verdict?
Can we make specific exclusions based on URL match or not?

Hello,
I am going through this thread and I am getting desperate.. What is the final verdict?
Can we make specific exclusions based on URL match or not?

Need to know this as well. At the moment, you can exclude URL for custom rules, but you can't do this for exclusion rules.

This is pretty poorly featured product.


How do you want to initialize polestar?

I think this will be a function you call, like
import vega
vega.polestar(dataframe)

Thoughts?

why vega.polestar?
Kanit "Ham" Wongsuphasawat
Graduate Student
Computer Science & Engineering
University of Washington
http://kanitw.yellowpigz.com
On Mon, Aug 10, 2015 at 11:48 AM, Dominik Moritz<EMAIL_ADDRESS>wrote:

I think this will be a function you call, like
import vega
vega.polestar(dataframe)
Thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/uwdata/ipython-vega-lite/issues/2.

So you can use this with polestar, voyager and vl.
Even better would be
import polestar
polestar.explore(dataframe)

import voyager
voyager.explore(dataframe)

and so on

Some thoughts, take them or leave them.
It might be best to converge on a short-ish library/package namespace under which everything can be imported. Given that this is going to target Jupyter, a workflow like the following makes a lot of sense with a name like jvega or some such:
$ pip install jvega
import jvega as jv

jv.polestar.explore(dataframe)
jv.voyager.explore(dataframe)

The vega-lite integration is going to be trickier, as folks will want to be able to specify actual chart types.

I agree with @wrobstory.
For vega-lite, I expect that inially users have to provide  dictionary that we simply convert to a vega-lite spec in JSON.


AudioChecklist Closes down after clicking start

I've tried using the checklists in both the Zibo 737-800 and LevelUP 737-700 using the ZiboDefault SOP, and both times after clicking the start button, the checklist shows for about one second and then closes. The LandingRate Plugin then show's its menu at the top as if the AudioChecklist crashed FlywithLUA, but it then immediately restarted.

I checked the log and attached it here. There appears to be a line near the bottom that says "AIRCRAFT/LEVELUP/737NG SERIES/LIVERIES/N904WN - SWA-HT/FlyWithLua Error: OpenAL source ID not found reloading scripts" after which it appears to commence a restart.
Log.txt


Compatibility with Python3.4

Should add Compatibility with Python3.4

Pushed back. The Plug-in system doesn't seem to like Python3 soooo let's delay the transition a bit (since there's still an abundance of new features to add).

hmmm...
One of these days I'll test it and fix it (I hope...)

Just a note. In the code added for v0.4.0_rc exec is used as keyword to undertake the dynamic code execution in the scope of the dynamically created module (the mechanism that allows zero disk interaction plugin installation). exec as a keyword seems to not be supported in Python 3. There is exec as a function that seems to be working the same way but I'll have to further test if it acts in the same manner. In any case, when/if we refactor for Python 3 this is one thing to keep in mind.

From what I've seen so far, Python2.7 is still the pre-installed version in most systems. Having this in mind coupled with the complexity and time requirement of maintaining two versions I'm closing this issue.


Fix fix limit execute before sort in show export job

Proposed changes
Problem:
When doing show export jobs, limit would execute before sort before changed. So the result would not be expected because limit always cut results first and we can not get what we want.
Example:
we having export job1 and job2 with JobId1 > JobId2. We want to get job with JobId1
show export from db order by JobId desc limit 1;
We do limit 1 first, so we would probably get Job2 because JobId assigned from small to large
Solve:
We can not cut results first if we have order by clause. And cut result set after sorting
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51 seconds
stream load tsv:          501 seconds loaded<PHONE_NUMBER>9 Bytes, about 142 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          28.7 seconds inserted 10000000 Rows, about 348K ops/s
storage size:<PHONE_NUMBER>1 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230710145342_clickbench_pr_175739.html

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.76 seconds
stream load tsv:          451 seconds loaded<PHONE_NUMBER>9 Bytes, about 158 MB/s
stream load json:         21 seconds loaded<PHONE_NUMBER> Bytes, about 107 MB/s
stream load orc:          56 seconds loaded<PHONE_NUMBER> Bytes, about 18 MB/s
stream load parquet:          29 seconds loaded 861443392 Bytes, about 28 MB/s
insert into select:          26.1 seconds inserted 10000000 Rows, about 383K ops/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230710065755_clickbench_pr_175668.html


Configura for test

This draft PR contains some various unrelated changes (different configuration, task optimisation, feature addition and deletion) I will create separate PRs to put relavant changes separately

This is no longer relevant and superseded by separate non-experimental PRs


Pingkick doesnt work

Currently the ping kick function takes forever to finally kick someone and as soon as they /reconnect in console they are no longer kicked by the bot and are left to play for as long as they like.

Can you easily reproduce the behaviour? For me it is working fine, high ping player is kicked as expected and a /reconnect will not protect him.
What is your value of "task_frequency" in file "conf/settings.conf"?
This is the interval for checking ping. So a high ping player will get kicked after max 4 x 60 secs if the task_frequency = 60

I tried 60, 45 and now currently on 30 but have yet to notice the problem happen again (most players are under 200ms)
Is there away to bypass the warnings and just kick a player after 2 or 3 checks that result is positive for high ping? (kicking provides a reason so i see no need to warn a player 3 times and take 4 mins to eventually kick them)

you can change the max value of ping...
no its in the code defined to warn everyone 3 times before kicking... you would need to change the code.
the ping warn counter will also be reset when the player has during the next check a better ping. a player will get kicked only in case he has for 3 intervals a bad ping.

well currently on my server there is a player playing for 9 mins with 225-250ms ping and no kick.
there is also a player that uses a vpn and consistently has 298ms all maps all day and never gets kicked, so im not sure its even working for me even though i enabled it and saw it work once ingame.

the autokick is working only for users and moderators, admins will never get kicked.
so if you have always a player on your server, I could add a admin command to check the his ping. maybe the detection is not working correct.
what is your value for "warn_expiration" ?
what is your value for "max_ping" ?

to test this i added warn_expiration 900 and max_ping 200.  I can see in the live console on the server that the client is being warned by the bot through  rcon_tell  but not sure why is never kicked.  the player stayed for 20 mins and the whole time i saw their ping in game as 215ms lowest 254ms highest whilst checking their ping every 30 seconds in game

ok, I will prepare a special debug version, which will add some debug log to the logfile "devel.log" and add a command !ping  to check the ping value ingame

please check this version:
https://www.dropbox.com/s/k6vxrx8gg7rpomf/spunky63.py?dl=0
and you need to set the value "verbose" in the "conf/settings.conf" file to
verbose = 1
this will enable debug logging and show more details.
this spunky63.py has a command
!ping <name>
to check ingame the ping value of players.

by the way: I would recommend the default values for "warn_expiration" and "task_frequency".

ok, but i really don't want to wait 4mins to kick high ping players that is why I tried 30s (4x 30s seemed much nicer)

Agreed, but do not forget, that this timer is also used for:

check warnings and kick players with too many warnings
check for spectators and set warning
check for players with low score and set warning

If you are facing such an issue with high pingers, why are you not already blocking them by joining your server with the server value "sv_maxping" ?

I would prefer to solve the issue with sv_maxping unfortunately it seems broken as when connecting to the server your ping seems to spike briefly to 999 and is enough to stop you from connecting to the server due to being higher than any value set sometimes it also does not happen and you connect with no problem.  I have a ping of 45ms to my server and even when setting a max_ping of 300 I am prevented from connecting to the server randomly.
I am currently back to using the 60 second task frequency. If I experience this issue again I will try to gather logs and see if I can see if the bot issued the warnings or not.

This connect issue is since years, introduced in 4.2. So for FS more or less a normal behavior :-)
So this is not really related to sv_maxping...
Are you running the spunky63.py with verbose = 1 in the config?

fix urbanterror code open source then all can help with sv_maxping and 24832948 other easy bugs
why not already opensource if fs not maintain it?
Keeping close to let it die?
Egoistic and disrespectfull decision for all players and devs that played/coded game

The source code is not open source...
It is dead since years... Same as the "new" unreal based version

ok as far as i can tell ping kick seems to work fine and i must have been experiencing players that where upto no good trying to avoid the kick.  however my current problem now is that the bot takes 4mins to kick a player that takes 5seconds to /reconnect and play again for another 4 mins. which kind of defeats the purpose.   :/

If i add:
player.add_ban_point('fix your ping', 100)
to the taskmanager function,  would this be sufficient to temporary "ban" high ping players that are kicked from the server for 5mins (duration * 3) ?

no, this would not work as you expect.
a player needs two ban_points to get banned.
ban_points make only sense for TK and bad words/spam which appear in a short range. If player gets kicked due to TK, he gets ban_points, and if he reconnects and continues with TK, then he will be banned directly.
You would need to use the real ban function
player.ban(duration=300, reason='fix your ping')
but I am not sure if you would have friends on the server...

[17.03.2020 21:09:46] ERROR    'Player' object has no attribute 'num'
Traceback (most recent call last):
  File "./spunky.py", line 635, in taskmanager
    self.check_player_ping()
  File "./spunky.py", line 651, in check_player_ping
    gameplayer = self.game.players[player.num]
AttributeError: 'Player' object has no attribute 'num'
[17.03.2020 21:10:15] ERROR    not enough arguments for format string
Traceback (most recent call last):
  File "./spunky.py", line 681, in parse_line
    option[action](line)
  File "./spunky.py", line 741, in handle_callvote
    ''' % (self.failed_vote_timer, time.time())
TypeError: not enough arguments for format string
[17.03.2020 21:10:47] ERROR    'Player' object has no attribute 'num'
Traceback (most recent call last):
  File "./spunky.py", line 635, in taskmanager
    self.check_player_ping()
  File "./spunky.py", line 651, in check_player_ping
    gameplayer = self.game.players[player.num]
AttributeError: 'Player' object has no attribute 'num'
[17.03.2020 21:11:48] ERROR    'Player' object has no attribute 'num'
Traceback (most recent call last):
  File "./spunky.py", line 635, in taskmanager
    self.check_player_ping()
  File "./spunky.py", line 651, in check_player_ping
    gameplayer = self.game.players[player.num]
AttributeError: 'Player' object has no attribute 'num'
[17.03.2020 21:12:49] ERROR    'Player' object has no attribute 'num'
Traceback (most recent call last):
  File "./spunky.py", line 635, in taskmanager
    self.check_player_ping()
  File "./spunky.py", line 651, in check_player_ping
    gameplayer = self.game.players[player.num]
AttributeError: 'Player' object has no attribute 'num'
[17.03.2020 21:13:50] ERROR    'Player' object has no attribute 'num'
Traceback (most recent call last):
  File "./spunky.py", line 635, in taskmanager
    self.check_player_ping()
  File "./spunky.py", line 651, in check_player_ping
    gameplayer = self.game.players[player.num]
AttributeError: 'Player' object has no attribute 'num'

found this in devel.log  perhaps it helps?  this maybe why the player gets some warnings, but never enough to kick ?

No, the player.num erroris now caused by using the incompatible pyquake lib from madprof which does not has the value "player number"

Did you add some code to handle_callvote?
I cannot find any code snippet which contains "self.failed_vote_timer", which is also shown above in the debug log as error...

yes sorry i was debugging something i added to spunky when i found the errors in the log. I think Madprof version uses player.slot instead?
anyways wheres best to send you code snippets for a feature i added that veto's nextmap votes for (configurable time in seconds) after a nextmap vote failed (not sure i can do a pull request or diff patch as i have changes a whole load of other things like the colour tags to colours i prefer vs default spunky colour scheme)

could by player.slot...
If it is easier for you, you can send me the code snippet instead of cleaning the code to create a pull request.
So you added a "handle_vote_failed" function?
Or is "handle_callvote" allowing an additional nextmap vote when the timer expires instead of disabling the vote until end of map?

I added (with help from others)  handle_vote_failed function  i will send you the code snippets so you can choose if you wish to add it.  its a nice feature for prevents constant call vote spam from multiple players until a vote passes after the initial vote that fails players on my server need to wait 5 minutes before they can call vote again.

https://pastebin.fun/AvJexFinQu

ah, it is a vote delay just for nextmap votes.
Uh there is a bad coding with double type conversion.
But I started to implement a vote fail function as well, so I will add your feature to that one.

awesome, Im a python n00b so it probably has errors but it does work as far as i could tell. im sure you'll fix it no bother though 👍