[BUG] Python 3.7 Function App Cannot create Kusto Client

I had a function app working with the ADX Kusto Client for an earlier version of the package. I updated some completely unrelated code un another function, but this function failed to build to build the kusto client with exactly the same code. The run-time error information is as follows:
Result: Failure Exception: RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-1_0'. Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 401, in _handle__invocation_request invocation_id, fi_context, fi.func, args) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 603, in _run_sync_func func)(params) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) File "/home/site/wwwroot/Insights_TimerTrigger/init.py", line 27, in main kustoClient = KustoClient(KUSTO_KCSB) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/kusto/data/client.py", line 763, in init self._auth_provider = _AadHelper(self._kcsb) if self._kcsb.aad_federated_security else None File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/kusto/data/security.py", line 35, in init self.token_provider = MsiTokenProvider(self.kusto_uri, kcsb.msi_parameters) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/kusto/data/_token_providers.py", line 264, in init super().init(kusto_uri) File "/home/site/wwwroot/.python_packages/lib/site-packages/azure/kusto/data/_token_providers.py", line 69, in init self._async_lock = asyncio.Lock() File "/usr/local/lib/python3.7/asyncio/locks.py", line 161, in init self._loop = events.get_event_loop() File "/usr/local/lib/python3.7/asyncio/events.py", line 644, in get_event_loop % threading.current_thread().name)
Investigative information
Please provide the following:

Timestamp: 2021-07-29 14:00:00.069
Function App name: jig-perceptron-analysis
Function name(s) (as appropriate): Insights_TimerTrigger
Core Tools version:

Contents of the requirements.txt file:
azure-functions
pandas
numpy
azure-kusto-data
azure-kusto-ingest
azure-storage-blob

I tried a new function app with Python 3.9 and still get the same issue, it is likely an issue with the Kusto Client package

Never mind, it is an issue with the Kusto Client package #332


Update circe-core, circe-jawn, circe-parser, ... to 0.14.7

About this PR
📦 Updates

io.circe:circe-core
io.circe:circe-jawn
io.circe:circe-parser
io.circe:circe-refined

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

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.circe" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.circe" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #1991.


Clear button

Button to clear the description key data grid.

No longer necessary. Closed with PR #9


Documentation Incorrect: No Config Created

Just run process-migrator without any argument will create the file if it does not exist.

This is not the case.. it just errors out.

Hey @MrHinsh, can you share a bit more context. For me it does create the template file just fine (tested on Codespace and Windows).

If I install the tool and then just run it from the command prompt with no argument I get:

[ERROR] [2023-08-15T09:21:22.011Z] [Configuration validation] Missing or invalid source account url: 'Required in 'export'/'migrate' mode, source account url.'.

OK, so there was an old configuration.json in that folder.
Perhaps if it finds a config it should say "Loading config: C:\Users\MartinHinshelwood(He\configuration.json" so that it is more obvious that it is indeed finding a config, but that its format is not valid.

I agree that the documentation (and error handling) can be improved. The team will be maintaining the tool more actively going forward so will make sure it get prioritized.


chore: bump sprout

removing id:s from icons that are used in the table

Not that the color of the arrow of in the select component has changed, hence the updated snapshots. This might be changed back later, but we need to get this bug fix released first


Release 3.15.0

Questions
Answers

Description?
Release 3.15.0

Type?
new feature

BC breaks?
no

Deprecations?
no

Fixed ticket?
~

How to test?
~

@florine2623 @jolelievre Guys can you please investigate when this issue goes away, so we can fix it if it's related to the attribute pr? https://github.com/PrestaShop/PrestaShop/issues/35331

@florine2623 @jolelievre Guys can you please investigate when this issue goes away, so we can fix it if it's related to the attribute pr? PrestaShop/PrestaShop#35331

Yes, I'll have a look at it today

@jolelievre It could either be the cache of the blocks OR the attribute index of the module. 👍

On 8.1.3 it works after clearing the cache

@florine2623


Template Customisation

Hi,
I'm having issues making amendments to the template. Thanks in advance for helping.
I'm trying to integrate star-rating (https://atmospherejs.com/barbatus/stars-rating).
I added the custom template as a parameter.
{{> commentsBox
id=post._id
boxTemplate="myComments"
}}
Then proceeded to make a myComments template with the stars-rating package included but the comments system would stop working. Am I suppose to copy the whole template from a file from commentsBox.html then modify it? I tried it and it didn't work also, do I've to create an accompanying myComments js file and map the original code over?

Can you show me how you structured your template?

I simply did

My intention is simple, I just wanted users to be able to rate with stars using the package when they comment.

The template you're adding replaces the whole commentBox, as it says in the parameter: boxTemplate. For now you need to copy the html for the comment box and replace the single comment templates with your own.

see #42

I read the other issue. Basically I've to copy the HTML and redefine the all the helpers in the JS file right?  Thanks.


add release date of v0.50.0

Add release date of v0.50.0 as the final step of releasing.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (72313bb) 53.07% compared to head (034bec2) 37.79%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #396       +/-   ##
===========================================
- Coverage   53.07%   37.79%   -15.29%
===========================================
  Files          69       69
  Lines        5247     5247
===========================================
- Hits         2785     1983      -802
- Misses       1876     2926     +1050
+ Partials      586      338      -248

Flag
Coverage Δ

2.1
17.72% <ø> (-15.48%)
:arrow_down:

2.2
17.72% <ø> (-26.86%)
:arrow_down:

2.3
17.78% <ø> (-27.51%)
:arrow_down:

2.4
17.85% <ø> (-27.51%)
:arrow_down:

2.5
17.85% <ø> (-27.51%)
:arrow_down:

2.6
17.85% <ø> (-27.51%)
:arrow_down:

2.7
17.85% <ø> (-28.99%)
:arrow_down:

2.8
17.85% <ø> (-28.99%)
:arrow_down:

3.0
18.42% <ø> (-32.12%)
:arrow_down:

3.1
34.99% <ø> (-17.01%)
:arrow_down:

3.2
18.48% <ø> (-33.57%)
:arrow_down:

3.3
35.22% <ø> (-16.83%)
:arrow_down:

3.4
35.22% <ø> (-17.16%)
:arrow_down:

community
37.79% <ø> (-0.60%)
:arrow_down:

enterprise
?

enterprise-nightly
?

integration
37.79% <ø> (-15.29%)
:arrow_down:

nightly
37.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Bump stale bot time to half a year

Problem
Allow issues to be open longer
Solution
Bump the time to 180 days

Coverage remained the same at 95.668% when pulling d219e24d5cdd0ca00ae2e35cc52aaaaa1b5f22bc on andrewgy8:bump-stale-bot-time into 3c082f98afe7996e79f936418fced3094f141c26 on django-import-export:master.

Coverage remained the same at 95.668% when pulling d219e24d5cdd0ca00ae2e35cc52aaaaa1b5f22bc on andrewgy8:bump-stale-bot-time into 3c082f98afe7996e79f936418fced3094f141c26 on django-import-export:master.

seems sensible :)


Data not showing in dashboards for cisco mds

I have multiple influx DB's on my instance. Where do I specify the db name for the script to write to?

db name is specified in the grafana dashboard variable. $db and $rp

While importing the DB in grafana I selected the appropriate db.
Does it have to be specified in any of these files also?
/usr/local/telegraf/grafana/dashboards#ls -l
total 828
-rw------- 1 root root  38378 Jun 18 11:43 local_sys.json
-rw------- 1 root root 233926 Jun 18 11:43 locations.json
-rw------- 1 root root 233926 Jun 18 17:42 locations.json.old
-rw------- 1 root root 244204 Jun 18 11:43 switches.json
-rw------- 1 root root  84405 Jun 18 11:43 switchports.json

Yes, the Grafana dashboards must know what DB to read the data from. After loading the dashboards in Grafana, edit the name of $db variable. One change per dashboard.

Thank you. I did select the DB from dropdown when importing the dashboards so I believe we are good there.
For me the log file has not yet been created. which tells me that the collection did not run even after restarting telegraf.
cat /var/log/telegraf/telegraf.log
cat: /var/log/telegraf/telegraf.log: No such file or directory

Collector not running is a separate issue. How did you install it? Are the permissions as required - all files owned by telegraf user. Delete the files if you manually ran the collector.

Is there documentation on what the required permissions are? Sorry but I did not see that in readme file.

Looks like a permissions issue.
systemctl status telegraf -l
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-06-18 12:49:52 EDT; 1 day 1h ago
Docs: https://github.com/influxdata/telegraf
Process: 59338 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 59261 (telegraf)
CGroup: /system.slice/telegraf.service
└─59261 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
Jun 19 13:57:30 sdsanprd04 telegraf[59261]: 2021-06-19T17:57:30Z E! [inputs.exec] Error in plugin: exec: exit status 2 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/ mds_group_cisfabb.txt influxdb-lp -vv': python3: can't open file '/usr/local/telegraf/mds_traffic_monitor_high_frequency.py': [Errno 13] Permission denied
Jun 19 13:57:30 sdsanprd04 telegraf[59261]: 2021-06-19T17:57:30Z E! [inputs.exec] Error in plugin: exec: exit status 2 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/ mds_group_cisfaba.txt influxdb-lp -vv': python3: can't open file '/usr/local/telegraf/mds_traffic_monitor_high_frequency.py': [Errno 13] Permission denied

