Add trigram match on facility name fallback when matching via API

Overview
This new feature of the facility matching/creation API addresses problems experienced by an MSI when attempting to match records with partial or incomplete addresses by adding opt-in fallback text matching on facility name filtered by country when there are no dedupe matches.
Connects #1094
Notes
Installing the pg_trgm extension "[adds] functions and operators for determining the similarity of alphanumeric text based on trigram matching"
https://postgresql.org/docs/current/pgtrgm.html
We use the same 0.50 confidence threshold as our dedupe matcher for consistency. It is a reasonable starting point and could be adjusted in the future.
We are making this an opt-in feature by adding a new optional query string argument so all existing behavior is preserved.
Testing Instructions

Run ./scripts/resetdb and verify that it completes without error
Browse http://localhost:8081/api/docs/#!/facilities/facilities_create
Authorize swagger with the development testing token [Token 1d18b962d6f976b0b7e8fcf9fcc39b56cf278051]
Set the create option to false and POST this JSON. Verify that a normal MATCHED is returned with a non-zero confidence score

[{
    "country": "VN",
    "name": "BI (VN) Co. Ltd.",
    "address": "Vietnam"
}]

POST this example and verify that there is no match (NEW_FACILITY) is returned

{
    "country": "VN",
    "name": "BI Co. Ltd.",
    "address": "Vietnam"
}

Set the textonlyfallback option to true and POST the same example. Verify that POTENTIAL_MATCH items are returned with a confidence score of 0 and text_only_match set to true.

{
    "country": "VN",
    "name": "BI Co. Ltd.",
    "address": "Vietnam"
}

Set the create option to true and submit the same item. Verify that that the matches in the response contain confirm_match_url and reject_match_url links.

{
    "country": "VN",
    "name": "BI Co. Ltd.",
    "address": "Vietnam"
}

Copy the ID from the first confirm_match_url, browse http://localhost:8081/api/docs/#!/facility-matches/facility_matches_confirm and submit the ID. Verify a successful response and copy the matched OAR ID
Browse localhost:6543/facilities/{id} and verify that the new match is listed.

Checklist

[ ] fixup! commits have been squashed
[ ] CI passes after rebase
[ ] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

Set the create option to false and POST this JSON. Verify that a normal POTENTIAL_MATCH is returned with a non-zero confidence score

I'm getting MATCHED instead of POTENTIAL_MATCH. Should that be concerning?
{
  "matches": [
    {
      "id": "VN2020253TGDHJC",
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
<PHONE_NUMBER>,
          10.8834303
        ]
      },
      "properties": {
        "name": "BI (VN) Co. Ltd.",
        "address": "Fri Jan 01 1075 10:52:58 GMT+0300 (EAT),Zone 1,Thanh Xuan Ward,Ho Chi Minh",
        "country_code": "VN",
        "oar_id": "VN2020253TGDHJC",
        "other_names": [],
        "other_addresses": [],
        "contributors": [
          {
            "id": 11,
            "name": "Service Provider E (Summer 2018 Affiliate List)",
            "is_verified": false
          }
        ],
        "country_name": "Vietnam",
        "claim_info": null,
        "other_locations": [],
        "ppe_product_types": null,
        "ppe_contact_phone": null,
        "ppe_contact_email": null,
        "ppe_website": null
      },
      "confidence": 0.8654
    }
  ],
  "item_id": 933,
  "geocoded_geometry": {
    "type": "Point",
    "coordinates": [
      108.277199,
      14.058324
    ]
  },
  "geocoded_address": "Vietnam",
  "status": "MATCHED",
  "oar_id": "VN2020253TGDHJC"
}

POST this example and verify that there is no match (NEW_FACILITY) is returned
{
    "country": "VN",
    "name": "BI Co. Ltd.",
    "address": "Vietnam"
}

This is giving me a POTENTIAL_MATCH:
{
  "matches": [
    {
      "id": "VN2020253Z0AEY7",
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          108.277199,
          14.058324
        ]
      },
      "properties": {
        "name": "Pungkook Saigon Two Corporation",
        "address": "Vietnam.",
        "country_code": "VN",
        "oar_id": "VN2020253Z0AEY7",
        "other_names": [],
        "other_addresses": [],
        "contributors": [
          {
            "id": 8,
            "name": "Civil Society Organization A (Summer 2019 Apparel List)",
            "is_verified": false
          }
        ],
        "country_name": "Vietnam",
        "claim_info": null,
        "other_locations": [],
        "ppe_product_types": null,
        "ppe_contact_phone": null,
        "ppe_contact_email": null,
        "ppe_website": null
      },
      "confidence": 0.5676
    }
  ],
  "item_id": 934,
  "geocoded_geometry": {
    "type": "Point",
    "coordinates": [
      108.277199,
      14.058324
    ]
  },
  "geocoded_address": "Vietnam",
  "status": "POTENTIAL_MATCH"
}

I'm getting MATCHED instead of POTENTIAL_MATCH. Should that be concerning?

No. That was a mistake in writing the instructions. Fixed.

Set the textonlyfallback option to true and POST the same example. Verify that POTENTIAL_MATCH items are returned with a confidence score of 0 and text_only_match set to true.
{
    "country": "VN",
    "name": "BI Co. Ltd.",
    "address": "Vietnam"
}

With textonlyfallback=true I get a POTENTIAL_MATCH
{
  "matches": [
    {
      "id": "VN2020253TGDHJC",
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
<PHONE_NUMBER>,
          10.8834303
        ]
      },
      "properties": {
        "name": "BI (VN) Co. Ltd.",
        "address": "Fri Jan 01 1075 10:52:58 GMT+0300 (EAT),Zone 1,Thanh Xuan Ward,Ho Chi Minh",
        "country_code": "VN",
        "oar_id": "VN2020253TGDHJC",
        "other_names": [],
        "other_addresses": [],
        "contributors": [
          {
            "id": 11,
            "name": "Service Provider E (Summer 2018 Affiliate List)",
            "is_verified": false
          }
        ],
        "country_name": "Vietnam",
        "claim_info": null,
        "other_locations": [],
        "ppe_product_types": null,
        "ppe_contact_phone": null,
        "ppe_contact_email": null,
        "ppe_website": null
      },
      "confidence": 0,
      "text_only_match": true
    },
    {
      "id": "VN20202534B0BHX",
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          106.270029,
          20.933005
        ]
      },
      "properties": {
        "name": "PHI Co.,Ltd",
        "address": "XN10,Dai An Industrial Zone KM51,High Way No.5,Tu Minh,Hai Duong City,Hai Duong Province",
        "country_code": "VN",
        "oar_id": "VN20202534B0BHX",
        "other_names": [],
        "other_addresses": [],
        "contributors": [
          {
            "id": 10,
            "name": "Union A (Spring 2017 Apparel List)",
            "is_verified": false
          }
        ],
        "country_name": "Vietnam",
        "claim_info": null,
        "other_locations": [],
        "ppe_product_types": null,
        "ppe_contact_phone": null,
        "ppe_contact_email": null,
        "ppe_website": null
      },
      "confidence": 0,
      "text_only_match": true
    },
    {
      "id": "VN2020253RBKVMQ",
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
<PHONE_NUMBER>,
          20.9329079
        ]
      },
      "properties": {
        "name": "PHI Co., Ltd.",
        "address": "No. 10, Dai An Industrial Zone, Tu Minh , Hai Duong, 17000, Hai Duong",
        "country_code": "VN",
        "oar_id": "VN2020253RBKVMQ",
        "other_names": [],
        "other_addresses": [],
        "contributors": [
          {
            "id": 15,
            "name": "Manufacturing Group E (Winter 2019 Compliance List)",
            "is_verified": false
          }
        ],
        "country_name": "Vietnam",
        "claim_info": null,
        "other_locations": [],
        "ppe_product_types": null,
        "ppe_contact_phone": null,
        "ppe_contact_email": null,
        "ppe_website": null
      },
      "confidence": 0,
      "text_only_match": true
    }
  ],
  "item_id": 935,
  "geocoded_geometry": {
    "type": "Point",
    "coordinates": [
      108.277199,
      14.058324
    ]
  },
  "geocoded_address": "Vietnam",
  "status": "POTENTIAL_MATCH"
}

The SQL query produced looks like this
SELECT
"api_facility"."ppe_product_types",
"api_facility"."ppe_contact_email",
"api_facility"."ppe_contact_phone",
"api_facility"."ppe_website",
"api_facility"."id",
"api_facility"."name",
"api_facility"."address",
"api_facility"."country_code",
"api_facility"."location"::bytea,
"api_facility"."created_from_id",
"api_facility"."created_at",
"api_facility"."updated_at",
SIMILARITY("api_facility"."name", 'TAKFOOK (CAMBODIA) GARMENT LTD') AS "similarity"
FROM "api_facility"
WHERE ("api_facility"."country_code" = 'KH'
AND SIMILARITY("api_facility"."name", 'TAKFOOK (CAMBODIA) GARMENT LTD') >= 0.5)
ORDER BY "similarity" DESC;

I used this query with production data to verify that facilities that an MSI was having trouble matching would have results returned by this new query.

