Explore refactoring ZooCacheFactory

This class is registered as a singleton with SingletonManager. It might be possible to drop this class by moving the getZooCache() methods to their respective places in ServerContext and ClientContext.
Some of the server code uses this factory to get the systemConfig in ZooConfigurationFactory and ServerConfigurationFactory, both of which store static objects. The ServerInfo object uses this class to get the cache in a few different ways. The different types of AccumuloConfiguration objects also use this class to get the property cache.
The old and new client code uses this class to get and store the ZooCache. The static helper class Tables uses ZooCacheFactory internally to get ZooCache on demand across different static methods such as exists(), getTableMap() and getTableState().

@EdColeman is working on versioned properties in ZK to reduce the number of watchers per table, among other benefits (I don't have the ticket numbers immediately available to reference). That work is replacing the use of ZooCache with another caching mechanism for config properties stored in ZK. Since config properties are a substantial use case for ZooCache, it might sense to limit the scope of any refactoring here, in order to avoid wasting effort refactoring for uses that are being dropped and to focus on the uses that will remain.


Configurable Timezone

Ghost should allow the user to set the timezone of their blog. Setting the system time in node.js is not a viable option.
Solution(s)

Moment Timezone provides a nice extension to the moment.js functionality already in use.
Timezone

Configuration

The configuration could happen in the config.js, but that might not be flexible enough.
Admin Settings could be extended to show a simple dropdown with all available timezones and store the setting in the database.

Related Issues #907, #814
This ticket should serve as a place for discussion on how timezones should be implemented in Ghost.
As for implementing it: I raise my hand.

Closing all the timezone related issues with the label later this is stalled. Will reopen when we're ready to attack this with a plan.


Don't fail if the theme doesn't have a data dir

When the theme doesn't have a data dir the File.join fails because the path is nil

@fauno I'm not against this change but would like to know why one would use this plugin if the theme they're using doesn't have a _data directory at theme-root..?

hi! so i'm building a self managed control panel for jekyll and one of the features is that you can exchange themes. i needed jekyll-data so i can load locales and other data templates from the theme (thanks!)
i was testing changing from minima to a custom theme, but jekyll-data would fail because minima doesn't have a _data directory. in your case, maybe a user is testing the plugin with such a theme? without this patch the build fails entirely.

Thanks for sharing your use-case.
Okay, regarding your implementation here, I don't think you need to add that safe navigation operator in method :inspect_theme_data if there are no data files in the theme..
If you look at method :read_theme_data, you'll see that the whole definition is wrapped in a conditional.
I haven't tested this branch at my end yet, so if you think the safe navigation operator is necessary, and I missed something, do let me know.

no, you're right.  i did wonder why read_theme_data was conditional but @theme_data_files wasn't :)

Thank you @fauno!!


macOS Catalina: "epub.mdimporter" cannot be opened because the developer cannot be verified.

This seems to be related to notarisation, as seen here whomwah/qlstephen#81. Unfortunately as noted in #50, I don't have the time or tools to fix this.

Literature professor here, no programming skills. I've relied on epub.mdimporter for years, so thank you. I'm hoping there will be a solution to the Catalina problem someday. I've even tried using Time Machine to fix things. If anyone knows of an alternative method to search epub text, I'd be grateful to learn it.
(P.S. dream feature, just in case anyone is looking for projects: an ability to sort search results by relevance/frequency.)

Sorry I can help more - one suggestion for searching the text of an ePub: if you download The Unarchiver, and drag an ePub onto it, it should extract the book into a set of text files you can search.

The Unarchiver trick has been very helpful—thank you! Do you know of any way to sort the text file search results by relevance?

The question is relevance to what? I'm afraid that veering into the world of data-science and natural language processing - there are lots of commercial or OS options here, but big tradeoffs in terms of complexity vs cost.

This is how I solved it: Instead of copying EPUB.mdimporter into the global directory /Library/Spotlight/ you have to put it in the user directory in ~/Library/Spotlight. For me this folder Spotlight did not exist in my home folder ~/Library, so I had to create it:
➜  ~  mkdir ~/Library/Spotlight
➜  ~  mv ~/Downloads/EPUB.mdimporter ~/Library/Spotlight
➜  ~ mv ~/Downloads/EPUB.qlgenerator ~/Library/QuickLook

# Reload
➜  ~ mdimport -r /Library/Spotlight/EPUB.mdimporter
➜  ~ qlmanage -r
qlmanage: resetting quicklookd

Now it works without any problem :)