Looks like a permissions issue.
systemctl status telegraf -l
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-06-18 12:49:52 EDT; 1 day 1h ago
Docs: https://github.com/influxdata/telegraf
Process: 59338 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 59261 (telegraf)
CGroup: /system.slice/telegraf.service
└─59261 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d
Jun 19 13:57:30 -- telegraf[59261]: 2021-06-19T17:57:30Z E! [inputs.exec] Error in plugin: exec: exit status 2 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/ mds_group_cisfabb.txt influxdb-lp -vv': python3: can't open file '/usr/local/telegraf/mds_traffic_monitor_high_frequency.py': [Errno 13] Permission denied
Jun 19 13:57:30 -- telegraf[59261]: 2021-06-19T17:57:30Z E! [inputs.exec] Error in plugin: exec: exit status 2 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/ mds_group_cisfaba.txt influxdb-lp -vv': python3: can't open file '/usr/local/telegraf/mds_traffic_monitor_high_frequency.py': [Errno 13] Permission denied

Check this: https://www.since2k7.com/blog/2020/02/29/cisco-ucs-monitoring-using-grafana-influxdb-telegraf-utm-installation/
The steps are for UTM but applies to MTM also.

Thank you so much for that. I gave it a shot and got little further than before. Getting "Error in plugin" now. I'll go back and check again in some time if I missed any step.
Jun 19 18:32:00 telegraf[2628]: 2021-06-19T22:32:00Z E! [inputs.exec] Error in plugin: exec: exit status 1 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/mds_group_roacisfaba.txt influxdb-lp -vv': Traceback (most recent call last):...
Jun 19 18:32:30 telegraf[2628]: 2021-06-19T22:32:30Z E! [inputs.exec] Error in plugin: exec: exit status 1 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/mds_group_roacisfabb.txt influxdb-lp -vv': Traceback (most recent call last):...
Jun 19 18:32:30 telegraf[2628]: 2021-06-19T22:32:30Z E! [inputs.exec] Error in plugin: exec: exit status 1 for command 'python3 /usr/local/telegraf/mds_traffic_monitor_high_frequency.py /usr/local/telegraf/mds_group_roacisfaba.txt influxdb-lp -vv': Traceback (most recent call last):...

this is the error from the log "ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)" . Still looking but not sure what this means.  Is it unable to reach the. switch and recieve response in timely manner?
more  mds_traffic_monitor_high_frequency_mds_group_cisfaba.log
2021-06-19 18:30:03,892 - WARNING - ---------- START (version 0.12)----------
2021-06-19 18:30:03,893 - INFO - Added 165.XX.XX.XXX (CISFABA) to switch dict, location:Fra
2021-06-19 18:30:03,893 - INFO - Connect (1) and pull stats from:165.XX.XX.XXX
2021-06-19 18:30:03,894 - INFO - Pull stats from 165.XX.XX.XXX for (idx:0)['show version', 'show system resources', 'show system uptime', 'show module']
2021-06-19 18:30:03,894 - INFO - Pull stats from 165.XX.XX.XXX for (idx:1)['show port-channel usage']
2021-06-19 18:30:38,011 - ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)
2021-06-19 18:30:38,012 - INFO - Response received as completed:None
2021-06-19 18:30:38,214 - ### ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)
2021-06-19 18:30:38,215 - INFO - Response received as completed:None
2021-06-19 18:30:38,215 - INFO - Prebuilt FC interface string:
2021-06-19 18:30:38,215 - INFO - Prebuilt port-channel interface string:
2021-06-19 18:30:38,215 - INFO - Connect (2) and pull stats from:165.XX.XX.XXX
2021-06-19 18:30:38,216 - INFO - Pull stats from 165.XX.XX.XXX for (idx:2)['show interface  counters detailed']
2021-06-19 18:30:38,219 - INFO - Pull stats from 165.XX.XX.XXX for (idx:3)['show interface  transceiver details']
2021-06-19 18:30:38,222 - INFO - Pull stats from 165.XX.XX.XXX for (idx:4)['show interface ']
2021-06-19 18:31:12,545 - ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)
2021-06-19 18:31:12,545 - INFO - Response received as completed:None
2021-06-19 18:31:14,053 - ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)
2021-06-19 18:31:14,053 - INFO - Response received as completed:None
2021-06-19 18:31:14,129 - ERROR - NXAPI error from 165.XX.XX.XXX:502:('bad_gateway',)
2021-06-19 18:31:14,129 - INFO - Response received as completed:None
2021-06-19 18:31:14,130 - INFO - Printing output in InfluxDB Line Protocol format
2021-06-19 18:31:14,130 - INFO - Printing output - DONE
2021-06-19 18:31:14,130 - INFO -
|------------------------------------------------|
|     Response time from - 165.XX.XX.XXX      |
|------------------------------------------------|
| Command set:1                                  |
|     show version                               |
|     show system resources                      |
|     show system uptime                         |
|     show module                                |
|------------------------------------------------|
| NXAPI Response:   34.32 s | Parsing:     0.0 s |
|------------------------------------------------|
| Command set:2                                  |
|     show port-channel usage                    |
|------------------------------------------------|
| NXAPI Response:   34.12 s | Parsing:     0.0 s |
|------------------------------------------------|
| Command set:3                                  |
|     show interface counters detailed           |
|------------------------------------------------|
| NXAPI Response:   34.33 s | Parsing:     0.0 s |
|------------------------------------------------|
| Command set:4                                  |
|     show interface transceiver details         |
|------------------------------------------------|
| NXAPI Response:   35.91 s | Parsing:     0.0 s |
|------------------------------------------------|
| Command set:5                                  |
|     show interface                             |
|------------------------------------------------|

As the error says, the switch is returning bad gateway. Try NXAPI sandbox before. If you want, drop an email to me and I can help to recover all these issues. My email is same as GitHub is at cisco.


Add instructions on copying and aliasing pages to the Editor's guide

Currently there's no information on how to copy/alias a page in Wagtail. This feature is very nice, but hard to discover. Editors could benefit from some pointers and screenshots in the Editor's guide section of the Wagtail docs.

I got started on this using the wagtail bakery demo site. For copying a page, the uses/reasons can be many. I decided to focus on the following use:
Copy a page when one wants to recreate a page with a few changes.
For aliasing a page, however, would the following use case be the right one to choose?
Alias a page when one wants to have a (synchronised) copy of it in a different location. e.g. a Bread page that would appear in the list of Breads but could also appear in a Features/Favourites section.
Are those use cases appropriate for explaining the copy/alias instructions?

I think those are reasonable use cases. For the alias example in context of the bakery demo site I could imagine that a page about brioche could go in the both the bread and pastry sections as a topical example.

Fixed in f54e7e1 via #7068


Aruba appearing multiple times on staging site

Aruba appears as a selection 2-5 times in the country tab and 2 times in the region tab.

This issue has been fixed and it does not appear on staging anymore.


Positional parameter queries do not properly escape placeholders in AS clauses

A simple example of this issue can be seen with the following query:
query = "SELECT %{1} AS %{2} FROM "database" GROUP BY LIMIT 10"
executed as:
InfluxDB::Client.new.query query, params: [:numMeasurements, :foobar]
which will yield the error:
influxdb/client/http.rb:84:in 'resolve_error': {"error":"error parsing query: found foobar, expected identifier at line 1, char 28"} (InfluxDB::Error)
and generates the following query:
SELECT 'numMeasurements' AS 'foobar' FROM "database" GROUP BY LIMIT 10
This is incorrect according to the InfluxDB documentation, which states that identifiers should be double-quoted (in this case, both placeholders require double quotes).

The implementaion for positional (and named) parameters is currently very naïve and only supports escaping for field and tag values, i.e.
q = "SELECT * FROM "database" WHERE foo = %{1} and bar > %{2}"
client.query q, params: ["a string", 42]
#=> SELECT * FROM "database" WHERE foo = 'a string' and bar > 42

Anything fancier needs a rewrite/extension of InfluxDB::Query::Builder. I have something like this in mind:
q = client.select("*").from(:database).where("foo = %{1} and bar > %{2}", "a string", 42).group(time: "1h")
q.execute
#=> SELECT * FROM "database" WHERE foo = 'a string' and bar > 42 GROUP BY time(1h)

As I said, this is not yet possible with this Gem, but if you're using Rails, you can achive something similar today with Influxer.


Structured Lists

Select one ...  (check one with "x")
[ ] bug
[x ] feature request
[ ] enhancement

Expected behavior
I was wondering whether there is any support or planned support for the kinds of lists sometimes used for outlook style inbox side bars or mobile style menu lists. To be honest, I'm not sure what the right terminology is but I have included some links to frameworks/libraries/kits that contain something of the sort:
http://harmony.intuit.com/lists/
https://grommet.github.io/docs/list
https://semantic-ui.com/elements/list.html
http://react-toolbox.com/#/components/list
https://www.material-ui.com/#/components/list
Actual behavior
I spent some time looking through the docs but was unable to find something resembling a "structured list". In particular, the all of the following components seem to be quite explicitly for simple textual content:
https://vmware.github.io/clarity/documentation/lists
https://vmware.github.io/clarity/documentation/sidenav
https://vmware.github.io/clarity/documentation/tree-view
The stack view kinda has the look but clearly has a different function:
https://vmware.github.io/clarity/documentation/stack-view
I suppose the closest thing might be to use single column table with no header:
https://vmware.github.io/clarity/documentation/tables
Of course, I'm sure one could just style a ul or a series of divs oneself, but that would kinda defeat the purpose of using a pattern/component library like Clarity...
Environment details
Clarity 0.8.12

@lambdakris thanks for sharing this with us. This would be a unique component and I could see it being useful as Clarity continues to open up mobile/touch experiences. That said, do you happen to have use cases or mockups outlining your use cases?