I pushed a rebase on develop that also includes a small substantive change (https://github.com/open-apparel-registry/open-apparel-registry/pull/1099/files#diff-59d0b6e11bdeae4bc0a0f3dd1be03982R1138-R1144)
When testing with realistic data we were sometimes matching dozens of records so we limit the responses to the first five, which is reasonable given that we are sorting by similarity score.

Everything works except for this #1099 (comment). Not sure if it was a fluke or testing error.

The score on that pending match was 0.56, just above the 0.50 cutoff. Since a new model is trained each time we restart the server or run resetdb, and there is a random element in the training, match results at the borderline can sometimes change. This isn't a regression in behavior, but thanks for noting the deviation from the expectations in the test instructions.


Sticky article is not count into category

Describe your problem
If you put a article in sticky option, his category is not defined.
Steps to reproduce the problem
Create a content, set a category to this article.
When you'r going into the category page you will see the article.
Come back into the content editor, set a sticky to this article.
I will be hidden from category.
(same with the plugins category for sidebar).
Bludit version
3.8.0

Fixed here https://github.com/bludit/bludit/commit/54868df65294e21033505aa99a95d438485f037e
regards

Perfect !!!!! Thx


feat(datepicker): ng-disabled attribute added to datepicker

Closing due to this being superceded by 434c6026a540387fd2504e5b1f53f05a39e21bca


Migrate calls to Dapr's sidecar Actor APIS to GRPC

Applications can use GRPC (in addition to HTTP) to make API calls for Actor.
This impacts Actor client and Actor runtime.
A property or environment variable can be used to switch between HTTP or GRPC communication.
GRPC communication is the default.
RELEASE NOTE: Support GRPC communication for Actor APIs into Dapr.

Actor Client making HTTP calls: https://github.com/dapr/dotnet-sdk/blob/master/src/Dapr.Actors/Communication/Client/ActorNonRemotingClient.cs
Actor Proxy, using the HTTP client: https://github.com/dapr/dotnet-sdk/blob/fe1e697af3f8c0983bb587b177581ee65c7ecfe5/src/Dapr.Actors/Client/ActorProxy.cs#L110

@halspang please assign to @addjuarez. Priority P1, for upcoming v1.9 release. FYI @artursouza
This is related to https://github.com/dapr/dapr/issues/5118

/assign

Curious of the status of this? :D


Listening for message metadata

I'm hoping to take advantage of message metadata to trigger actions in my app. As an example, consider the following flow:

Application schedules a message for the following day
Message is posted the following day with metadata
Listener picks up the message with metadata and performs an action

The reason for the scheduled message is because my application would be chaining together several of these flows, but is otherwise not important.
Using slack_bolt==1.15.5 on Linux (Pop!_OS 22.04), I would expect that using
@app.event("message_metadata_posted")
def handle_metadata_action(...):
    ...

would allow me to filter out messages with no metadata. However, it doesn't seem like that event is being handled at all. I've tried making my handler as simple as possible, such as below:
@app.event("message_metadata_posted")
def handle_metadata_action(logger):
    logger.info("Metadata posted")

and the logs never reach this point.
My question is, does Bolt support this event type? From the documentation, it almost appears that the only application type that supports metadata in this way are applications defined through manifests, which I'm unfamiliar with.

Hi @jimenezj8, thanks for asking the question!
The reason why your event listener functions are not executed is that bolt-python automatically skips most self events to avoid infinite loop of listener code execution. What's the infinite loop? The most common pattern is to respond to a message posted by the app itself (post a message -> reply to the message -> reply ... reply). A built-in middleware prevents this situation from happening.
Probably, the message with metadata should be posted by your app's bot user itself, right? In this case, your bolt-python app receives the event but it does not invoke any app.event listeners. If you desire to change this behavior, you can pass ignoring_self_events_enabled: False in the App constructor. As mentioned above, your code is responsible to avoid infinite loops if you disable the built-in middleware.
Alternatively, you can create a different app that send scheduled message with metadata. In this case, your current app is just a subscriber of the metadata message events, so you don't need to disable IgnoringSelfEvents middleware. Also, this can be a cleaner app design if the message metadata can be subscribed by several apps and workflows.
I hope this was helpful to you. If everything is clear now, would you mind closing this issue?

@seratch that was very helpful info, thank you! I had a suspicion that could be the case but I'm glad to confirm. And thank you very much for such a quick response, have a great week!


Doc not mentioning environment variables

When trying to run this locally
Error: The environment variable BIGCOMMERCE_STOREFRONT_API_URL is missing and it's required to access your store

The needed environment variables are not mentioned anywhere in README.md. Please update.

When trying to run this locally
Error: The environment variable BIGCOMMERCE_STOREFRONT_API_URL is missing and it's required to access your store

The needed environment variables are not mentioned anywhere in README.md. Please update.

you can use in local development vercel env pull .env.local

@FredvanRijswijk  I never used vercel cli before and it took a while but it worked, thanks!

@FredvanRijswijk I never used vercel cli before and it took a while but it worked, thanks!

Can you explain how you did it? I installed vercel with yarn and tried the command that @FredvanRijswijk mentioned but no success.
I second that there should be documentation.

@FredvanRijswijk I never used vercel cli before and it took a while but it worked, thanks!

Can you explain how you did it? I installed vercel with yarn and tried the command that @FredvanRijswijk mentioned but no success.
I second that there should be documentation.

You deploy it on vercel. Then download vercel cli, make a link, and you will be able to pull the env file. True, there's documentation on vercel cli which should be consulted.

Can anybody tell me where the env values are actually being used/called in the code?


Edit project name from editor

I keep having to go back to the project details in order to change my project name--becomes important when you need to find it later in the lab.

Would also be nice on the projects page

Would it make sense to just make the name clickable? Click it, it turns
into an editable field, with a check box / cancel button inline.
On Sun, Jun 11, 2017, 6:54 PM Joe Morrison<EMAIL_ADDRESS>wrote:

Would also be nice on the projects page
[image: screen shot 2017-06-11 at 6 53 12 pm]
https://user-images.githubusercontent.com/12401491/27015234-47d7af4a-4ed7-11e7-839e-237bd2af367a.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/azavea/raster-foundry/issues/1965#issuecomment-307662470,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEMHAM72sCtQgllxKhVIEXbXm30qYXq3ks5sDHAPgaJpZM4N2iP8
.

--
--
Lucien Knechtli
Azavea |  990 Spring Garden Street, 5th Floor, Philadelphia, PA
<EMAIL_ADDRESS>| Web azavea.com http://www.azavea.com/  |  @azavea
http://twitter.com/azavea

Closed #1804 in favor of this one.

Resolved.


[BUG] Visual Bug on Daily Data filters

Problem statement
There is a visual bug that rarely appears on the the Daily Data filter section.
What you need to know

Acceptance criteria

[ ] Shortened box for receiver does not appear
[ ] Misalignment of Apply/Reset buttons does not appear

Penny: Perhaps we need a minimum width?
Etan: There may be a deeper core issue here around loading

Not able to reproduce. Possibly happened when we had first receiver as default.


Development sprint 5

Related issue
Closes #37, closes #60 , closes #63, closes #68
Proposed changes

Add dialog flow functionality.
Refactor code base to include UserInterfaceUtilities class and ObjectFactory class.
Refactor code for consistent use of strings.
Bug fix in sensor reading.
Bug fix in SmartCar to app compability/consistency when app crashes.

Additional information

Completes milestone Android Application User Interface.
Completes milestone Speech Recognition.

Any particular reason why you prefer this way of worming instead of committing directly to master when something is done?

Any particular reason why you prefer this way of working instead of committing directly to master when something is done?

No particular reason, I think. Last time, if I remember correctly, every pair that worked on different tasks they branched out from master and then finally we got some merge conflicts in the end while pulling to master seperately. Of course, we managed to resolve them in the end, but we discussed it and we said that it might be better to create a "sprint" branch next time, pull there every branch that everyone works and then finalize the pull request to master in the weekend.
I am still not sure which way is the best, so any insights on that are more than welcome from you, since we basically try to avoid merge conflicts! :sweat_smile:


fix(log): print debug and warn messages to stderr

Fixes: https://github.com/helm/helm/issues/277

Does this get rid of the [Debug] [Debug] [Debug] messages? I never did ferret out the reason for a long sequence of empty debug messages.

It does.  The test was capturing Stdout which was the message, but the [DEBUG] was printing to Stderr

Oh! That totally makes sense now.


Versions newer than 23.0 doesn't connect with my existing connections

Description
If I update my DBeaver 23.00 to newer versions, the same existing connections I've in the older DBeaver, doesn't connect with a Socket Timeout Error
DBeaver Version
23.2
Operating System
Windows 11
Database and driver
Oracle 19

Steps to reproduce
Update new DBeaver version.
Start new DBeaver.
Try to connect with existing connections.
Error of SocketTimeout:

Close new DBeaver
Open older DBeavear (23.00)
Try to connect --> SUCCESS
Additional context
No response

Hello @flequi,
Could you please check if your connections work with an older version of DBeaver?
I suspect that your database is not accessible anymore.

Hello.
I have 2 Dbeavers installed. One Dbeaver 23.00 that runs perfectly and other DBeaver 23.2 that with the same connections doen't works.
I have 12 connections, Do you tellme that the 12 databases are not accesible anymore? It's a possibility, like a great meteor crashes with the Earth and all the databases of the world are not accesible anymore.

Now seriously, I think it has to be some change that has relation with the connections or VPNs connections, since it gives an error when trying to connect to Databases with a two-node cluster and a balancer, and the Socket Timeout means that it hasn't connectivity with the Hosts.
I Repeat that, if I close the newer DBeaver and I open the older DBeaver, it Works fin, with the same VPN and the same Connections. I've tried with 3 or 4 newer versions of DBeaver and all of them have the same problem.
Thanks

Okay.
What do your connections consist of, just Oracle databases?
Can you provide log files? You can find instructions here: https://github.com/dbeaver/dbeaver/wiki/Log-files

Yes the important connections are only Oracle 19. I have another connection with MySQL DB and it works fine, but the databases
of work are the 14 other Oracle connections.
Maybe the problem was to reuse a workspace of older DBeaver version???
I attach the two log files:
dbeaver-debug.log
File.log

Thanks. I don't see anything suspicious, so can't really understand what's wrong.
Can you please ensure that your connection configuration is correct, including the role?

Yes, I have tried to rewrite the pass and the user, but the connections are the same because when I download a new ZIP of DBeaver and I open it, the connections appears automatically, I don't write new connections, are the same of the older DBeaver.
¿Maybe problems with the Window Firewall? ¿Java Version? ¿OracleClient Home version?
The problem its with ALL of my 14 Oracle connections, but no with the MySql other one.

I don't think there's something with your environment, as your connections still work against the oldest version of DBeaver.

Could you try creating a one new connection to see if the new connection will work? It'll help us understand if the issue is in saved connection configuration compatibility.

I have tested ALL of my connections and 2 Oracle connections works fine. I've tested connection to hosts of the queryString and the connections that works have a Balancer Host that I can make ping, the other connections that fails have Balancer Host with the ping restricted. I've writed all the HOSTS with IP in mi hosts file of Windows but it doesn't work.
I RESOLVED THE PROBLEM MAKING THE VALUES OF THE CONNECTIONS SETTINGS LIKE THIS AND REFRESHED ALL THE CONNECTIONS

Thank you for the information!
These are the default settings (except close/invalidate timeouts which are unrelated).
But small connect timeout may cause issues during connection.
Could you say what pref values were before your fix?

I can't view the old values, because if I open another DBeaver version 23.2.2 it takes the same global configuration like others, but I think that the old values are this:


When bot is in group chat, the callback for .message is not being called

Description
I'm registering a callback with the following code:
app.message(/ping/, (e) => { console.log(e) })

It is not printing anything if I'm on group chat. I see the message on the debug console, but it fails with error: Conversation not found.
[DEBUG]  bolt-app {"token":"k7PRs87qbRwzm4A4LAtOCSGb","team_id":"T0JV0MYCE","api_app_id":"A01Q2UP4HQQ","event":{"client_msg_id":"0b3149e4-1243-4a27-be4c-2aecb715cab9","type":"app_mention","text":"<@U01PDC4EB8B> ping","user":"UR62DEJCX","ts":"1614363797.012900","team":"T0JV0MYCE","blocks":[{"type":"rich_text","block_id":"fxp","elements":[{"type":"rich_text_section","elements":[{"type":"user","user_id":"U01PDC4EB8B"},{"type":"text","text":" ping"}]}]}],"channel":"G01PJFVB4GK","event_ts":"1614363797.012900"},"type":"event_callback","event_id":"Ev01PQKP3RNY","event_time":1614363797,"authorizations":[{"enterprise_id":null,"team_id":"T0JV0MYCE","user_id":"U01PDC4EB8B","is_bot":true,"is_enterprise_install":false}],"is_ext_shared_channel":false,"event_context":"1-app_mention-T0JV0MYCE-G01PJFVB4GK"}
[DEBUG]  socket-mode:SocketModeClient:0 calling ack events_api
[DEBUG]  socket-mode:SocketModeClient:0 send() in state: connected,ready
[DEBUG]  socket-mode:SocketModeClient:0 sending message on websocket: {"envelope_id":"889495a0-c7ce-4ad4-a7cd-5329ba5c7295","payload":{}}
[DEBUG]  bolt-app Conversation context failed loading for ID: G01PJFVB4GK, error: Conversation not found

What type of issue is this? (place an x in one of the [ ])

[x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] example code related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Reproducible in:
package version: 3.2.0
node version: v12.13.0
OS version(s): Ubuntu 18.04
Steps to reproduce:

Listen to anything using the .message call
Add the bot in a group chat with at least two people
Mention the bot with the message that it should listen

Expected result:
The callback to be called
Actual result:
The callback is not called, and the DEBUG info prints Conversation not found
What I also tried
Checked that the bot CAN post to the group conversation
Checked with app.receiver.client.on('slack_event'...) that the message is visible

Hello @mauricioszabo, thanks for asking the question!

it fails with error: Conversation not found.

I do understand this is a very confusing debug logging. We are going to improve it. Refer to https://github.com/slackapi/bolt-js/issues/629 for details.
I guess the reason why your app does not receive events from private channel should be related to your app's accessible conversations. In other words, your app's bot user may not in the channel. If my guess is right, your app users in a workspace can invite your app's bot user to the private channel.

Hi there. No, it's  not it - as you can see, I receive on the debug log the info about the message, but the callback is never called.
What I did to bypass this bug was to listen to slack_event and then change the event type property from mention to message. This made the callback happen, so I'm pretty sure it's something on bolt, not on my side...

Thanks for your prompt reply. Just in case, I've verified if there is no issue with Bolt's handling with the following code.
const { App } = require('@slack/bolt');

const app = new App({
  socketMode: true,
  developerMode: true,
  token: process.env.SLACK_BOT_TOKEN,
  appToken: process.env.SLACK_APP_TOKEN,
});

app.message("ping", async ({ message }) => {
  console.log(message);
});

(async () => {
  await app.start();
})();

The result was that my app.message printed the message object for both public and private channels.
What I did are:

Create a new Slack app at https://api.slack.com/apps
Settings > Socket Mode - Turn Socket Mode on
Features > Event Subscriptions - Add the following bot events

message.channels
message.groups

Settings > Install App - Install the app to grab a bot token (xoxb- token)
(in your Bolt app project) Set SLACK_APP_TOKEN and SLACK_BOT_TOKEN in env variables
(in your Bolt app project) Run the app (say, npx node app.js)
(in the installed Slack workspace)

Create a private channel
Add the app to the channel
Say "ping" in the channel

The only difference in Bolt I can imagine here is that the framework intentionally ignores most events generated by the apps' bot user itself. This is helpful to avoid unintentional infinite loop situation.

The result was that my app.message printed the message object for both public and private channels.

Did you try on direct messages with the bot AND another person? That's the issue for me.

To give more info about the issue: when I saw this message, I tried to debug a little bit. I saw that messages come from app.receiver.client.on('slack_event'). Then, I reproduced the same callback on my app (I'm using ClojureScript, but the code should be straighforward):
(.. app -receiver -client
  (on "slack_event" (fn [params] (println params))))

I saw that the difference between the params that I receive when evertything do work and when it do not is simply the params.body.event.type. Then I made a code to change that event type to "message", and then my callbacks are working when I'm on a group dm with the bot and a third person:
(.. app -receiver -client
  (on "slack_event" (fn [^js params]
                      (when (= "app_mention" (some-> params .-body .-event .-type))
                        ;; fix for https://github.com/slackapi/bolt-js/issues/817
                        (aset (.. params -body -event) "type" "message")))))

Now, I don't know why this is an issue: I do have all permissions on OAuth, and by using this "hack" I'm able to see the messages from the bot on group DMs and to answer then correctly. As I told before, everything works correctly on literally every other interaction: by DM, by private or public channels, it all works fine without the hack - only when I am on a group DM that the bot never see the messages. To be honest, I don't even know it it's an issue with Bolt or with the Socket Slack API.
To avoid errors, I did copy-paste the messages I would send to the bot from channel to channel to DM to group DM, so I could be sure I'm sending the right messages...

What is not working are direct messages when there's another person involved - for example, me, my friend, and a bot. If I do create a channel for this message, the issue don't happen.

To receive the events in multi person direct messages, your app needs to subscribe to message.mpim events too. Have your app subscribed to it?
I've confirmed my bolt-js app listeners receive the mpim events without any issues. If the lack of configuration is not your case, I'm still unsure about what may cause the issue you mention here yet.

Yes, it is subscribed:

As I said, maybe it's not a bug on bolt, maybe it's on the slack API. I've also opened a bug on slackapi/slack-api-specs, I hope it's the right place...

@manucaicedo Is A01Q2UP4HQQ your app's ID? If so, it seems the app subscribes to only message.channels and message.im. Visit https://api.slack.com/apps/A01Q2UP4HQQ/event-subscriptions and add message.mpim to receive multi person direct message events.

Yes, this was the issue.
By the way - can the documentation be clearer on these aspects? Or maybe add some shortcuts on the app, or maybe add a tab where all permissions are on the same page?
It's been a long ride trying to figure out how to migrate my RTM bot to Socket and there's 4 tabs to configure things, 3 tabs that I keep visiting to understand what's happening. There could be shortcuts like "I want my bot to listen to public and private channels" and then it'll add the OAuth and the event subscriptions for you, or something like this...
Anyway, it's solved. Thanks :)


Re-send NPCs after warping

When using an dexbot/lair entrance to teleport or when using /goto, NPCs will not back show up until you leave the area and come back.

Fixed. Will submit PR after my pending one is merged.

fixed in latest merge


cert-manager crash looping in AKS

Describe the bug:
The cert-manager container crash loops, nothing in kubernetes event log (except Backoff of crashloops).
Nothing was changed to force the crashes.
In cert-manager log
I0609 08:14:41.294169       1 sync.go:81] cert-manager/certificaterequests-issuer-ca "msg"="certificate request Ready condition true so skipping processing" "resource_kind"="CertificateRequest" "resource_name"="domain-tls-b9s5w" "resource_namespace"="domain-tls" "resource_version"="v1"
I0609 08:14:41.294877       1 controller.go:173] cert-manager/certificaterequests-issuer-vault "msg"="finished processing work item" "key"="domain-tls/domain-tls-c4zn6"
I0609 08:14:41.295249       1 controller.go:173] cert-manager/certificaterequests-issuer-ca "msg"="finished processing work item" "key"="domain-tls/domain-tls-tls-b9s5w"
I0609 08:14:41.295281       1 sync.go:81] cert-manager/certificaterequests-issuer-ca "msg"="certificate request Ready condition true so skipping processing" "resource_kind"="CertificateRequest" "resource_name"="domain-tls-cw8rz" "resource_namespace"="default" "resource_version"="v1"
I0609 08:14:41.295363       1 sync.go:81] cert-manager/certificaterequests-issuer-ca "msg"="certificate request Ready condition true so skipping processing" "resource_kind"="CertificateRequest" "resource_name"="domain-tls-m8rz9" "resource_namespace"="default" "resource_version"="v1"
I0609 08:14:41.296455       1 controller.go:173] cert-manager/certificaterequests-issuer-ca "msg"="finished processing work item" "key"="default/domain-tls-cw8rz"
I0609 08:14:41.296634       1 controller.go:173] cert-manager/certificaterequests-issuer-vault "msg"="finished processing work item" "key"="monitoring/domain-tls-fbpxq"
I0609 08:14:41.297332       1 controller.go:173] cert-manager/certificaterequests-issuer-ca "msg"="finished processing work item" "key"="default/echo-prod-graip-xyz-tls-m8rz9"
------ CRASHED HERE ------
I0609 08:14:43.190284       1 start.go:75] cert-manager "msg"="starting controller"  "git-commit"="e466a521bc5455def8c224599c6edcd37e86410c" "version"="v1.8.0"
I0609 08:14:43.190351       1 controller.go:242] cert-manager/controller/build-context "msg"="configured acme dns01 nameservers" "nameservers"=["<IP_ADDRESS>:53","<IP_ADDRESS>:53","<IP_ADDRESS>:53"]
W0609 08:14:43.190403       1 client_config.go:617] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0609 08:14:43.191062       1 context.go:297] cert-manager/controller "msg"="creating event broadcaster"
I0609 08:14:43.191171       1 controller.go:70] cert-manager/controller "msg"="enabled controllers: [certificaterequests-approver certificaterequests-issuer-acme certificaterequests-issuer-ca certificaterequests-issuer-selfsigned certificaterequests-issuer-vault certificaterequests-issuer-venafi certificates-issuing certificates-key-manager certificates-metrics certificates-readiness certificates-request-manager certificates-revision-manager certificates-trigger challenges clusterissuers ingress-shim issuers orders]"
I0609 08:14:43.191451       1 controller.go:134] cert-manager/controller "msg"="starting leader election"
I0609 08:14:43.191558       1 controller.go:91] cert-manager/controller "msg"="starting metrics server"  "address"={"IP":"::","Port":9402,"Zone":""}
I0609 08:14:43.191722       1 context.go:297] cert-manager/controller "msg"="creating event broadcaster"
I0609 08:14:43.191806       1 leaderelection.go:248] attempting to acquire leader lease cert-manager/cert-manager-controller...
I0609 08:14:43.256636       1 leaderelection.go:258] successfully acquired lease cert-manager/cert-manager-controller
I0609 08:14:43.257566       1 logs.go:177] cert-manager/controller "msg"="Event(v1.ObjectReference{Kind:\"Lease\", Namespace:\"cert-manager\", Name:\"cert-manager-controller\", UID:\"fea819ac-2e68-44e3-965a-bd61f3064d66\", APIVersion:\"coordination.k8s.io/v1\", ResourceVersion:\"69685377\", FieldPath:\"\"}): type: 'Normal' reason: 'LeaderElection' cert-manager-857f57cb7b-xx9cx-external-cert-manager-controller became leader"
I0609 08:14:43.257992       1 context.go:297] cert-manager/controller "msg"="creating event broadcaster"