I don't think that the last post, while containing useful suggestions, would solve the issue indicated at the beginning. At least, it didn't work in the Catalina OS (unsurprisingly, as the code only makes the plugin work via Terminal and doesn't eschew the Apple security restrictions). Here is what I found online that appeared to be promising: 1. At Stack Exchange, someone suggested the following:
epub.mdimporter is in ~/Library/Spotlight, and run xattr -d -r com.apple.quarantine ~/Library/Spotlight to remove com.apple.quarantine from the Spotlight plugins folder
I guess we should further specify the path, to the epub.mdimporter if we don't want to exempt the whole Spotlight folder from Apple security checks...

Someone on Reddit made a similar suggestion for another application:

If macOS is blocking the file “xattr -d -r com.apple.quarantine {path to file}” will clear quarantine for the file. Be careful when using this one, only clear quarantine if you trust the file. This will only work if macOS is blocking the file with gatekeeper or xdefend.
I haven't tried any of these as I have no idea how to "undo" if something goes wrong. Just in case these appear to be a possible solution for a user with better computer skills...

I can confirm that @pragmat1c1 's suggestion is 100% working on macOS Monterey 12.6 (on an M1 chip, no less). It takes a few minutes for the quicklook previews to start working, and the Spotlight process seems to be taking even longer, but i'm starting to see epubs showing up in Finder search where I've verified that the appearance is due to a full index of the text and not just the title or metadata.

Another confirmation here, for macOS Catalina! Many thanks, damian0815, brilliant indeed!: I had given up much earlier; merely hoping that the recent Calibre option for full text search could be an alternative (to some limited degree, surely).
Glad that the suggestions for other programs applied well for mdimporter together with pragma1c1's post.
Cheers!


Error

I have error:
Traceback (most recent call last):
  File "test.py", line 14, in <module>
    balance=10000000000000000000000000
  File "/usr/local/lib/python3.7/dist-packages/nanolib/blocks.py", line 245, in __init__
    setattr(self, key, value)
  File "/usr/local/lib/python3.7/dist-packages/nanolib/blocks.py", line 83, in wrapper
    setter(self, new)
  File "/usr/local/lib/python3.7/dist-packages/nanolib/blocks.py", line 103, in wrapper
    setter(self, val)
  File "/usr/local/lib/python3.7/dist-packages/nanolib/blocks.py", line 116, in wrapper
    setter(self, val)
  File "/usr/local/lib/python3.7/dist-packages/nanolib/blocks.py", line 739, in set_previous
    validate_public_key(previous)
  File "/usr/local/lib/python3.7/dist-packages/nanolib/accounts.py", line 85, in validate_public_key
    if len(public_key) != 64 or not is_hex(public_key):
TypeError: object of type 'property' has no len()

Hello @MomboteQ
could you please share code of test.py to debug the error please.
Thanks and best regards,
karan ahuja


[microNPU] Add support for requantize

Adds support for stand-alone requantize operation which is legalized to an identity operation on the NPU.
cc @manupa-arm @mbaret @ekalda @NicolaLancellotti @dchauhan-arm @jacobbohlin

failure in test_autotune seems unrelated...
>           assert tuner.best_flops > 0
E           assert 0 > 0
E            +  where 0 = <tvm.autotvm.tuner.ga_tuner.GATuner object at 0x7fea7f3f2400>.best_flops

Retriggering.


Compatibility Issue with django-storages 1.14.4

Hi,
I wanted to bring to your attention a compatibility issue that arises when using django-healthcheck in conjunction with django-storages version 1.14.4.
Description
After upgrading django-storages from 1.14.3 to 1.14.4, django-healthcheck tests that involve file existence checks started failing. The tests report that files cannot be found even though they were saved successfully. This seems to be due to a change in the behavior of the exists() method in django-storages as described in this issue.
Steps to Reproduce

Use django-healthcheck to run tests involving file storage.
Upgrade django-storages from 1.14.3 to 1.14.4.
Run the tests again and observe the failures indicating missing files.

Expected Behavior
Tests should pass as they did with django-storages 1.14.3, with the exists() method correctly identifying saved files.
Actual Behavior
Tests fail, reporting that files cannot be found immediately after they are saved.
Temporary Solution
Downgrading django-storages to 1.14.3 resolves the issue, but this is not a long-term solution due to the security patches included in 1.14.4.

Also running into this bug, thanks for logging and will temporarily downgrade to django-storages 1.14.3 until there is a fix.


fix: timezone, success bool for custom modules

fix: #63

Codecov Report

Merging #75 into 2019.2 will decrease coverage by 0.32%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           2019.2      #75      +/-   ##
==========================================
- Coverage   94.15%   93.83%   -0.33%
==========================================
  Files          15       15
  Lines         890      892       +2
==========================================
- Hits          838      837       -1
- Misses         52       55       +3

Impacted Files
Coverage Δ

api/models.py
93.22% <100%> (-1.64%)
:arrow_down:

Continue to review full report at Codecov.

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


Add TLS 1.3 Finished Key labels and Finished Verify MAC calculation

Issue # (if available):
https://github.com/awslabs/s2n/projects/6#card-28412053
Description of changes:
This PR adds necessary TLS 1.3 Finished Key labels and MAC functions needed to compute "Server Finished" and "Client Finished" in TLS 1.3
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

:exclamation: No coverage uploaded for pull request head (tls13_finished_keys@a976d2f). Click here to learn what that means.
The diff coverage is n/a.


ENH: make bec smarter (tell the difference between detectors and motors)

If bec could tell the difference between detectors and motors then most of the situations like that described in #948 would be taken care of automatically.
There was some discussion with @tacaswell about creating a gridded plot, with the columns of plots belonging to the same motor scan.  This would be also appreciated for things line inner_product_scan() for things like theta-2theta scans and HKL scans.  See the plot below for an inner_product scan() utilizing the motors associated with HKL.  Please note that tardis is also in the list of detectors (it needs to be so that the physical motors are recorded in the database -  but these are not needed to make decisions with the plot).

It would be nice to have 3 plots (horizontally maybe) with 3 different x axes. Could this be done automatically within bec?

this does look interesting


Change .travisci.yml to run the tox tests instead

It's always annoyed me that we use tox to run tests against multiple pythons and then in travis we redo this work and test multiple environments differently.  I think I have finally found an example that uses travis in conjunction with tox.  Check this out:
language: python
python:
 - 2.7
sudo: false
env:
 - TOX_ENV=py27
 - TOX_ENV=docs
 - TOX_ENV=lint
install:
 - pip install tox
 - pip install coveralls
script:
 - tox -e $TOX_ENV
after_success:
 - coveralls

Maybe it will work for us.
Example from RTFD: https://github.com/rtfd/readthedocs.org/blob/8ca4056da4bce471fa87e6e8a10f305c55f2fa53/.travis.yml

I thought we did that at one point (https://github.com/planetarypy/planetaryimage/commit/29bc584e0a2fdcad9fe2e19ed922f55d3f3fd23f) but decided againt it as it had to then compile numpy and scipy leading to sloooow tests.

Oh, good memory.  I should stop wanting to do this then.


add bin2hex and hex2bin

Signed-off-by: lovesh harchandani<EMAIL_ADDRESS>

@lovesh the appveyor builds are currently known to be broken, right now only the travis builds matter. :)

@kpcyrd Thanks for the info

We had a discussion today and we decided that we don't require this feature as you can use the rust-hex crate to achieve a similar functionality. Thanks for the PR :+1:

Re-opening because rust-hex is not constant time, which is important for some cryptography-related use cases of hex -> bin or bin -> hex conversion.

@lovesh can you make the necessary changes?

@Dylan-DPC Yes, will make over the weekend

@lovesh ping

@kpp @Dylan-DPC I made most of the neccessay changes about 3 weeks ago. Looks like my build fails on nightly, will check

Also you can rebase on master to fix AppveyorCI build

@lovesh  The essence of the issue with Vec is:
error[E0432]: unresolved import `std::vec`
 --> src/utils.rs:5:10
  |
5 | use std::vec::Vec;
  |          ^^^ Could not find `vec` in `std`

Because on nightly we compile with no_std. And Vec is defined in std:: crate.  See how you can fix it: https://github.com/sodiumoxide/sodiumoxide/pull/252#issuecomment-437432698

@lovesh if you are tired of fixing it, there is a https://github.com/sodiumoxide/sodiumoxide/pull/277 with your changes and with AUTHOR=your name.

Please tell me if you are willing to finish this PR on your own or not.

@lovesh The essence of the issue with Vec is:
error[E0432]: unresolved import `std::vec`
 --> src/utils.rs:5:10
  |
5 | use std::vec::Vec;
  |          ^^^ Could not find `vec` in `std`

Because on nightly we compile with no_std. And Vec is defined in std:: crate. See how you can fix it: #252 (comment)

Can you please explain why is it compiled with no_std?

@lovesh some of our users might need to use this crate in a no_std environment, so just as many other crates in the ecosystem, we need to provide both std & no_std features so that the code doesn't allocate it in environments where it can't.

Can you please explain why is it compiled with no_std?

@lovesh also see https://github.com/sodiumoxide/sodiumoxide/blob/master/.travis.yml#L20

I am going to close this PR in favor of https://github.com/sodiumoxide/sodiumoxide/pull/277 . Don't worry, your name/email is in the repo, so you are a contributor. Thank you so much.


Fix dpi scaling on macOS

@lucasfernog Could you test does this work on your mac mini?

I'll try it as soon as I get home, but it looks promising.

Seems to be working fine, but the right side has some padding for the scrollbar.


How to set specific MermaidJs version?

Hi!
It seems that - at least on my deployment - the version 8.13.7 is being used, but I have sequence diagrams that needs version 9.X or above.
Is there some way to set a specific MermaidJs, or maybe a custom JS file for it?

The plugin itself is just executing the mermaid cli, so the mermaid version depends on the CLI version installed in your environment.

Got It. Thanks you!


Error with semmod:results-payload

I can't get this to work as I am getting an error with the semmod:results-payload function:
XDMP-TOOFEWARGS: (err:XPST0017) semmod:results-payload($headers, $params, $result) -- Too few args, expected 4 but got 3 . See the MarkLogic server error log for further detail.

After checking the results-payload function signature, I can verify that it is expecting 4 arguments, the 4th argument being a 'callback'. I am using ML8 and EA4 ML9.
Any suggestions how I could fix this issue?

Sounds like you are using the rest extension to execute sparql, but that should not be necessary. I'd compare with how ml-lodlive-ng configures ml-lodlive..
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/withjam/ml-lodlive","title":"withjam/ml-lodlive","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/withjam/ml-lodlive"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Error with semmod:results-payload (#50)"}],"action":{"name":"View Issue","url":"https://github.com/withjam/ml-lodlive/issues/50"}}}

@grtjn I thought ml-lodelive-ng uses dbpedia and not an internal ML endpoint.

It packages two pre-defined configs, one for dbpedia, one for marklogic..

but I guess it presumes that you're running on the same port? I have an app running on port 3000 trying to access ML on a different host.

The profile factory in ml-lodlive-ng gives you a plain json config. You can patch it with straight js. You could also just compare the ml profile with what you are currently using. Just to see where it differs from the one in this project or what you were using yourself..

Yes, this is the relevant bit:
MarkLogicProfile.connection = {
          // http matches all http requests, so this will be the only connection settings used
          'http:': {
            endpoint: '/v1/graphs/sparql',
            accepts: 'application/sparql-results+json',
            description: {
              en: 'MarkLogic LodLive'
            }
          }
        };

This is what I have:
var MyProfileObject = {};
      MyProfileObject.endpoints = {};

      MyProfileObject.connection = {
        'http:': {
          endpoint: 'http://<IP_ADDRESS>:8060/lodlive.xqy',
          accepts: 'application/sparql-results+json'
        }
      };

Since I'm not running my app from the same machine where ML is, according to the documentation I need this lodlive.xqy file:
"This can be loaded into MarkLogic as RDF triples and can the be exposed via a standard REST application in MarkLogic. If accessing this REST endpoint from a different host or port it will be necessary to install the lodlive.xqy module at the root of the /modules directory for that REST server. Additionally, update your lodlive profile so that the lodlive.xqy url is used as the base."

I of course also have this added to the config:
MyProfileObject.endpoints = {
        all: '',
        jsonp: true
      };

I think the statement you need lodlive.xqy is wrong. Just prefix /v1/etc with host and port you need for you app..

I have done that. In that case the error changes to:
REST-UNSUPPORTEDPARAM: (err:FOER0000) Endpoint does not support query parameter: invalid parameters: _, callback for request
This is due to the fact that I am executing a JSONP request (because I am on different hosts)

Yeah, dont think v1 sparql supports jsonp. Can you live without that? 😁

Nope 😢 I need JSONP support. The problem is in the lodlive.xqy file somewhere ... but since XQY is not my strong suite I can't really figure it out. I have managed to update the code so that it no longer throws the error mentioned in the subject to be the following:
xquery version "1.0-ml";
xquery version "1.0-ml";

import module namespace semmod = "http://marklogic.com/rest-api/models/semantics"
    at "/MarkLogic/rest-api/models/semantics-model.xqy";
import module namespace eput = "http://marklogic.com/rest-api/lib/endpoint-util"
    at "/MarkLogic/rest-api/lib/endpoint-util.xqy";

declare option xdmp:mapping "false";

let $params  := map:map()
let $_ := for $i in xdmp:get-request-field-names() return map:put($params, $i, xdmp:get-request-field($i))
let $headers := eput:get-request-headers()

let $result := semmod:sparql-query($headers,$params,map:get($params, "query"))
let $response := semmod:results-payload($headers,$params,$result, ())
let $_ := xdmp:set-response-content-type($response[1])

return (
  if (map:get($params, "callback")) then fn:concat(map:get($params, "callback"), "(") else (),
  $response[2],
  if (map:get($params, "callback")) then ")" else ()

  )

But this now throws the error of:
XDMP-NONMIXEDCOMPLEXCONT: fn:data(<title>SPARQL results</title>...) -- Node has complex type with non-mixed complex content
Which has lead me to the actual implementation of semantics-model.xqy and I managed to track this back to 2 things: 1) the accepts header is not being sent propertly, 2) the data that gets returned is just not correct. But this is where my XQY knowledge has depleted and I'm totally stuck