Well, this is tough to describe because I don't know what the patterns are called, but I'm beginning to think that what I'm thinking of might easily be two different patterns or components. The first is a list that would appear in something like a sidebar with structured content within each item and separators within the items. The Intuit Harmony site seems to refer to it as a "Complex List" (see http://harmony.intuit.com/lists/ towards the bottom where it is used to list companies on the left side of the "Splitview"). The second would be a list used as the main or part of the main content, so the items would be wider and typically contain more content. An example might be the activity feed in this Grommet sample app, http://ferret.grommet.io/activity.
I also cooked up some really barebones codepens made with grommet.
https://codepen.io/lambdakris/pen/LWXRQz?editors=0010#0
https://codepen.io/lambdakris/pen/JWeRVM?editors=0010
Hope this helps

These help. I was hoping to understand more of the content details that would show in a row
Do you know if you need:

one line of text, two, multiple
left-aligned text only, or right-aligned text as well
free form design possibilities similar to this

@lambdakris
Do you have any more information for @reddolan's questions above?

Yikes, completely tuned out of this one... my bad
Ideally, a list item should:
Support multiple lines
Support left aligned content and right aligned content
Support content with padding and without padding
In truth, you can accomplish the look with a list of divs with dividers between. You could place the list of divided divs inside of a container bordered or non-bordered according to how you want it to look against the other elements on the page.

Thanks, @lambdakris

The feature request here has been captured into our list and we’re going to take it into consideration as we develop Clarity Core capabilities. In an effort to clean up our backlog and focus our attention, I’m going to close this as captured in our feature requests. Please follow our development and releases to see when we release relevant components to make this possible. Future feature requests can be made in our GitHub Discussions.


Score Rendering improvements

This is related to #652
This is how the tooltip looks like after the suggested changes:

This implementation still miss one of the suggested changes, about link the titles to a document, that is not yet be written.

I've also added a link to the documentation which completes and fixes #652

👍


Use content-type header for response

I'm trying to make a custom quote message in my .bashrc file, but each response is JSON. I tried setting the Content-Type header to text/html, but no luck.
My feature request
Change the response based on Content-Type.
Example
The example route is /quotes/random

If Content-type is text/html, instead of returning

[{"_id":"_dfC0aL_AGD4","content":"Great ideas often receive violent opposition from mediocre minds.","author":"Albert Einstein","tags":["Famous Quotes","Technology"],"authorSlug":"albert-einstein","length":65,"dateAdded":"2019-08-03","dateModified":"2023-04-14"}]

return

"Great ideas often receive violent opposition from mediocre minds." - Albert Einstein

That output makes sense for it to be a plain text content type rather than HTML.


Use file extensions that play nice with editors

I ended up having to just tell Atom to use the Handlebars syntax for all *.html files, because there's really no other way to get correct Handlebars syntax highlighting automatically in a Fabricator project. This means that anytime I'm editing HTML and it's not in Fabricator, I can't use keyboard shortcuts to auto-comment stuff. Super irritating!
If the desire is to have the files themselves inform their eventual extension, we could adopt a strategy of chaining them, for example foobar.html.hbs.

Default parsers will happily use either .hbs or .html and can be overridden with options. I can't quite parse your comments, but if you want the extension to be .hbs, I think this is done and dusted. There should be more control overall for extensions and parsing.


fix: remove extra field on helm example config

Description
This PR update the Helm example to remove an extra key causing decode errors.
Fixes #228
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update

How Has This Been Tested?
I have tested the update config manually and will submit an issue to add an E2E test

[ ] Config has been tested manually

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

/lgtm


time dimension crashes kernel

If running most_common regridder with the same dataset but with a time dimension the kernel crashes.

It seems that the origin of this bug was somewhere else. Having time dims in the most_common regridder seems to work fine when testing locally.


Testing PR

Hello,
In this branch I added test for App, Home and Detail components.

STATUS: APPROVED 🟢 🟢 🟢
Everything looks good. You can merge the project. :shipit:


success for deploy - [closed]

In GitLab by @liyanq528 on Sep 21, 2017, 01:33
Merges 20170911 -> dev

In GitLab by @wknet123 on Nov 13, 2019, 10:01
closed


Fix broken bold face

Minor. Fixing the "Section Overview" that isn't appropriately bolded under "Uses".

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Shorten required length for some event fields

This is to accomodate for events planned long into the future, where all information may not be known at the time of event creation. However, we still want to have a lower limit - as the front page would look ugly if there was not enough text to ~fill the "featured" events' text boxes.

What about not having this limit, AND prevent "TBA" events from being one of the two featured events?


Handling compressed content download

When downloading gziped content when XHR progress events set event.lengthComputable to false value for event.total is set to 0 check:
XMLHttpRequest onprogress total is always 0 on Chrome
and
How can I use deflated/gzipped content with an XHR onProgress function?
As solution to this problem is adding additional header info about full size of downloaded modules we would need possibility to read content size from different header value that content-size. As developers may use different headers each time some configuration function would be nice to have not sure how to add such function to webpack plugin but inside promises it may looks something like this:
// header request promise
.then((event) => {
  const total = getFileTotalSize(event);
  progress.totalSize += total;
  ...
})
// and then in progress event handler
document.dispatchEvent(new CustomEvent(
  'chunk-progress-webpack-plugin',
  {
    detail: {
      loaded,
      total: progress.totalSize,
      resource: {
        url,
	loaded: event.loaded, // this actually refers to decompressed size
	total: event.lengthComputable ? event.total : total, // total is defined above as result of getFileTotalSize
      }
    }
}));

and with default implementation set to
function getFileTotalSize(event) {
  return parseInt(event.target.getResponseHeader('content-length'), 10);
}

then in webpack plugin config developer could do something like:
new ChunkProgressWebpackPlugin({
  getFileTotalSize: (event) => {
    return parseInt(event.target.getResponseHeader('x-decompressed-content-length') || event.target.getResponseHeader('content-length'), 10);
  }
}),

If I find some time to research how to add configuration to webpack plugin I can make PR with fix.

Hmm that's an interesting issue, I didn't realize compressed resources didn't report their size.
Given that it seems the solution will always require something custom, would it be simpler to include originalEvent: event in the custom event detail, rather than introducing configuration to the plugin? I believe that would provide the flexibility needed without complicating things for the more common simple use case.

That also is a possibility but it would require parsing that base even for each subsequential call not sure if that's worth it but could be more future proof. That is if there won't be some strange issues with garbage collecting events.

perf should be negligible for something like that, and it's something that could easily be cached on the caller's end if needed (e.g. using resource.url as a key). garbage collection should be fine too; in the worst case it may only exacerbate an existing memory leak, not introduce a new one

Sorry for late review  busy week https://github.com/seleb/chunk-progress-webpack-plugin/pull/3#pullrequestreview-267519868

see #4; lmk if that provides what's needed

Thx looks that it works a little bit inconvenient overriding for resource progress but in end its possible to get correct size from originalEvent target.
In case someone ever looks for how to do it here is an example, let say your server adds additional header to compressed modules called x-decompressed-content-length:
on server if you use express you can do something like this:
const expressStaticGzip = require('express-static-gzip');
const decompressedStats = {};
server.use(expressStaticGzip(`path/to/build`, {
  setHeaders(res, path, stat) {
    // add file full size header
    const decopressedPath = path.replace(/\.gz$/, '');
    if (!decompressedStats[decopressedPath]) {
      decompressedStats[decopressedPath] = fs.statSync(path.replace(/\.gz$/, ''));
    }
    res.set('x-decompressed-content-length', decompressedStats[decopressedPath].size);
  },
}));

in application code you can define something like this
export function preload(renderProgress, document) {
  let animationFrameHandler;
  const progress = {}; // key resource url value { url: string, loaded: number, total: number }
  function preloadProgress(event = {}) {
    const { detail = {} } = event;
    const { originalEvent = {}, resource = {} } = detail;
    const { target = null } = originalEvent;
    const total = target
      ? parseInt(target.getResponseHeader('x-decompressed-content-length') || target.getResponseHeader('content-length'), 10)
      : 0;
    // add total size to progress object
    if (resource.url) {
      progress[resource.url] = Object.assign(progress[resource.url] || {}, resource, { total });
    }
    // then you can use progress object for rendering progress
    animationFrameHandler = requestAnimationFrame(() => {
      if (animationFrameHandler) {
        renderProgress(progress);
      }
    });
  }
  document.addEventListener('chunk-progress-webpack-plugin', preloadProgress);
  // return cleanup callback
  return () => {
    document.removeEventListener('chunk-progress-webpack-plugin', preloadProgress);
    cancelAnimationFrame(animationFrameHandler);
    animationFrameHandler = null;
  };
}


Build fails for applications with deep dependencies

Attempting to build package from 'bridge.nuspec'.
The specified path, file name, or both are too long. The fully qualified file na
me must be less than 260 characters, and the directory name must be less than 24
8 characters.

I'm getting this error when attempting to build my application on Windows. I'm using the latest version of npm, have run npm dedupe to flatten the dependency tree as much as possible, and have put the project directly in the C:\ drive of the system.
What else can be done to fix this?

I would try running this project with debug set (see the readme) and see exactly what is failing, then we can see what to do about it.
when you say the latest version of npm do you mean npm@3? that will produce flat trees in node_modules unless you import packages dependent on the same package with different versions.. I'd be surprised if that gave you a massive path.

@JonathonAshworth please check the issue from grunt-electron-installer (and possible solution): https://github.com/atom/grunt-electron-installer/issues/39#issuecomment-137590172