Expected behaviour:
cert-manager should work stable, without random crashes
Steps to reproduce the bug:
No idea for now
Anything else we need to know?:
Cert-Manager deployed in split view/horizon scenario, so it has public DNS servers set and credentials for azure public zones to verify Let's Encrypt.
Environment details::

Kubernetes version: 1.21.9
Cloud-provider/provisioner: Azure Kubernetes Services
cert-manager version: 1.8.0
Install method: Helm

/kind bug

Hi, thanks for opening the issue

I0609 08:14:41.297332       1 controller.go:173] cert-manager/certificaterequests-issuer-ca "msg"="finished processing work item" "key"="default/echo-prod-graip-xyz-tls-m8rz9"
------ CRASHED HERE ------

Is that literally the last line, no stack trace or any other logs?
I cannot think at the moment why it would crash there. The next step after logging that message would be to remove the item from the queue, mark it as done and then pick the next item to process. Is it always the same item that it processes before crashing? (In this case CertificateRequest 'echo-prod-graip-xyz-tls-m8rz9'- perhaps you could attach that CR just in case).
Are there any more information on cert-manager Deployment status perhaps?

Ok, found the reason, the default limits for memory is too low to handle let's encrypt ~10 certificates and 2 self signed CAs in one loop.

Resources for those certs alone shouldn't have caused cert-manager to consume that much memory
Out of interest, do you happen to have a large amount of other (not cert-manager) Secret resources in the cluster?