I'm on mobile unfortunately. Send me a mail on my work address as a reminder, i might have a spare moment tomorrow.
Why are you stuck with jsonp? Never needed it myself.. 😉

I am running a Node.js app from where I would like to display a LodLive graph :)

I just had an idea, I'll try to proxy my request ... 😄

Did proxying help?

@grtjn - yes it did help. Thanks. But I'd still like to see a working version of this lodlive.xqy :)


import files

current version not support add bouquet.tv and m3u files from folder on pc.
IPTV channels list created on the userbouquet.tv format
i thing some versions before had that future.could you add again please with m3u
at the moment we can transfering only whole list where lamedb is present

Hi,
It's not entirely clear what you mean.

Single import of bouquets is available through the context menu of the bouquets list.
Through the menu: File-> Import-> Bouquet.
Selective import of several bouquets through the menu :  File-> Import-> Bouquets ans services.

In addition, import is available via drag and drop. For bouquets, drag a single bouquet or folder onto the list of bouquets. For bouquet and services on the main list of services!  If you are using OS other than Linux, this function may not work correctly yet. Perhaps you mean this?

only whole list where lamedb is present

Just create a new configuration: File-> New empty configuration. Create a new bouquet and import *.m3u. Then, if necessary, you can export this bouquet through the context menu of the list of bouquets "Save As".  Or you meant something else?
Best

1 - Drag and drop  - not working -
2 - "File-> Import-> Bouque"... folder with userbouquet.tv not opening
3 -" File-> New empty configuration. Create a new bouquet and import *.m3u" -
this option (Create a new bouquet and import *.m3u - not exist-cannot find ( where could be?)
only can opening folder where is userbouquet. tv with lamedb

Apparently we still do not understand each other. :)

or:

Drag and drop - not working -

If you are using OS other than Linux, this function may not work correctly yet.

What operating system are you using (Windows, Linux, macOS)?
I've tested imports on Linux and Windows 10. Everything works except drag and drop in Windows (BUT it is written about it above).
Please describe in steps what you want to do. It might be easier to understand.

icon on the Demon are too small, my eyes are old.
could you make them bigger please?
find it bug:
1 - epty new configuration
2 - import m3u files
3 - nothing happend (non choise for pick m3u files)
4 - first need load any bouquet and them you can load m3u files
rest working like charm. thank you pictures

during downloading picons, VPN must be deactivated othervise download not start
it is normal?

during downloading picons, VPN must be deactivated othervise download not start
it is normal?

i think you could close it now. thank you

one more thing.
you got downloading one setup for Hispasat 30W and second from Eutelsat 36 B,C
both satellite are impossible to scan by one satellite dish
how to joint both lamedb together? its possible?
think will be usefull for watching IPTV and get EPG
hope you know what i thing

how to joint both lamedb together? its possible?

Yes, sure. Through the import function (File -> Import -> Bouquets and services). You can load one configuration then import the next one.  Or via drag and drop (In the current version may not work in Windows. ). For an example, see here.  I recommend watching the entire playlist. Many questions will probably disappear.

think will be usefull for watching IPTV and get EPG
Yes, it is planned, but I cannot say when it will be implemented yet.

think you can close this thread. thank you for instruction how to use this fantastic plugin


Deno blog gives 404 if URL has trailing slash

The top result for "deno mdn" on Google is the deno blog:

But it gives a 404 due to the trailing slash in the URL. I'm guessing there was a recent update to the website which broke this, and Google will re-index the non-trailing-slash URLs eventually, but it seems like a good idea to allow trailing slashes on URLs or redirect them to non-trailing-slash URL instead of throwing a 404.
Note that https://deno.com/blog/ has the same problem (i.e. it's not just the individual blog posts).

This is also the reason why my RSS feed reader got stuck on https://deno.com/feed/. Removing the trailing slash works but is still dumb to find out.
Especially as the https://deno.com/blog webpage doesnt indicate the correct RSS Link via a visible link or header (<link rel="alternate" type="application/rss+xml" href="/feed" title="Deno" />)

This is not the repository for deno.com but deno.land. I suppose you will get more luck asking this on the Discord.

We are working on it!

This is now fixed!

Especially as the https://deno.com/blog webpage doesnt indicate the correct RSS Link via a visible link or header (<link rel="alternate" type="application/rss+xml" href="/feed" title="Deno" />)

This is now also fixed. I have added a rel=alternate link tag :-)


flexible table formatting

a superb tool, thanks for open-sourcing!
The issue:
I've added a loop in the sample main around the call to a, and noticed, that the table has a fixed width formatting:
------+-------+-------+-------+-----+-------------
  min |   avg |   max |     % |   # | scope
------+-------+-------+-------+-----+-------------
 0.00 |  0.00 |  0.00 |  0.00 |   3 | main(sample.cc:26)
 0.00 |  0.00 |  0.00 |  0.00 |   3 |  a(sample.cc:18)
15.82 | 15.82 | 15.82 | 15.82 |  30 |   a(sample.cc:19)
 0.00 |  0.00 |  0.00 |  0.00 |  30 |    b(sample.cc:12)
76.23 | 76.23 | 76.23 | 76.23 | 135 |     b(sample.cc:13)
 0.00 |  0.00 |  0.00 |  0.00 | 135 |      c(sample.cc:6)
192.96 | 192.96 | 192.96 | 192.96 | 360 |       c(sample.cc:8)

Some time ago I've been fiddling around with automatic formatting of fixed-width-console outputs: http://ideone.com/k7Jcfy
It's been originally inspired by bettyprint
Please feel free to dissect and use.
The header coloring placeholder is for a RAII wrapper around rlutil

hey @d-led. yep i forgot to add this enhacement in the todo list. it's definitely a worthy addon (although the code is so tweakable that maybe the new additions are going to be much bigger than the string modification itself). i have some flexible formatter around somewhere that i might use, or just use your link, or just wait for someone to send a PR in between. leaving this open for now... : ) thx

:+1:

that ascii printer is just so cool btw. neat

thanks

does that look ok?
d-led/profit@473e7b695a74c218bada508f9689bb2648bb93a9
+----------------------------------------------------------------------+
|   min |   avg |   max |     % |   # | scope                          |
+----------------------------------------------------------------------+
|  0.00 |  0.00 |  0.00 |  0.00 |   1 | int main()(sample.cc:25)       |
|  0.00 |  0.00 |  0.00 |  0.00 |   1 | void a(int)(sample.cc:18)      |
|  5.90 |  5.90 |  5.90 |  5.90 |  10 |   void a(int)(sample.cc:19)    |
|  0.04 |  0.04 |  0.04 |  0.04 |  10 |    void b(int)(sample.cc:12)   |
| 25.70 | 25.70 | 25.70 | 25.70 |  45 |     void b(int)(sample.cc:13)  |
|  0.15 |  0.15 |  0.15 |  0.15 |  45 |      void c(int)(sample.cc:6)  |
| 68.22 | 68.22 | 68.22 | 68.22 | 120 |       void c(int)(sample.cc:8) |
+----------------------------------------------------------------------+

@d-led, what's the license for the auto_table class? public domain?

yep. That new one of yours looks great! auto_table is also inspired by, but isn't based on bprinter


feat: implement flatten rule

Just the time stuff again.

The flatten rule doesn't do anything other than squashing archives together. it's the responsibility of the archive creator.

oh i guess you meant the tests.


[BUG] Manim-Slides cannot present the slides

Please explain the issue you're experiencing (with as much detail as possible):
I get this error message:
Command
manim-slides BasicExample
Error
manim-slides BasicExample
[AVHWFramesContext @ 0000021F3A87BF40] Static surface pool size exceeded.
[h264 @ 0000021F3ABA04C0] get_buffer() failed
[h264 @ 0000021F3ABA04C0] thread_get_buffer() failed
[h264 @ 0000021F3ABA04C0] decode_slice_header error
[h264 @ 0000021F3ABA04C0] no frame!

[AVHWFramesContext @ 0000021F5F0A3E80] Static surface pool size exceeded.
[h264 @ 0000021F3ABA60C0] get_buffer() failed
[h264 @ 0000021F3ABA60C0] thread_get_buffer() failed
[h264 @ 0000021F3ABA60C0] decode_slice_header error
[AVHWFramesContext @ 0000021F3A87BF40] Static surface pool size exceeded.
[h264 @ 0000021F3AB9FCC0] get_buffer() failed
[h264 @ 0000021F3AB9FCC0] thread_get_buffer() failed
[h264 @ 0000021F3AB9FCC0] decode_slice_header error
[h264 @ 0000021F3AB9FCC0] no frame!
[h264 @ 0000021F3ABA60C0] no frame!
[h264 @ 0000021F3ABA20C0] reference picture missing during reorder
[h264 @ 0000021F3ABA20C0] reference picture missing during reorder
[h264 @ 0000021F3ABA20C0] Missing reference picture, default is 65592
[h264 @ 0000021F3ABA20C0] Missing reference picture, default is 65592
[h264 @ 0000021F3ABA40C0] mmco: unref short failure
[h264 @ 0000021F3ABA64C0] reference picture missing during reorder
[h264 @ 0000021F3ABA64C0] Missing reference picture, default is 65604
[h264 @ 0000021F3ABA24C0] mmco: unref short failure
failed to get textures for frame; format: 172 textureConverter null
Python code
from manim import *  # or: from manimlib import *
from manim_slides import Slide

