api-events are not appearing

[org.logstash.plugins.pipeline.PipelineBus] Attempted to send event to 'api-events' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.

[2021-01-11T19:58:14,758][WARN ][org.logstash.plugins.pipeline.PipelineBus] Attempted to send event to 'api-events' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.
Also facing it. Please keep us posted if this has been fixed. Thanks!

[2021-01-11T19:58:14,758][WARN ][org.logstash.plugins.pipeline.PipelineBus] Attempted to send event to 'api-events' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.
Also facing it. Please keep us posted if this has been fixed. Thanks!

Need a bit more info on that. What version are you using? Is it happening at startup or a shutdown?

Need a bit more info on that. What version are you using? Is it happening at startup or a shutdown?

logstash 7.10.1 - it's happening during the startup.
I also had to comment out the "UseParNewGC" instruction in java options file. It was giving me an error, even considering I'm using JDK 8.

logstash 7.10.1 - it's happening during the startup.
I also had to comment out the "UseParNewGC" instruction in java options file. It was giving me an error, even considering I'm using JDK 8.

Are there any other errors indicating that api-events pipeline is unable to start? Does this error repeat every X seconds (i.e. login http_poller frequency), or is it just one off?

Are there any other errors indicating that api-events pipeline is unable to start? Does this error repeat every X seconds (i.e. login http_poller frequency), or is it just one off?

Yes, I just realized that there were some outputs being thrown before, as here -->
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/accounts/api/me", :code=>401, :response=>"Unauthorized"}
It seems something with the login pipeline. I even tried to hardcode my password and user in the file, but no luck. It only worked when I hardcoded the generated token, by requesting it through a cURL request, as following:
curl -XPOST -H 'Content-Type: application/x-www-form-urlencoded' -d 'username=xxx&password=xxx' 'https://anypoint.mulesoft.com/accounts/login'
For me, it seems something during the login phase which is not actually being able to extract the generated token, or even, not being able to properly login
http_poller {
urls => {
login => {
# Supports all options supported by ruby's Manticore HTTP client
method => post
url => "https://anypoint.mulesoft.com/accounts/login"
headers => {
"Content-Type" => "application/x-www-form-urlencoded"
}
body => "username=${CH_USER}&password=${CH_PASSWORD}"
}
}

Yes, I just realized that there were some outputs being thrown before, as here -->
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/accounts/api/me", :code=>401, :response=>"Unauthorized"}
It seems something with the login pipeline. I even tried to hardcode my password and user in the file, but no luck. It only worked when I hardcoded the generated token, by requesting it through a cURL request, as following:
curl -XPOST -H 'Content-Type: application/x-www-form-urlencoded' -d 'username=xxx&password=xxx' 'https://anypoint.mulesoft.com/accounts/login'
For me, it seems something during the login phase which is not actually being able to extract the generated token, or even, not being able to properly login
http_poller {
urls => {
login => {
# Supports all options supported by ruby's Manticore HTTP client
method => post
url => "https://anypoint.mulesoft.com/accounts/login"
headers => {
"Content-Type" => "application/x-www-form-urlencoded"
}
body => "username=${CH_USER}&password=${CH_PASSWORD}"
}
}

So, I understand the curl login statement works, while http_poller doesn't?
What payload does curl return?

So, I understand the curl login statement works, while http_poller doesn't?
What payload does curl return?

This is correct. I tried to debug but it's a bit hard to in Logstash, not an expert on it...
By the way, the payload cURL returns the following structure...
{     "access_token": "197bxxe1-ae02-466b-...",     "token_type": "bearer",     "redirectUrl": "/home/" }
I see that your script is trying to whitelist the access_token and key name is fine. Not sure why it does not authenticate in the ruby request.

This is correct. I tried to debug but it's a bit hard to in Logstash, not an expert on it...
By the way, the payload cURL returns the following structure...
{     "access_token": "197bxxe1-ae02-466b-...",     "token_type": "bearer",     "redirectUrl": "/home/" }
I see that your script is trying to whitelist the access_token and key name is fine. Not sure why it does not authenticate in the ruby request.

Is there cookies: false set on http_poller, as per #2 ?

Is there cookies: false set on http_poller, as per #2 ?

Yes, I have added in the http_poller , as shown here -->
# 1. Kick off with the login poll   http_poller {     cookies => "false"     urls => {       login => {
The error changed, meaning that it could pass from the "api/me" and other calls contained in the login pipeline. Now, the issue is happening during the next steps of the pipeline. In my case, I have just configured the logs pipeline to run, to simplify the process and troubleshooting.
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/cloudhub/api/v2/applications", :code=>401, :response=>"{\"error\":\"Unauthorized\",\"message\":\"Failed to create session using the supplied Authorization header\"}"}
Seems that it cannot recover the access_token from the previous pipeline poller. Any idea?

Yes, I have added in the http_poller , as shown here -->
# 1. Kick off with the login poll   http_poller {     cookies => "false"     urls => {       login => {
The error changed, meaning that it could pass from the "api/me" and other calls contained in the login pipeline. Now, the issue is happening during the next steps of the pipeline. In my case, I have just configured the logs pipeline to run, to simplify the process and troubleshooting.
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/cloudhub/api/v2/applications", :code=>401, :response=>"{\"error\":\"Unauthorized\",\"message\":\"Failed to create session using the supplied Authorization header\"}"}
Seems that it cannot recover the access_token from the previous pipeline poller. Any idea?

There is http filter plugin being used there, not input and it has cookies flag.
https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html
This is the curl equivalent for the GET applications call that uses the token that works for me:
curl --location --request GET 'https://anypoint.mulesoft.com/cloudhub/api/applications?retrieveStatistics=true&period=3600000&intervalCount=50&authentication_token=c3xxx9d4-52ed-46a1-9fc1-xxx' \
--header 'X-ANYPNT-ENV-ID: yyy-8fe9-4331-b552-xxx' \
--header 'Authorization: Bearer c3xxx9d4-52ed-46a1-9fc1-xxx'

There is http filter plugin being used there, not input and it has cookies flag.
https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html
This is the curl equivalent for the GET applications call that uses the token that works for me:
curl --location --request GET 'https://anypoint.mulesoft.com/cloudhub/api/applications?retrieveStatistics=true&period=3600000&intervalCount=50&authentication_token=c3xxx9d4-52ed-46a1-9fc1-xxx' \
--header 'X-ANYPNT-ENV-ID: yyy-8fe9-4331-b552-xxx' \
--header 'Authorization: Bearer c3xxx9d4-52ed-46a1-9fc1-xxx'

You are right, spent sometime today trying to make it work, finally worked once I have also included the cookies => "false"  to all http operations during the pipeline.
Therefore, it worked for a couple minutes fine, but after that (probably due to token expiration), it started again to have issues, as same as before
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/cloudhub/api/v2/applications", :code=>401, :response=>"{\"error\":\"Unauthorized\",\"message\":\"Failed to create session using the supplied Authorization header\"}"}
What do you mean mean above, I presume, is getting the code to work with the old version of the API (non v2)?
Thanks.

You are right, spent sometime today trying to make it work, finally worked once I have also included the cookies => "false"  to all http operations during the pipeline.
Therefore, it worked for a couple minutes fine, but after that (probably due to token expiration), it started again to have issues, as same as before
[ERROR][logstash.filters.http    ] error during HTTP request {:url=>"https://anypoint.mulesoft.com/cloudhub/api/v2/applications", :code=>401, :response=>"{\"error\":\"Unauthorized\",\"message\":\"Failed to create session using the supplied Authorization header\"}"}
What do you mean mean above, I presume, is getting the code to work with the old version of the API (non v2)?
Thanks.

I used v1 and v2 APIs when I built it.
I think the problem with your setup is getting the initial token. Does initial login http_poller  output give the token_type: bearer?
Also, this is the equivalent curl statement I run to get the bearer token:
curl --location --request POST 'https://anypoint.mulesoft.com/accounts/login' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=yy' \
--data-urlencode 'password=xx'

The response I am getting is:
{
  "access_token": "xxx-52ed-46a1-9fc1-yyy",
  "token_type": "bearer",
  "redirectUrl": "/home/"
}

Is it the same as you are seeing and using?

I used v1 and v2 APIs when I built it.
I think the problem with your setup is getting the initial token. Does initial login http_poller  output give the token_type: bearer?
Also, this is the equivalent curl statement I run to get the bearer token:
curl --location --request POST 'https://anypoint.mulesoft.com/accounts/login' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=yy' \
--data-urlencode 'password=xx'

The response I am getting is:
{
  "access_token": "xxx-52ed-46a1-9fc1-yyy",
  "token_type": "bearer",
  "redirectUrl": "/home/"
}

Is it the same as you are seeing and using?

This is correct. The token is generated of type bearer.
{     "access_token": "xxx-133e-4f8d-xxx-16bae2cxxx",     "token_type": "bearer",     "redirectUrl": "/home/" }
The workflow is now working, but the problem is that it only works for a couple minutes, until the TTL associated with the token expires, I start to see the mentioned issues again, and need to restart the process in order to work it properly. It seems the token is not re-generated. Is there to output the token information being used, as well as http requests by outputting it to logs? There could be helpful to understand which token is being used, and if in fact it's regenerating the token or using always the same one.

This is correct. The token is generated of type bearer.
{     "access_token": "xxx-133e-4f8d-xxx-16bae2cxxx",     "token_type": "bearer",     "redirectUrl": "/home/" }
The workflow is now working, but the problem is that it only works for a couple minutes, until the TTL associated with the token expires, I start to see the mentioned issues again, and need to restart the process in order to work it properly. It seems the token is not re-generated. Is there to output the token information being used, as well as http requests by outputting it to logs? There could be helpful to understand which token is being used, and if in fact it's regenerating the token or using always the same one.

Can you please test the following?
login.conf:
input {

  http_poller {
    urls => {
      login => {
        # Supports all options supported by ruby's Manticore HTTP client
        method => post
        url => "https://anypoint.mulesoft.com/accounts/login"
        headers => {
          "Content-Type" => "application/x-www-form-urlencoded"
        }
        body => "username=${CH_USER}&password=${CH_PASSWORD}"
     }
    }
    request_timeout => 120
    schedule => { "every" => "30s"}
    codec => "json"
  }
}

filter {
  ruby {
    code => "event.set('now_ms', Time.now.to_i * 1000)"
  }

  # After login, leave just the access_token
  prune {
    whitelist_names => [ "now_ms", "access_token" ]
  }

}

output {
  stdout { codec => rubydebug }
}

Run logstash with the above config and your username and password following:
CH_USER=yourusername CH_PASSWORD=yourpwd bin/logstash -f login.conf

Validate that you are seeing the token being displayed after about 30 seconds or so:
[2021-01-20T21:59:50,751][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9600}
{
    "access_token" => "xxx-65ab-4465-92a1-yyy",
          "now_ms" =><PHONE_NUMBER>000
}

Can you please test the following?
login.conf:
input {

  http_poller {
    urls => {
      login => {
        # Supports all options supported by ruby's Manticore HTTP client
        method => post
        url => "https://anypoint.mulesoft.com/accounts/login"
        headers => {
          "Content-Type" => "application/x-www-form-urlencoded"
        }
        body => "username=${CH_USER}&password=${CH_PASSWORD}"
     }
    }
    request_timeout => 120
    schedule => { "every" => "30s"}
    codec => "json"
  }
}

filter {
  ruby {
    code => "event.set('now_ms', Time.now.to_i * 1000)"
  }

  # After login, leave just the access_token
  prune {
    whitelist_names => [ "now_ms", "access_token" ]
  }

}

output {
  stdout { codec => rubydebug }
}

Run logstash with the above config and your username and password following:
CH_USER=yourusername CH_PASSWORD=yourpwd bin/logstash -f login.conf

Validate that you are seeing the token being displayed after about 30 seconds or so:
[2021-01-20T21:59:50,751][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9600}
{
    "access_token" => "xxx-65ab-4465-92a1-yyy",
          "now_ms" =><PHONE_NUMBER>000
}

Yes, I can see the access token being generated.
[Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9600} {     "access_token" => "yyy-7082-4476-9098-xxx",           "now_ms" =><PHONE_NUMBER>000 }
The token seems to be generated OK, but the problem seems to be when it tries to renew the token in each iteration, like if it would be attached to the cookies or session, something like that... and that throws the 401 then.

Yes, I can see the access token being generated.
[Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9600} {     "access_token" => "yyy-7082-4476-9098-xxx",           "now_ms" =><PHONE_NUMBER>000 }
The token seems to be generated OK, but the problem seems to be when it tries to renew the token in each iteration, like if it would be attached to the cookies or session, something like that... and that throws the 401 then.

I am seeing the problem with the 2nd call and onwards.
[2021-01-21T09:28:25,048][ERROR][logstash.codecs.json     ][main][ceaf93f695de8bcf2a668df85bdcf794245f718da55f4966e7d8555433bab440] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'invalid': was expecting ('true', 'false' or 'null')
 at [Source: (String)"invalid csrf token"; line: 1, column: 8]>, :data=>"invalid csrf token"}
{
    "now_ms" =><PHONE_NUMBER>000
}

I am seeing the problem with the 2nd call and onwards.
[2021-01-21T09:28:25,048][ERROR][logstash.codecs.json     ][main][ceaf93f695de8bcf2a668df85bdcf794245f718da55f4966e7d8555433bab440] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'invalid': was expecting ('true', 'false' or 'null')
 at [Source: (String)"invalid csrf token"; line: 1, column: 8]>, :data=>"invalid csrf token"}
{
    "now_ms" =><PHONE_NUMBER>000
}