@JonathonAshworth I'm going to close it. Feel free to reopen if you still experience this problem and provided solution doesn't work for you.


使用知识库问答时报错

ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/fastapi/applications.py", line 1106, in call
await super().call(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/routing.py", line 69, in app
await response(scope, receive, send)
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/responses.py", line 270, in call
async with anyio.create_task_group() as task_group:
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/responses.py", line 273, in wrap
await func()
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/root/Langchain-Chatchat/server/chat/knowledge_base_chat.py", line 75, in knowledge_base_chat_iterator
docs = search_docs(query, knowledge_base_name, top_k, score_threshold)
File "/root/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 37, in search_docs
docs = kb.search_docs(query, top_k, score_threshold)
File "/root/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 181, in search_docs
docs = self.do_search(query, top_k, score_threshold)
File "/root/Langchain-Chatchat/server/knowledge_base/kb_service/milvus_kb_service.py", line 64, in do_search
embeddings = embed_func.embed_query(query)
File "/root/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 403, in embed_query
query_embed = embeddings[0]
TypeError: 'NoneType' object is not subscriptable
2023-12-07 16:26:36,085 - utils.py[line:188] - ERROR: RemoteProtocolError: API通信遇到错误：peer closed connection without sending complete message body (incomplete chunked read)

你好，请问这个问题怎么解决的


CDNJS does not contain map files anymore since 5.54.0

Why does the CDNJS package no longer contain map files since 5.54.0? Are there anywhere else? Is this a bug?
Best regards,
D.R.

What do you mean by 'map files'?

The corresponding map files to the minified JS files, so I can use minified files and still debug the JavaScript code.
Our package manager libman says they're now missing.

This library never shipped minified JS files or source maps, so this is probably not the place to solve your issue.

So, you're not responsible for the cdnjs package of your library? Do you know who is?


the server could not find the requested resource (post apigees.config.istio.io)

Hi
When we run below command to install adapter,

kubectl apply -f samples/apigee/grpc

we see this error:
Error from server (NotFound): error when creating "samples/apigee/grpc/handler.yaml": the server could not find the requested resource (post apigees.config.istio.io)
Can you help?

Ok.
issue got resolved by putting -g parameter when generate the handler.yaml file during provisioning.
Please correct your documentation as it does not mention this at all

I apologize for the confusion, the README.md that came with your download should have that information, but the live documentation on github has been updated for a new release that will no longer require the -g option.


[eclipse-marketplace] New last updated Eclipse badge

This pull request implements a fifth Eclipse Marketplace badge, which displays the "date" when the plugin was last updated on the marketplace. For instance:

Cheers,
Pyves

Thanks!


Made the necessary changes to the search bar

Hey @Rishika10442.
Thanks for your contribution.
It will be really great if you can send a video or gif for the necessary changes.


4.1 Connect with CKAN Association Technical Team

As a Developer building new functionality I want to make my functionality builds
off and contributes maximally to enhancing CKAN so I and the community get
maximum and sustainable value from what I do

Goal: Ensure this work is well integrated with general CKAN roadmap and includes
engagement with the CKAN Association Technical team

We'll try our best to work with the CKAN technical team. :smile:


docs: Improve Upgrade Guide and Troubleshooting Guide for DNS Policy Change

Fixes #5817
Description
Add documentation in the upgrade guide and troubleshooting guide that clarifies the DNS policy change that was made in v0.34.x and clarifies how to resolve the issue if you run into it.
How was this change tested?
make presubmit
Does this change impact docs?

[x] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[ ] No

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

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 82.727%

Files with Coverage Reduction
New Missed Lines
%

pkg/fake/utils.go
2
94.56%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
5302

Relevant Lines:
6409

💛  - Coveralls


cannot register

DO NOT REMOVE THIS
Please make sure your issue complies with these guidelines:

[ ] Be using PMMP

[ ] Make sure the issue hasn't already been reported

[ ] Make sure you are on the latest version of PMMP & PiggyAuth

[ ] Have a detailed title like "Players are being kicked randomly"

[ ] Provide any crash dumps or errors

General

if i write email to chat when registrating, it write: CRITICAL> "Could not pass event 'pocketmine\event\player\PlayerChatEvent' to 'PiggyAuth v<IP_ADDRESS>': Cannot call constructor on PiggyAuth\EventListener
CRITICAL> Error: "Cannot call constructor" (EXCEPTION) in "/plugins/PiggyAuth_v<IP_ADDRESS>.phar/src/PiggyAuth/Tasks/ValidateEmailTask" at line 32
Server Software:

Tesseract linux
Version of PiggyAuth:

Data Provider:

[ ] MySQL
[ ] SQLite
[ ] YAML
[yes] JSON

PiggyAuth doesn't support Tesseract.


exec-env improvements

See individual commit messages for details on each change.

Checking if GOROOT and GOPATH should be more than enough, there is no need to add unset or add 2 environment variables (ASDF_GOLANG_DISABLE_GOROOT, ASDF_GOLANG_DISABLE_GOPATH

I just finished reading https://github.com/asdf-community/asdf-direnv/issues/149, I think GOPATH should not be changed if it was already set since GOPATH is normally a developer's workspace.
but you are right about changing unsetting/setting GOROOT depending on the switch between versions

I agree changing is more crucial for GOROOT if it's set.
For GOPATH, one approach would be to change if the already set value looks like something asdf-golang has set it to earlier, otherwise leave alone.
Anyway, I can revise this PR once I know what behavior the maintainers here prefer.
Personally, I would drop touching both GOROOT and GOPATH altogether, no matter if set or not. That'd be a backwards incompatible change though -- therefore the ASDF_GOLANG_DISABLE_* variables, to make the breaking change opt-in.

Thanks for the PR @scop! I've got the next two weeks off, so I'll spend some time digging into this one.

Rebased to resolve conflicts, cleaned up indentation some.

Anything I can do to help with this?


fix(hive): Regression in #21794

SUMMARY
Apologies for the oversight, but https://github.com/apache/superset/pull/21794 neglected to account that Hive doesn't use the information_schema construct and relies on SHOW VIEWS and SHOW TABLES to obtain the names of views and table (which somewhat ironically includes views).
This PR remedies said regression by adding the HiveEngineSpec.get_view_names` method.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS
Added unit tests and tested with a local Hive database.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@villebro regarding your comment,

LGTM. In the long term it would be nice to push this fix upstream, as I'm sure this causes confusion wherever PyHive is used.

I completely agree—I'm generally a fan of the shift-left mentality. I looked into at some stage but there's also a breaking change in terms of how PyHive doesn't adhere to the SQLAlchemy specification, i.e., if the schema is undefined then it fetches all the tables and views for the entire database as opposed to the default schema/namespace.


make the loader say if it enabled substitute or ellekit.

totally tested it and it totally didn't complain about force-revert shit :trollface:

would recommend that you add fall back message if one or the other isn't present (depending on what you have), and take into account of ellekit rootful


Update GW banner

What does this change?
This updates the Guardian Weekly banner for the Jan '23 campaign.
Images

Mob
Desktop

 Print Subscription Banner - Deadline Friday 20th


Use a handler/service activator within an enricher

The current enricher allows for specifying a payload, request and response channel where one can request additional data for enriching content or header. This change would allow one to specify an inline call to a handler instead of a request/response channel to grab the additional data.

Hello, @chiknrice !
Thank you very much for the contribution effort!
Before we review your work, let us know if you really need this sub-flow feature in the current Java DSL 1.2.x version or it can simply go to the Spring Integration 5.0 as long as the DSL has moved there already.
Thanks

Hi, I'm currently doing a bunch of publish-subscribe/aggregate to work around it but I don't mind if the change just go to 5.0.
Do you need me to port the changes to that repository?

Yes, please.
Move the solution to that project.
Thanks

Superseded with https://github.com/spring-projects/spring-integration/pull/2097


[Event Request] Codeunit 80 "Sales-Post" - OnCreatePrepaymentLinesOnBeforeCheckAmounts

Hi, would it be possible to get an OnCreatePrepaymentLinesOnBeforeCheckAmounts event in codeunit 80 (Sales-Post), like this:
local procedure CreatePrepaymentLines(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean)
    var
        GLAcc: Record "G/L Account";
        TempSalesLine: Record "Sales Line" temporary;
        TempExtTextLine: Record "Extended Text Line" temporary;
        GenPostingSetup: Record "General Posting Setup";
        TempPrepmtSalesLine: Record "Sales Line" temporary;
        TransferExtText: Codeunit "Transfer Extended Text";
        NextLineNo: Integer;
        Fraction: Decimal;
        VATDifference: Decimal;
        TempLineFound: Boolean;
        PrepmtAmtToDeduct: Decimal;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeCreatePrepaymentLines(SalesHeader, TempPrepmtSalesLine, CompleteFunctionality, IsHandled, TempSalesLineGlobal);
        if IsHandled then
            exit;

        GetGLSetup();
        with TempSalesLine do begin
            // Get Sales lines
            FillTempLines(SalesHeader, TempSalesLineGlobal);
            // Copy TempSalesLineGlobal to TempSalesLine
            ResetTempLines(TempSalesLine);

            if not FindLast then
                exit;

            NextLineNo := "Line No." + 10000;
            SetFilter(Quantity, '>0');
            SetFilter("Qty. to Invoice", '>0');
            TempPrepmtSalesLine.SetHasBeenShown;

            // Get all sales lines
            if FindSet() then begin
                if CompleteFunctionality and ("Document Type" = "Document Type"::Invoice) then
                    TestGetShipmentPPmtAmtToDeduct;
                repeat
                    if CompleteFunctionality then
                        if SalesHeader."Document Type" <> SalesHeader."Document Type"::Invoice then begin
                            if not SalesHeader.Ship and ("Qty. to Invoice" = Quantity - "Quantity Invoiced") then
                                if "Qty. Shipped Not Invoiced" < "Qty. to Invoice" then
                                    Validate("Qty. to Invoice", "Qty. Shipped Not Invoiced");
                            Fraction := ("Qty. to Invoice" + "Quantity Invoiced") / Quantity;

                            // New Event begin
                            IsHandled := false;
                            OnCreatePrepaymentLinesOnBeforeCheckAmounts(TempSalesLine, SalesHeader, IsHandled);
                            if not IsHandled then
                            // New Event end
                                if "Prepayment %" <> 100 then
                                    case true of
                                        ("Prepmt Amt to Deduct" <> 0) and
                                    ("Prepmt Amt to Deduct" > Round(Fraction * "Line Amount", Currency."Amount Rounding Precision")):
                                            FieldError(
                                            "Prepmt Amt to Deduct",
                                            StrSubstNo(CannotBeGreaterThanErr,
                                                Round(Fraction * "Line Amount", Currency."Amount Rounding Precision")));
                                        ("Prepmt. Amt. Inv." <> 0) and
                                    (Round((1 - Fraction) * "Line Amount", Currency."Amount Rounding Precision") <
                                    Round(
                                        Round(
                                        Round("Unit Price" * (Quantity - "Quantity Invoiced" - "Qty. to Invoice"),
                                            Currency."Amount Rounding Precision") *
                                        (1 - ("Line Discount %" / 100)), Currency."Amount Rounding Precision") *
                                        "Prepayment %" / 100, Currency."Amount Rounding Precision")):
                                            FieldError(
                                            "Prepmt Amt to Deduct",
                                            StrSubstNo(CannotBeSmallerThanErr,
                                                Round(
                                                "Prepmt. Amt. Inv." - "Prepmt Amt Deducted" - (1 - Fraction) * "Line Amount",
                                                Currency."Amount Rounding Precision")));
                                    end;
                        end;
                        ...
    end;

    [IntegrationEvent(false, false)]
    local procedure OnCreatePrepaymentLinesOnBeforeCheckAmounts(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
    begin
    end;

Thanks!
#14587

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Generate Darwin framework glue for all known data model things.

The Darwin codegen was only generating things for
clusters/commands/attributes enabled in controller-clusters.zap.  We
should generate for everything instead.
Problem
See above.
Change overview
Add a way to have ClustersHelper do everything, not just the things in controller-clusters.
Testing
Looked at generated code, ensured that the removals are all just reorderings due to the various ZAP not-sorting bugs.

Fast-tracking platform-specific change.


v0.31.0 checksum mismatch

Problem statement
Because I have private dependencies I can't use a go proxy like https://proxy.golang.org/, so I'm using GOPROXY=direct.
Go still tries to verify modules via sum.golang.org (except my private modules because of GONOSUMDB=git.my-company.com//).
Which results in
/workspaces/device-farm-amf # go install -v<EMAIL_ADDRESS>go: downloading github.com/go-swagger/go-swagger v0.31.0
go<EMAIL_ADDRESS><EMAIL_ADDRESS>verifying module: checksum mismatch
downloaded: h1:s/T8gKzyNAUMFMyTWew6Vz3+rpT2MYKQD6ez1FlkRrs=
sum.golang.org: h1:H8eOYQnY2u7vNKWDNykv2xJP3pBhRG/R+SOCAmKrLlc=
SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
Steps to reproduce
Using a docker container
docker run -i --tty --rm golang:1.13
root@b70fd0ea2376:/go# GOPROXY=direct go mod download -json<EMAIL_ADDRESS>Environment
swagger version: 0.31.0
go version: go1.22.3
OS: linux/amd64

I'm also facing this problem.

me too

This is also happening on official goproxy. Not sure what shenanigans the authors did, but it may be best to publish a new version.
go mod download
verifying<EMAIL_ADDRESS>checksum mismatch
	downloaded: h1:H8eOYQnY2u7vNKWDNykv2xJP3pBhRG/R+SOCAmKrLlc=
	go.sum:     h1:s/T8gKzyNAUMFMyTWew6Vz3+rpT2MYKQD6ez1FlkRrs=

@fredbi sorry for pinging, but can you maybe shed some light on this?

I think the problem is that go-swagger has tagged v0.31.0 to commit d8336bd in the first place and then retagged to the current commit 2acfd2.
The golang official proxy and go.sum database cached the original commit  as v0.31.0 as can be seen from this link<EMAIL_ADDRESS>. They cache the commit when the tag is released in the first place and will not change its content after retagging.
{"Version":"v0.31.0","Time":"2024-05-13T17:14:31Z","Origin":{"VCS":"git","URL":"https://github.com/go-swagger/go-swagger","Ref":"refs/tags/v0.31.0","Hash":"d8336bda9d0fb6dc36a2d0952d3630686bc826d3"}}

But GitHub treats the current commit 2acfd2 as v0.31.0.  So the checksum from the code in github does not match the checksum saved in sum.golang.org.  In this case:

if you download from GORPOXY, the checksum and downloaded go-swagger are all corresponding to the original commit, the checksum is correct. But you do not get the latest commit on Github.

If you download from GitHub directly(i.e., export GOPROXY=direct), then the checksum of downloaded swagger is of the latest commit but the checksum from sum.golang.org is of the original commit. Therefore inconsistency occured and caused build error.

In neither case it's ideal. So there are two possible solutions for  downstream users to avoid this temporarily.

use GOPROXY to download go-swagger to avoid build error but using the old commit
use older versions of go-swagger

To solve this completely, go-swagger needs to release a new version and maybe add retract directive in the go.mod as https://proxy.golang.org#faq-retract-version says.
@fredbi  Hope this can help :).

This is also a version for anyone who uses Github Dependabot (and a GOPRIVATE), so please cut a new release tag.


Setting to Disable npm scripts Debug Button in package.json

Currently, in VS Code May 2020 (1.46), there is a Debug button that appears above the npm scripts in my package.json:

I would like to configure a setting to disable this.

These things are called CodeLenses. Take a look at debug.javascript.codelens.npmScripts

Funny enough, trawling around the history, it seems like there was a feature that was removed in 2018, which was configurable with npm.scriptCodeLens.enable setting 🤔 hm...
https://github.com/microsoft/vscode/commit/73b72464b3f71db7ac3b763f37e84769bd411a7b

@gjsjohnmurray nice, thanks! Possible options are "all", "top" and "never".
I guess to turn it off it's:
"debug.javascript.codelens.npmScripts": "never"

Also answered here: https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json/62368407#62368407


Document that backend needs to expose anonymous endpoint for health check

At work we had problems putting an application gateway in front of an ILB ASE because the app inside was using basic authentication and returning 401 on the health probe checks.
It would be useful to call out in the documentation that the backend application should expose url that can be accessed anonymously.
For us we changed the health check to interpret 401 authorization failed as a successful check.
This article helped us: https://stackoverflow.com/questions/35311136/azure-application-gateway-502-error

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

ID: 0c47f14c-8432-fa9b-59c2-8283cc455041
Version Independent ID: 2c19c574-2ab7-2c2a-513e-3a0f512d3e23
Content: Create a custom probe using the portal - Azure Application Gateway
Content Source: articles/application-gateway/application-gateway-create-probe-portal.md
Service: application-gateway
GitHub Login: @vhorne
Microsoft Alias: victorh

Thanks for your comment. The feedback has been shared with the content owner for further review. Thanks for your patience.

Hello @mocleiri,
Appreciate you reaching out.  Backend health probes do not authenticate to the backend as you mentioned.  Some customers may configure the health probe to consider a 4XX response to be healthy, which would return back as a healthy backend.  The Backend health portal blade should call out what response code is observed from the backend and can help you tweak your health probes accordingly.
Hope this helps!
Jack
#please-close


Results are not returned in the main thread

In order to avoid a dispatch_async call within this kind of code:
switch result {
    case .Success(let posts):
        self.posts = posts
        dispatch_async(dispatch_get_main_queue()) {
            self.tableView.reloadData()
        }
    case .Failure(let error):
        self.showAlertControllerForError(error)
}

It would be useful from the ViewController point of view if the result were already returned in the main thread.
Proposed solution:

Invoke the main thread before calling every completion function, inside the library, and not at the ViewController layer.

Notes:

This is not an API-breaker.

Solved for version 2.0.1


res.json(null), no response

Describe the bug
Documentation says null is a valid argument https://tinyhttp.v1rtl.site/docs#resjson
However if you pass null to res.json() then no response is sent back to client
res.json(null) // doesnt work
res.json({}) // works

res.send(null) // works

res.end(null) // works

How to fix
the issue is that if body = null , it causes an edge case here:
https://github.com/talentlessguy/tinyhttp/blob/a909c9918460eeef4e0ed2509399ed7b46149466/packages/send/src/json.ts#L11-L12
I dont think the check for typeof  body === string is required

Could you please send a PR with a bugfix? (should be smth as easy as body || {})
currently don't have time to work on tinyhttp :v

Done, Code deliberately verbose for clarity.

Bugfix landed in 344a8ae79c72a803dba5b34614d5272c432bbf8c, so closing


adding navigator widget

This needs an example

This needs an example

I will get on that this monday.

I will get on that this monday.


Unable to copy to buffer using ZwlrScreencopyFrameV1

Hello, my assumption is that this is just my misunderstanding of how ZwlrScreencopyFrameV1.copy works as the documentation on it is pretty limited.
The documentation make it seem that if I want to get the image to display I need to use ZwlrScreencopyFrameV1.copy(buffer); which will copy the screen data to WlBuffer which will result into my screen appearing in the window.
This puts me under the assumption that if I write this code it will act as follows.
frame.copy(&buffer); // copies the frame to the buffer
surrface.attach(Some(&buffer), 0, 0); // Attaches the buffer to the surface
surface.commit(); // Commits the change which results into the screen being shown

However this is not the case and I'm not exactly sure how would I debug this issue. I have attempted to read the contents of the file which stores the WlBuffer data however it returns me a bunch of zeros (The files isn't empty as the size was set to the accumulative amount of pixels on all of the displays.)
P.S. The copy process does not fail as I do receive Flag, and Ready events.

If you call surface.attach(Some(&buffer), 0, 0) immediately after frame.copy(&buffer), there's no guarantee what buffer contents will be committed to the surface. The commit might happen before the frame.copy is complete.
You should call frame.copy, and then not access the contents of the buffer until you get a ready event. Then you can try reading it or attaching it to a surface.


3.5.9 release doc mistake

https://github.com/mybatis/mybatis-3/releases/tag/mybatis-3.5.9

Add nullable to <collection />.

Change to:

Add nullable to <foreach />.

🙀
Corrected. Thank you, @abel533 !


Setting Flask env on powershell is different

https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-flask#run-the-web-app
Using Visual Studio code's powershell, instead of
set FLASK_APP = app.py
I had to use
$env:FLASK_APP = "app.py"

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

ID: e178cd44-55d5-23ab-d965-94c47ada47dc
Version Independent ID: c0f2ba6b-9c90-8975-6796-009417be4ffa
Content: Build a Flask web app using Azure Cosmos DB's API for MongoDB and Python SDK
Content Source: articles/cosmos-db/create-mongodb-flask.md
Service: cosmos-db
GitHub Login: @rimman
Microsoft Alias: rimman

@falloutxAY Thank you for your feedback . We will investigate and update further.

@falloutxAY Thanks for your feedback. I have assigned this issue to content author for further details.
@rimman Could you please help customer with his concern.

@falloutxAY we have updated the doc to include the PS version of command too. We will close this issue now.
#please-close


Match.groups() should return all groups

This issue was originally filed by @jooadam

I’m suprised that there is no direct way to ask for all the capture groups’ content in a Match object.
Currently, String Match.group(int group) returns the contents of the designated group, while List<String> Match.groups(List<int> groupIndices) returns a list of the contents of the groups given as argument to the method. There is, however, no straightforward way to get the contents of all the groups: omitting the arguments does not check, an empty list yields an empty list, null throws an exception.
One is left with match.groups(new List.generate(match.groupCount, (i) => i + 1)), which is ridiculous.

Duplicate of https://github.com/dart-lang/sdk/issues/6622


Game sometimes runs through windows above it

As you can see in the below screenshot, there are instances where the game shows on top of windows you place in front of it, despite the copy dialog window being hidden. I'm sorry that I don't have more details; I haven't noticed what specific circumstances cause this to happen.

I'm running Windows 10 version 21H1

Bug also on Windows 11 21H2, also sometimes keystrokes(like tab) are also captured by the window instead of the one I'm working on

Ah yes, the focus handling is tricky here. Removing showOverlay = true; in OverlayWindow.cs line 194 fixes the issue but might introuduce other problems. I'll have to investigate a bit to make a proper fix to handle all focus scenarios.


Docs: typo cleanup

This pull request fixes a handful of typos related to the 4.0 docs, in addition to a transposed html tag on the front page (>select<).

Looks good, thanks!


changed regex behavior for guard command on set user permission resource

Can you remove the metadata.rb change? Other than that this looks good. Just need another +1 on it.

+1.  What's wrong with the version bump in metadata?

I'm trying to control the version numbers, if everyone started doing it we'd have some crazy conflicts.
It happens in the Openstack repos with our CHANGLOG.md all the time.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/37712

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/37904

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/51325

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/53271

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/54410

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/63730

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/67041

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/73894

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/79075

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/79329

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/79332

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/79339

Triggering TagBot for merged registry pull request
This extra notification is being sent because I expected a tag to exist by now, but it doesn't.
You may want to check your TagBot configuration to ensure that it's running, and if it is, check the logs to make sure that there are no errors.


Pls Deps LoggerService error 404

I think deps.ts runs the old version of Drash 1.3.1.
Can you please fix it to the latest version?
<EMAIL_ADDRESS>

Will be fixed in https://github.com/drashland/deno-drash-middleware/pull/98, going this merge this and make a new release :)

Will be fixed in https://github.com/drashland/deno-drash-middleware/pull/98, going this merge this and make a new release :)

Will be fixed in #98, going this merge this and make a new release :)

Thanks for the reply,
I just saw an update in the master.

Will be fixed in #98, going this merge this and make a new release :)

Thanks for the reply,
I just saw an update in the master.

Released: https://github.com/drashland/deno-drash-middleware/releases/tag/v0.7.1, let us know if this definitely fixed your problem :)

Released: https://github.com/drashland/deno-drash-middleware/releases/tag/v0.7.1, let us know if this definitely fixed your problem :)

Released: https://github.com/drashland/deno-drash-middleware/releases/tag/v0.7.1 (you just need to update. your deno.land import), let us know if this definitely fixed your problem :)

Oh Wow!
Thanks a lot. 👍

Released: https://github.com/drashland/deno-drash-middleware/releases/tag/v0.7.1 (you just need to update. your deno.land import), let us know if this definitely fixed your problem :)

Oh Wow!
Thanks a lot. 👍


INFO:tensorflow:Graph was finalized, Job hangs indefinitely when running with istio-sidecars

Hi guys, i am rather new to tensorflow- and trying to run a distributed tensorflow job (from here https://github.com/learnk8s/distributed-tensorflow-on-k8s). Its a standard character recognition job using MNIST dataset. I can successfully run the job on locally deployed Kubernetes cluster without any issue. But when i try to deploy the same job in an istio-injection=enabled namespace, the job keeps on running forever. Upon looking at the logs of individual pods ... its both chief-pod & worker-pods are stuck at "INFO:tensorflow:Graph was finalized." step. Which is repeated indefinitely.
error
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed

System information

OS Platform and Distribution (Linux Ubuntu 18.04):
TensorFlow installed from (pip install):
TensorFlow version:1.8

chief-pod logs
WARNING:tensorflow:From /app/main.py:95: load_dataset (from tensorflow.contrib.learn.python.learn.datasets) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/__init__.py:80: load_mnist (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:300: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:290: __init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
INFO:tensorflow:TF_CONFIG environment variable: {u'environment': u'cloud', u'cluster': {u'ps': [u'tfjob1-ps-0.istio-test.svc:2222'], u'chief': [u'tfjob1-chief-0.istio-test.svc:2222'], u'worker': [u'tfjob1-worker-0.istio-test.svc:2222', u'tfjob1-worker-1.istio-test.svc:2222']}, u'task': {u'index': 0, u'type': u'chief'}}
INFO:tensorflow:Using config: {'_save_checkpoints_secs': None, '_session_config': None, '_keep_checkpoint_max': 5, '_tf_random_seed': None, '_task_type': u'chief', '_train_distribute': None, '_is_chief': True, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x7fe6a9ab9190>, '_model_dir': './out/vars', '_num_worker_replicas': 3, '_task_id': 0, '_log_step_count_steps': 100, '_master': u'grpc://tfjob1-chief-0.istio-test.svc:2222', '_save_checkpoints_steps': 20, '_keep_checkpoint_every_n_hours': 10000, '_evaluation_master': '', '_service': None, '_global_id_in_cluster': 0, '_save_summary_steps': 20, '_num_ps_replicas': 1}
INFO:tensorflow:Start Tensorflow server.
2019-07-31 23:54:35.170532: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-07-31 23:54:35.175567: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] Initialize GrpcChannelCache for job chief -> {0 -> localhost:2222}
2019-07-31 23:54:35.175633: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] Initialize GrpcChannelCache for job ps -> {0 -> tfjob1-ps-0.istio-test.svc:2222}
2019-07-31 23:54:35.175660: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] Initialize GrpcChannelCache for job worker -> {0 -> tfjob1-worker-0.istio-test.svc:2222, 1 -> tfjob1-worker-1.istio-test.svc:2222}
2019-07-31 23:54:35.179473: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:332] Started server with target: grpc://localhost:2222
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Create CheckpointSaverHook.
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. Error: Socket closed

I am not an expert in tensorflow, so please provide some insights what might be causing this error. I get the same logs from the worker-pods as well (something regarding socket closed). This only happens when i try to run the job with istio-sidecars, otherwise it runs fine.
thanks!

Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary?
Make sure you also include the code snippet to reproduce the issue. If you are unclear what to include see the issue template displayed in the Github new issue template.
We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

Platform: Running on top of 4-node (baremetal) Kubernetes Cluster
Operating System/ Architecture:  Ubuntu 18.04.2 LTS/ x86_64
Tensorflow version: 1.8  (used pip install to setup pod environment)
Kubeflow version: v0.6.0
tfjob.yaml - manifest file to launch the job
apiVersion: kubeflow.org/v1beta2
kind: TFJob
metadata:
  name: tfjob1
spec:
  tfReplicaSpecs:
    Chief:
      replicas: 1
      template:
        spec:
          volumes:
            - name: local-pv
              persistentVolumeClaim:
                claimName: local-pvc
          containers:
            - name: tensorflow
              image: learnk8s/mnist:1.0.0
              imagePullPolicy: Always
              args:
                - --model_dir
                - ./out/vars
                - --export_dir
                - ./out/models
              volumeMounts:
                - mountPath: /app/out
                  name: local-pv
          restartPolicy: OnFailure
    Worker:
      replicas: 2
      template:
        spec:
          containers:
            - name: tensorflow
              image: learnk8s/mnist:1.0.0
              imagePullPolicy: Always
          restartPolicy: OnFailure
    PS:
      replicas: 1
      template:
        spec:
          volumes:
            - name: local-pv
              persistentVolumeClaim:
                claimName: local-pvc
          containers:
            - name: tensorflow
              image: learnk8s/mnist:1.0.0
              imagePullPolicy: Always
              volumeMounts:
                - mountPath: /app/out
                  name: local-pv
          restartPolicy: OnFailure

steps to recreate the issue
Installing kubeflow already installs the istio-system namespace. Create a new namespace to launch the tfjob and enable side-car injection using kubectl label namespace default istio-injection=enabled. Then just launch the job using the attached manifest file. The pods start running and keep on running. Checking the logs of the pods shows the above mentioned error.
Please let me know if i need to elaborate anything else!

@ali-raza-tariq Is it possible for you to try latest TF versions and let us know whether the issue persists? There were lots of performance improvements in the latest versions. Thanks!

hi @jvishnuvardhan i tried with the latest version (tf-v1.14.0) and now receiving this error - master pod logs
2019-08-08 23:49:47.347991: W tensorflow/core/distributed_runtime/rpc/grpc_remote_master.cc:157] RPC failed with status = "Unavailable: Socket closed" and grpc_error_string = "{"created":"@1565308187.347861590","description":"Error received from peer","file":"external/grpc/src/core/lib/surface/call.cc","file_line":1039,"grpc_message":"Socket closed","grpc_status":14}", maybe retrying the RPC
2019-08-08 23:49:47.348028: W tensorflow/core/distributed_runtime/rpc/grpc_remote_master.cc:161] Too many retries, returning last status: Unavailable: Socket closed
I0808 23:49:47.352538<PHONE_NUMBER>08192 monitored_session.py:1215] An error was raised while a session was being created. This may be due to a preemption of a connected worker or parameter server. A new session will be created. This error may also occur due to a gRPC failure caused by high memory or network bandwidth usage in the parameter servers. If this error occurs repeatedly, try increasing the number of parameter servers assigned to the job. Error: Socket closed
I0808 23:49:47.352852<PHONE_NUMBER>08192 monitored_session.py:240] Graph was finalized.

again ... this keeps error keeps repeating! its seems like the same error with a little more information

Got the same problem with TF 1.14.0. I'm just trying to run this tutorial on TPU v2-8 in the train_and_eval mode: https://cloud.google.com/tpu/docs/tutorials/retinanet

Same with "eval" mode:
Prefer Variable.assign which has equivalent behavior in 2.X.
I0829 12:58:56.393908<PHONE_NUMBER>61888 tpu_estimator.py:557] Init TPU system
I0829 12:59:04.454689<PHONE_NUMBER>61888 tpu_estimator.py:566] Initialized TPU in 8 seconds
I0829 12:59:04.455903<PHONE_NUMBER>45696 tpu_estimator.py:514] Starting infeed thread controller.
I0829 12:59:04.456376<PHONE_NUMBER>52992 tpu_estimator.py:533] Starting outfeed thread controller.
I0829 12:59:06.363774<PHONE_NUMBER>61888 util.py:98] Initialized dataset iterators in 1 seconds
I0829 12:59:06.899665<PHONE_NUMBER>61888 tpu_estimator.py:590] Enqueue next (1) batch(es) of data to infeed.
I0829 12:59:06.900336<PHONE_NUMBER>61888 tpu_estimator.py:594] Dequeue next (1) batch(es) of data from outfeed.
I0829 12:59:06.901554<PHONE_NUMBER>52992 tpu_estimator.py:275] Outfeed finished for iteration (0, 0)
2019-08-29 12:59:19.151003: W tensorflow/core/distributed_runtime/rpc/grpc_remote_master.cc:157] RPC failed with status = "Unavailable: Socket closed" and grpc_error_string =<EMAIL_ADDRESS>"description":"Error received from peer","file":"external/grpc/src/core/lib/surface/call.cc","file_line":1039,"grpc_message":"Socket closed","grpc_status":14}", maybe retrying the RPC
2019-08-29 12:59:19.151004: W tensorflow/core/distributed_runtime/rpc/grpc_remote_master.cc:157] RPC failed with status = "Unavailable: Socket closed" and grpc_error_string =<EMAIL_ADDRESS>"description":"Error received from peer","file":"external/grpc/src/core/lib/surface/call.cc","file_line":1039,"grpc_message":"Socket closed","grpc_status":14}", maybe retrying the RPC
E0829 12:59:40.724822<PHONE_NUMBER>45696 error_handling.py:70] Error recorded from infeed: Session 193eb0c15bcae603 is not found.
I0829 12:59:40.725296<PHONE_NUMBER>61888 monitored_session.py:1262] An error was raised. This may be due to a preemption in a connected worker or parameter server. The current session will be closed and a new sessi
on will be created. This error may also occur due to a gRPC failure caused by high memory or network bandwidth usage in the parameter servers. If this error occurs repeatedly, try increasing the number of parame
ter servers assigned to the job. Error: Session 193eb0c15bcae603 is not found.
W0829 12:59:40.727647<PHONE_NUMBER>61888 monitored_session.py:1164] An error occurred when attempting to close the session. This may be due to a preemption in a connected worker or parameter server. Error: Session
193eb0c15bcae603 is not found. Possibly, this master has restarted.
I0829 12:59:40.727874<PHONE_NUMBER>61888 monitored_session.py:240] Graph was finalized.

The problem went away after I fixed my data. I understand that this is a general, catch-all error that would be triggered in case of any problems with your model.
I would recommend switching to GPU or CPU and make sure the model works as expected.
However, it would be beneficial if TF could report the exact error from the remote master.

@artyompal Could you elaborate what is fixed my data? The error message indicates the connection to the remote worker is lost and therefore it doesn't know what happens on that remote worker.

I mean that in my case, tfrecords had an error and they didn't correspond to the model. Something was missing or in the wrong format (i.e. string instead of int32).

The error message indicates the connection to the remote worker is lost and therefore it doesn't know what happens on that remote worker.
This doesn't necessarily mean it's a network problem. This message would be triggered in case of any TensorFlow error on the remote worker.

This is a stale issue. Please check the issue with latest TensorFlow. If the issue still persists in the newer version of TF, please feel free to reopen it by providing details about the issue and a standalone code to reproduce the issue. Thanks!


Fix UB in getsockopt

The old code tried to zero-initialize an enum for which 0 is not a valid
value.  That worked for older compilers, but triggers a panic with Rust
1.44.0.  The correct technique is to use mem::MaybeUninit.
Fixes #1212

@srikwit could you please review?

Yes I am reviewing it.

All tests have passed! LGTM.


Replace null with empty String in master proxy result set.

Replace null with empty String in master proxy result set. This is to fix NPE when the master proxy result set contains a null item. The NPE could cause the thrift server crash and fail to send the result back to the client which is a follower or an observer fe.
Problem Summary:
Suppose we have 3 follower FEs, say A, B and C and A is currently the master. If B becomes the master after A crashes, we will get the following error when we run "show frontends" command:
ERROR 1105 (HY000): TTransportException, msg: Socket is closed by peer.
which is caused by the thrift server side NPE (ResultSet couldn't contain null):
2022-03-21 15:55:13 ERROR TThreadPoolServer:321 - Error occurred during processing of message.
java.lang.NullPointerException
at org.apache.thrift.protocol.TBinaryProtocol.writeString(TBinaryProtocol.java:225)
at org.apache.doris.thrift.TShowResultSet$TShowResultSetStandardScheme.write(TShowResultSet.java:488)
at org.apache.doris.thrift.TShowResultSet$TShowResultSetStandardScheme.write(TShowResultSet.java:409)
at org.apache.doris.thrift.TShowResultSet.write(TShowResultSet.java:346)
at org.apache.doris.thrift.TMasterOpResult$TMasterOpResultStandardScheme.write(TMasterOpResult.java:637)
at org.apache.doris.thrift.TMasterOpResult$TMasterOpResultStandardScheme.write(TMasterOpResult.java:562)
at org.apache.doris.thrift.TMasterOpResult.write(TMasterOpResult.java:480)
at org.apache.doris.thrift.FrontendService$forward_result$forward_resultStandardScheme.write(FrontendService.java:14456)
at org.apache.doris.thrift.FrontendService$forward_result$forward_resultStandardScheme.write(FrontendService.java:14418)
at org.apache.doris.thrift.FrontendService$forward_result.write(FrontendService.java:14369)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:58)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:313)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Checklist(Required)

Does it affect the original behavior: No
Has unit tests been added: No Need
Has document been added or modified: No Need
Does it need to update dependencies: No
Are there any changes that cannot be rolled back: No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

LGTM


Mac OS X can't install extensions (Unknown internal error). version 1.7

I updated to 1.7 on Mac OS X (El Capitan) Version 10.11.5 and cannot install or update extensions.
I get the following error "Installation failed.  Unknown internal error"
I have tried this on three separate Macs
On one machine that does not have NodeJS installed I get the following error:
"Unknown installation error extensionManager domain is undefined. extensibility/Package.js:411"
When I open the Developer Tools on a machine that has various other tools installed included NodeJS version 4.4.7 I get the following errors when I load Brackets:

"WebSocket connection to 'ws://localhose:59033/" failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET /utils/NodeConnection.js:89" - a total of 70 of these errors appear
GET http://localhost:59033/api net::ERR_CONNECTION_RESET third party.min.js:21" - there are 2 of  these errors.

When I try to update or install an extension I get the additional following error:

"Unknown installation error extensionManager domain is undefined. extensibility/Package.js:411"

I have tried the suggestions in other tickets of this same error and nothing seemed to help.
Any help to get these issues addressed would be greatly appreciated.

Hi @hghubert,
might be an firewall issue. On MacOS, follow these steps:
Open System Preferences.
Click the Security or Security & Privacy icon.
Select the Firewall tab.
Click the lock icon in the preference pane, then enter an administrator name and password.
Click the Firewall Options button
Click the Add Application (+) button.
Find the Node application shipped with Brackets (should be under Brackets app folder)
Click Add.
Click OK.

Restart Brackets completely and try again.

Thanks for the quick reply.  I followed the steps you listed and do not know how to include just the Node that is installed with Brackets.  There is no specific Brackets app folder in Applications and no way that I know of to open the Package Contents while adding a file in Firewall Options. Instead I allowed incoming connections from the Brackets app.
This had no effect and I still get the same issues.
This is a new issue in Brackets as I have not experienced it in the past.

I get the same problem, what should I do?

Thanks for the quick reply. I followed the steps you listed and do not know how to include just the Node that is installed with Brackets. There is no specific Brackets app folder in Applications and no way that I know of to open the Package Contents while adding a file in Firewall Options. Instead I allowed incoming connections from the Brackets app.
This had no effect and I still get the same issues.
This is a new issue in Brackets as I have not experienced it in the past.

Thanks it worked for me...

Hi @hghubert,
might be an firewall issue. On MacOS, follow these steps:
Open System Preferences.
Click the Security or Security & Privacy icon.
Select the Firewall tab.
Click the lock icon in the preference pane, then enter an administrator name and password.
Click the Firewall Options button
Click the Add Application (+) button.
Find the Node application shipped with Brackets (should be under Brackets app folder)
Click Add.
Click OK.

Restart Brackets completely and try again.

Thanks It worked for me.


Add Digital Ocean Cloud service

Software 2FA supported
They also have docs about adding 2FA to your sites hosted in their cloud, which is great.
But there doesn't seem to be any field for that (I am already "stretching" the exception field
to document their use of SMS as an unlock fallback).

DigitalOcean already present under "Hosting"


Create a template for adding unit testing / adding e2e testings

Focus on

[ ] How random number generators work
[ ] Examples for a few components
[ ] What attributes do Components add to VectorRegions, and what do they consume?

This issue is party address by https://github.com/PandemiaProject/pandemia/pull/79


Prevent 'Draft' label from getting truncated

Is it a ?

[x] Bug Report

[ ] Feature Request

[ ] Chore

Bug Report
Actual Behaviour
The 'Draft' label is not being displayed correctly on some devices. It is getting truncated and making the UI look bad.
Expected Behaviour
It should be on one line, without truncation.
Screenshot of the issue

Android version and Phone Model
Android Version: 6.0.1; Phone Model: Xiaomi Redmi 4A
Would you like to work on the issue?
No

I'm not able to reproduce the issue. Can you please add the android version and phone model details?

Oops! I added them now. I think it probably depends on screen size.

Yes, I thought this would be the case. I think we can change the background color to light yellowish to show that the event is draft with a very small save icon on the right

Yes, that's a good idea!
Currently, I am occupied with other issues. I will work on this once my work on those is done.


[rubySrc2cpg] JRuby implementation on parsing External Dependency File

Previously we were using AstCreation pass to construct lookup map from external dependency files. Now using JRuby  parser to do the same with high accuracy (but has limited use cases).

Why not use the ANTLR parser? Isn't it capable of parsing those? It would be one less dependency.

While testing the opensource repositories, the resulting of method full names were almost zero while using ANTLR Parser. We were facing multiple errors. We tried Jruby on trial basis, we could be able to do the lookup more accurately and able to resolve method full names for at least 25% of call nodes for the three repositories we tried.

While testing the open-source repositories, the resulting method full names were almost zero while using ANTLR Parser. We were facing multiple errors. We tried Jruby on trial basis, we could be able to do the lookup more accurately and able to resolve method full names for at least 25% of call nodes for the three repositories we tried.

Were you able to figure out why? The ANTLR parser isn't finished, so please kindly report any issues you encounter. Also, the AstCreator is still very much in its infancy, with lots of features to be properly handled still.
A few weeks ago I also tried integrating JRuby, but didn't find the AST that great for our purposes, as it's more geared towards compilation/interpretation. So, e.g. we wouldn't be able to fill in code properties.
I'd propose we first try to understand why the current ANTLR parser isn't enough and then decide if we should bring in alternatives.
cc: @fabsx00

While testing the open-source repositories, the resulting method full names were almost zero while using ANTLR Parser. We were facing multiple errors. We tried Jruby on trial basis, we could be able to do the lookup more accurately and able to resolve method full names for at least 25% of call nodes for the three repositories we tried.

Were you able to figure out why? The ANTLR parser isn't finished, so please kindly report any issues you encounter. Also, the AstCreator is still very much in its infancy, with lots of features to be properly handled still.
A few weeks ago I also tried integrating JRuby, but didn't find the AST that great for our purposes, as it's more geared towards compilation/interpretation. So, e.g. we wouldn't be able to fill in code properties.
I'd propose we first try to understand why the current ANTLR parser isn't enough and then decide if we should bring in alternatives.
cc: @fabsx00

@xavierpinho Agree with you, As our use case is to fetch method info for lookups only for external dependency files. We're also constantly working on raising ANTLR parser issues as they come up. Could it be an option to switch to ANTLR parser later when everything sorted?

I'll also have a chat with Fabs to see what the best step here would be, if separation make sense then we could also look at having a JRuby pass as an optional pass.

I'll also have a chat with Fabs to see what the best step here would be, if separation make sense then we could also look at having a JRuby pass as an optional pass.

That was on my mind as well. Ruby seems to be going through a renaissance period nowadays, with new parsers (e.g. YARP) having come up since we started this frontend. It could be interesting to have alternative parsers to choose from.


boards: adding Atmel AVR Xplained minis

This small patch adds Atmel AVR Xplained minis to the board selector: atmega328p, atmega328pb and atmega168pb.
One issue appeared: these boards have one additional pin for a built-in push button (pin 20) which doesn't appear in the dropdown selector of I/O blocks. The selected board is ok in the file ServerCompilerSettings.ini and I use the python server via start.py.

Thanks for the pull request @aethaniel.
I have reworked a bit the board profiles (reorganised them and added a, currently unused, property with the compiler flag for the board), and updated the front end to manage spaces on the data sent by the server.
For now the board profile selection should work the same way, but the idea would be to remove the __arduino_types from the compiler settings server module, so it only saved the currently selected value and not all the options; as it makes more sense to keep all the board data together.
https://github.com/carlosperate/ardublockly/commit/6447933f85184ab1ef86ae2486bc0198652f8add


[PDI-16136]   String to BigNumber conversion failure in Json Input step

Rethrowing a proper exception to be handled later
Unit tests

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -f core/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/core/row/value/ValueMetaBase.java
  core/test-src/org/pentaho/di/core/row/value/ValueMetaBaseTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.row.value.ValueMetaBase

Branch Change:  + .23%
Complexity Change:  + .29%
Instruction Change:  + .66%
Line Change:  + .21%

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -f core/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/core/row/value/ValueMetaBase.java
  core/test-src/org/pentaho/di/core/row/value/ValueMetaBaseTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.row.value.ValueMetaBase

Instruction Change:  + .10%
Line Change:  + .05%


added the functionality of cart

Fixed #50 PR
Implement cart functionality

Added cart component to manage selected items
Implemented functionality to add  items in the cart
Integrated cart actions with backend API for persistent storage
Enhanced user interface to display cart contents and total price dynamically

Here is the working demo of the  cart functionality .
https://github.com/Niharika0104/TrendTrove/assets/127289297/d621c966-d8fe-489a-ae2e-e80905f719b3

not assigned to you


Move user folder

As usual, Byteball stores a lot of data in the C:\Users folder.
I don't want to store a lot of random data in my C:\Users folder because my C:\ drive is small and reserved for my OS.
How do I move this to a different drive?

It is common practice for apps to store their data in the user's home directory, Byteball is not alone here.  Google for tips about changing the default location of the user folder, or create a symlink (if it exists on Windows)

Yes but not gigabytes of data, that's just lazy programming.
Most apps allow you to choose where you store most of the data, and you shouldn't be forced to store gigabytes of data in your User folder, that's not what it's for.

Zimmah, you should be running the byteball wallet (espcially a full wallet) as a separate, isolated user, with its home directory in a different volume if you need the HD space. The overridding factor is keeping the application isolated from software that doesn't need access to is, or visa versa. This solves both your wallet security and space issues.
Some tips to use the wallet in a different non-privileged context, use windows 'runas' or in linux, use su - byteball and export DISPLAY=:0.0 in the shell.

@JulianTosh thank you for the tip. I will try to set that up at some other time when I have the time to take a closer look at it.