class BasicExample(Slide):
    def construct(self):
        circle = Circle(radius=3, color=BLUE)
        dot = Dot()

        self.play(GrowFromCenter(circle))
        self.next_slide()  # Waits user to press continue to go to the next slide

        self.next_slide(loop=True)  # Start loop
        self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)
        self.next_slide()  # This will start a new non-looping slide

        self.play(dot.animate.move_to(ORIGIN))

Manim version:

manim --version

(process:2824): GLib-GIO-WARNING **: 00:57:07.758: Unexpectedly, UWP app 38526MediaLife.ZipPlus_<IP_ADDRESS>_x86__1crh1k73ty8mg' (AUMId 38526MediaLife.ZipPlus_1crh1k73ty8mg!ZipExtractor') supports 89 extensions but has no verbs
Manim Community v0.18.1

manimcce --version
Manim Community v0.18.1

Python --version:  3.10.14
ffmpeg:

ffmpeg --version
ffmpeg version 7.0.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil      59.  8.100 / 59.  8.100
libavcodec     61.  3.100 / 61.  3.100
libavformat    61.  1.100 / 61.  1.100
libavdevice    61.  1.100 / 61.  1.100
libavfilter    10.  1.100 / 10.  1.100
libswscale      8.  1.100 /  8.  1.100
libswresample   5.  1.100 /  5.  1.100
libpostproc    58.  1.100 / 58.  1.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found

pip show ffmpeg
Name: ffmpeg
Version: 1.4
Summary: ffmpeg python package url [https://github.com/jiashaokun/ffmpeg]
Home-page: https://github.com/jiashaokun/ffmpeg
Author: SkeyJIA
Author-email<EMAIL_ADDRESS>License: MIT Licence
Location: c:\users-----\onedrive - ugent\python projects\manimprojects\venv\lib\site-packages
Requires:
Required-by:

Hello! I think this issue might be similar to another one. Can you try the fix I mentioned in https://github.com/jeertmans/manim-slides/issues/402#issuecomment-2042776337?
Long story short, the support on Windows platforms does not seem consistent over all Python and Qt versions…

Thanks Jérome, it is working now

Hi  Jérome, I saw the examples on your manim-slides website, so how did you embeded the slides on the web?

Hi Jérome, I saw the examples on your manim-slides website, so how did you embeded the slides on the web?

Hi @TommyLITommy, thanks for your question! However, this is not an appropriate place to ask questions, especially as it has nothing to do with this issue. I have opened (and answered) a discussion for this: https://github.com/jeertmans/manim-slides/discussions/487.


[Bug] Mocked *Scan responses are dropped

Fred version - 10.0.1
Redis version - any
Platform - any
Deployment type - mocked
Describe the bug
src/protocol/command.rs::respond_to_caller drops Ok values from process_command for client.sscan(..) and other scan's.
Hacking a local solution by modifying src/protocol/command.rs::respond_to_caller to call src/protocol/responders.rs::respond_value_scan with Ok values propagates results correctly
To Reproduce
Steps to reproduce the behavior:
Some quick hacky test and mocked mock for SCAN.
I don't know if this is where it should be solved or any knock on effects of implementing a proper solution like this for an MR. Just verified the test at least passes/values are passed back with a hack
// src/modules/mocks.rs

impl SimpleMap {
  // ...

  /// Perform a `SCAN` operation. A mocked.. mock.
  pub fn scan(&self, args: Vec<Value>) -> Result<Value, Error> {
    let mut guard = self.values.lock();
    let keys: Vec<Value> = guard
      .keys()
      .filter_map(|k| k.as_str().map(|k| Value::String(k.into())))
      .collect();
    Ok(Value::Array(vec![Value::from_static_str("0"), Value::Array(keys)]))
  }
  // ...
}

// ...

mod tests {

  // ...

  #[tokio::test]
  async fn should_mock_scans() {
    let (client, _) = create_mock_client(Arc::new(SimpleMap::new())).await;
    client
      .set::<(), _, _>("foo1", "bar1", None, None, false)
      .await
      .expect("Failed to call SET");
    client
      .set::<(), _, _>("foo2", "bar2", None, None, false)
      .await
      .expect("Failed to call SET");
    let mut all: Vec<String> = Vec::new();
    let mut scan_stream = client.scan("foo*", Some(10), None);
    while let Some(mut page) = scan_stream.try_next().await.expect("failed to call try_next") {
      if let Some(keys) = page.take_results() {
        all.append(
          &mut keys
            .into_iter()
            .filter_map(|v| v.as_str().map(|v| v.to_string()))
            .collect(),
        );
      }
      page.next();
    }
    all.sort();
    assert_eq!(all, vec!["foo1".to_string(), "foo2".to_string()]);
  }
  // ...
}

// src/protocol/command.rs

// copy+paste of respond_to_caller fn to change/own params for a test
pub fn mocked_respond_to_caller(mut self, inner: &RefCount<ClientInner>, result: Result<Resp3Frame, Error>) {
  // ...
      ResponseKind::KeyScan(ref scanner) => {
        if let Err(error) = result {
          let _ = scanner.tx.try_send(Err(error));
        } else if let (Ok(frame), ResponseKind::KeyScan(scanner)) = (result, self.take_response()) {
          // responders::mocked_respond_key_scan just drops the server arg and makes the command a ref
          responders::mocked_respond_key_scan(inner, &self, scanner, frame);
        }
      },
  // ...
}

// src/router/command.rs

mod mocking {
  // ...
  // Edited to pass inner: &RefCount<ClientInner>, to pass down to mocked_respond_to_caller
  pub fn process_command(...) {
    // ...
    RouterCommand::Command(mut command) => {
      let result = mocks
        .process_command(command.to_mocked())
        .map(protocol_utils::mocked_value_to_frame);
      command.mocked_respond_to_caller(inner, result);
      Ok(())
    },
    // ...
  }
  // ...
}

Thanks @phogue, this will be added in 10.0.3 (https://github.com/aembke/fred.rs/pull/323).
That also contains the additions to SimpleMap that you showed here. Although sets, hashes, and zsets aren't supported yet in SimpleMap this has some changes that should enable those to work if you want to implement those in your own Mocks implementations.

Added in 10.0.3


Parity of registration methods between IContainer and IRegistrator

Since using a composition root seems to be easier with IRegistrator than with IContainer (a nested container is injected?), it would be nice if there was parity between the methods available on the two interfaces so that IRegistrator could be used instead of IContainer.
For instance, these methods are available on/for IContainer but not IRegistrator:

UseInstance
RegisterMapping
RegisterPlaceholder

I didn't check if overloads are missing.

@lassevk, Thanks, for posting.
The reason for moving these methods to IContainer, is the need for resolution behavior. For instance,  UseInstance need to access a current scope if any, but this runtime data is not available from registrator.
V3 had introduced (made public) a IResolverContext wich provides access to UseInstance and scopes in addition to IResolver methods.
But I see that it is not ideal. Will try to improve.
Btw, RegisterPlaceholder not in the registrator seems like a bug, will check.

@lassevk,
Interesting, if I add the methods to IRegistrator now, without pulling them off IContainer. Will it be a breaking change?

Hey @lassevk,
I have added UseInstance, RegisterMapping (extended with optional FactoryType argument), and RegisterPlaceholder for IRegistrator.
Non-breaking from the static API :-) Yay!

I think the phrase Container masks the duality between IContainer and IRegistrator. While IContainer is a natural term in Java/C#/OOP land, the correct name is IRegistry and IRegistrar. A Registrar is one who keeps an official book of registers, whereas a Registrator is one who registers with the Registrar. The  Registry "is maintained by" the Registrar. In order as a consumer to register your services, you ask the registrar. In this sense, DryIoC abstracting request scope and resolution gives it a "Blackboard pattern" where you can both a) publish services b) discover subscription terms c) subscribe anonymously but be granted subscription terms (I.e. why was THIS object the one I got from the container?)
Am I incorrect?
Sorry if this is philosophical drivel


Add is_true function

is_true function depends on lodash and is used in NurseConnect.
migrate from NurseConnect/MomConnect utils

@imsickofmaps review please

to be review as part of a develop-to-master pull-request


token-js: Support Reallocate instruction

Problem
token-2022 includes a new instruction to reallocate the space in an Account, but it isn't supported in the JS bindings.  The relevant instruction definition can be found at https://github.com/solana-labs/solana-program-library/blob/0268d76d306d86a9fb03a17d5ede18144bfad684/token/program-2022/src/instruction.rs#L529-L550
Solution
Following the model in #2951 , add support for this new instruction, including some tests.

@tian000 certainly! It doesn't look like anyone's taken a crack at it yet

It looks like @tian000 isn't available anymore. Can I take a crack at it @joncinque?

@tyirenkyi by all means, go for it!

A few things to note:

reallocate is only supported on the token-2022 program, and not the base token program, so you'll need to test against that using yarn test:e2e-2022.  Make sure that the program is built using cargo build-bpf from token/program-2022 since it isn't included with the test validator by default.
an ExtensionType is actually defined as a u16, so you'll need two little-endian bytes for each extension type.  You can see how it's packed in Rust at https://github.com/solana-labs/solana-program-library/blob/dd8f4d138fe5c51067737124cf8feb47daf75254/token/program-2022/src/instruction.rs#L834

From there, you should be really close!

Hello @joncinque, I tried to follow your guidance and came up with this:
export const reallocateInstructionData = struct<ReallocateInstructionData>([
  u8('instruction'),
  seq(u16(), offset(u8('instruction'), -1), 'extensionTypes'),
]);

But I get this error every time I run the tests:
 RangeError [ERR_INVALID_OPT_VALUE]: The value "-1" is invalid for option "size"
      at Function.alloc (buffer.js:370:3)
      at createReallocateInstruction (file:///Users/applejeewce/solana-development/solana-program-library/token/js/src/instructions/reallocate.ts:54:23)
      at Context.<anonymous> (file:///Users/applejeewce/solana-development/solana-program-library/token/js/test/e2e-2022/reallocate.test.ts:65:7)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)

It's caused by this line:
const data = Buffer.alloc(reallocateInstructionData.span);
I believe adding the Offset layout is causing this. The documentation recommends using getSpan instead of span, but I'll need a Buffer instance to do that. I tried to guess the right number of bytes but I never got it right, also I'm pretty sure that's not advisable.
Could you help me out again?

You're on the right track -- the instruction data for reallocate is unfortunately different from everywhere else, since it's a variable-length array of u16s.  So in your case, you won't be able to call reallocateInstructionData.span, since the struct doesn't have a set size.  Instead, you need to allocate the correct size for the instruction data based on the extension types passed in. That would be something like:
    const data = Buffer.alloc(1 + 2 * extensionTypes.length);
    reallocateInstructionData.encode(
        {
            instruction: TokenInstruction.Reallocate,
            extensionTypes: // do your mapping of ExtensionType array to u16 array
        },
        data
    );

Hello @joncinque, I've been trying to figure out what you meant by this line
do your mapping of ExtensionType array to u16 array
Initially I thought you meant create a Uint16Array out of the ExtensionType array but it didn't work because of type mismatch.
This is the ReallocateInstructionData interface:
export interface ReallocateInstructionData {
  instruction: TokenInstruction.Reallocate;
  extensionTypes: ExtensionType[];
}

And so then I change the interface to this:
export interface ReallocateInstructionData {
  instruction: TokenInstruction.Reallocate;
  extensionTypes: Uint16Array;
}

but that meant that the struct definition had to change, and so I abandoned that approach. I've been tripping over myself trying to figure out what you meant. Could you help me out again?

When you call reallocateInstructionData.encode with the array of ExtensionType, you need to make sure that each ExtensionType gets encoded as a u16.  Here's the code that does it in Rust: https://github.com/solana-labs/solana-program-library/blob/5611ad8bd595d9e3666f8b115cd28f8116038645/token/program-2022/src/instruction.rs#L839
You''ll have to figure out how to do this conversion in JS.  For example, here's the code for reading the u16: https://github.com/solana-labs/solana-program-library/blob/5611ad8bd595d9e3666f8b115cd28f8116038645/token/js/src/extensions/extensionType.ts#L96

@tyirenkyi are you still working on this? I'd like to get it integrated soon.  Would you mind putting up a draft PR with your changes?  If you're busy with other things, then I can take over and finish

Is this something that still needs to be worked on?

@zrthxn It certainly is!


use max initial buffer for stream scanner

There is a bug related to the buffer. I have a stream of docs around 8MB and two documents fail yaml parsing.
The yaml is incomplete and fails being parsed which let me to believe its related to the buffer.
If I increase the initial buffer it works perfectly fine.
If I decrease the initial buffer I get even more documents which fail.
For now this pr just sets the max buffer size as initial one which is allocated.
Not perfect but it works or at least raises the issue.

Hi @raffis , think you could add the files (or a mock of the files) with an integration  test that gets kubeconform to fail? Integration tests are really quite simple https://github.com/yannh/kubeconform/blob/master/acceptance.bats   I am assuming that there might be a bug somewhere and that while increasing to 8MB makes this work for you, there might be another issue behind this  :)

Hi @raffis , I am closing this PR because of the lack of tests / information...  I'd be interested in a test case that would show what you are trying to do and that fails :bow:


can i evalue my own data?

Thank you so much for sharing!
I would like to use your code to segment my own satellite image data for building. What is the format requirement for the original image data to be segmented?
Can you explain that briefly?
Thank you very much!
Looking forward to your reply!

I already provide an link of training dataset at README. The data contains sliced aerial images as well as corresponding segmentation maps.

Hey,
Any update on how to predict the mask of a single image?
Thanks


Raptorfy Code Base

Remove all the black hawk naming where aproprate, and raplace with Raptor 1711

Thanks for using Black Hawks Scouting! It's great that you want to make changes to the app, but you don't need to submit them here. This is the "official" repository which is being used by our team, and it's also what other teams will get when they click "Fork". I'm closing this issue, but feel free to modify your own fork of the app however you'd like. I'm glad to see other teams get creative with Black Hawks Scouting!

Thanks, sorry I didn't see what repo I was posting to.  Thanks again for doing this.
-Russ


MirrorMaker2 Exactly-once Semantics

KIP: https://cwiki.apache.org/confluence/display/KAFKA/KIP-656%3A+MirrorMaker2+Exactly-once+Semantics
config to enable exactly-once (aka. transaction producer)
primary->backup.transaction.producer.enabled: true
primary->backup.topics: foo,bar,heartbeats
topics: foo,bar,heartbeats
primary.consumer.isolation.level: read_committed

validation tool on k8s: https://github.com/ning2008wisc/kafka-producer-consumer-test
TODO: (1) add unit test, (2) switch between MirrorSinkConnector and MirrorSourceConnector by config

Exactly once for MirrorMaker was introduced via KIP-618, closing this PR.


After user cleared text field, Paste toolbar label not shown on long-press nor on double-tap

The gist of the issue is:
When the text form field is empty and just recently opened, the TextFormField works correctly and on long press (end?), the "Paste" toolbar is displayed to the user. The user types something, the "Paste" (and select, etc) toolbar is still displayed correctly.
Here's the bug: Remove text that was in the field, and try to get the app open the "Paste" toolbar by long press. It will not work, no matter where the user is tapping, long-pressing.
After you remove focus, then come back to the widget, the Paste toolbar works again, even with empty field. Type something, then remove all text again: Paste toolbar is, again, never displayed, no matter where the user long-presses.
If you want to see the bug, check repository with code that I used to create a minimal reproducible example: https://github.com/vargavince91/flutter_issue_36758
// Paste in your main.dart
import 'package:flutter/material.dart';

const bugDescription = '''
Tap on the text form field and observe the keyboard opening.

When the text form field is empty and just recently opened, the widget works correctly and on long press (end?), the "Paste" toolbar is displayed to the user.

The user types something, the "Paste" (and select, etc) toolbar displayed correctly.

Here's the bug: Remove text that was in the field, and try to get the app open the "Paste" toolbar by long press. It will not work, no matter where the user is tapping, long pressing.

The floating action button removes the focus from the text form field. Tap on the coffee fab. Go back to the empty text form field: Paste works again, even with empty fields.

Type something, then remove all text again: Paste toolbar is, again, never displayed, no matter where the user long-presses.
''';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
      appBar: AppBar(
        title: Text('Flutter Issue #36758'),
      ),
      body: Center(
        child: ListView(
          padding: const EdgeInsets.all(8.0),
          children: <Widget>[
            Text(bugDescription),
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: TextFormField(
                decoration: InputDecoration(
                  labelText: 'TextFormField',
                ),
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          FocusScope.of(context).requestFocus(FocusNode());
          // If we use the following line to hide, the "paste" toolbar never appears
          // when the text is empty
          // // import 'package:flutter/services.dart';
          // SystemChannels.textInput.invokeMethod<dynamic>('TextInput.hide');
        },
        tooltip: 'Hide keyboard',
        child: Icon(Icons.local_cafe),
      ),
    ),
    );
  }
}

In a comment, someone said the issue should be solved already on the right channels ("should be fixed in the next release (1.8.1+)"), however, AFAIK I just reproduced the bug after the said fix was applied:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.8.2, on Mac OS X 10.14.5 18F132, locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (2 available)

$ flutter --version
Flutter 1.8.2 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 0a39d8d92e (12 days ago) • 2019-07-10 19:17:14 -0700
Engine • revision 75387dbc14
Tools • Dart 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)