Adding cookies => "false" option fixes it:
input {

  http_poller {
    urls => {
      login => {
        # Supports all options supported by ruby's Manticore HTTP client
        method => post
        url => "https://anypoint.mulesoft.com/accounts/login"
        headers => {
          "Content-Type" => "application/x-www-form-urlencoded"
        }
        body => "username=${CH_USER}&password=${CH_PASSWORD}"
     }
    }
    request_timeout => 120
    schedule => { "every" => "10s"}
    codec => "json"
    cookies => "false"
  }
}

filter {
  ruby {
    code => "event.set('now_ms', Time.now.to_i * 1000)"
  }

  # After login, leave just the access_token
  prune {
    whitelist_names => [ "now_ms", "access_token" ]
  }

}

output {
  stdout { codec => rubydebug }
}

Let me know if it works for you.

Adding cookies => "false" option fixes it:
input {

  http_poller {
    urls => {
      login => {
        # Supports all options supported by ruby's Manticore HTTP client
        method => post
        url => "https://anypoint.mulesoft.com/accounts/login"
        headers => {
          "Content-Type" => "application/x-www-form-urlencoded"
        }
        body => "username=${CH_USER}&password=${CH_PASSWORD}"
     }
    }
    request_timeout => 120
    schedule => { "every" => "10s"}
    codec => "json"
    cookies => "false"
  }
}

filter {
  ruby {
    code => "event.set('now_ms', Time.now.to_i * 1000)"
  }

  # After login, leave just the access_token
  prune {
    whitelist_names => [ "now_ms", "access_token" ]
  }

}

output {
  stdout { codec => rubydebug }
}

Let me know if it works for you.

I tried this and now it dose not store any CSRF token and the flow works fine but, I still didn't get the data of api-events
`input {
1. Kick off with the login poll
http_poller {
urls => {
login => {
# Supports all options supported by ruby's Manticore HTTP client
method => post
url => "https://anypoint.mulesoft.com/accounts/login"
cookies => "false"
headers => {
"Content-Type" => "application/x-www-form-urlencoded"
}
body => "username=${CH_USER}&password=${CH_PASSWORD}"
}
}
request_timeout => 120
# Supports "cron", "every", "at" and "in" schedules by rufus scheduler
# schedule => { cron => "* * * * * UTC"}
schedule => { "every" => "60s"}
codec => "json"
cookies => "false"
# A hash of request metadata info (timing, response headers, etc.) will be sent here
# metadata_target => "http_poller_metadata"
}
}`

I tried this and now it dose not store any CSRF token and the flow works fine but, I still didn't get the data of api-events `input {
1. Kick off with the login poll
http_poller { urls => { login => { # Supports all options supported by ruby's Manticore HTTP client method => post url => "https://anypoint.mulesoft.com/accounts/login" cookies => "false" headers => { "Content-Type" => "application/x-www-form-urlencoded" } body => "username={CH_USER}&password={CH_USER}&password={CH_PASSWORD}" } } request_timeout => 120 # Supports "cron", "every", "at" and "in" schedules by rufus scheduler # schedule => { cron => "* * * * * UTC"} schedule => { "every" => "60s"} codec => "json" cookies => "false" # A hash of request metadata info (timing, response headers, etc.) will be sent here # metadata_target => "http_poller_metadata" } }`

Can you replicate this API call in Postman and see if there are any API events in your app at all?

As you suggested, I tried calling event api it return empty array
curl --request GET \   --url 'https://anypoint.mulesoft.com/analytics/1.0/********-*****-*****/events?format=json&startDate=2022-05-01T00%3A40%3A19.000Z&endDate=2022-05-30T06%3A19%3A05.674Z&fields=Application%20Name%2C%20City' \   --header 'Authorization: Bearer e*****-******-*********'

Do we have enable some api-events in anypoint ? If yes then please tell me how I can do that.

So i am getting api-events after changing url
https://anypoint.mulesoft.com:443/analytics/1.0/%{organization_id}/environments/%{environment_id}/events?format=json&startDate=%{latest_timestamp}&endDate=%{now_formatted}&fields=Application.Application%20Name.Browser.City.Client%20IP.Continent.Country.Hardware%20Platform.Message%20ID.OS%20Family.OS%20Major%20Version.OS%20Minor%20Version.OS%20Version.Postal%20Code.Request%20Outcome.Request%20Size.Resource%20Path.Response%20Size.Response%20Time.Runtime%20Host.Status%20Code.Timezone.User%20Agent%20Name.User%20Agent%20Version.Verb.Violated%20Policy%20Name
We have to specify environment

You can also use this url
https://anypoint.mulesoft.com:443/analytics/1.0/%{organization_id}/environments/%{environment_id}/events?format=json&duration=5h&fields=Application.Application%20Name.Browser.City.Client%20IP.Continent.Country.Hardware%20Platform.Message%20ID.OS%20Family.OS%20Major%20Version.OS%20Minor%20Version.OS%20Version.Postal%20Code.Request%20Outcome.Request%20Size.Resource%20Path.Response%20Size.Response%20Time.Runtime%20Host.Status%20Code.Timezone.User%20Agent%20Name.User%20Agent%20Version.Verb.Violated%20Policy%20Name
Instead of start and end date, mention duration.


"git pull from" should also show remote branches

On "GIt: Pull From..." command, There isn't remote branches list. We can only type the branch name..

I'd like to take on this if no one else it on it yet 😄

@misoguy go for it!

Hello,
Is this issue assigned already? If not I could work on that?

@moguzozcan You can work on it if you want 👍 I didn't have much time this week 😞

Ok I'll take this issue if that is ok, you can assign me. @itamark could you give me any hints since this is my first time in vscode. Thank you

@moguzozcan I'm not authorized to assigning but I could give you some hints.
You should probably checkout extensions/git/src/commands.ts here.
I have roughly implemented a working version on my local pc but I thought it would be better to give someone new a chance :)

@misoguy Thanks for your help :) I've started work on it.

@moguzozcan Any updates on this issue?

@moguzozcan Do you need some help?

I am having problems while trying to debug the git extension. I am looking into it but it goes slowly, I may drop it maybe?

@moguzozcan If you are going to drop it, I'll work on it from tomorrow :)

@misoguy I think it's better you'll take this issue :)

Understood :)

Hello, mind if I do a pull request on this? I think I have a solution for it.

Thank you. I guess that's a good sign 👍

Fixed by https://github.com/Microsoft/vscode/pull/39216


Questions about paper COCO detection numbers

Hi all,
In table 4 of the arxiv preprint https://arxiv.org/pdf/2106.09785.pdf, the reported AP^bb of Supervised = 46.0
Why is this number lower than the ones reported in the Swin paper ?

See Table 2 (b) of https://arxiv.org/pdf/2103.14030.pdf
Swin-S AP^box=51.8

Also, what object detection method are you using? Is it Mask RCNN or Cascade? There is no mention of the detection method used in the paper.
Thanks!

Thanks for the question. I used Mask R-CNN as the object detection method, when reporting results in Table 4.
I think that Cascade Mask R-CNN was used in Table 2(b) of Swin paper. You may want to take a look at numbers reported in the following link, where the results are matched.
https://github.com/SwinTransformer/Transformer-SSL


webviewer doesn't work as-is

I tried the arcgis web viewer as you have described in the README:
https://www.arcgis.com/home/webmap/viewer.html?url=http://localhost:8080/pg/myschema.mytable/FeatureServer/

Unable to establish a secure HTTPS connection to the layer. The layer, myschema.mytable, cannot be added to the map.  The server appears to be listening, and appears to be configured as described including the PG_OBJECTID environment variable.
I suspect this is a CORS issue of some sort.  Anyway, I wanted to point out that it doesn't work directly as described.
I think I have everything set up correctly.  What are some other simple local urls I can check to see if I get the appropriate geojson back?  (or anything at all)

Well, firstly, the local URL is no longer as described in the readme, it should be something like
http://localhost:8080/pg/rest/services/myschema.mytable/FeatureServer/0/query?where=<something>

That exposed issues with my database that I'm still figuring out.  I suspect the arcgis viewer will work once I get it resolved, but meanwhile wanted to point out the different path than found in the documentation here.