Created Macro API Logo

Description
By blending some text into a keycap and setting a keyboard-like darkened background, I created a logo for the repository in photoshop.

[x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
I created a new folder for assets to be stored in to prevent a clash with other files.
Checklist:

[x] I have read the Contribution Guidelines and Code of Conduct
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

Thanks for creating a logo for this project! If you don't mind, could you also add the logo to the readme?

Done! Let me know if you would like a different placement or format :D

Thanks for adding the image to the readme! Do I have full permissions to use this logo?

Also, is it possible to upload a .svg version of the logo?

Yes, I give full permission to use this logo, and I've added an SVG version to the assets folder.

Thanks for creating the logo!


Improve validations when inviting expense payee

On the first step of inviting someone to submit an expense, the validations are not the most intuitive:

It says Fields marked with (*) are mandatory but none of the fields has an asterisk. + that's not a pattern we use elsewhere.
The "Next" button is disabled, and we don't tell the user why
The Add a note for the recipient field is optional, but we don't show (Optional) as we do in other forms

Proposal:

Always enable "Next", show errors inline if it's not possible to go next
Add an (Optional) to the label for notes to the recipient
Remove the Fields marked with (*) are mandatory sentence

@opencollective/design any blocker with that proposal?

We reviewed this one collectively yesterday and this would be a clear and simple improvement.

Thank you for putting this up @Betree, I agree with what you say here:

Proposal:
-Always enable "Next", show errors inline if it's not possible to go next
-Add an (Optional) to the label for notes to the recipient
-Remove the Fields marked with (*) are mandatory sentence

Looks simple, so we should prioritize it for next sprint


chore(deps): bump curve25519-dalek, revert nightly pin

Reverts https://github.com/paradigmxyz/reth/pull/6435

I can't compile curve25519-dalek, am I doing something wrong?
I just followed my regular method of trying to build latest:
git pull main
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc

i'm on an amd processor on ubuntu 23.10


Define what does Tanzuify a cluster mean

Feature Request
In some issues we talk about tanzufying a cluster. There's a feature on unmanaged-clusters that installs some bits on an existing cluster. It's not clear what these bits are and how they relate to the productised version of Tanzu Clusters (TKG) to Managed TCE clusters. It'll be ideal to define what does tanzufying a cluster means, what should be expected on every tanzufyied cluster.

Given the number of packages that require cert-manager, we should just install it by default in any Tanzu Community Edition install. I would also strongly argue contour is probably another good candidate. For both of these I would say they are the default but can always be changed or left out at time of "installation" of Tanzu Community Edition


fix(pid_longitudinal_controller): use is_autoware_control_enabled for manual driving

Description
The following PR uses m_current_operation_mode.mode to know if the current driving is autonomous or manual.
However, in my understanding, this value is AUTONOMOUS even when the driving is manual.
https://github.com/autowarefoundation/autoware.universe/pull/2619
Actually, m_current_operation_mode.is_autoware_control_enabled is the correct one.

Tests performed

nothing
Effects on system behavior

nothing
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@TakaHoribe Could you check if my understanding is correct.


Which phasers are compatible with "will trait"?

will trait needs more details. Like exactly which phasers can be used as traits on variables and perhaps some more examples. I know it says "Only phasers that can occur multiple times within a block are eligible for this per-variable form.", but it is not clear to me which ones those are.

That link has disappeared now. I'll try and see where it's gone


yolov3.weights cannot be found and training format

I was planning to train my own data, but it says yolov3.weights not found. I checked the master repo of you and I didnt find that too. Was it accidentally removed or not meant to happen?
I had the weights earlier, but wondered what happened.
Besides, What is the format of training our custom data?
I have
train/class0
train/class1
and
val/
that has the image#.jpg
edit: I love this code and thanks for everything!

You can find the way to get yolo3.weights at https://pjreddie.com/darknet/yolo/  and you can find the label information of VOC.
The yolo site can help you.
Sent with GitHawk

Thanks! I have checked it and tried to do bounding box on my dataset.
When it said: "relative to image", does it mean range between (0,1) or in terms of px? I used your VOC formatter to have ranges between (0,1), but I still get various errors unfortunately. I think those errors happen because I changed some parts of the code to integrate my dataset.
according to VOC format: class,x,y,width,height.
However, then dataset.py throws error by saying that it couldnt find the image. Hence I added class,x,y,width,height,**imagepath**
Anyway..
Besides, when I was checking the code and formatting to my own dataset.(probably errors' reason), I come across a different type of error that might be helpful:
I think
       loss_coord = nn.MSELoss(reduction='sum')(coord*coord_mask, tcoord*coord_mask)/nB         loss_conf  = nn.BCELoss(reduction='sum')(conf*conf_mask, tconf*conf_mask)/nB         loss_cls   = nn.BCEWithLogitsLoss(reduction='sum')(cls, tcls)/nB
should be changed to
        loss_coord = nn.MSELoss(reduce=True)(coord*coord_mask, tcoord*coord_mask)/nB         loss_conf  = nn.BCELoss(reduce=True)(conf*conf_mask, tconf*conf_mask)/nB         loss_cls   = nn.BCEWithLogitsLoss(reduce=True)(cls, tcls)/nB
Because in my "nn" library, it has 2 optional parameter which "reduction" is changed to "reduce (bool)". I planned to do a pull request, but I wasn't sure if that is applicable to you as well.
Hope it helps! :)

At first, image bounding box is represented as the relative value to original image and is placed between [0,1].
Second, reduction='sum' is identical to size_average=False in pytorch 0.4 or below version.
reduction='sum' is introduced at pytorch 0.4.1 or over (the latest stable version is pytorch 1.0)
Third, I recommend you should download again the source code. The yolo_layer.py is modified to improve performance. Some loss functions are changed.
Bye.


Update sbt-scoverage to 1.9.0

Updates org.scoverage:sbt-scoverage from 1.8.2 to 1.9.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

labels: sbt-plugin-update, semver-minor

Codecov Report

Merging #181 (2061754) into master (aa4974a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #181   +/-   ##
=======================================
  Coverage   84.04%   84.04%
=======================================
  Files          19       19
  Lines         282      282
  Branches        6        6
=======================================
  Hits          237      237
  Misses         45       45

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa4974a...2061754. Read the comment docs.


createUserAPI Exception handled since "identifier_hash" required.

Hi,
I have been trying to enforce user identity validation in chatwoot SDK but getting this exception -
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'ChatwootClientException'
E/flutter (13424): #0      ChatwootClientAuthServiceImpl.createNewContact (package:chatwoot_client_sdk/data/remote/service/chatwoot_client_auth_service.dart:52:7)
E/flutter (13424):
When I dig deeper in the exception, I realized that this exception is caused when createNewContact function is trying to Create Contact using createContactAPI in chatwoot_client_auth_service.dart file. the Exception is -
DioError [DioErrorType.response]: Http status error [500]
this exception came because createConatctAPI expects "identifier_hash" attribute but SDK pass "identifierHash" attribute instead.
since the ChatwootUser function is written this way -
ChatwootUser(
{this.identifier,
this.identifierHash,
this.name,
this.email,
this.avatarUrl,
this.customAttributes});
and client ContactsAPI expects payload in this format -
{
"identifier": "string",
"identifier_hash": "string",
"email": "string",
"name": "string",
"phone_number": "string",
"avatar_url": "string",
"custom_attributes": { }
}
What should I do in this case.?
I am attaching postman screenshots also to describe the issue clearly
Error Image

Success Event Image

Image
Image

I am closing this PR on behalf of this PR. The identifier_hash issue is fixed from here.


Modify configuration files for adminrouter

High-level description
This pr modifies build script and config files for dcos-adminrouter.
Corresponding DC/OS tickets (required)

DCOS-ID JIRA title / short description.

Related tickets (optional)

DCOS-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot changelog-not-required

@mesosphere-mergebot request-review @DominikDary

@mesosphere-mergebot request-review @jongiddy


Fix incremental search not scrolling to current match

Fixes a couple of issues:

Fixes an issue with incremental search not scrolling to the current match. The caret was being moved using the platform's moveToOffset rather than IdeaVim's, which also handles scrolling
Fixes an issue with remembering the "end of line" state for $ not invalidating if the caret was moved and then moved back to its previous location. E.g. $hlj would act like $j and put the caret at the end of the next line, rather than simply moving down to the same column

I think there's an issue with the way listeners are registered - we're registering them with disposable, so they should be automatically unregistered, but we're manually removing them too, which causes a number of asserts during test run. I'm not sure if we're using the right disposable, either - I assume it should be the lifetime of Vim support being enabled/disabled, but I don't think it is.

Do you believe there is a way to fix these issues without caret subscribing at least for $hlj case? I'm not sure if this will be easy to get a caret subscription in Fleet.
I'll ask if there is such kind of subscription in Fleet.

By the way, big question: Do we know the reason why we store the last column by ourselves instead of using the last position that is stored somewhere in IJ for the same purpose?

Subscribing was the easiest way - I didn't look for anything else. We can fix it for Vim motions by explicitly invalidating the cache whenever any motion is made, but there is still a problem if the caret is moved by mouse, or by another IntelliJ action, and then moved back. Subscribing to caret move handles this. This data is stored in the caret's user data, and Fleet's carets are immutable, so what happens to the data when a Fleet caret is moved? Is there some kind of version field so we can know it's the same caret? If it's a different caret, it's moved and this data is invalid.
IntelliJ stores a "desired X" value inside CaretImpl, and Caret.moveCaretRelatively would allow us to use this (possibly with other undesirable side effects, I'm not 100% sure exactly what else this method does). But the big problem is that there isn't an "end of line" marker, so we'd still need to store a flag for $, and then we're back in the scenario of having to invalidate it.


Update APNSwift Repository Link in README.md

Updated the APNSwift repository link in SwiftNIO’s documentation.
Motivation:
The original link in the SwiftNIO documentation to the APNSwift repository was outdated, pointing to kylebrowning/APNSwift. This change is to direct users to the currently active and maintained repository
Modifications:
Replaced the link kylebrowning/APNSwift with swift-server-community/APNSwift in the relevant documentation section.
Result:
After this change, SwiftNIO documentation will correctly direct users to the active swift-server-community/APNSwift repository, enhancing the reliability and utility of the documentation.

@swift-server-bot test this please


Setup Githug workflow concurrency

Signed-off-by: Bernát Gábor<EMAIL_ADDRESS>

Seems reasonable.


test: to check flaky behaviour MaintainContext spec

Summary by CodeRabbit

New Features

Updated the testing focus to prioritize the "Maintain Context & Focus" feature within the IDE.

Bug Fixes

Enhanced testing coverage for the IDE functionality to ensure better performance and reliability.

/ci-test-limit


Implement tests for this module

Unit and integration tests are missing.

This resource will be moved to ComputerManagementDsc. That will require tests for it to be merged. I will work on getting this moved. This module will be deprecated once the move is finished. Because of that I'm closing this issue.


example basic not working

cannot run the provided example. file I/O error

Hi, thanks for the report. Indeed I forgot to update the assets when I switched to a SciFiHelmet.glb with embedded textures rather than SciFiHelment.gltf which referred to textures in separate files. I just uploaded the latest assets, so if you re-download the assets it should work.

Now, the example works fine. Thanks


Not able to get the fixation data after code execution

I have a CSV file which has Tobii eye-tracker data (using as a sample file). It looks something like this

.
The data is in the same format as described in the Readme file of this project.
I am executing the following line in the command window. myData1.csv is my input file with raw eye gaze data and fixations.csv is where I want to write the fixations.
i-vt.exe D:\myData1.csv --format CSV --timestamp-format ticks:us --fillin --select Average --denoise --denoise-alpha 0.3 --frequency 300 --threshold 30 --merge --merge-max-gap 75 --discard --discard-min-duration 60 --output-format CSV --output D:\fixations.csv
After the code execution, the output file is simply blank with only the header. No data is there.

Here is the terminal view after the execution of code:

Can you please suggest if I am doing something wrong?
I have also tried pipeline code execution as described here: https://github.com/uxifiit/GazeToolkit/issues/18
Kindly help me out of this
Thanks

I can take a look at it.
Could you, please, attach the sample file here? Or try it with smaller sample, not the whole recording, and if it behaves the same, share the smaller file here (to not expose your whole data file).

I tried it with sample of my data recorded with Tobii TX-300 (300Hz frequency). I attach files with timestamps both in microsecond ticks and date string. I use the same command as you and I get the desired output:
Input files:

input_ticks-us.csv
input_date.csv

Commands for each file:
# with timestamps in microsecond ticks format
i-vt.exe input_ticks-us.csv --format CSV --timestamp-format ticks:us --fillin --select Average --denoise --denoise-alpha 0.3 --frequency 300 --threshold 30 --merge --merge-max-gap 75 --discard --discard-min-duration 60 --output-format CSV --output output.csv

# with timestamps in date format
i-vt.exe input_date.csv --format CSV --timestamp-format date --fillin --select Average --denoise --denoise-alpha 0.3 --frequency 300 --threshold 30 --merge --merge-max-gap 75 --discard --discard-min-duration 60 --output-format CSV --output output.csv

Contents of the output.csv for input_ticks-us.csv:
Timestamp,MovementType,Duration,AverageGazePoint2DX,AverageGazePoint2DY,AverageGazePoint3DX,AverageGazePoint3DY,AverageGazePoint3DZ,AverageEyePosition3DX,AverageEyePosition3DY,AverageEyePosition3DZ,AveragePupilDiameter
63665708848005210,Fixation,2554.597,0.103680339429494,0.0941844370227761,-203.629041780781,279.632641473214,99.8095474757076,-4.71131461528727,-33.8008176905819,716.311789893637,5.84596384810406
63665708850559807,Saccade,23.338,,,,,,,,,
63665708850583145,Unknown,23.335,,,,,,,,,
63665708850606480,Saccade,16.657,,,,,,,,,
63665708850623137,Fixation,493.25,0.094186489905852,0.0736467710294352,-208.506982085741,285.151113172496,102.046920487909,-4.00790992971969,-33.864278925102,715.691972009477,5.9727451221363
63665708851116387,Saccade,36.67,,,,,,,,,
63665708851153057,Fixation,219.966,0.105584509578021,0.21466137756897,-202.650678411805,247.260489271711,86.6847894288956,-3.74999011040187,-34.404844331504,715.135778873439,5.81960608742454
63665708851373023,Saccade,49.99,,,,,,,,,
63665708851423013,Unknown,39.995,,,,,,,,,
63665708851463008,Saccade,6.612,,,,,,,,,
63665708851469620,Unknown,13.387,,,,,,,,,
63665708851483007,Saccade,6.665,,,,,,,,,
63665708851489672,Unknown,1.672,,,,,,,,,

Do you have data recorded with 300Hz frequency? Because you set the data frequency to that value with argument --frequency 300.

Thanks a lot for quick reply. I checked your example in my system and it works well. I found out my mistake. I did not recognize that my timestamps are constant. Now, it is sorted out, I corrected it and found the and able to obtain fixations.
fixationIVT.csv
Once again Thanks

I am glad you sorted it out. Yes, the timestamps are needed.


[bug]: Sidebar overlapping page content

Steps that lead to the issue
I have been playing around learning the basics of Hugo/This theme and I am struggling to understand what piece I am missing.
Creating a very basic single page using an examplesite page as reference doesnt seem to be applying markdown for titles and the collapsible sidebar overlaps the text and does not move with the sidebar when expanding/collapsing.

Expected behavior
Text is aligned to the sidebar and moves along with it like within the example site aswell as Title markdown being applied.
Reproducer
x
Solution?
x

Adding additional comment to determine if helps determine if non issue or not, I built my test site on Cloudflare pages and the styling appears to be working correctly, it appears to only be when running in dvelopment that this oddity appears.

Hi @TylerOooli ,
Regarding the sidebar, indeed, this is the intended behavior as long as your screen have a specific width.

Below 1024 pixels, the sidebar will overlap the content and by default when you open the website it will be collapsed and only displaying icons.
above 1024 pixels, the sidebar will not overlap the content and by default when you open the website it will uncollapsed. When collapsing the sidebar it will only display icons, but not overlap the main content.
In your case I suggest you to check the window's width depending on your device.

Regarding your statement doesnt seem to be applying markdown for titles, I'm not sure to understand. Your titles are displayed correctly based on the code you have provided.
Kr,
Jordan.


[FLINK-21620][table-api / sql-parser ] Support abbreviation TIMESTAMP_LTZ FOR TIMESTAMP WITH LOCAL TIME ZONE

What is the purpose of the change

This pull request introduce abbreviation TIMESTAMP_LTZ for data type TIMESTAMP WITH LOCAL TIME ZONE

Brief change log

Support  TIMESTAMP_LTZ in sql parser
Support TIMESTAMP_LTZ(), TIMESTAMP_LTZ(precision)  in DataTypes

Verifying this change
Add unit test to cover the change.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes)
The serializers: (no)
The runtime per-record code paths (performance sensitive): ( no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented? ( docs & JavaDocs )

@twalthr Could you help merge this one if you have no more concerns?


How to rename a key during looping?

I want to change key within a loop. Is it possible? How? For example, having a code:
for (auto& a : json::iterator_wrapper(b.value())) {
                auto aname = a.key();

How to rename a.key()? Looks like it's not described itself by documentation.

This is not possible. JSON objects are stored internally as std::map. Their keys are const while iterating.

Thanks, so just to understand, in general, is there any chance to easy rename a key, means without using a pair remove/insert? Like rapidjson:
it->name.SetString ("new key", d.GetAllocator());

You can use this function:
#include <iostream>
#include "json.hpp"

using json = nlohmann::json;

void change_key(json &object, const std::string& old_key, const std::string& new_key)
{
    // get iterator to old key; TODO: error handling if key is not present
    json::iterator it = object.find(old_key);
    // create null value for new key and swap value from old key
    std::swap(object[new_key], it.value());
    // delete value at old key (cheap, because the value is null after swap)
    object.erase(it);
}

int main()
{
    json j;
    j["foo"] = "value";

    std::cout << j << std::endl;

    change_key(j, "foo", "bar");

    std::cout << j << std::endl;
}

Output:
{"foo":"value"}
{"bar":"value"}

I just adjusted code from https://stackoverflow.com/a/5743682/266378.


Reason for running calico/node container on kubernetes master

FYI. Why we have to run calico/node container on kubernetes master?

@AdoHe - calico/node needs to run on the kubernetes master so that it knows how to route to pod IP addresses.
The typically example is the Kubernetes DNS addon - the pod needs to access the Kubernetes API running on the master, and so the master must be able to route packets back to the pod.


Weak symbols

This is just one piece of info missing about symbols that mcsema would benefit from having. Right now there's no way to know if an external symbol was declared with __attribute__((weak)) or not.

Support for querying external symbol types and weak symbol bindings were added as of v1.1.1350


connectivity with hivemq

ran with hivemq broker and from my local it works fine but when I push to predix basic I see in logs it cannot connect to hivemq broker either on 1883 or 8000
Works locally for both.
On the other side the android app works fine to send the data to the broker.
Is there a config on predix side or broker available ?

Used test.mosca.io which has a websocket mqtt listening on 80 which predix/heroku can talk to and it works. I also had to change the mqttbrokerconfig code to use ws instead of tcp as con string
return "ws://" + this.hostName + ":" + this.port;
and to make the UI WS work {there is a 403}
Changes the websocket register part in AppConfig to allow CORS for all {risky}
registry.addHandler(handler(), "/accelerometer").setAllowedOrigins("*").withSockJS();


fail

Issue Type: Bug
given that it's an IDE, it'd be nice to be able to edit files without having to press buttons to enable editing.
I'm not sure how but you managed to create something that fails at the only thing it's required to do.  I am truly amazed, also, before you try to claim it's a feature. I guarentee you that absolutely noone has ever asked for an IDE that doesn't edit.
Steps to Reproduce:

open visual studio
try to type
close visual studio
open notepad
use notepad

VS Code version: Code 1.62.1 (f4af3cbf5a99787542e2a30fe1fd37cd644cc31f, 2021-11-05T09:24:32.081Z)
OS version: Darwin arm64 21.1.0
Restricted Mode: No

/gifPlease

/duplicate of #137039


Fix drag and drop

Fix #36
This should fix the buggy drag and drop-functionality. Please review @eScienceCenter/spacialists

The new commit should fix the error. There are some other errors, but at least some of them are covered in other PRs/issues. Thus I'd recommend to merge this one (of course only if d&d works) and fix the other bugs in new/existing PRs and issues.
Please test again @derntl

Drag and drop works now without an API error but when dragging a concept its subconcepts are gone after reload

This has been fixed in #48

💥


Add e2e tests for fn eval

kpt fn run has been renamed to kpt fn eval. We should add e2e tests for it.

cc @droot

We should prioritize testing for newly added functionality.

@Shell32-Natsu This seems to be a subtasks of #1631

Duplicate of #1631


[lavalink] Unable to play on versions over Jul 13 (dev) of Lavalink

A recent change on lavalink (https://github.com/Frederikam/Lavalink/pull/315) made the play method not work unless end_time is a specified value, as it no longer accepts null.
You can see the error spited out here

In the Discord server it was indicated this is on dev. Can't repro using Lavalink image 75bcbeb, published 2 days ago.

Source is an unmodified lavalink example bot.

Closing due to not being reproducible


NotImplementedError: Cannot fill along a chunked axis when limit is not None

Hi,
So I have been running multiple instances era5grib on small chunks of time periods (~6-7 days each run) and I suspect the following maybe due to this.
I am getting the following traceback at random time periods...
Traceback (most recent call last):
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/bin/era5grib", line 10, in <module>
    sys.exit(main())
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/era5grib.py", line 285, in main
    func(**dargs)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/era5grib.py", line 156, in era5grib_wrf
    ds = nci.read_wrf(start, end)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/nci.py", line 248, in read_wrf
    ds = read_era5(
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/nci.py", line 206, in read_era5
    result.append(read_era5_month(surface_vars, pressure_vars, t.year, t.month))
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/nci.py", line 186, in read_era5_month
    surf = [merged_land_surf(v, year, month) for v in surface_vars]
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/nci.py", line 186, in <listcomp>
    surf = [merged_land_surf(v, year, month) for v in surface_vars]
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/era5grib/nci.py", line 172, in merged_land_surf
    land = land.bfill('time', limit=1)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/dataarray.py", line 2570, in bfill
    return bfill(self, dim, limit=limit)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/missing.py", line 430, in bfill
    return apply_ufunc(
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/computation.py", line 1171, in apply_ufunc
    return apply_dataarray_vfunc(
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/computation.py", line 288, in apply_dataarray_vfunc
    result_var = func(*data_vars)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/computation.py", line 739, in apply_variable_ufunc
    result_data = func(*input_data)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/missing.py", line 400, in _bfill
    arr = push(arr, axis=axis, n=n)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/duck_array_ops.py", line 663, in push
    return dask_array_ops.push(array, n, axis)
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/xarray/core/dask_array_ops.py", line 63, in push
    raise NotImplementedError(
NotImplementedError: Cannot fill along a chunked axis when limit is not None.Either rechunk to a single chunk along this axis or call .compute() or .load() first.

The reason to break the time into such small pieces is because we intend to run WRF in chunks of the same size and the script generating the timestamps are the same...
Is there any reason why limit cannot equal None in line 172 of nci.py?

Can you please tell me the dates that are causing this issue

May not so random... all in Jan 1981
(1981-01-07 00:00:00:1981-01-12 23:00:00)
(1981-01-13 00:00:00:1981-01-18 23:00:00)
(1981-01-19 00:00:00:1981-01-24 23:00:00)
(1981-01-25 00:00:00:1981-01-30 23:00:00)

In case it is useful below are sample namelists and pbs scripts used
Example namelist
&share
 wrf_core = 'ARW',
 max_dom = 2,
 start_date = '1981-01-07_00:00:00', '1981-01-07_00:00:00',
 end_date   = '1981-01-12_23:00:00', '1981-01-12_23:00:00',
 interval_seconds = 3600,
 io_form_geogrid = 2,
 debug_level= 0,
/

&geogrid
 parent_id = 1, 1,
 parent_grid_ratio = 1, 5,
 i_parent_start = 1, 205,
 j_parent_start = 1, 90,
 e_we = 540, 616,
 e_sn = 363, 501,
 geog_data_res = 'default', 'default',
 dx = 0.176,
 dy = 0.176,
 map_proj = 'lat-lon',
 ref_lat = -24.26,
 ref_lon = 147.63,
 pole_lat = 60.31,
 pole_lon = 321.38,
 stand_lon = 32.37,
 geog_data_path = '/g/data/sx70/data/WPS_GEOG_v4',
/

&ungrib
 out_format = 'WPS',
 prefix = 'INVAR',
/

&metgrid
 constants_name = 'INV:1989-01-01_12',
 fg_name = 'INVAR',
 io_form_metgrid = 2,
/

Relevant parts of PBS script
#!/usr/bin/env bash
#PBS -P <project_code>
#PBS -q normal
#PBS -l walltime=48:00:00
#PBS -l ncpus=48
#PBS -l mem=192GB
#PBS -l jobfs=400GB
#PBS -lstorage=<project_code_storage>+gdata/hh5+gdata/sx70+gdata/rt52+gdata/zz93
#PBS -j oe
#PBS -l wd

set -e
module purge
module use /g/data/hh5/public/modules
module load conda/analysis3-unstable

era5grib wrf --namelist <namelist_directory>/namelist_1981_000.wps --geo <geo_em_directory>/geo_em.d01.nc --output <output_directory>/gribfile_1981_000.grib

Thanks, I've reproduced the error in the analysis3 environment

This should now be fixed. Seems to be taking more memory to process now though, you may need to use the queue if you're not doing so already.

Cheers!
Tested same period with no issues


KARAF-3798 - Use a single threaded executor for FeaturesService

prevents potential concurrent installations, each provision is queued on
a single executor thread.

R: @jbonofre

As said in the Jira, another option would be to still use a cached executor pool, but still avoid creating large thread pools over and over again:

(those thread pools have been created by the FeaturesService, not visible in this view but in thread tracking of jprofiler)

I would prefer a cache executor pool. However, I'm afraid about the number of threads created. Let me experiment a bit.

When I start up my karaf (using a certains et of features/bundles) the provision calls spawn 77 threadpools * coresize (8 here at the moment) = 616 threads.
A customer with a 256 core machine observed a massive native memory usage (probably because a thread uses 1mb of stack and there were 20k of them)

IMHO the situation only gets better by moving the pool creation from the doProvisionInThread() to activation

Fair enough.

LGTM


cutcutgo-app.bin generation error

Really strange message when trying to generate bin file on my docker github_action.
Run cd utils && ./cutcutgo_mkuf2.sh
objcopy: ../cutcutgo.X/dist/cutcutgo_bl/production/cutcutgo-app.bin: Bad file descriptor
Traceback (most recent call last):
  File "/home/runner/work/cutcutgo/cutcutgo/utils/./uf2conv.py", line 3[6](https://github.com/Rockman18/cutcutgo/actions/runs/6594098113/job/17917558820#step:6:7)1, in <module>
    main()
  File "/home/runner/work/cutcutgo/cutcutgo/utils/./uf2conv.py", line 31[8](https://github.com/Rockman18/cutcutgo/actions/runs/6594098113/job/17917558820#step:6:9), in main
    with open(args.input, mode='rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../cutcutgo.X/dist/cutcutgo_bl/production/cutcutgo-app.bin'
Error: Process completed with exit code 1.

False mistake. Write permissions are not set on dist directory on my docker for the mkuf2 script.


[MRG] do not smooth or scale by default

[x] revert postproc logic everywhere (where relevant)
[x] check examples to see where postproc=True should be replaced with explicit hnn_core API calls
[x] check test coverage

Closes #262

Codecov Report

Merging #372 (260b415) into master (9b95ae8) will not change coverage.
 Consider uploading reports for the commit d666116 to get more accurate results

@@           Coverage Diff           @@
##           master     #372   +/-   ##
=======================================
  Coverage   89.81%   89.81%
=======================================
  Files          15       15
  Lines        2895     2895
=======================================
  Hits         2600     2600
  Misses        295      295

Impacted Files
Coverage Δ

hnn_core/dipole.py
94.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b95ae8...d666116. Read the comment docs.

I think this is ready to merge. See evoked example for largest change (mostly in terms of explanation).
Assuming CIs happy, I'm done here @jasmainak @ntolley

@jasmainak see 8c2a7f3 ! The len assertion had to go, unless you can figure out how to get pytest to ignore the unknown number of DeprecationWarnings

You can get pytest to ignore warnings. See:
https://docs.pytest.org/en/6.2.x/warnings.html
https://github.com/mne-tools/mne-bids/blob/d1fb506e391742e048d02e0eb6d6bb4193d3dae7/setup.cfg#L72
but usually they are reserved for warnings coming from other tools

is this PR good to go @cjayb ?

I couldn't quite figure out how to include the deprecation warning in whats_new, but other than that good to merge!

you can just add a line saying the parameter is deprecated. See for example:
https://github.com/mne-tools/mne-python/blob/main/doc/changes/0.10.inc#L101-L115

I left the final postproc=True in test_dipole until removal, but implemented the functional replacement test above.


Add the verify command for debugging purpose

This change adds the verify command to verify a token and inspect what identity is included in it to help deciding what was wrong in your setup - an assumed role or iam user used for generating token or anything else.
Usage:
$ kubernetes-aws-authenticator verify --cluster-id foo --token=$(./kubernetes-aws-authenticator-osx token --cluster-id foo)
<EMAIL_ADDRESS>CanonicalARN:arn:aws:iam::11111111111:role/developer AccountID:1111111111111 UserID:AROAIUIYAJDPNR756ILNQ<EMAIL_ADDRESS>

Looks great. Thanks!


Log spam re: replacement packs

Looks like the replacement pack feature is generating lots of log spam when it tries to find the props from each of the replacement packs, most of which I have never subscribed, for example:
BOB - the tree and prop replacer: couldn't find pack target prop.
Unknown prefab: 50 Speed Limit  [Serialization]

It's not a major issue, but would be nice if there was some way to turn it off.

The "unknown prefab" spam will remain (that's the game, not the mod), but the BOB message is removed in 791befd57bad113535adf2c77b67e8785bfefc03


Add FAQ about Who is organizing SORSE

As proposed in https://github.com/RSE-leaders/SORSE20/issues/91#issuecomment-646628655, this PR adds an FAQ about who is organizing SORSE (https://179-267395254-gh.circle-artifacts.com/0/SORSE20/faq/about/organizers.html) and it's adding the About section to the Footer

As soon as we have information about sponsors, we should add them here as well.
closes #91

Where can I see the live review environment? New to CircleCI. It’s probably me but when I click “about” in the footer from the link you shared above the artefact is not found.

Hi @johanphilips, no, that's not your fault. The pages are there as static files and not served via jekyll serve. This is why most of the links in the navigation are broken in this preview on CircleCI
But you just have to append an index.html to the url. So instead of .../SORSE20/faq#about, it needs to be .../SORSE20/faq/index.html#about

Ah I see. It looks all ok and sufficient. Minor detail. Would have also been handy if there would be a direct link to the organising committee. Now it’s two clicks :smile:

Would have also been handy if there would be a direct link to the organising committee

sure, no problem. Done with ceec2290e543e559db8b347018105b013bf25995, see https://180-267395254-gh.circle-artifacts.com/0/SORSE20/faq/about/organizers.html and the screenshot below

@ClaireWyatt: Could you give this a quick review please?
https://180-267395254-gh.circle-artifacts.com/0/SORSE20/faq/about/organizers.html

Looks good! Can't think of anything else to add at the moment. I think that's all the groups.


Cisco syslog invalid input data error

Describe the bug
Invalid time format error
To Reproduce
Send CISCO Nexus syslog to fluentd
Expected behavior
To be automatically parsed without errors
Your Environment

Fluentd or td-agent version: fluentd 1.10.0
Operating system: CentOS Linux 7
Kernel version: 3.10.0-1062.4.3.el7.x86_64

If you hit the problem with older fluentd version, try latest version first.
Your Configuration
<source>
  @type syslog
  port 5140
  bind <IP_ADDRESS>
  tag system
</source>

Logs
tail -f /var/log/td-agent/td-agent.log
2020-04-01 10:46:57 +0200 [error]: #0 invalid input data="<189>: 2020 Apr  1 09:46:57 CET: %ETH_PORT_CHANNEL-5-PORT_INDIVIDUAL_DOWN: individual port Ethernet104/1/6 is down" error_class=Fluent::TimeParser::TimeParseError error="invalid time format: value = : 2020 Apr, error_class = ArgumentError, error = string doesn't match"
2020-04-01 10:47:07 +0200 [error]: #0 invalid input data="<189>ITXNET03A: 2020 Apr  1 09:47:07 CET: %ETHPORT-5-SPEED: Interface Ethernet119/1/11, operational speed changed to 1 Gbps" error_class=Fluent::TimeParser::TimeParseError error="invalid time format: value = ITXNET03A: 2020 Apr, error_class = ArgumentError, error = string doesn't match"

As you see line above doesnt have hostname prepended and the host beyond has it. But error is in both situations.
AFAIK the fluentd should parse syslog messages automatically. as Cisco syslog is RFC rfc3164  (at least it tries:) )
What could i do to fix this behaviour ?
Also, do i need to parse it correctly if my goal is to send them via remote_syslog plugin or kafka plugin to logstash system ? and do the finam parsing there

Your log doesn't follow rfc3164. See https://tools.ietf.org/html/rfc3164#section-4.1.2
rfc3164 doesn't allow : between priority and timestamp.

thanks, so as i understand i need to parse it manually ?
Btw, maybe you know if;s possible to forward further (via remote syslog plugin) this unparsed log ? Thank you !

so as i understand i need to parse it manually ?

Yes.

Btw, maybe you know if;s possible to forward further (via remote syslog plugin) this unparsed log ?

I'm not sure your situation in detail but you might make it with in_tcp or in_udp.

And btw seems like the second log entry (from other device): obey that ":" rule:

rfc3164 doesn't allow : between priority and timestamp.
Priority is <189>  and timestamp is 2020 Apr 1 16:03:48. Please read RFC https://tools.ietf.org/html/rfc3164#section-4.1.2
If you have any question, Please ask in mailing list. https://github.com/fluent/fluentd/blob/master/CONTRIBUTING.md#got-a-question-or-problem

thank you.

Sorry to dig up this thread, I'm facing the very same issue with my firewalls, what solution did you apply @from88 ?

Hello, i made a configufation to just forward the log message without any parsing/formating

@from88 sorry to add a comment to this old thread. I removed the parse, filter, and format tags in the td-agent.conf file but I still get the TimeParseError error. How did you configure it to remove all parsing/formatting?

@from88 sorry to add a comment to this old thread. I removed the parse, filter, and format tags in the td-agent.conf file but I still get the TimeParseError error. How did you configure it to remove all parsing/formatting?

hello, i'm not using it anymore, but from the documentation i see that the configuration steps was like this:
0)https://docs.fluentd.org/installation/before-install
1)curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent3.sh | sh
2)
sudo systemctl start td-agent.service
sudo systemctl status td-agent.service
sudo systemctl enable td-agent.service

add iptables permantetly:
sudo iptables -A PREROUTING -t nat -p udp --dport 514 -i eth0 -j REDIRECT --to-port 5140
sudo iptables -A PREROUTING -t nat -p tcp --dport 514 -i eth0 -j REDIRECT --to-port 5140
iptables-save > /etc/sysconfig/iptables
nano /etc/rc.local
Load iptables rules from this file
iptables-restore < /etc/sysconfig/iptables
chmod +x /etc/rc.d/rc.local
systemctl start rc-local

install ruby 2.7:
https://tecadmin.net/install-ruby-latest-stable-centos/

install remote syslgo plugin
sudo td-agent-gem install fluent-plugin-remote_syslog

6)add sources and tables cat /etc/td-agent/td-agent.conf

  @type udp
  port 5140
  bind <IP_ADDRESS>
  tag systema
  format none
  source_address_key client_addr

  @type tcp
  port 5140
  bind <IP_ADDRESS>
  tag systema
  format none
  source_address_key client_addr

  @type remote_syslog
  host laas-logstash-shipper.service.discovery.pr.xxx.zone
  port 5560

@from88 sorry to add a comment to this old thread. I removed the parse, filter, and format tags in the td-agent.conf file but I still get the TimeParseError error. How did you configure it to remove all parsing/formatting?

hello, i'm not using it anymore, but from the documentation i see that the configuration steps was like this:
config.txt


Boost backdrop parallelism for the prefix sums

The backdrop stage can become quite a lot slower when there are objects covering a large area; this PR alleviates the issue by giving the prefix sum a little more parallelism when there are a lot of rows to process. For paris-70k scaled at 4x, this cuts down the backdrop stage from 340us to 292us (a very slight boost). This doesn't boost the overall performance much since the bottleneck is coarse and fine stages anyway, but I think backdrop's scalability issues might arise at some point and it's better to keep an eye on it.
One potential compatibility issue is that the workgroup size have been increased to 1024. I believe this is supported on most GPUs, but it needs further testing.
Profiling also shows further work we can do to improve the scalability. Right now, the backdrop stage is bounded by the maximum wavefront duration; in other words, the longest running thread dominates. (That's probably why there isn't significant perf boost with this change.) We can further parallelize on the column level through Segmented Reduction to alleviate this.
We might also try to sparsify the backdrop (this is done by Li et al), i.e. merging tiles that are horizontally adjacent and does not intersect with the outline into a single rectangular tile. I'm still not sure how to do it in piet-gpu's architecture though.

A workgroup size of 1024 will break some mobile GPUs such as the one in my Pixel 1. Its maximum workgroup size is the Vulkan minimum of 128.

We should probably beef up runtime querying of this limit and allow for permutations of the shader.

A workgroup size of 1024 will break some mobile GPUs such as the one in my Pixel 1. Its maximum workgroup size is the Vulkan minimum of 128.

@eliasnaur In that case, do you modify the shaders to run on the Pixel? The current workgroup size is 256, which is above that. Maybe the driver can transform the shader code to make it compatible though.

A workgroup size of 1024 will break some mobile GPUs such as the one in my Pixel 1. Its maximum workgroup size is the Vulkan minimum of 128.

@eliasnaur In that case, do you modify the shaders to run on the Pixel? The current workgroup size is 256, which is above that. Maybe the driver can transform the shader code to make it compatible though.

Good question. I added the LG_WG_FACTOR setting to work around this problem.

I see. I will look into the runtime permutations once I have the exam sorted.

I have implemented the runtime querying of threadgroup size. Please take a look.

Friendly ping!


flutter bash completion

It would be really nice to have a bash completion package so we don't always have to type the full commands in flutter

@kevmoo I came across https://github.com/kevmoo/completion.dart - but the readme is a little bare. Would it help here? flutter_tools uses the args package - seems like it should be easy to script bash completion (we already have a human-readable list via --help)?

@DanTup – I believe it would! The issue is startup time. There has been some discussion about creating a serialization format for the various flags/options that could parsed without a startup hit – or we could look into snapshots....

I'm not familiar with how this works; what's slow? As I understand it, all of the commands and their args are registered on every invocation of flutter and running flutter --help is fast; isn't this just an alternative output from that?
(I read https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial.html and have been assuming we'd just make a big flat file of the args; but now I wonder if your package is doing more than just that?)

If flutter --help is "fast", then completion is fast.

I just published 0.2.0 of completion to support the latest pkg:args – also include Dart2 fixes

@kevmoo It's not clear to me how to use/test it - I've tried reading through the example dart file and shell scripts but I'm still not exactly sure how to add it to a project. Are there any notes on it (or a PR on another project that added it)?

Oh, nm - looks like @gspencergoog picked this up 👍


meta: support python 3.11

can we merge and make a release for this?

anyone can take a look at this? thanks!

Thank you for the PR, and thanks all for your patience. Python 3.11 declared compatibility + testing added in https://github.com/anishathalye/dotbot/commit/eace76f6977e14e500574fa5cd9889518199782f.


[action] Support Reset next snapshot id of consumer id.

Purpose

Linked issue: close #1574

Tests

FlinkActionsE2eTest#testRecordConsumer
ConsumerActionITCase#testRecordConsumer
API and Format

Documentation

Thanks for contributing~ left some comments.

@yuzelin Thanks. done.

Not sure that whether it's necessary to introduce an method in public Table interface.
@JingsongLi Please take a look.

+1

Thanks. @JingsongLi


Document / adjust defaults for possible connection (already) closed issue when used on Swarm (due to IPVS)

The issue https://github.com/docker-library/postgres/issues/538 introduced a warning in the README about the Docker Swarm IPVS LB that timeouts TCP connections after 900 secs, which is lower than tcp_keepalive_time, so idle connections might become unavailable (cut by IPVS) while still being needed later, and that warning have since been removed (https://github.com/docker-library/docs/commit/5e28015ab2d9039a28daca5f7d65be996eb39234), probably due to the link being broken.
Could it be possible to reintroduce a warning about this, and/or to propose a default -ctcp_keepalives_idle=870 value (for example; and maybe tcp_keepalives_interval+tcp_keepalives_count)?
The old "success" documentation is visible at https://web.archive.org/web/20200611114911/https://success.docker.com/article/ipvs-connection-timeout-issue.
Possible solutions are:

connect to postgres without the LB using tasks.<service_name>

client must resolve on each connection in case the IP changed

use endpoint_mode: dnsrr to prevent using the LB

client must resolve on each connection in case the IP changed

use net.ipv4.tcp_keepalive_time: 870 (<900)
use -ctcp_keepalives_idle=870 (<900)

Example of all solutions (only one needed):
services:
  postgres:
    command:
      - postgres
      - -ctcp_keepalives_idle=300  # < 900
      # Maybe this too ?
      # - -ctcp_keepalives_interval=30
      # - -ctcp_keepalives_count=5
    sysctls:
      net.ipv4.tcp_keepalive_time: 720  # < 900
    deploy:
      endpoint_mode: dnsrr  # The client should resolve on each connection in case the task (IP) changed

  my_other_service:
    environment:
      POSTGRES_HOST: tasks.postgres  # The client should resolve on each connection in case the task (IP) changed

Sorry for the delay! :sob:
Unfortunately, I think tuning PostgreSQL for use within Swarm is probably out of scope for this repository. :see_no_evil: :disappointed:
Maybe we can add back a really small blurb about the problem in the docs, perhaps using this issue as our link instead of that old success article?


Broken test: ConnectionResetLoggedWithActiveStreams

A lot of tests seem to have been broken by our move to Http2. I'm Skipping them for now, but we need to triage and fix them.
Non-exhaustive list of failures here.
The collection contained 0 matching element(s) instead of 1.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.Http2ConnectionTests.<ConnectionResetLoggedWithActiveStreams>d__127.MoveNext() in /_/test/Kestrel.Core.Tests/Http2ConnectionTests.cs:line 1974
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Affected tests:

ConnectionResetLoggedWithActiveStreams

Duplicate of https://github.com/aspnet/KestrelHttpServer/issues/2359?


Padding issues a bug or something expected?

I have a structure with the following variables with go version go1.5.1 linux/amd64
type Foo struct {
    VarA uint64
    VarB uint32
}

and I created the f variable of Foo type with some values:
f := Foo{
    VarA: 9720496,
    VarB: 3,
}

when I printed that variable with gdb I saw something that I was not expecting:
(gdb) x/4w &f
0xc82008cc18:   0x009452b0      0x00000000      0x00000003      0x000000c8

where did the 'c8' came frome?
the unsafe.Sizeof(f) have a result of 16. Should I assume that golang doesn't set the padding bytes with zero as well?
As a workaround I had to add a variable unused so it would be clean.
type Foo struct {
    VarA   uint64
    VarB   uint32
    unused uint32
}

(gdb) x/4w &f
0xc82008cc18:   0x009452b0      0x00000000      0x00000003      0x00000000

Is this normal?
Thanks

Yes.  Go does not make any promises about padding bytes.  They might be 0, they might not.  If you care about what those values are, do as you did in the workaround.
Typically only stack variables will have nonzero padding bytes.  Of course with unsafe you can manufacture them anywhere.

Thanks for the reply, can you point me where I can found the docs stating that? I tried to find that before I filled the issue but wasn't able to. Thanks!

On 26 Jan 2016, at 04:22, Keith Randall<EMAIL_ADDRESS>wrote:
Yes. Go does not make any promises about padding bytes. They might be 0, they might not. If you care about what those values are, do as you did in the workaround.
Typically only stack variables will have nonzero padding bytes. Of course with unsafe you can manufacture them anywhere.
—
Reply to this email directly or view it on GitHub.

There are no docs about the padding bytes because Go makes no promises about them.  Any specific behavior may change in future releases or different implementations.  We don't generally document that there is nothing to document.


removing cecil phillip

Docs Build status updates of commit 9e2bac2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/cecil-phillip.yml
:white_check_mark:Succeeded

advocates/index.html.yml
:white_check_mark:Succeeded
View

advocates/media/profiles/cecil-phillip.png
:white_check_mark:Succeeded

advocates/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Design a process to publish, announce and document new releases

Currently, we don't have any process in the validator regarding:

Tagging new versions.
Generating publicly usable infra assets (docker images, binaries, etc.).
A changelog pipeline to explain what was included in each version.
Potential release notes that might need to explain to validator changes in their config or particular things to watch out for (e.g. migrations).
Keep improving and updating validator documentation. (Today, we only have a Notion doc, but we'll probably need a section in our docs).
What does merging to a branch means (e.g: merging to main)

When we start thinking about this, I feel it may be better to transform this GH issue into a full project since it has many angles to cover and requires scoping/discussion. I'm creating the GH issue to capture the need.

+1 for this. I was just chatting with @joewagner about the possibility of dynamically pulling in builds from GH releases in local-tableland vs. building a docker image locally. The added speed would greatly improve that DX.

Moving a couple comments from https://www.notion.so/textile/Tableland-Separating-testnet-and-mainnet-networks-f27372c2c43c41a38478b8e0e04abbb1 to here:

Maybe we consider using different tag formats to trigger deployments to testnet and mainnet.
Or we could move away from tags to trigger deployments and use GH Actions instead. I think I prefer this.

See our internal doc proposal.


BitCoin-BlockChain.ring

BitCoin-BlockChain.ring
How to use Class, Variables, and Functions in an OOP's manner

Thanks