The bug is present on both iOS and Android devices.
The bug is only present when they delete the text by "keyboard", so if you select the text, cut it, therefore resulting in an empty text field, the paste will still work.

Closing as a duplicate of https://github.com/flutter/flutter/issues/35998
Thanks for detailed description.  I'll keep this linked to the other issue.  I'm going to try to fix this soon because it looks like a lot of people are running into it.


[OPPRO-307] Support limit on Velox backend

What changes were proposed in this pull request?
This PR supports limit on Velox backend.
How was this patch tested?
verified on Jenkins.

LGTM. Can we add a simple unit test?

Added unit test.

@rui-mo
In Gluten, both GlobalLimitExec and LocalLimitExec are converted to LimitTransformer. Do we need to do special handling on the Velox side or not?

@JkSelf Merging this PR, if you have further comments, you can still comment here, thanks!

@rui-mo In Gluten, both GlobalLimitExec and LocalLimitExec are converted to LimitTransformer. Do we need to do special handling on the Velox side or not?

Velox LimitNode has a parameter naming isPartial_ but it only take effect for logging. The logic of both are almost the same in Velox and Spark (BaseLimitExec), and the difference is final limit can only be single-threaded while partial limit is executed by each task in Spark.

Got it. Thanks for your explain.


Detect stale commitInGitGit and force-update it