Ok, the problem was the geometry columns table showed the srid for the relevant column in mytable to be 0 which is not a legal srid.  Once I hacked the query in src/db/sql/getGeometryColumnName.sql to return a default srid, the endpoint worked.  I'll probably fork and do a PR for this repo if we continue down the path of using Koop.  I'll update the docs in the same PR.  I'm leaving this issue open for the moment because the docs are wrong.

The url pattern works for me, please share the changes you required to get it to work. Below is an example of a table, with schema.table not requiring a query parameter

I don't have the code I was using when testing back then, because I gave up on using koop since it would require a significant fork for our use case, but I believe I simply changed the query from:
select f_geometry_column, srid  from geometry_columns ...

to something like
select f_geometry_column, case when srid = 0 then 4326 else srid end as srid from geometry_columns

I cannot get the endpoint to work. I get this error
error TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(ugs_general, ugs_gw_sites) - Error: TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(ugs_general, ugs_gw_sites)"
WHen trying this url https://ugs-koop-umfdxaxiyq-wm.a.run.app/pg/rest/services/ugs_general.ugs_gw_sites/FeatureServer

@jjhi11 What is the name of your databases geometry column and srid?

@doneill wkb_geometry and 4326

Those are the values returned for the schema.table you are trying to view when querying the database directly?  E.g. SELECT * FROM geometry_columns;

Um not too sure on that. Here is a sample of what is returned on a * query to the table.

I apologize. Here are my geometry_columns.

Old thread, but wanted to update to confirm the url in this format works
https://www.arcgis.com/home/webmap/viewer.html?url=http://localhost:8080/pg/rest/services/{schema}.{table}/FeatureServer/

select f_geometry_column, srid  from geometry_columns ...

to something like
select f_geometry_column, case when srid = 0 then 4326 else srid end as srid from geometry_columns

@rotten
I updated with the following commit

Old thread, but wanted to update to confirm the url in this format works
https://www.arcgis.com/home/webmap/viewer.html?url=http://localhost:8080/pg/rest/services/{schema}.{table}/FeatureServer/

Updated README

I cannot get the endpoint to work. I get this error
error TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(ugs_general, ugs_gw_sites) - Error: TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(ugs_general, ugs_gw_sites)"
WHen trying this url https://ugs-koop-umfdxaxiyq-wm.a.run.app/pg/rest/services/ugs_general.ugs_gw_sites/FeatureServer

@jjhi11
Updated to error more gracefully when geometry column can't be found in this commit

Closing with referenced updates


Initial communities don't have images

Is this for replacing the map with images?

The map only displays if there's no image, so just adding images should be enough


MPI and mesh.readout

Hello - I was wondering if there is a way to take advantage of MPI parallelization when painting and sampling a density field on a mesh. My current attempt looks like
mesh  = CatalogMesh(data_positions=data_positions,
                    boxsize=boxsize, cellsize=cellsize,
                    resampler='cic', position_type='pos',
                    mpicomm=mpicomm, mpiroot=mpiroot)

where data_positions are gathered on rank 0. I'd like to smooth the field and sample it around random positions, so I'm doing
data_mesh = mesh.to_mesh(field='data', compensate=True)
data_mesh = data_mesh.r2c().apply(Gaussian(r=smoothing_radius))
data_mesh = data_mesh.c2r()

norm = np.sum(data_mesh.value) / (nmesh[0]*nmesh[1]*nmesh[2])
density_mesh = data_mesh / norm - 1

if mpicomm.rank == mpiroot:
    sampling_positions = np.random.uniform(0, boxsize, (100_000, 3))
    density = density_mesh.readout(sampling_positions)
    np.save('density.npy', density)

I see a huge speed up when running the above on multiple processors with MPI, but the output density field is only correct when using a single process. What would be the proper way of sampling the field with multiple tasks?
Thanks a lot!

the only thing that you need to take care of is to distribute the particles in the domain of the grid each process keeps in memory. This can be done with:
sampling_positions = np.random.uniform(0, boxsize, (100_000, 3)) if mpicomm.rank == mpiroot else np.zeros((0, 3), dtype='f8')
resampler = 'cic'
layout = density_mesh.pm.decompose(positions, smoothing=resampler)
positions = layout.exchange(positions)   # exchange particles such that they are associated to the
density = density_mesh.readout(positions, resampler=resampler)
density = layout.gather(values, mode='sum', out=None)  # redistribute particles as initially
if mpicomm.rank == mpiroot:  # only mpiroot has non-empty array of positions; if that was not the case, you need to mpi.gather(density, mpicomm=mpicomm, mpiroot=mpiroot) first
    np.save('density.npy', density)
    np.save('density.npy', density)

Thanks for the prompt reply! I just tested what you proposed above, and now the shape of the PDF makes much more sense, although the normalization still seems to be off. I noticed that if I call mpi.reduce when calculating norm, the results are correct and agree with the single-process case:
norm = mpicomm.allreduce(np.sum(data_mesh.value)) / (nmesh[0]*nmesh[1]*nmesh[2])
Does this make sense to you? I Just wanna make sure I'm not compensating for some other mistake in my code.

yes, that's 100% correct, I forgot to specify that!

Awesome, thanks a lot :) Everything seems to be working now. Sad thing is, my initial enthusiasm about the increase in speed has vanished now, as it seems the decrease in wallclock time doesn't compensate for the overhead from spawning multiple processes...
I have now switched to the openMP multithreading implementation in pyrecon, which reduced the time my code spends in mesh calculations by more than 50%, so I'll probably stick to that for the moment. Thanks again for all the help!


Problem with receiving signals

Hello!
I have a problem with receiving signals.
When I launch the bot, it only writes the word Signal to me but does not write other data.
What should I do?
Thank you!

It just looks like there are no signals with the parameters you have set up. In the congif.py file, try tickers = [] to query over all pairs, and n_periods = 1000. Otherwise copy-paste here you config.py file and I will have a look at it.

kline = dict(tickers = ['BTCUSDT'],
intervals = ['1m'],
n_periods = 500,
start_time = '15 Aug, 2022',
end_time = '16 Aug, 2022')
live_bot = dict(live = False,
sleep = 20,
threading = True,
telegram_token = '******************',
telegram_chat_id = [''],
discord_web_hook = [''])
P.S. * - for my privacy

But have you tried what I said?

Thank you very much for the quick reply!
It helps me.
But I got a new error:

You just exceeded the number of requests to Binance. Try using a larger value for sleep if you are in the live bot mode.


Cache-crawler checks

Don't crawl if:

[x] Link starts with #
[x] Link is undefined or length == 0

Added in 30f9ac2


Reading stats question

I found this in mobileread. And just want to ask it isn't working anymore right? Thanks.
Manipulate reading stats:
  - Enabled: yes
  - Description: Always add 10 hours to the reading time every time you close a book.
  # in EventEngine::endReadingSession(*Volume) when recording end of reading session stats, change QDateTime::secsTo calls to a fixed value
  - ReplaceBytes: {Offset: 0x4D53A0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535
  - ReplaceBytes: {Offset: 0x4D53C0, FindBLX: 0x425270, ReplaceH: 4F F6 FF 70} # MOV  r0, #65535

No, but if you have something specific you want to modify, PM me on MobileRead, and I'll do something for you.


how to customise the way string literals are printed?

I'd like to use org.apache.commons.lang.StringEscapeUtils.escapeJava to print string literals.
How can I  customise pprint for doing so?

https://github.com/lihaoyi/PPrint/blob/master/pprint/shared/src/test/scala/test/pprint/AdvancedTests.scala#L98-L102
http://www.lihaoyi.com/PPrint/#Customization

It works, thanks.
import org.apache.commons.lang.StringEscapeUtils.escapeJava

object Test extends App {
  val additionalHandlers: PartialFunction[scala.Any, pprint.Tree] = {
    case x: String => pprint.Tree.Literal("\"" + escapeJava(x) + "\"")
  }
  val printer = pprint.copy(additionalHandlers = additionalHandlers)

  case class Person(name: String, age: Int, note: String)
  val p = Person(name = "John \"The First\"", age = 33, note = "first line\nsecond line")

  printer.pprintln(p)  // Person("John \"The First\"", 33, "first line\nsecond line")
}

Should I add this example to http://www.lihaoyi.com/PPrint/#Customization and make a pull request?


Performance Evalution Metric

Hi brentspell,
What is the PERFECT/BEST evaluation metric for BWE ? POLQA can be used for BWE evalution metric or not?

If you take a look at the original paper, the authors use Peak Signal-to-Noise Ratio (PSNR) and Log-Spectral Distance (LSD) as objective evaluation metrics. However, they note that these aren't great indicators of perceptual quality, so they collect Mean Opinion Scores (MOS) using Amazon Mechanical Turk. I haven't done any of these evaluations myself.
I have had some success in the past with the PESQ evaluation metric for vocoders. However, using it requires downsampling to 16kHz, which probably won't work well for bandwidth extension.


fix: don't re-check whether the file is ADV while writing each batch

Re-computing file.IsADV() as each batch is written becomes remarkably expensive for files containing large number of batches.
This change just serves to compute it once up-front during each write.

Codecov Report

Merging #1149 (c166022) into master (770e3be) will decrease coverage by 1.61%.
The diff coverage is 80.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1149      +/-   ##
==========================================
- Coverage   91.69%   90.07%   -1.62%
==========================================
  Files          66       71       +5
  Lines        6212     6733     +521
==========================================
+ Hits         5696     6065     +369
- Misses        317      401      +84
- Partials      199      267      +68

Yea, that's a great find. Thanks @Deiz!


aspect ratio stuck at 16:9

OS: Android 10 (LineageOS 17.1)
Device: Samsung Galaxy A3 (2017)
Camera Release 45 (from July 31)
I have the issue that the aspect ratio toggle does neither change the preview nor the actual photo. I am currently stuck at 16:9. Every photo I take has the same resolution (3264 x 1836) regardless of the aspect ratio I set. It's also odd since this phone does have a 12.8 MP camera; thus the resolution for 16:9 photos should be something like 4128 x 2322.

I downloaded Open Camera from F-Droid as a comparison and changing the aspect ratio here does have an effect.

This is an issue with your OS / device, not GrapheneOS Camera. The issue will occur in other apps using CameraX too.


AdvancedMH external-sampler tests fail intermittently with 2 threads

https://github.com/TuringLang/Turing.jl/blob/24e68701b01695bffe69eda9e948e910c1ae2996/test/mcmc/abstractmcmc.jl#L187-L211
These tests seem to fail intermittently on the runner using ubuntu-latest; Julia 1.10; x64; 2 threads. I've observed it happen twice now.
Compare e.g. this failure with this success (the codebase was exactly the same, the only thing I did to get it to pass was to rerun CI).

Apparently AdvancedHMC external-sampler tests also randomly fail, so maybe it's an external sampler problem.
Example: https://github.com/TuringLang/Turing.jl/actions/runs/11484388154/job/31971970590?pr=2354


Chinese language before login is not working

Summary
Chinese language before login is not working.
Environment Information

Mattermost App Version: 0.0.1

Expected behavior
In select server and login page,the language should be right.
Observed behavior
In select server and login page,the language is always Enlish,but my system is ZH environment.
After user login success,the language show right.
Possible fixes
Does  something wrong in intl component?

Hi @lin493369 - when you say your system is in ZH environment, do you mean your Mattermost server?
What language is your device set to?

Hi @lin493369
Please check the translations on the translation server or look for the translations in the localized file.
If the translation is there then we should see why is it happening as it is then most likely a bug.

I'll close this issue off here for now due to inactivity.  If you're still experiencing problems, please feel free to open a new issue and we'll help troubleshoot further.  Thanks!


Change ReadOnly to IsReadOnly

This issue was raised in the AppConfig API review.
This is consistent with naming on ICollection, and others.

https://github.com/Azure/azure-sdk/issues/720


What does the -n option in renew do?

Is that a way to choose which certificate is used in renewing the provisioning profile?

Run
sigh renew --help

 -n, --cert_name STRING The name of the generated certificate file.

Does that answer your question?

It's the name of the file in which the certificate will be stored after downloading it.

So it's for renewing certificates?
I was hoping to use it to select the certificate used to renew a provisioning profile.
Right now sigh uses the first certficate available. I need it to pick another one in the list (there a two in our list)

Yes, as you've seen in issue https://github.com/KrauseFx/sigh/issues/17, it's currently not possible. Sorry about that.
If it gets implemented or someone sends in a pull request, I'll update the issue https://github.com/KrauseFx/sigh/issues/17

Cool Thnx. In the meantime, we'll see if we can revoke that certificate so we still use sigh. (We are enrolled in the Enterprise Program). I'm planning to integrate it into our app resign process so we can easily resign an app and have a renewed provisioning profile with the maximum lifetime available.

Fixed with https://github.com/KrauseFx/sigh/pull/39
Thanks @almassapargali :+1:


 Most important caches are the ones in scalasig.
Notice that I basically copy-pasted scalameta code into a micro-fork; there's a related issue here: https://github.com/scalameta/scalameta/issues/1875
More of a "check out these hacks" rather than a PR in any sense.

What I probably wanted was a draft PR, closing for now.


Can't attach EULA to DMG in Big Sur

hditul flatten/unflatten verbs are deprecated and removed in macOS Big Sur. So it's not possible to attach EULA to a DMG in Big Sur. I saw alternative solution here:
developer.apple.com/forums/thread/668084
Please fix it.

@Aleksid1 you've managed to use the method in the link?

No, I couldn't. I've understood an idea with hdiutil udifrez , but I couldn't find complete files with examples: my-eula.plist.template and my-eula.plist

Reading at the post, you should extract that PLIST using:
hdiutil udifderez -xml <YOUR_DMG_PATH>

Then introduce your EULA content there.
It's a little tricky because you have mixed steps in the main post and in an answer:
https://developer.apple.com/forums/thread/668084?answerId=652142022#652142022
I'm willing to bring this fix to create-dmg. Thanks for the tip @Aleksid1.

Thanks for your advice! Regrettably I still can't perform these steps correctly.
I would grateful for your help with modifiying the script. I can check it and inform you about a result. I have 2 Macs with Big Sur - Intel and M1.

You can already test it: https://github.com/create-dmg/create-dmg/commit/f75cc032d77672adab60cebd49db000a8ff7446a
Just clone the repository and check it out.

You can already test it: https://github.com/create-dmg/create-dmg/commit/f75cc032d77672adab60cebd49db000a8ff7446a
Just clone the repository and check it out.

Thank you very much! License was attached to a DMG correctly.
I tested on Macbook Air M1 / macOS 11.1 Big Sur

Thank you very much! License was attached to a DMG correctly.
I tested on Macbook Air M1 / macOS 11.1 Big Sur


Implement request client with pycurl

With pycurl client, HttpRunner will be able to get detailed time of each stages.
time_namelookup:	   0.252892
time_connect:		   0.389094
time_appconnect:	   1.126634
time_redirect:		   0.000000
time_pretransfer:	   1.126850
time_starttransfer:	   1.260568
time_total:		   14.232518

在功能将在 Go 版本中进行支持 #1187


Jodit Pro React Re- rendering

Tried, this is happening for me too

You can hide using Css

You can hide using Css

How?

Is hiding using css correct solution?

I've had this issue too, it has been fixed however in version 4.0.14


passing extra user parameters to render_autoindex(...)

hi,
as i saw in the code 'render_autoindex' calls 'render_template' and passes its own context-dict
, so if a user want to make his own template and pass his own parameters two template it crashes.

return autoindex.render_autoindex(path='/', endpoint = '.app_root', template='myui.html', form=form)
the paramter 'form' throws an exception because it cannot be added to the 'render_autoindex'

my fault did not see template_context parameter


docs docs docs

i'm looking for a good time

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

@boris-p @GalGend @TomerMe2 @dortheimer
If you have time I'd like to know what you think

מכיוון שלא החלפנו ספריית bcrypt אין צורך בכל ההתקנות האלו.
On Sun, 29 Mar 2020, 19:34 GalGend<EMAIL_ADDRESS>wrote:

@GalGend commented on this pull request.
In README.md
https://github.com/meirim-org/meirim/pull/181#discussion_r399821589:

-npm run build
-pm2 start ecosystem.config.js --env production
+$ apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils

@TomerMe2 <https://github.com/TomerMe2> @dortheimer
<https://github.com/dortheimer>
It is not needed for development, only for deployment

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/meirim-org/meirim/pull/181#discussion_r399821589>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4D27M5ZHL5WG3NQC33GD3RJ52DDANCNFSM4LV7WSRA>
.


fix(aspect models): Fix aspect model diagram display and aspect model file download

Description
This will fix the described error in #446.
Why
Diagrams were not displayed properly and file download weren't handled correctly.
Issue
#446
Checklist
Please delete options that are not relevant.

[x] I have followed the contributing guidelines
[x] I have performed a self-review of my own code
[x] I have successfully tested my changes locally
[x] I have added tests that prove my changes work
[x] I have checked that new and existing tests pass locally with my changes

@ds-lcapellino thanks you for the contribution, it was reviewed and merged by our frontend lead. If you plan further contributions (which we very much welcome 👍 ), please create a fork from origin https://github.com/eclipse-tractusx/portal-frontend and not from a fork, please ignore the fork in the catenax-ng GH org.

@ds-lcapellino  & @oyo attention - the changeLog file was not updated. Please consider this next time.


External references to header resources are incorrect

In https://github.com/zalando/restful-api-guidelines/pull/636#discussion_r576111657 @tfrauenstein exposed a bug in how we publish links to our models. They are published to / instead of /models resulting in a publication path of
https://opensource.zalando.com/restful-api-guidelines/request-headers-1.0.0.yaml#/X-Flow-ID

instead of
https://opensource.zalando.com/restful-api-guidelines/models/request-headers-1.0.0.yaml#/X-Flow-ID

While the first makes the path shorter, the second prevents mistakes by guideline writers and enables readers to browse the models on the web-server. However, we have already 3 other models published before. How do we want to fix this?

From the meeting:
Agreed to change the actual deployment to include /models/.
Leave the old ones around (or a redirect) if we find they were used.


Workflow: Send notiification to Trash Discord when changes are made

When PRs are merged, we should post notifications to the Trash Discord server.
Use this github action: https://github.com/marketplace/actions/discord-commits

Resolved in commit 48f6e33fb206dcdf0f95615253ffc6c39bdb4593


Add Language throws exception

When using the package, a call to AddLanguage throws exception.
This does not happen with nuget package from initial port. Just thought I'd let you know.

@hermitdave Can you copy the exception and stack trace into this ticket please? Thanks for reporting.

Exception details:
Message: Value cannot be null. Parameter name: stream
StackTrace:
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
at LanguageDetection.LanguageDetector.AddLanguages(String[] languages)

I can +1 this issue. This library does not work since you can't initialize the languages.

Yep. This science has advanced by leaps and bounds. I'd recommend looking at deep models and use OnnxRuntime for inference.


Container exec -  ConnectionResetError: [Errno 104] Connection reset by peer

This is autogenerated. Please review and update as needed.
Describe the bug
We are trying to connect to a running container. We see a blocked access by the firewall on <IP_ADDRESS>. The container is running in a private section and cannot be accessed via the internet.
Command Name
az container exec
Errors:
[Errno 104] Connection reset by peer
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 660, in execute
    raise ex
cli/core/commands/__init__.py, ln 723, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 716, in _run_job
    six.reraise(*sys.exc_info())
lib/python3.6/site-packages/six.py, ln 703, in reraise
    raise value
...
az/lib/python3.6/ssl.py, ln 407, in wrap_socket
    _context=self, _session=session)
az/lib/python3.6/ssl.py, ln 817, in __init__
    self.do_handshake()
az/lib/python3.6/ssl.py, ln 1077, in do_handshake
    self._sslobj.do_handshake()
az/lib/python3.6/ssl.py, ln 689, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az container exec --resource-group {} --name {} --container-name {} --exec-command {} --debug

Expected Behavior
Command is '/bin/bash' - expected is executed bash in container
Environment Summary
Linux-5.4.0-65-generic-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.20.0

Additional Context

container

We found it - it was a wrong config on the NGINX running in the container
Thanks


docs: add minimal constructor example

as always, thanks for pixi! :heart:

references

as proposed in #1375
demonstrates #1873

changes

[x] adds examples/constructor-minimal

future work
This tries to use the fewest bells and whistles I could manage in both pixi and constructor to still ship something. That being said, it's still needs some dirty tricks due to some inflexibility in both systems without resorting to a more opaque build script.

uses pixi-in-pixi
uses some of the finicky jinja2 support in constructor
using pixi (or  py-rattler) as the solver for constructor --conda-exe

There's a lot of opportunity to show more useful things on a separate example, such as:

adding inputs and outputs
injecting a .conda package built by rattler-build during the build
DRYing more inputs, e.g. author -> company, system-dependencies -> virtual_specs
using various tools to transform at-rest assets (icon, welcome images) into the (proprietary) platform-specific file formats
shipping multiple environments in a single constructor
tests

notes

it would be lovely to have a zero/one-liner way to get the current platform (ne subdir) without a jq-like tool, e.g.

a PIXI_PLATFORM environment variable
a minimal info CLI selector language, like pixi info --json '.platform'

this would pair well with xargs

matrix tasks (as discussed elsewhere)

I have no idea how to tell check-yaml to ignore construct.yaml... I guess there could be a construct.yaml.in that gets cated with the specific line to generate a .gitignored (not-).yaml.

Thanks @bollwyvl will review this later. Do you understand why the yaml is not valid?