I just noticed that https://github.com/gitgitgadget/git/pull/453 has not been updated to reflect that the patch was merged into next. Looks like a stale commitInGitGit for the head commit is still recorded, and therefore GitGitGadget is no longer able to service that PR correctly.
Let's try to detect such a situation by verifying that the commit in question is actually in pu.

The commit message has a typo: preformance.  May as well correct when making updates.


Vert.x Code Generator breaks Java compilation with Gradle v4.7 annotationProcessor

I have reason to believe that the Vert.x Code Generator APT processor completely breaks Java compilation in Gradle when using with Gradle v4.7 and the annotationProcessor.
Found in https://github.com/vorburger/minecraft-storeys-maker/issues/53, but now reproduced in https://github.com/vorburger/vertx-gradle-errorprone-bug-reproducer. That very simple project fails when using  annotationProcessor (but works when using compile). But an APT processor on compile instead of annotationProcessor breaks Error Prone. It's also "not right", and AFAIK doesn't play nice with Gradle's incremental build.
In an ideal world, Vert.x's Code Generator should "just work" (out of the box) with Gradle v4.7 annotationProcessor.

https://docs.gradle.org/4.7/release-notes.html
https://docs.gradle.org/4.6/release-notes.html#convenient-declaration-of-annotation-processor-dependencies

Apparently, the MVEL generator loads codegen.json and templates from its classloader. If it's expected that these are on the compile classpath (rather than the processor path), then it should use the processingEnv.getFiler() instead.
Fwiw, you should be able to reproduce it with Maven too using the <annotationProcessorPaths> from maven-compiler-plugin: https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#annotationProcessorPaths

@tbroyer we meanwhile figured it's actually got nothing to do with that - it's some APT issue in Gradle.
TODO check if https://docs.gradle.org/4.8-rc-1/release-notes.html makes any difference.


No GMSA exists in AD ... error

Describe the bug
No GMSA exists in AD ... error
To Reproduce
Steps to reproduce the behavior:

Go to ''Get-ABrADDomain.ps1" file
Seach line 167
Get-ADServiceAccount -Filter * -Server $using:DC -Properties *
See error
VERBOSE: [ 14:33:37:649 ] [ Document ] - Collecting the Active Directory Group Managed Service Accounts from DC .
Cannot validate argument on parameter 'Server'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command
again.

CategoryInfo          : InvalidData: (:) [Get-ADServiceAccount], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.GetADServiceAccount
PSComputerName        : xxxx.xxxx.xxx

Expected behavior
I'm thinking there is a missing parameter : -ErrorAction SilentlyContinu
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

thanks for reporting the bug, it has been corrected in the dev branch


Support passing a JSON to Scenario Outline

Saw a couple of requests for this, for e.g: https://stackoverflow.com/q/52499948/143475
And wow, what if we could have the best of both worlds - the way Scenario Outlines show up in reports. And allowing the Examples to be dynamic at run-time, from JSON, even read from CSV etc.
I think we can support this without changing the Gherkin syntax. So something like this:
Scenario Outline:
* print 'hello <name>'

Examples:
| (read('cats.json')) |

pretty clever and flexible huh ?
so the rule / hack is -

if the first header column of the Examples table is wrapped in parentheses
it will be evaluated as a Karate / JS expression
and if it results in a JSON array of JSON-s
it will be converted into a table and then normal processing would follow
nothing else in the table will be evaluated
if you have nested JSON, the top-level column will be serialized to a string
all primitives will render as-is, so you need to use string-quotes in the Scenario body if needed

hmm I think this will be pretty useful

realized this is a BIG change. because of the way, scenario-outlines are spawned.
this is feasible, but means that scenarios have to be GENERATED after we enter the feature life-cycle and run background steps.
or we should instead focus on making the results of a data-driven loop call look like a Scenario Outline.
this will not make it into 0.9.0 unless someone contributes.

this has always worked for me. I have a few tests that do that. and I'm on version <IP_ADDRESS>

implemented with one small tweak, decided the parentheses are not needed since the intent is clear if only one table cell
Scenario Outline:
* print 'hello <name>'

Examples:
| read('cats.json') |

Hi @ptrthomas: below is the request i m trying to read from JSON and one of the parameter is read from the examples but the other parameter seems to be an array which again I want to read from examples but I m unable to achieve it below is the same request
{request :[{
first: value1,
second :[value1,value2]
}]}
`what would be the better way to parameterise the above request ?

@Manitha-R ask this on stack overflow please: https://stackoverflow.com/questions/tagged/karate


Beatmaps with no HitObjects fail to parse

In this specific case this was result of trying to load .osu file with no content(0 lines)
Stack trace:
System.InvalidOperationException: 'Sequence contains no elements.'
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at OsuParsers.Decoders.BeatmapDecoder.Decode(IEnumerable`1 lines)
   at OsuParsers.Decoders.BeatmapDecoder.Decode(String path)

Should be fixed in bf21431


"get-started" error on virtual machine

hi guys,
I encountered the following error while running the demo:

Has anyone come across this problem or can someone give me some guidance?

I encountered the same on a virtual machine. Did you find any solution for this? Does the problem occur only when run on a virtual machine?

I got the same problem, but when I used the release 1.0 Beta 5, it works: https://github.com/uber/streetscape.gl/releases/tag/v1.0.0-beta.5
I guess it's a bug for the current versions.

@user-Mrh could you try running the latest master with yarn start-local or yarn start-streaming-local?
There was a fix but I have not published the latest just yet, will do so today.
For references, start-local uses the local source code rather than the published packages.
start-streaming-local use the local source code but also will load XVIZ data from a local server @ port 8081 for the get-started demo rather than fetching data from S3.
I'll add this definitions to the README for the get started if it's not already there.

@twojtasz Thanks for your reply.

@user-Mrh did those suggestions work?

@user-Mrh did those suggestions work?

Yes, now I've downloaded the latest version of master and it works fine.


Protected routes for Profile

When a user is logged out, they are not redirected, but instead see the version of the profile page that is shown to new users (which doesn't function because there is now no user). The profile should only be accessible to logged-in users, and users should be redirected home after logout (or session timeout).

Fixed in #78


Ecdh curves support for external mTLS traffic

API PR: https://github.com/istio/api/pull/2543
Fixes: https://github.com/istio/istio/issues/41645

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test lint

gencheck_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test lint

gencheck_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test gencheck

integ-security-multicluster_istio
3886a00cf9d6f2b7a87066b56699146e75b14cb4
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I added release notes in the API PR. Isn't that enough? https://github.com/istio/api/pull/2543/files

good question, @ericvn are istio/api release notes picked up by the release notes script too?

I added release notes in the API PR. Isn't that enough? https://github.com/istio/api/pull/2543/files

good question, @ericvn are istio/api release notes picked up by the release notes script too?

That was a good question so I went to look at what the tool does. It processes a specified repo at a time, so you could specify istio or api or potentially any other repo with release notes (istio and api are the only two with a releasenotes directory today). I then went to look at what the RM instructions might be relative to creating release notes. Do we instruct them to run it against both the istio and api repos? The wikis don't seem to mention one or both.
@GregHanson, as a prior RM when the tooling was available (at least I believe you fit that), was the tooling run against both?
Also as a side note, we do run the release notes required tooling against both repos, however in the api repo it is not a required test so PRs will merge even if the test fails. Most people might not notice the required label.
So what's the best way forward, and we should update the RM wikis and/or READMEs for this? If we really have releasenotes directories in both repos, the RMs should likely be running the tooling against both repos. I haven't looked at the PRs to actually see if the api repo is used or not, but I suspect there are PRs that only happen in the api repo, so we need to scan those as well. For those api PRs that the creator knows needs an istio change, it makes sense to include the release note in one or the other (including in both will just mean the RM can remove the duplicate when combining). It may make sense to only include in istio as the api PR will merge without it (maybe add a remark in the api PR that the RN will be in istio).

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

I added release notes in the API PR. Isn't that enough? https://github.com/istio/api/pull/2543/files

good question, @ericvn are istio/api release notes picked up by the release notes script too?

That was a good question so I went to look at what the tool does. It processes a specified repo at a time, so you could specify istio or api or potentially any other repo with release notes (istio and api are the only two with a releasenotes directory today). I then went to look at what the RM instructions might be relative to creating release notes. Do we instruct them to run it against both the istio and api repos? The wikis don't seem to mention one or both.
@GregHanson, as a prior RM when the tooling was available (at least I believe you fit that), was the tooling run against both?
Also as a side note, we do run the release notes required test in the CI for both repos, however in the api repo it is not a required test so PRs will merge even if the test fails. Most people might not notice the required label.
So what's the best way forward, and we should update the RM wikis and/or READMEs for this? If we really have releasenotes directories in both repos, the RMs should likely be running the tooling against both repos. I haven't looked at the PRs to actually see if the api repo is used or not, but I suspect there are PRs that only happen in the api repo, so we need to scan those as well. For those api PRs that the creator knows needs an istio change, it makes sense to include the release note in one or the other (including in both will just mean the RM can remove the duplicate when combining). It may make sense to only include in istio as the api PR will merge without it (maybe add a remark in the api PR that the RN will be in istio).

@GregHanson Meantime I copied the release notes to this PR :D

I added release notes in the API PR. Isn't that enough? https://github.com/istio/api/pull/2543/files

good question, @ericvn are istio/api release notes picked up by the release notes script too?

That was a good question so I went to look at what the tool does. It processes a specified repo at a time, so you could specify istio or api or potentially any other repo with release notes (istio and api are the only two with a releasenotes directory today). I then went to look at what the RM instructions might be relative to creating release notes. Do we instruct them to run it against both the istio and api repos? The wikis don't seem to mention one or both.
@GregHanson, as a prior RM when the tooling was available (at least I believe you fit that), was the tooling run against both?
Also as a side note, we do run the release notes required test in the CI for both repos, however in the api repo it is not a required test so PRs will merge even if the test fails. Most people might not notice the required label.
So what's the best way forward, and we should update the RM wikis and/or READMEs for this? If we really have releasenotes directories in both repos, the RMs should likely be running the tooling against both repos. I haven't looked at the PRs to actually see if the api repo is used or not, but I suspect there are PRs that only happen in the api repo, so we need to scan those as well. For those api PRs that the creator knows needs an istio change, it makes sense to include the release note in one or the other (including in both will just mean the RM can remove the duplicate when combining). It may make sense to only include in istio as the api PR will merge without it (maybe add a remark in the api PR that the RN will be in istio).

I can say that I have only run it against the istio repo and not both as there didn't seem to be any instruction to run against both repos.

LGTM, but I'll wait to approve once istio/api PR merges.

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
86a1827467b38f8828c2566063a78fbf46cc74e8
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
86a1827467b38f8828c2566063a78fbf46cc74e8
link
true
/test gencheck

integ-pilot-multicluster_istio
86a1827467b38f8828c2566063a78fbf46cc74e8
link
true
/test integ-pilot-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster_istio
01fc9d16b68975479639623fd388a2536a2837e4
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
01fc9d16b68975479639623fd388a2536a2837e4
link
true
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-ambient

/retest

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

integ-security-istiodremote_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-istiodremote

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

integ-security-istiodremote_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-istiodremote

integ-security_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security

/test integ-security-istiodremote

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

integ-security-istiodremote_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-istiodremote

integ-security_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security

integ-security-multicluster_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

integ-security_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security

integ-security-multicluster_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-multicluster

integ-security-istiodremote_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-istiodremote

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kfaseela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
588f4edc0616986fffd414135a0bc94e3b5c3ad5
link
true
/test integ-ambient

integ-security-multicluster_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-multicluster

integ-security-istiodremote_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security-istiodremote

integ-security_istio
4dea0411c1038c3e15b13763d473d71f3bb301ad
link
true
/test integ-security

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn @hzxuzhonghu PTAL - if you are OK with these changes, I will remove DNM

im ok

I donot feel it quite do as the api means. Take cluster as an example, it applies mesh external tls settings to cluster. But the cluster can not be distinguished from internal to external well.

@hzxuzhonghu : I have added API docs update as we discussed in the discussion above, let me know if that solves your concern: https://github.com/istio/api/pull/2693/files

@hzxuzhonghu : I have not been able to change the API to have a single mesh_mTLS config, as @howardjohn also indicates that it is currently not applied in all contexts. https://github.com/istio/api/pull/2693/files#r1118972237 .  If you want to still retain the hold on this PR, please suggest a way forward.

LGTM
Can do cleanups in a following pr

thanks @hzxuzhonghu :)


RSS/XML :  To determine a section or category

Hi,
is it possible to have a field in the RSS file to determine a section or category?
Or be able to create playlists available in RSS format.
Thanks for your great job,
have a good day!

Thanks for the isssue! We have this covered on the app side and it could be done with tags and/or playlists when we implement RSS: https://github.com/lbryio/lbry-desktop/issues/3779

Ok, Thanks!! 👊


147 add sha256 external function

I had difficulties to retrieve the value returned by the functions used in vm-mock. It would be great if someone could tell me how to do it.

After some tries I finally manage to make it work, don't hesitate to ask questions :)


Convert new CancellationTokenSource calls to CreateLinkedTokenSource calls

https://github.com/PlayFab/consuldotnet/blob/master/Consul/Lock.cs#L221-L226
https://github.com/PlayFab/consuldotnet/blob/master/Consul/Semaphore.cs#L288-L293
https://msdn.microsoft.com/en-us/library/dd642252(v=vs.110).aspx

Not actually needed, since this would mean that the cancellationtoken used to acquire the lock needed to live the same length of time as the lock.


[Bug] Auto generated fragment serializers still use JSONAPISerializer

Info
Ember: 2.4.4
Ember Data: 2.6.0-canary+39329bdbeb
Model Fragments: 2.3.1
I cannot seem to make the ember data store pick up a default JSONSerializer  for model fragments. I followed the docs and also tried registering serializer:-fragment, but that doesn't work either:
import JSONSerializer from 'ember-data/serializers/json';

export function initialize(application) {
    application.register('serializer:-fragment', JSONSerializer.extend());
}

export default {
    name: 'fragment-serializer',
    initialize: initialize
};

The error I keep getting is:
The `JSONAPISerializer` is not suitable for model fragments, please use `JSONSerializer`.
I want to avoid registering a serializer for every single fragment model.

It was an issue with a model that didn't exist. The error misleaded me, this issue can be ignored.


Error to install build dependencies

My error is:
Collecting chatterbot
Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB)
Collecting pymongo<4.0,>=3.3
Using cached pymongo-3.13.0-cp310-cp310-win_amd64.whl (394 kB)
Collecting nltk<4.0,>=3.2
Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)
Collecting mathparse<0.2,>=0.1
Using cached mathparse-0.1.2-py3-none-any.whl (7.2 kB)
Collecting pytz
Downloading pytz-2022.7.1-py2.py3-none-any.whl (499 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 499.4/499.4 kB 1.2 MB/s eta 0:00:00
Collecting pint>=0.8.1
Using cached Pint-0.20.1-py3-none-any.whl (269 kB)
Collecting pyyaml<5.2,>=5.1
Using cached PyYAML-5.1.2.tar.gz (265 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting python-dateutil<2.8,>=2.7
Using cached python_dateutil-2.7.5-py2.py3-none-any.whl (225 kB)
Collecting sqlalchemy<1.3,>=1.2
Using cached SQLAlchemy-1.2.19.tar.gz (5.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting spacy<2.2,>=2.1
Using cached spacy-2.1.9.tar.gz (30.7 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [81 lines of output]
Collecting setuptools
Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB)
Collecting wheel<0.33.0,>0.32.0
Using cached wheel-0.32.3-py2.py3-none-any.whl (21 kB)
Collecting Cython
Using cached Cython-0.29.33-py2.py3-none-any.whl (987 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.7-cp310-cp310-win_amd64.whl (29 kB)
Collecting preshed<2.1.0,>=2.0.1
Using cached preshed-2.0.1.tar.gz (113 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.9-cp310-cp310-win_amd64.whl (18 kB)
Collecting thinc<7.1.0,>=7.0.8
Using cached thinc-7.0.8.tar.gz (1.9 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting blis<0.3.0,>=0.2.1
Using cached blis-0.2.4.tar.gz (1.5 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting wasabi<1.1.0,>=0.0.9
Using cached wasabi-0.10.1-py3-none-any.whl (26 kB)
Collecting srsly<1.1.0,>=0.0.6
Using cached srsly-1.0.6-cp310-cp310-win_amd64.whl (196 kB)
Collecting numpy>=1.7.0
Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
Collecting plac<1.0.0,>=0.9.6
Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB)
Collecting tqdm<5.0.0,>=4.10.0
Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting colorama
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: wasabi, plac, cymem, wheel, srsly, setuptools, preshed, numpy, murmurhash, Cython, colorama, tqdm, blis, thinc
DEPRECATION: preshed is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for preshed: started
Running setup.py install for preshed: finished with status 'error'
error: subprocess-exited-with-error
    Running setup.py install for preshed did not run successfully.
    exit code: 1

    [26 lines of output]
    C:\Users\cleys\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
      warnings.warn(
    WARNING: The wheel package is not available.
    running install
    C:\Users\cleys\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-cpython-310
    creating build\lib.win-amd64-cpython-310\preshed
    copying preshed\about.py -> build\lib.win-amd64-cpython-310\preshed
    copying preshed\__init__.py -> build\lib.win-amd64-cpython-310\preshed
    creating build\lib.win-amd64-cpython-310\preshed\tests
    copying preshed\tests\test_counter.py -> build\lib.win-amd64-cpython-310\preshed\tests
    copying preshed\tests\test_hashing.py -> build\lib.win-amd64-cpython-310\preshed\tests
    copying preshed\tests\test_pop.py -> build\lib.win-amd64-cpython-310\preshed\tests
    copying preshed\tests\__init__.py -> build\lib.win-amd64-cpython-310\preshed\tests
    copying preshed\counter.pyx -> build\lib.win-amd64-cpython-310\preshed
    copying preshed\maps.pyx -> build\lib.win-amd64-cpython-310\preshed
    copying preshed\counter.pxd -> build\lib.win-amd64-cpython-310\preshed
    copying preshed\maps.pxd -> build\lib.win-amd64-cpython-310\preshed
    copying preshed\__init__.pxd -> build\lib.win-amd64-cpython-310\preshed
    running build_ext
    building 'preshed.maps' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure

  Encountered error while trying to install package.

  preshed

  note: This is an issue with the package mentioned above, not pip.
  hint: See above for output from the failure.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
help me

Install This it might fix it,
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

You need to change your python interpreter to python 3.7.5 and install an older version of the ChatterBot Library with pip.
I did it with this command:
pip install chatterbot==3.0.0

pip install chatterbot==3.0.0

This produces an error too, it looks like the latest version of chatterbot is way lower than 3.0
As said in https://github.com/gunthercox/ChatterBot/issues/2303#issuecomment-1502374512
I got the same issue. I solved it by installing python3.7 and setting up a virtual environment (as my default version is 3.10, and I need to keep it for other projects).
sudo apt install python3.7 python3.7-venv
python3.7 -m venv /path/to/chatterbot/folder/
cd /path/to/chatterbot/folder/
source ./bin/activate
pip install -U pip setuptools wheel
pip install chatterbot

While installation was successful, I still couldn't get any of the examples working, it seems not only the 3.7 requirement is missing from the README but also some other steps I can't figure out.


Multiple Pie Chart, Pie Charts have different radii

This seems to be tied to the number of records per pie chart.  And as a result when you start to do groups and aggregations the piecharts stay their same small size, even as groups are created and wedges in the pie charts are made.

I'm not sure how to go about fixing this but a work around would be really nice, because this package is really awesome.

I've found that this is caused by scalegroup: 1, in PlotlyRenderers.js.  Is there anyway to pass this value as a prop to the component?
As it stands I can get around this by altering the text on the line

This is intended as a feature rather than a bug :) You can set the aggregator to Sum as Fraction of Columns to renormalize the radii:

Agree this is intended (pie radius reflects magnitude of results represented by the pie).  Suggest if this is actioned it’s a configuration rather than a Change to the existing view.


About the meaning and usage of some options

In "package.py", "train.obj" and "val.obj" are generated, but what is different? What are these used for? I can not understand these differences.

Please tell me about "schedule option" of python train.py. How should schedule be decided? By default (epoch = 40, schedule = 20) and schedule should be halved for epoch? I do not understand the meaning of "schedule".

How do you use "Pretrained Model" when doing "train.py"? I downloaded the "Pretrained Model" of the distributed "font 27", but I do not know how to use it. Is there an option command to use this when doing "train.py"? How do you specify checkpoints?

I'm afraid you need to learn some knowledge about deep learning.
And read Tensorflow's guideline.

hava u solve this problem ,i don't know how to use Pretrained model too .


Utilizing the new TS support of open-ux-tools

The latest version of the @sap-ux/ui5-application-writer and the @sap-ux/fe-fpm-writer support the usage of Typescript based on the structure suggested by @petermuessig at https://github.com/ui5-community/ui5-ecosystem-showcase/tree/main/packages/ui5-app-ts.
This PR enables the functionality for easy-ui5.

@tobiasqueck I just had some FYI comments and let you check them - I'm fine with the change, so if you wanna go ahead with the change we can merge it.

@marianfoo @vobu @nicoschoenteich may I get a review from one of you? @petermuessig reviewed and approved but I'd prefer a 2nd review.

Hi @tobiasqueck, thanks for all the work. I would love to do a review, but unfortunately am incredibly busy with Devtoberfest prep. I will have a look, once things calm down, but can't promise anything.


Rename license configuration file

Rename the file from licenses.yml to license-classifications.yml. The
new name expresses the intention of this file better: to give the user
a possibility to group licenses into a customizable set of categories.
I hope I spotted all references to the file name, including the ones in the documentation. At least IntelliJ's "find in path" feature did not find any hits any more.

I'll leave the review / merge to @mnonnenmacher and @fviernau as it's up to them to rename their existing file(s).
I know that over here I argued that using plural "classifications" probably was fine. But although I'm not a native speaker it sounds a bit odd to me, and my gut feeling suggests to now use singular "classification" instead, esp. as Wikipedia explains "Categorization is an activity that consists of putting things, such as objects, ideas, or people, into categories".

I'll leave the review / merge to @mnonnenmacher and @fviernau as it's up to them to rename their existing file(s).
I know that over here I argued that using plural "classifications" probably was fine. But although I'm not a native speaker it sounds a bit odd to me, and my gut feeling suggests to now use singular "classification" instead, esp. as Wikipedia explains "Categorization is an activity that consists of putting things, such as objects, ideas, or people, into categories".

I agree with your argument in that link that we use plural also for other files like curations.yml or resolutions.yml. I have confirmed with a native speaker that the plural does not sound odd :)

Not sure why the Travis CI build failed. There were test failures in the GradleAndroidFunTest class, which do not seem to be related to the changes in this PR.

@oheger-bosch, I've retriggered the Travis build, but @mnonnenmacher could override anyway once he's ready for merging.


Silence logging at start phase

Stuff like
XX Reading config file /home/user/.fritzctl.json
XX FRITZ!Box challenge is zzzzzz
XX FRITZ!Box challenge solved, login successful

should be logged on level debug.

silence cert file logging


net: packet: Do not drop net_pkt immediately

If there are no sockets in the system, then do not drop the
packet immediately as there can be other L2 network handlers
like gPTP in the system. This will also allow ICMP messages
to pass to local handler.
Fixes #34865
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

@mniestroj can you take another look


Disable force redirect to https

How can i disable force redirect to ssl (https) ?

This question belongs to https://github.com/jwilder/nginx-proxy
See https://github.com/jwilder/nginx-proxy#how-ssl-support-works
The ENV Variable HTTPS_METHOD controls the behavior.

The link https://github.com/jwilder/nginx-proxy#how-ssl-support-works is dead.

@zedtux https://github.com/nginx-proxy/nginx-proxy/tree/main/docs#ssl-support


Challenge Results on User Profile

A user should have challenges that are :done on their profile
There should be a reusable component in user_challenges/index.jsx

Fixed by #320


Provide the location of the pasted information on parsePaste

I'm building a feature for my application in which I would like the grid to auto grow when I paste more data than the number of cells the table has.
For this, I would need access to the location of the pasted data, e.g.:

My grid has 100 rows
The user pastes something that has 80 rows on row #40
I have to resize my grid should now resize to 120 rows.

@nihey The problem you’re describing is handled via “onCellsChanged”, its second parameter “additions” passes the overflowing pasted members

@nadbm Oops, completely missed that one! But thanks for pointing me on the right direction, I'll handle it this way, it should be cleaner.


fix: 404ing ESLint logo in README.md

The README.md right now has an image not found.

Thank you!


Importers without a vulnerable package list

https://github.com/nexB/vulnerablecode/pull/436 deprecates the concept of fixed_package and now only the vulnerable packages are entered into the database. Many data sources do not provide with a list of vulnerable packages and only provide a fixed version.
Currently affected importers:

suse_backports

Future affected importers:

Mozilla
Mattermost (For advisories before 2020-01-08)

We cannot simply ignore these data sources. One approach would be to flag all the versions before the provided fixed version as vulnerable and enter those in the database. The meaning of only a fixed version could further be clarified at the data source's end.
This needs to be further discussed.

#436 deprecates the concept of fixed_package and now only the vulnerable packages are entered into the database. Many data sources do not provide with a list of vulnerable packages and only provide a fixed version.

Are you sure this is deprecating this ?

@Hritik14 so yes indeed #436 did deprecate the concept of fixed_package and now only the vulnerable packages are entered into the database. And in hindsight this is a problem and we need to revisit this ASAP.

See https://github.com/nexB/vulnerablecode/issues/140#issuecomment-847088438

As an example  when I look at https://github.com/mozilla/foundation-security-advisories/blob/c5f33af98294e441311fa9ec904001b09934af73/announce/2021/mfsa2021-27.yml#L4 we have a fixed package. We should support these with no impacted packages alright too.
Eventually this means all previous versions and that's confirmed with the range of CPEs in https://nvd.nist.gov/vuln/detail/CVE-2021-29968#range-6743855


test: fix multi-fork tests

Motivation
Keep the tests stable.
Description
Fix the multi-fork sim tests.
Steps to test or reproduce

Run all tests.

Acutally, there is an error in multifork sim tests which looks related?

It's not related to this PR.  I observed it only few times, it's stating that tracker didn't closed before the node shutdown. Will look that error separately.

:tada: This PR is included in v1.18.0 :tada:


Navigating away and back looses the styling of the root component element from its parent page (using style scoped and fragments)

Environment

Operating System: Darwin
Node Version:     v16.13.0
Nuxt Version:     3.0.0-27303148.ac98373
Package Manager<EMAIL_ADDRESS>Bundler:          Vite
User Config:      publicRuntimeConfig
Runtime Modules:  -
Build Modules:    -

Reproduction
https://codesandbox.io/s/zealous-dust-8ilwp?file=/pages/index.vue
Describe the bug
It should be possible to style the root element in a child component from the parent one - here a page using <style scoped>. However, when using fragments in the child component, it doesn't work anymore after navigating away from the page and back to the page again.
I am not sure if it's a bug or if it's me making some mistake ?
Additional context
No response
Logs
No response

A workaround might be using getCurrentInstance()?.vnode.scopeId 🤔
Example: https://github.com/youzan/vant/pull/12327/files

Let's track in the upstream vue issue. 🙏


GAME - Tetris The Grand Master 3 Terror Instinct Arcade / の認定モードに挑戦のムービー  |  Hooking mdi Container Parent

The game launches two windows!
The first act of father.
The second one has the game window and is embedded in the main window.
I had to investigate with extended styles and window styles in order to display it as TopMost.
The game programmer had it very well thought out, but I was able to launch the game in fullscreen!

Launching the game with opengl32, glu32 and Native Win hook

Launching the game with extended styles and normal styles hook

Videos https://youtu.be/YPl0_GEEgik