Yeah, it's the jinja (surprise). I can keep trying other syntaxes...
On Fri, Sep 20, 2024, 10:13 Ruben Arts @.***> wrote:

Thanks @bollwyvl https://github.com/bollwyvl will review this later. Do
you understand why the yaml is not valid?
—
Reply to this email directly, view it on GitHub
https://github.com/prefix-dev/pixi/pull/2102#issuecomment-2363962894,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAALCREPDHW4SBVZHEGBCUDZXQ3R7AVCNFSM6AAAAABOSGLTQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTHE3DEOBZGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yeah, i don't know the right way to demonstrate the built thing... Having
built installers do their shell integration is usually really bad. Ideally
it should be able to activate itself in a clean shell window or something,
but full tests are probably out of scope.
On Mon, Sep 23, 2024, 08:33 Ruben Arts @.***> wrote:

@.**** commented on this pull request.
In examples/constructor-minimal/README.md
https://github.com/prefix-dev/pixi/pull/2102#discussion_r1771440867:

+This demo shows how to use pixi to generate explicit conda environment specs,
+and [constructor][constructor] to use these specs to build platform-specific,
+offline-ready installers.

+## How to use?
+
+Make sure you have pixi available in your terminal.
+
+Navigate to this directory and run:
+
+```shell
+# Build the installer
+pixi run build
+
+# Install the built installer
+pixi run start
It now has no error when running this, @bollwyvl
https://github.com/bollwyvl, but it's unclear to me what I can expect
after this? It doesn't install micromamba for me. Which I assumed, any
tips?
—
Reply to this email directly, view it on GitHub
https://github.com/prefix-dev/pixi/pull/2102#pullrequestreview-2322250260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAALCRFJ5MY365MWCXW3APDZYAKDDAVCNFSM6AAAAABOSGLTQCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMRSGI2TAMRWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yeah, i don't know the right way to demonstrate the built thing... Having built installers do their shell integration is usually really bad. Ideally it should be able to activate itself in a clean shell window or something, but full tests are probably out of scope.

Right I don't want to leave the user with a broken system. If there isn't anything we can show then this is fine by me

Well, it could list out the installed packages, i suppose...

(oh and I haven't been able to run this locally, as the constructors will be broken until there's a release that emits topo-sorted @EXPLCIT files)

(oh and I haven't been able to run this locally, as the constructors will be broken until there's a release that emits topo-sorted @EXPLCIT files)

That worked for me as I'm on main.
I'm merging it! Thanks @bollwyvl

Thanks! Once there's a release, I'll revisit with a more complete lifecycle example (e.g. .whl -> .conda -> .exe). Last I checked, there wasn't a cross-platform .icns generator on conda-forge for OSX .pkg icons, so maybe i can get that done in the meantime.

https://anaconda.org/conda-forge/icnsutil is now up.


Issue 172: Cannot remove text-decoration: underline for default and hover/focus state for Base Link

This isn't very nice but works—the ugliness stems from not setting up the toggle settings properly first time round and having to maintain backwards compatibility + user-agent styles around text-decoration.
The Base link will be drastically cleaned up and made a lot simpler in V3.

This fixes #172.


Applying AdminLTE template

https://github.com/almasaeed2010/AdminLTE
Yeah, AdminLTE is based on MIT License, so maybe we can utilize it for our fancy admin page :)
How do you think about it?

https://github.com/acacha/adminlte-laravel
This can be a good example :)

@darron1217  Thanks for the idea. I keep both in my mind.
Initially i think about making a nice design too but then i think i don't want to waste much energy into design at this stage. Once i am able to add at least most basic level of features then i work on design in more details. Thanks again for your feedback.

@indpurvesh  Thanks for consideration, too :)
I'm currently working with this issue, and I'll let you know if I succeed

@darron1217 I think it wold be more great fully if you can help it on front end theme.

@indpurvesh Hmm, sorry but I'm planning to apply paid theme, so I can't register it on github...

https://github.com/jeroennoten/Laravel-AdminLTE
This is the best to apply 👍

I am thinking to creating my own admin theme rather then depend on someone else. So thanks darron1217 i am closing this issue. Thanks you for your support


Change to build to use dotnet

We're migrating all the repos using dnx to dotnet. This repo is part of that migration.
At a minimum, you have to upgrade a few scripts and project.json files just like here: aspnet/Configuration@9cfd22f
The big umbrella bug tracking the migration is here: https://github.com/aspnet/Universe/issues/324

Assigning this to you @prafullbhosale because I believe you're the owner of this repo. If not, please assign to the appropriate owner.

@victorhurdugaci  Is there any recent change to this build process?
I was able to build till today morning, but the build is failing to restore packages now.

We just updated dotnet restore to use the new nuget code and everything is failing. @anurse is looking into this

Any updates on this?

The world is still broken...
On Tue, Jan 19, 2016 at 4:52 PM -0800, "prafullbhosale" <notifications<EMAIL_ADDRESS>wrote:
Any updates on this?

Reply to this email directly or view it on GitHubhttps://github.com/aspnet/Scaffolding/issues/161#issuecomment-173037497.

Am able to build now. Thanks!

How's this going? Are you blocked on anything?

I have got the build working with the exception that it doesn't run the tests.
I have made the changes in this branch.
There are still a few more tests that need fixing as there's been quite a few changes.

Is this ready? Can it be merged?

All the changes are in (#167) , just waiting on aspnet/Universe#362, as I still cannot build if I remove the CLI, xunit and nugetbuild feeds from the nuget.config

That's done actually

Just saw it, will check now and merge if it builds without additional feeds.

Local build looks good. I have merged the changes to dev.
Closing this issue as done.


issue with queue limit options?

I'm running in to an issue where a subscriber with a limit: ## on a queue is stopping work after a few seconds... and i don't know why.
here's the scenario: i had some busted code in SignalLeaf, and it racked up 56,000 messages in a queue... yeah. busted code, plus a few days of time :)
so i fixed the code and put in a queue limit of 25 (instead of the unlimited, causing crashes from eating all available memory) and things worked for a few seconds, but then stopped. it would process a couple hundred messages, and then wouldn't process anymore.
the crazy part is, no messages were stuck in unacknowledged status. the code just stopped working. it would no longer pull in new messages.
drop the limit back down to 1 and it works fine. it takes a lot longer to process them, of course, since it's limited to 1 at a time. but at least 1 doesn't stop working.
it's not just "25" either... i tried a limit of 10, and same thing happened. processes a few batches, and then stops doing any work. i even tried a limit of 2, and it stops after a few rounds of processing.
it only seems to work with either a limit of 1, or unlimited.
any idea what this may be? have you seen wascally stop processing messages with a limit, like this?

@derickbailey that's troubling. I'm not sure about the cause on this one. I'm wrapping up a set of refactoring/changes to another one of our libs and once that is done, I plan to tackle your PR and issues. I think I'd heard one of our services was acting odd re: no longer getting messages and I wonder if it's related to this. Thanks for the detailed bug report :+1:

thanks, yo. i'm on site with a client today, but i'm going to try and dig in to this tonight or tomorrow. it affects both my personal work and my client work, so it's something i need to resolve asap.
at the very least, i hope to be able to reproduce the problem with wascally directly. if i can, i'll post the code that i use to reproduce the problem.
there's always the chance that it's my rabbus library, so i want to make sure it's really wascally and not my code.

@derickbailey kind of important questions: what version of rabbitmq server are you running? Are there any other queues with unacknowledged messages at this point? There have been some RabbitMQ server/API changes since 3.3.0 that might be the underlying cause (given that you're on 3.3.0 or later and you have other queues with unacknowledged messages).

RabbitMQ 3.3.5, Erlang 17
No unacknowledged messages in other queues. There were a total of around 56,000 messages between two queues. One of them had about 3,500 and the other queue had the remaining amount.

@derickbailey - Take a look at this: https://gist.github.com/arobson/99c7d62f55463c87f77a. I am using this to run 100k messages to 2 queues. One has a limit of 10 and the other of 50. Right now, I'm 55k messages into queue 2 and 11k into queue 1 without any issues so far. The messages have hit the queues at this point so queue 1 is showing > 70k messages ready.
This is on 3.4.3 (R16B03) because this is what we're running in our prod environment. I'd be interested in seeing if this code works for you or if it blows up like you've been seeing.
Out of curiosity - what do the queue sizes in terms of memory look like?

this is looking like a problem with my app-specific code, and not wascally or rabbus after all.
i just ran a test w/ 10,000+ messages in a queue using my rabbus library and it worked as expected using a limit of 50.
sample code in question https://gist.github.com/derickbailey/7f039bbce7dad9e28bb4
(run the "receiver.js" once, to set up the queue and exchange binding, before running the sender... yeah yeah yeah, shared topology and all that :D)

@derickbailey - one thing to check for is whether or not the consumer is going away on the queue. You can do this by pulling the queue up in the dashboard and looking at the consumer count in the overview section. If that's mysteriously dropping to 0 then we just need to figure out why.
I am working on adding debug logging to wascally so that we'll be able to turn that on when things seem odd and get a detailed view of what's happening.

I'm going to close this issue for now, but feel free to open it back up if it turns up again and you have more information I can use to reproduce.


⚠ Bofrost.fr has degraded performance

In ff8b557, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1403 ms

Resolved: Bofrost.fr performance has improved in 3c63644 after 8 minutes.


App reopen after job finish

my app always open after job is done. can someone help me please? Thx

This isn't an issue of this library.


[2.1.x BETA] YAML error when changing the name of a column

Attached also the database
Freelance Jobs.zip
https://user-images.githubusercontent.com/7627504/182890567-a5fe90f9-4c85-4d0f-9c66-0e6a90b8ff50.mp4

While I was investigating https://github.com/RafaelGB/obsidian-db-folder/issues/247 I find this bug. Was fixed
Was an error updating the column key in every row


phpCAS does not return https url service

Hello,
I am using phpCAS to CASsify dokuwiki.
My Dokuwiki is running under Apache 2.4 and behind a reverse proxy Apache 2.4 , something like that :
https://dokuwiki.domain.tld -> http://dokuwiki.domain.local
When I enable phpCAS auth I go to : https://dokuwiki.domain.tld/doku.php?id=start&do=caslogin
which redirect to my CAS server but the cas client.php does not serve the good protocol URL.
The url service which is return is always under http protocol :
<title>CAS Authentication wanted!</title>
CAS Authentication wanted!

You should already have been redirected to the CAS server. Click here to continue.

So I found a workaround by modifying client.php at line 3481 in the getURL function :
public function getURL()
    {
        phpCAS::traceBegin();
        // the URL is built when needed only
        if ( empty($this->_url) ) {
            $final_uri = '';
            // remove the ticket if present in the URL
            $final_uri = ($this->_isHttps()) ? 'https' : 'http';
            $final_uri .= '://';

by adding a single 's' like that :
$final_uri .= 's://';

So my question is simple : how to get the right protocol service ?
Did I miss anything ?
Regards,

The _isHttps() function also checks the HTTP_X_FORWARDED_PROTO header. It should detect a loadbalancer using https and adjust any urls accordingly.
Maybe you can add some phpCAS::trace() debug functions in the _isHttps() function to dump states into the debug log and figure out why it's not working for you.

Hi,
I think you are right. It seems the problem is Dokuwiki which replace https to http.
regards,

I am not sure anymore...
I set up everything to run dokuwiki on https protocol and only phpCAS client send me the wrong service Protocol.
I set up 'baseurl' with https which it seems to be enought for dokuwiki to work behind a proxy.
I should use phpCAS::trace() debug to get more information.
Regards,

Hello,
Good news I set up my reverse proxy Apache like that :
<VirtualHost *:80>
        ServerAdmin<EMAIL_ADDRESS>        ServerName wiki.domain.tld
        Redirect permanent / https://wiki.domain.tld

        ErrorLog /var/log/apache2/wiki.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/wiki.access.log combined

</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin<EMAIL_ADDRESS>        ServerName wiki.domain.tld
        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / http://dokuwiki.domain.local/
        ProxyPassReverse / http://dokuwiki.domain.local/
        RequestHeader set X-Forwarded-Proto "https"
        <Proxy>
                Order Allow,Deny
                Allow from all
        </Proxy>

        <IfModule mod_headers.c>
                Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
                RequestHeader edit Destination ^https: http: early
        </IfModule>
        ErrorLog /var/log/apache2/wiki.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/wiki.access.log combined

        SSLEngine on
        SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
</VirtualHost>
</IfModule>

The missing directive was :
RequestHeader set X-Forwarded-Proto "https"

My full virtual host for apologizes
Best regards,


Make pcluster configure ask for home directory storage

Changes

Make pcluster configure ask for home directory storage. Reporting here a pcluster configure prompt example to give an idea:

Allowed values for Home directory storage type:
1. Ebs
2. EbsRoot
3. Efs
4. FsxLustre
Home directory storage type [Ebs]:
Automate home directory storage creation? (y/n) [y]: n
Home directory storage id []: vol-12345678

Tests

Manual tests
Unit tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closed in favor of https://github.com/aws/aws-parallelcluster/pull/2962


Hot Reload causing mutation failure

Describe the bug
Redis hot reloading of a stitched schema does not trigger a clearing of existing prepared operations. This causes an issue with mutations as the schema mutation type gets updated but the type associated with the cached operation does not. When running the same mutation after a reload occurs the types do not match and OperationType.Query is assigned for execution.
To Reproduce

Create a server project exposing a mutation and serving the schema to Redis.
Create a stitching project with remote schemas from Redis.
Execute the mutation through the stitched project
Restart server project
Execute the same mutation again

Expected behavior
Mutation to execute without failure
Actual behavior
request:
mutation {
  addTest(anything:"boom") {
    value
  }
}

response before restart:
{
  "data": {
    "addTest": {
      "value": "boom"
    }
  }
}

response after restart:
{
  "errors": [
    {
      "message": "Field `addTest` does not exist on type ``QueryType``.",
      "extensions": {
        "remote": {
          "message": "Field `addTest` does not exist on type `QueryType`."
        },
        "schemaName": "test"
      }
    }
  ],
  "data": {
    "addTest": null
  }
}

Additional Context
Adding an implementation for IPreparedOperationCache that resets cache on RequestExecutorEvicted solves this but doesn't seem like an ideal approach.
HC v11.0.9

Thanks for reporting this.


changed the incorrect port number given in the docs for kic/using-external-service

Description
Page on KIC exposing external service was having incorrect port number.
https://docs.konghq.com/kubernetes-ingress-controller/latest/guides/using-external-service/
Port number was defaulting to 1027 which should be 80 in case of httpbin service

Testing instructions
Preview link:
Checklist

[x] Review label added
[x] PR pointed to correct branch (main for immediate publishing, or a release branch: e.g. release/gateway-3.2, release/deck-1.17)

Smoke tests are failing due to forks having no access to vars. I've run the tests locally and everything passes.


Feature request/Sugestion

First let me say, I really love what you have done here fantastic project great work.
But it’s worth noting the hardware is built to a budget and can sometimes have unknown faults. Because the process recommends NOT initially connecting the unit to the Tuya app as this may make it impossible to update, you don’t discover any issues until it’s too late and we installed new firmware.
The problem then is you can not return the device under warrantee because it no longer has the original firmware. So you need to roll the firmware back first. The only method I have seen to do this is not helpful in the use case I am describing because it relies on the user rolling back the original dumped firmware via a serial connection.
The challenge here is that not all the Tuya devices allow you to do this easily, so you may need to modify the internal circuit board (at least solder some connections) to achieve this. The problem here is that just as upgrading the firmware makes it challenging to return, modifying the hardware is even worse.
So this got me thinking. It would be great if there were a way to install OTA a firmware stub that doesn’t do anything other than allow tuya-convert to connect to the device.
So what I mean in more detail. After you have updated the device to Tasmota or ESPurna, you use there OTA support to load a firmware shell onto the device that just turns on the WIFI pair mode the same as if it was getting ready to receive the firmware from tuya-convert.
Then in tuya-convert, you connect to the device but rather than deploy Tasmota or ESPurna you use the original dump file back to the device. This would effectively enable the capability to re-flash the OG firmware OTA thereby solve the challenge of what to do when you need to roll back the firmware for any reason.
I realize you don’t own the firmware involved here, so this would need to be a collaboration of some sort. But I’m sure as there is so much support for the process you have created, that this could be achieved. I will send a similar feature request to Tasmota and ESPurna.
I would love to help out in any way I can, but I would not have a clue where to start. Thanks for your indulgence.

Unfortunately loading the original firmware backup OTA is not possible due to memory constraints.
ESP flash memory is divided into two user partitions (and several system ones), only one of which is executing software at one time. You cannot overwrite running software, so OTA firmware is loaded in the opposite partition and the bootloader loads that on next boot.
tuya-convert works by first presenting the Tuya firmware with our intermediate firmware. This is the stub which then connects back to your machine, allowing you to create a backup, modify the bootloader, and upload custom firmware. It also takes care of normalizing the flash space so that when you get your firmware loaded, it is in the correct place and doesn't crash.
The backup created is of the entire flash memory, we don't know which partition has the original firmware, and there are several other important partitions needed by the Tuya firmware. It must be placed back exactly as it was; it will not run if it is in the wrong place as memory addresses are absolute. Since we can't overwrite the firmware that is running, there is no way to load the entire flash space OTA.

Thank you Colin.
This is most helpful. Its clear to me now
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Colin Kuebler<EMAIL_ADDRESS>Date: 20/7/20 12:54 (GMT+10:00)
To: ct-Open-Source/tuya-convert<EMAIL_ADDRESS>Cc: Tony Fitzsimmons<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ct-Open-Source/tuya-convert] Feature request/Sugestion (#707)
Unfortunately loading the original firmware backup OTA is not possible due to memory constraints.
ESP flash memory is divided into two user partitions (and several system ones), only one of which is executing software at one time. You cannot overwrite running software, so OTA firmware is loaded in the opposite partition and the bootloader loads that on next boot.
tuya-convert works by first presenting the Tuya firmware with our intermediate firmwarehttps://github.com/vtrust-de/esp8266-ota-flash-convert. This is the stub which then connects back to your machine, allowing you to create a backup, modify the bootloader, and upload custom firmware. It also takes care of normalizing the flash space so that when you get your firmware loaded, it is in the correct place and doesn't crash.
The backup created is of the entire flash memory, we don't know which partition has the original firmware, and there are several other important partitions needed by the Tuya firmware. It must be placed back exactly as it was; it will not run if it is in the wrong place as memory addresses are absolute. Since we can't overwrite the firmware that is running, there is no way to load the entire flash space OTA.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/ct-Open-Source/tuya-convert/issues/707#issuecomment-660772554, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE7PFO5YZMP6KKVMEIYIC3R4OWWBANCNFSM4PBUZT6A.


[BUG] Roblox Force reinstallation is greyed out and can't be turnt off

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
2.81
What problem did you encounter?
fix force roblox reinstallation being FORCED on and is grayed out so I can't turn it off

Bloxstrap Log
N/A

i swear to god how are there people actually thinking this is a bug
bloxstrap NEEDS TO INSTALL ROBLOX TO OPEN ROBLOX

When I open roblox it still won't save my settings from when I played and resets everything constantly

bloxstrap needs to install roblox to open roblox, just install and play once and before you ask why, bloxstrap installs its own roblox instance seperate from roblox's own bootstrapper, you can find that in \Bloxstrap\Roblox\Player


Allow specifying range of versions for a module to check

When using from API or CLI? For example test all versions of lodash between 2.0.0 and 2.2.0

For CLI use --allow option, from API use limit callback function


Size on Android Opera

Hi!
I have host your project on my little server.
I have try on Opera on windows and Linux it's  work very well.
For Android there's a problem on size with the top and bottom icon.

I have host your project on my little server.
I have try on Opera on windows and Linux it's work very well.

Nice! Glad you like it. :)

For Android there's a problem on size with the top and bottom icon.

I'm aware of this. When I started this project 4 days ago, I don't plan to support android because this is just a pastime of mine. But yeah, I've changed my mind. Maybe I'll try to use bootstrap or something. It's been ages since I wrote a webpage.

Yes your project enjoy my day 😁.
I will wait for this.
And, could you add a way to edit/change the shortcut at the bottom?

And, could you add a way to edit/change the shortcut at the bottom?

Yeah, I'll create a code in javascript that will make the configuration
easier. Our problem right now is it is my first time to write one si
there's a learning curve. Maybe in a week or two. Anyway, please don't
close this issue yet.
On Wed, May 27, 2020, 16:18 darktweek<EMAIL_ADDRESS>wrote:

Yes your project enjoy my day 😁.
I will wait for this.
And, could you add a way to edit/change the shortcut at the bottom?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/manilarome/the-glorious-startpage/issues/3#issuecomment-634505955,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJT27FTHH6AMYUKW7SH6YJ3RTTEGVANCNFSM4NL2LDDA
.

I will wait no worries.
It's a great job for now!
Good learning!
Le 27 mai 2020 10:29:26 Gerome Matilla<EMAIL_ADDRESS>a écrit :

And, could you add a way to edit/change the shortcut at the bottom?

Yeah, I'll create a code in javascript that will make the configuration
easier. Our problem right now is it is my first time to write one si
there's a learning curve. Maybe in a week or two. Anyway, please don't
close this issue yet.
On Wed, May 27, 2020, 16:18 darktweek<EMAIL_ADDRESS>wrote:

Yes your project enjoy my day 😁.
I will wait for this.
And, could you add a way to edit/change the shortcut at the bottom?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/manilarome/the-glorious-startpage/issues/3#issuecomment-634505955,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJT27FTHH6AMYUKW7SH6YJ3RTTEGVANCNFSM4NL2LDDA
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hey closing this now, smartphone support has been implemented! :) Thanks!


One touch event leaks through and causes other touch events to fire

I am creating sort of a survey and I am using this project to handle the touch events.
The problem is that when a user touches an answer button, this touch is read by the next answer button of an unrelated question.
Basically the touches are leaking over. I want to know how do I prevent a touch from leaking over as the next question renders.

If your site is using for touch devices only, it would be a good idea to  set disableClick to true.

Same issue here. When using touchhold and tap events together, tap would reset the touchhold, as both of them fire at the same time.

@doutatsu  The latest version has fixed this issue. You can upgrade and try again. If this problem still exists, please let me know.

@jerrybendy Found out about it just after I posted the message! It has indeed been fixed, thanks


Playing already started streams: continue watching rail

To be determined: how we handle users returning to streams that they have not finished watching

starting working

done


Specifically, we intend to put ticket references into the summary line rather than into a footer field.

Can you explain more how this configuration should look like?

Given that Handlebars is being used for the changelog template, I would assume it would be a handlebars template too.
Values would be type, scope, summary, description, ticket-ids - and whatever makes sense/is tracked (breaking change?).
pseudo code:
{type}{scope}: {summary}

{description}

{#if ticket-ids}Refs: {#each ticket-ids}({string.join ", " .}){#end}{#end}

{type}{scope}: {summary} {#each ticket-ids}({string.join "," .}){#end}

{description}

Here you can see the default template: https://github.com/convco/convco/pull/71/files#diff-aa0e81d646a5254c9cf39a982a9f499e745293329dda29227ef3761df8a0e1e5
You can probably adapt it to fit your needs. I guess you want something like:
{{type}}{{#if scope}}({{scope}}){{/if}}{{#if breaking}}!{{/if}}: {{description}}{{#if issues}}({{#each issues}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}){{/if}}
{{body}}
{{#if breaking_change}}BREAKING CHANGE: {{breaking_change}}{{/if}}

{{#each footers}}
{{this}}
{{/each}}


"only forward" working branch

major changes:

tcplb server offers mTLS support

added flags -key-file, -cert-file, -ca-root-file
see README.md for a usage example
TLS config details in cmd/tcplb/server.go, see makeListenerFromConfig.
some basic mTLS tests in cmd/tcplb/server_test.go

lib/dialer

uses retries & least-connections policy when selecting an upstream
retries if dial attempt fails until timeout

improved connection forwarding logic in lib/forwarder/robustforwarder

respects the context
~enforces application idle timeout if client & upstream don't send any data for 15 seconds~ . there was a previous application idle timeout implementation which relied on setting conn deadlines and letting them expire, counting how many bytes had been copied in the period, then setting the deadline again in the future. this works with TCPConn but appears not to be supported by TLS.Conn. See https://github.com/fcostin/tcplb/pull/13/commits/4b8cd038edff227a3c2247c466eb89549b5234d1
as a stopgap to not having a sensible application idle timeout, enforces a 5 minute timeout on each forwaded connection, regardless of what is happening. not ideal!

basic end to end test suite for tcplb server

see cmd/tcplb/server_test.go
level of testing is "everything apart from flag parsing"

minor changes:

authorized clients can be specified on the command line with -authzd-clients flag

these clients are added to single group with access to forward to an upstream group holding all upstreams, see makeAuthorizerFromConfig

reworked server to offer Start() & Close() methods, to ease control from test suite
make allkeys can generate test certificates & keys, see Makefile, testbed, tool/generate_cert.go
added non-dockerized github CI for make all

if manually testing this, it may be useful to apply the following patch to

raise the process' number of files limit in linux , and
expose a go http pprof endpoint to inspect what the code gets up to

maybe both of these could be polished up and added to the app behind some flags
From 893f830784be939ceb887929fbc1edf0d5c81cc2 Mon Sep 17 00:00:00 2001

---
 cmd/tcplb/main.go | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/cmd/tcplb/main.go b/cmd/tcplb/main.go
index 2e2cf23..4184679 100644
--- a/cmd/tcplb/main.go
+++ b/cmd/tcplb/main.go
@@ -1,7 +1,11 @@
 package main

 import (
+	"log"
+	"net/http"
+	_ "net/http/pprof" // HTTP PPROF DEBUG HACK
 	"os"
+	"syscall"
 	"tcplb/lib/slog"
 )

@@ -27,6 +31,19 @@ func main() {
 		logger.Error(&slog.LogRecord{Msg: "failed to create server", Error: err})
 		os.Exit(1)
 	}
+
+	// FIXME attempt to raise ceiling on max number of open files we can have
+	err = raiseRLimits()
+	if err != nil {
+		logger.Error(&slog.LogRecord{Msg: "failed to raise rlimits", Error: err})
+		os.Exit(1)
+	}
+	// FIXME http pprof debugging hack
+	// ref: https://pkg.go.dev/net/http/pprof
+	go func() {
+		log.Println(http.ListenAndServe("localhost:6060", nil))
+	}()
+
 	err = server.Serve()
 	if err != nil {
 		logger.Error(&slog.LogRecord{Msg: "server terminated abnormally", Error: err})
@@ -35,3 +52,10 @@ func main() {
 	logger.Info(&slog.LogRecord{Msg: "server terminated normally"})
 	os.Exit(0)
 }
+
+func raiseRLimits() error {
+	var rLimit syscall.Rlimit
+	rLimit.Max = 999999
+	rLimit.Cur = 999999
+	return syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
+}
--
2.34.1


v9.1.2 not published to npm yet

Looks like the tag for v9.1.2 was created two days ago, but that version has not been published to npm yet, and it still shows 9.1.1 as the latest version.  So, at the moment, the latest version of @angular/cli is lagging behind the rest of the recently published @angular packages.
Is there a particular issue holding up publishing v9.1.2?  Or was this just an oversight?

Hi @bmarcotte, we are of aware of that.
@dgp1130 is working on the release.

Yes I'm working on the release. CI is being difficult this time, hopefully I'll get it out today.

I was able to get a green CI. Though I'm not able to publish right now due to some issues with Wombat. At this point, it's too late on a Friday that I don't want to do the release anyways. I'd rather not risk problems over the weekend. I handed off caretaking to @kyliau who can follow up with this on Monday.

Hi, is this still planned for today?

While we're waiting for any news on this release, perhaps the team can tell us what they suggest: When @angular/core and @angular/cli get out of sync like this, which of the following do you recommend?

Don't update @angular/core until there's a corresponding @angular/cli version to go with it.
Go ahead and update @angular/core, and don't worry about them being out of sync.

Hi all,
It's perfectly fine and safe to use different patch versions of CLI and Framework.

version 9.1.2 has been published, as well as the next version 10.0.0-next.1
I apologize for the delay, we've been having some issues with this release because we transitioned from the default NPM registry to a Google proxy for security reasons and it hasn't worked as anticipated.

Hi all, looks like this is happening again with v9.1.5.

Yes, we're working on it. We're getting close to 10.0.0 RC so there were some delays on the framework (FW) side to get in some last minutes changes. Due to the way our release process works, CLI is dependent on FW and has to update some version numbers after FW has released. That then requires CI to run before we can release and if CI fails we have to fix the issue before we can release CLI.
For this particular release, there was a bug in FW related to case-sensitivity on Windows which broke CLI CI and some users. FW needed an emergency release of 9.1.6, so CLI then has to update its own build to use FW 9.1.6 and re-run CI. CI takes at least an hour each time for CLI because we have end-to-end tests which are quite heavy weight. It also requires installing dependencies via Git tags, which is why you see Git tags set before NPM releases.
There was also an unrelated CI issue on master which delayed release of 10.0.0-next.4. Right now, we think both branches are in good states, we're just waiting for CI to confirm that before we release 9.1.6 and 10.0.0-next.4 for CLI.
Hopefully that gives a little more insight into the release process for CLI. As a result of this complexity, some release do get delayed by a day or two. We do our best to get them out in a timely manner.

Thanks for the insight. The angular release processes and build architecture deserve some blog posts.
In general are we ok to update angular in our dev environments between versions like this or would it be better as a practice to wait until a new version comes from cli before updating (or is there another project which we should wait for in most user's pipelines)?

Version skew between FW and CLI is generally ok, since everything follows semantic versioning. In some instances we deliberately skew it such as right now where a bug in FW 9.1.5 and emergency release of FW 9.1.6 means that CLI 9.1.5 really maps to FW 9.1.6.
As long as you don't cross major boundaries (CLI 10.0.0-next.4 with FW 9.1.6 or vice versa) you're probably fine.


[ICON-DSL] Hide installations paths from ICON

Hide installations details of icon4py and py-gridtools from downstream packages.
Add a test to check dsl-build as part of the system-tests of spack-c2sm.

launch jenkins icon daint

tsa
:green_circle: unit testTest:green_circle:summary

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :red_circle: system testTest:red_circle:daint_cpu_gcc :red_circle:daint_cpu_nvhpc :red_circle:daint_gpu_nvhpc
WARNING: Serial tests did not run for system tests

launch jenkins icon

tsa
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec

launch jenkins icon daint

tsa
:green_circle: unit testTest:green_circle:summary

balfrin
:green_circle: unit testTest:green_circle:summary

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :red_circle: system testTest:green_circle:Icon-install_2_6_6_gcc :red_circle:daint_cpu_cce :red_circle:daint_cpu_nvhpc :red_circle:daint_cpu_nvhpc_out_of_source
WARNING: Serial tests did not run for system tests

launch jenkins icondsl daint

balfrin
:green_circle: unit testTest:green_circle:summary

tsa
:green_circle: unit testTest:green_circle:summary

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:cdo-spack_info :green_circle:cdo-spack_spec :green_circle:clang-format-spack_info :green_circle:clang-format-spack_spec :green_circle:claw-spack_info :green_circle:claw-spack_spec :green_circle:cosmo-dycore-spack_info :green_circle:cosmo-dycore-spack_spec :green_circle:cosmo-dycore_+cuda_+gt1_+build_tests-spack_spec :green_circle:cosmo-dycore_~cuda_+gt1-spack_spec :green_circle:cosmo-eccodes-definitions-spack_info :green_circle:cosmo-eccodes-definitions-spack_spec :green_circle:cosmo-spack_info :green_circle:cosmo-spack_spec :green_circle:cosmo_cosmo_target=gpu_+serialize_+claw_+zlib_ng_+oasis-spack_spec :green_circle:cosmo_cosmo_target=gpu_~cppdycore-spack_spec :green_circle:dawn-spack_info :green_circle:dawn-spack_spec :green_circle:dawn4py-spack_info :green_circle:dawn4py-spack_spec :green_circle:dusk-spack_info :green_circle:dusk-spack_spec :green_circle:eccodes-spack_info :green_circle:eccodes-spack_spec :green_circle:eckit-spack_info :green_circle:eckit-spack_spec :green_circle:fckit-spack_info :green_circle:fckit-spack_spec :green_circle:fdb-flexpart-spack_info :green_circle:fdb-flexpart-spack_spec :green_circle:fdb-fortran-spack_info :green_circle:fdb-fortran-spack_spec :green_circle:fdb-spack_info :green_circle:fdb-spack_spec :green_circle:flexpart-ifs-spack_info :green_circle:flexpart-ifs-spack_spec :green_circle:gridtools-spack_info :green_circle:gridtools-spack_spec :green_circle:gridtools_+cuda-spack_spec :green_circle:gridtools_~cuda-spack_spec :green_circle:icon-ham-spack_info :green_circle:icon-ham-spack_spec :green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle:icontools-spack_info :green_circle:icontools-spack_spec :green_circle:infero-spack_info :green_circle:infero-spack_spec :green_circle:int2lm-spack_info :green_circle:int2lm-spack_spec :green_circle:int2lm_+parallel-spack_spec :green_circle:libcdi-pio-spack_info :green_circle:libcdi-pio-spack_spec :green_circle:libfyaml-spack_spec :green_circle:libgrib1-spack_info :green_circle:libgrib1-spack_spec :green_circle:libxml2-spack_info :green_circle:libxml2-spack_spec :green_circle:metkit-spack_info :green_circle:metkit-spack_spec :green_circle:nvidia-blas-spack_info :green_circle:nvidia-blas-spack_spec :green_circle:nvidia-lapack-spack_info :green_circle:nvidia-lapack-spack_spec :green_circle:oasis-spack_info :green_circle:oasis-spack_spec :green_circle:omni-xmod-pool-spack_info :green_circle:omni-xmod-pool-spack_spec :green_circle:py-black-spack_info :green_circle:py-black-spack_spec :green_circle:py-boltons-spack_info :green_circle:py-boltons-spack_spec :green_circle:py-cytoolz-spack_info :green_circle:py-cytoolz-spack_spec :green_circle:py-devtools-spack_info :green_circle:py-devtools-spack_spec :green_circle:py-editables-spack_info :green_circle:py-editables-spack_spec :green_circle:py-factory-boy-spack_info :green_circle:py-factory-boy-spack_spec :green_circle:py-fprettify-spack_info :green_circle:py-fprettify-spack_spec :green_circle:py-frozendict-spack_info :green_circle:py-frozendict-spack_spec :green_circle:py-gridtools-cpp-spack_info :green_circle:py-gridtools-cpp-spack_spec :green_circle:py-gt4py-spack_info :green_circle:py-gt4py-spack_spec :green_circle:py-hatchling-spack_info :green_circle:py-hatchling-spack_spec :green_circle:py-icon4py-spack_info :green_circle:py-icon4py-spack_spec :green_circle:py-inflection-spack_info :green_circle:py-inflection-spack_spec :green_circle:py-lark-spack_info :green_circle:py-lark-spack_spec :green_circle:py-pathspec-spack_info :green_circle:py-pathspec-spack_spec :green_circle:py-poetry-core-spack_info :green_circle:py-poetry-core-spack_spec :green_circle:py-pytest-factoryboy-spack_info :green_circle:py-pytest-factoryboy-spack_spec :green_circle:py-pytest-spack_info :green_circle:py-pytest-spack_spec :green_circle:py-setuptools-spack_info :green_circle:py-setuptools-spack_spec :green_circle:py-toolz-spack_info :green_circle:py-toolz-spack_spec :green_circle:py-typing-extensions-spack_info :green_circle:py-typing-extensions-spack_spec :green_circle:rttov-spack_info :green_circle:rttov-spack_spec :green_circle:scales-ppm-spack_info :green_circle:scales-ppm-spack_spec :green_circle:tensorflowc-spack_info :green_circle:tensorflowc-spack_spec :green_circle:yaxt-spack_info :green_circle:yaxt-spack_spec :green_circle:zlib_ng-spack_info :green_circle:zlib_ng-spack_spec :red_circle: system testTest:green_circle:Cdo-install_default :green_circle:ClangFormat-install_default :green_circle:Claw-install_default :green_circle:Cosmo-install_version_6_0_cpu :green_circle:Cosmo-install_version_6_0_gpu :green_circle:CosmoDycore-install_c2sm_master_cuda :green_circle:CosmoDycore-install_c2sm_master_no_cuda :red_circle:CosmoDycore-install_version_6_0 :red_circle:CosmoEccodesDefinitions-install_version_2_19_0_7 :green_circle:CosmoEccodesDefinitions-install_version_2_25_0_1 :green_circle:Eccodes-install_2_19_0 :green_circle:Eckit-install_1_20_0_gcc :green_circle:Eckit-install_1_20_2_gcc :green_circle:Eckit-install_1_20_2_nvhpc :green_circle:Fckit-install_default :green_circle:Fdb-install_5_10_8_gcc :green_circle:Fdb-install_5_10_8_nvhpc :green_circle:FdbFlexpart-install :green_circle:FdbFortran-install :green_circle:FlexpartIfs-install_latest :green_circle:GridTools-install_version_1_1_3_gcc :green_circle:GridTools-install_version_1_1_3_nvhpc :green_circle:Icon-install_2_6_6_gcc :green_circle:IconTools-install_2_5_2 :green_circle:Infero-install :green_circle:Int2lm-install_c2sm_master_gcc :green_circle:Int2lm-install_c2sm_master_nvhpc :green_circle:Int2lm-install_version_3_00_gcc :green_circle:Int2lm-install_version_3_00_nvhpc_fixed_definitions :green_circle:LibCdiPio-install_default :green_circle:LibXml2-install_default :green_circle:Libfyaml-install_default :green_circle:Metkit-install_1_9_2_gcc :green_circle:Metkit-install_1_9_2_nvhpc :green_circle:NvidiaBlas-install_default :green_circle:NvidiaLapack-install_default :green_circle:Oasis-install_master_nvhpc :green_circle:OmniXmodPool-install_version_0_1 :green_circle:PyBlack-install_default :green_circle:PyBoltons-install_default :green_circle:PyCytoolz-install_default :green_circle:PyDevtools-install_default :green_circle:PyEditables-install_default :green_circle:PyFactoryBoy-install_default :green_circle:PyFprettify-install_default :green_circle:PyFrozendict-install_default :green_circle:PyGridtoolsCpp-install_default :green_circle:PyGt4py-install_version_1_1_1 :green_circle:PyGt4py-install_version_1_1_2 :green_circle:PyHatchling-install_default :green_circle:PyIcon4py-install_version_0_0_3 :green_circle:PyIcon4py-install_version_0_0_4 :green_circle:PyIcon4py-install_version_0_0_5 :green_circle:PyInflection-install_default :green_circle:PyLark-install_default :green_circle:PyNumpy-install_default :green_circle:PyPathspec-install_default :green_circle:PyPoetryCore-install_default :green_circle:PyPytest-install_default :green_circle:PyPytestFactoryboy-install_default :green_circle:PySetuptools-install_default :green_circle:PyToolz-install_default :green_circle:PyTypingExtensions-install_default :green_circle:Rttov-install_version_13_1_gcc :green_circle:Rttov-install_version_13_1_nvhpc :green_circle:ScalesPPM-install_default :green_circle:TensorflowC-install_2_6_0 :green_circle:Yaxt-install_default :green_circle:ZLibNG-install_version_2_0_0 :green_circle:daint_cpu_cce :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :red_circle:daint_cpu_nvhpc_out_of_source :red_circle:daint_gpu_nvhpc
WARNING: Serial tests did not run for system tests

launch jenkins icon

tsa
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec

balfrin
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:Icon-install_2_6_6_gcc :green_circle:Icon-install_2_6_6_nvhpc :green_circle:Icon-install_nwp_cpu :green_circle:Icon-install_nwp_gpu

LGTM!

daint
:green_circle: unit testTest:green_circle:summary :green_circle: integration testTest:green_circle:icon-spack_info :green_circle:icon-spack_spec :green_circle:icon_serialization=create_claw=std-spack_spec :green_circle: system testTest:green_circle:Icon-install_2_6_6_gcc :green_circle:daint_cpu_cce :green_circle:daint_cpu_gcc :green_circle:daint_cpu_nvhpc :green_circle:daint_cpu_nvhpc_out_of_source :green_circle:daint_gpu_nvhpc


place_algo_order is missing a lot of arguments

POST /api/v5/trade/order-algo accepts more arguments, that are necessary to make an order.
https://www.okx.com/docs-v5/en/#rest-api-trade-place-algo-order
F.e. it's missing a 'triggerPx'

Hi - thanks for reaching out with your feedback. There was some faulty logic in the scraper that generates this code that missed certain tables of parameters and was only picking up the first one. This should be fixed now in 0.5.0, specifically with place_algo_order now having the parameter you require. Let me know of further issues. thanks


WBCAMS-377-fix-federal-jobs-filter

Create ElasticSearch query string to search for federal government jobs using the source URL.

What happens if the Employer type was 2 ? Will those jobs disappear from the filter ?

I removed the EmployerTypeId filter as that filter doesn't yield any results in DEV or PROD and I can't find an attribute by that name in any XML examples I checked.  My reading of the ticket comments suggests relying on the source URL, but I'm happy to add EmployerTypeId back if you think it appropriate.

Clarification: "... I can't find an attribute by that name in any relevant XML examples I checked."

Clarification: "... I can't find an attribute by that name in any relevant XML examples I checked."

A few lines below https://github.com/bcgov/workbc-jb/pull/111/files#diff-5cb314c042ff43209870e4bba257ebd3482b9da3679eb0c4d58d7fceaf5ccf84L740 the same attribute is used.
This attribute is sourced from the employer_type_id of the XML feed: https://github.com/bcgov/workbc-jb/blob/60b06e4f436e0cf47379e9806cd7ae5b9d8bf975/src/WorkBC.ElasticSearch.Indexing/Services/XmlParsingServiceFederal.cs#L86
I would feel more comfortable if both conditions were OR'd.

A few lines below https://github.com/bcgov/workbc-jb/pull/111/files#diff-5cb314c042ff43209870e4bba257ebd3482b9da3679eb0c4d58d7fceaf5ccf84L740 the same attribute is used.

Yes, that's true but I noticed that filter is also broken.  It returns only a single job in DEV and PROD where the employer is the University of British Columbia -- not the Province -- and it fails to return numerous jobs it should return from the Ministry of Forests etc.

This attribute is sourced from the employer_type_id of the XML feed:

Yes, I'm aware of that, but that attribute is only supplied when the source is the federal jobs board and ironically all our federal government jobs are being imported from the Talent / Neuron API -- not the federal jobs API.


fix: update releaserc to use main branch

The semantic-release API changed with its latest major release and now uses
"branches" instead of "branch" to specify which branch to release on.

:tada: This PR is included in version 0.34.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: