Bosh compilation of curator package should not need internet access

When deploying version 23.0.0, we get an error while bosh is compiling curator package.
It appears that to build curator job, some download is required. But in case of corporate network, it should not be necessary to download on internet packages.
Trace:
Error 450001: Action Failed get_task: Task 08485bbc-4059-4961-6194-f39f2701b30e result: Compiling package curator: Running packaging script: Command exited with 1; Stdout: Installing collected packages: urllib3
  Running setup.py install for urllib3
Successfully installed urllib3
Processing ./curator/click-3.3.tar.gz
Installing collected packages: click
  Running setup.py install for click
Successfully installed click
Processing ./curator/elasticsearch-py.tar.gz
Collecting urllib3<2.0,>=1.8 (from elasticsearch==1.6.0)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/urllib3/
  Could not find any downloads that satisfy the requirement urllib3<2.0,>=1.8 (from elasticsearch==1.6.0)
  No distributions at all found for urllib3<2.0,>=1.8 (from elasticsearch==1.6.0)
, Stderr: + set -u
+ export PATH=/var/vcap/packages/python3/bin:/var/vcap/bosh/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
+ PATH=/var/vcap/packages/python3/bin:/var/vcap/bosh/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
+ pip3 install --install-option=--prefix=/var/vcap/packages/curator curator/urllib3-1.8.3.tar.gz
+ pip3 install --install-option=--prefix=/var/vcap/packages/curator curator/click-3.3.tar.gz
+ pip3 install --install-option=--prefix=/var/vcap/packages/curator curator/elasticsearch-py.tar.gz

Hrm, agreed; it should not require internet access.

I've received similar bug reports from other users.
@bonzofenix; do you have any idea why this is happening.  I know you guys deploy to an environment with no 'net access; so I'm surprised you haven't bumped into this.
I'm also confused as to why the error is happening - the install runs:
pip3 install --install-option=--prefix=/var/vcap/packages/curator curator/urllib3-1.8.3.tar.gz
--> Successfully installed urllib3

followed by
Processing ./curator/elasticsearch-py.tar.gz
Collecting urllib3<2.0,>=1.8 (from elasticsearch==1.6.0)

Surely urllib3-1.8.3 is >= 1.8 and < 2.0 ?

@mrdavidlaing sorry for the late response. the version is correct:

@fbonelle which stemcell are you using? We will try to reproduce it.
@bonzofenix && grayisgreat

@bonzofenix Now, we are on stemcell 3074, 3093 & 3098

on which infrastructure?

On Oct 12, 2015, at 13:34, François Bonelle<EMAIL_ADDRESS>wrote:
@bonzofenix https://github.com/bonzofenix Now, we are on stemcell 3074, 3093 & 3098
—
Reply to this email directly or view it on GitHub https://github.com/logsearch/logsearch-boshrelease/issues/177#issuecomment-147454174.

@bonzofenix It's on VCloud

I was able to reproduce this on AWS:
+-----------------------------------------+---------------+---------+--------------------+
| Name                                    | OS            | Version | CID                |
+-----------------------------------------+---------------+---------+--------------------+
| bosh-aws-xen-hvm-ubuntu-trusty-go_agent | ubuntu-trusty | 3094*   | ami-03370074 light |
+-----------------------------------------+---------------+---------+--------------------+

when I disabled internet access for the curator compilation vm

@fbonelle, @bonzofenix - I think 4ddbe43 addresses this problem - by explicitly telling pip not to use the pypi, and which folder to search for dependencies in.
Please could you give this a test in your environments.
PS - you might want to cherry-pick this change onto https://github.com/logsearch/logsearch-boshrelease/tree/v23.0.0, since there are a fair amount of unrelated changes on develop


Master does not build (fleetctl) on GOOS=darwin

$ ./build
Not on Linux - skipping fleetd build
Building fleetctl...
# github.com/coreos/fleet/vendor/github.com/vishvananda/netlink
gopath/src/github.com/coreos/fleet/vendor/github.com/vishvananda/netlink/filter.go:35: undefined: nl.TcActBpf

From a quick investigation, it looks like this issue was already fixed by https://github.com/vishvananda/netlink/pull/129. I'll create a new PR to update vendor/github.com/vishvanada/netlink.
Though I don't have a Darwin host to test the build, so someone else might need to test it too.

@dongsupark Ping me in the PR, I'll be happy to test it.


Capstone Week 1 Tasks

[X]  Generate a teamwork contract to facilitate effective collaboration
[X]  Setup a remote repository, and use it to assign and track work
[ ]  Understand your partner’s question and how the data project can answer it;

[ ] Spatial Temporal Analysis: Clarify question to be answered

[X]  Understand your data (i.e., what are the rows and columns, what are the images, etc.);
[X]  Determine the data you will need to create for your model - draw a picture!;

[ ] Create visual for presentation?

[ ]  Come up with 1-2 modeling strategies that you will try as a first approach (think simple here);

[ ] Clarify approach for Spatial Temporal Analysis

[ ]  Plan your dashboard prototype - draw a picture!;
[ ]  Split your data into train and test sets reproducibly, and write these sets to separate files;

[ ] Revisit this for modelling team

[X]  Perform exploratory data analysis to get to know your data;
[ ]  Fit your first model (note - this will not be possible for all groups!)

Proposal Sections:

Executive Summary
Introduction
Data Science Techniques
Timeline

Upcoming Deadlines:

Proposal Presentation by Friday May 6 1:30pm
Proposal Draft by Tuesday, May 10 6pm
Proposal Final by Tuesday, May 13 6pm

Dashboard Ideas:

Add additional tab for information (case definitions)
To compare disease trend in different regions


Change key vault to track2

Change key vault to track2.
@jongio for notification.

@jongio - Can you help ping the corresponding person to review this PR?

@scottaddie, @AlexGhiondea, @antkmsft - Could you help review this PR?


[REP] Virtual Cluster

@jjyao
The two prerequisite tasks that need to be completed are:

Move the NodeLabelSchedulingStrategy to node_label.
Support dynamic Node Label.
Should we consider starting the design for these now?

Hi, thanks. I will reply to you soon when I'm back.


oauthclient: Protect against exceptions when handling oauth2 responses

While testing a new oauth2 server I got an exception from the oauthclient module. The server I'm testing  fails to return the authorization token and instead returns a 500 HTTP error with XML content but without setting the content-type. The flask oauthlib assumes it's json and tries to read it, thus triggering an exception. I think it doesn't make sense to change the flask library, but Invenio should protect against this case.
TL;DR: display a nice error message when this line
https://github.com/inveniosoftware/invenio/blob/master/invenio/modules/oauthclient/views/client.py#L182
throws an exception

Hi,
Do you have a stack trace I can take a quick look? I agree oauthclient should protect against bad handlers in the line you have mentioned. I'd however like to understand where in oauthlib the problem is.

Yes, here it is:
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/vagrant/.virtualenvs/b2share/src/b2share/invenio/ext/legacy/__init__.py", line 128, in __call__
    response = self.app.handle_exception(e)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_restful/__init__.py", line 265, in error_router
    return original_handler(e)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/vagrant/.virtualenvs/b2share/src/b2share/invenio/ext/legacy/__init__.py", line 124, in __call__
    response = self.app.full_dispatch_request()
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_restful/__init__.py", line 265, in error_router
    return original_handler(e)
  File "/home/vagrant/.virtualenvs/b2share/src/b2share/invenio/base/wrappers.py", line 125, in handle_user_exception
    return super(Flask, self).handle_user_exception(e)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/vagrant/.virtualenvs/b2share/src/b2share/invenio/modules/oauthclient/views/client.py", line 185, in authorized
    return handlers[remote_app]()
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_oauthlib/client.py", line 646, in decorated
    data = self.handle_response()
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_oauthlib/client.py", line 631, in handle_response
    data = self.handle_oauth2_response()
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_oauthlib/client.py", line 610, in handle_oauth2_response
    data = parse_response(resp, content, content_type=self.content_type)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask_oauthlib/client.py", line 120, in parse_response
    return json.loads(content)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/flask/json.py", line 149, in loads
    return _json.loads(s, **kwargs)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/simplejson/__init__.py", line 522, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/vagrant/.virtualenvs/b2share/lib/python2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

(a) register generic error handler for OAuth Client urls using @blueprint.errorhandler(Exception) (after https://github.com/inveniosoftware/invenio/blob/master/invenio/modules/oauthclient/views/client.py#L38)
(b) for JSONDecodeError we should probably abort with 400

Would go for (b)

What about returning 502?
See http://tools.ietf.org/html/rfc7231#section-6.6.3:

6.6.3.  502 Bad Gateway
The 502 (Bad Gateway) status code indicates that the server, while
acting as a gateway or proxy, received an invalid response from an
inbound server it accessed while attempting to fulfill the request.

OAuthClient is acting as a gateway to authorize_url that returns wrong response.
WDYT @emanueldima @lnielsen

I agree with 502, makes sense to me. Will the error have a html payload, with a nice error message to the user?

Invenio doesn't have nice 502 error page by default. Maybe it's time to create one ...

I would use 400 (bad request) or alternatively 415 (unsupported media type) instead.
5xx errors are server errors, where as 4xx errors are client errors. In this case, it's a client side error since Content-Type is not set in the request, and thus the request body is assumed to be application/json. The client should have set Content-Type to application/xml in which case the request body would be parsed correctly.
415 would be best suited if we require Content-Type to be set and thus don't have a default value (but this might break existing integrations). So probably a 400 with a proper error message is the best.

Actually, just talked to @jirikuncar who pointed out the error is when the server tries to exchange the one time code for an access token.
According to the traceback here:
https://github.com/lepture/flask-oauthlib/blob/v0.6.0/flask_oauthlib/client.py#L610
Actually, I think this is a configuration mistake that can be solved by setting content_type in the unit's remote app. See https://github.com/lepture/flask-oauthlib/blob/v0.6.0/flask_oauthlib/client.py#L207
Alternatively unity server should return a proper content-type.
In any case the current code would be correct in returning a 500 error.

I.e. here https://github.com/EUDAT-B2SHARE/b2share/blob/master/invenio/modules/oauthclient/contrib/unity.py#L62 I think you should add:
app_key="UNITY_APP_CREDENTIALS",
content_type="application/xml"

The Unity server does not set the content type when returning an error with xml payload, and that's bad. But all the normal communication is json.


ARM: Implement CMPALU Instruction

Straightforward implementation of the CMP instruction. Based on the previous implementation of TEQ. More test should be written.
PS: This is the second PR on this topic, I made a mistake and closed the previous PR https://github.com/RIP-Comm/clementine/pull/68
PPS: Yes, this is the third PR on this topic. I made the same mistake twice...

Resolved conflicts with #76.

I cleaned the history and I did rebase with main. Be careful next time with doing too many commits: you can squash them togheter to mantain the history cleaner. @fedebuonco
After checks, I'll merge it in the main.


true coverage at launch --change

Clear and concise description of the problem
when I launch vitest coverage --change=develop . I want there to be a true coverage of those files that are shown in the coverage. Now the dependency files that have not been changed do not correctly show the coverage. It is worth 0 in functions. If you run the full coverage, then there is not 0.

Suggested solution
I can't say exactly how to do it, but it may be worth running tests for those files that are included in the coverage statistics so that the coverage is true.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

To fix this we'll need to make major changes to --changed. https://github.com/vitest-dev/vitest/issues/5237#issuecomment-1962300345
That would change what files are run with --changed flag, depending whether --coverage flag was also run. I don't think any other test runner has implemented this. Jest works similar as Vitest does now.

The team decided that this is not something that we will be implementing. By implementing this users would very likely run into cases where most tests of the code base end up running due to file dependencies. For example if your new test is testing file that imports a common utility package, this change would make Vitest run all the test files that depend on that utility package in any way. It eventually ends up matching test run without --changed flag.
This is also something that Jest does not implement so alignment is OK.

can then show coverage only for changed files? only for those for which tests are run?

Using --changed will run only the files that are related to the changed files. Using --coverage with --changed will show coverage that those files covered. In https://github.com/vitest-dev/vitest/issues/5237 we added support for coverage.all to limit it's scope only to the related files.
If the test files that --changed flag picks are covering unchanged files, those will show up in the report as well. You can use --coverage.include and/or --coverage.exclude to limit those.

@AriPerkkio how do I automatically generate a list --coverage.include=file_name from the modified files of the feature and develop branch ?

That sounds like something git could provide for you.


Use popup signup app, redirect back to app after signup

fixes #32

Coverage decreased (-2.2%) to 96.045% when pulling 63ddd68ff84b89d6c359b1b85152227fb42510b0 on use-signup-popup-ui into b438b55b5d5fa531cb6d6af99ef7fbffb30d8ef0 on master.


Prevent parsing of excluded modules

Description
Prevent parsing of excluded modules. For example, these modules may have invalid syntax or incomplete configuration, causing terragrunt to fail when parsed.
Related Issues
Fixes #2167

Thanks for the review @MoonMoon1919!

Resolved in v0.50.1 release.


added brain mask

Use variance of each voxel across time as threshold to get the good voxels. Mask are True/False arrays that filters voxels. "mask3087" meaning 3087 voxels are left at this threshold. Same rule applies to "mask34589" and "mask6810".

I will use this cleaned data for the scenes analysis


Moved postForFieldType call, added $entry param

This PR accomplishes two things...

The postForFeedMeFieldType hook is called slightly later. This ensures that a valid EntryModel has been established before the hook gets called.

The EntryModel is now passed into the hook as a second parameter. This allows the hook to read existing data from the Entry.

I totally forgot about this! Thanks @lindseydiloreto

Lol, no worries. Thanks!


ng serve not working behind reverse proxy basehref/servepath

Command
serve
Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
before vite
Description
I provide remote training for Angular using VSCode in the browser.
It is no longer possible to use the vscode port forwarding to access the ng dev server as basehref and servepath combinations to not yield the correct result when @angular node resources are to be loaded. It works for all other assets/files in the project.
Minimal Reproduction
Use code-server oder vscode server access through web browser.
ng new
ng serve --host <IP_ADDRESS> --disable-host-check
Open the forwarded port, URL becomes f.e.
https://student01.remote-training.de/proxy/4200/
Exception or Error
No response
Your Environment
Angular CLI: 17.3.6
Node: 20.12.2
Package Manager: npm 10.5.0
OS: linux x64

Angular: 17.3.7
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.6
@angular-devkit/build-angular   17.3.6
@angular-devkit/core            17.3.6
@angular-devkit/schematics      17.3.6
@angular/cli                    17.3.6
@schematics/angular             17.3.6
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.5

Anything else relevant?
I tried various configuration combinations using prebundle, basehref and servepath only to experience worse problems like beeing redirected to https://student01.remote-training.de/proxy/4200/proxy/4200/

What is the outcome of the investigation? Is there something I can help with?

I've seen similar problem (#29139). Vite seems to be adding your base href before all hrefs starting with / (like /some-link), but the relative hrefs (like some-link will remain untouched and work as expected. I fixed the issue by removing all the / prefix in my index.html. My other templates are using router-link and they just works.

Oh I think our problems are different. The case here is: we don't want to change the location served by the dev server but want to change the link in the pages. This seems to be what public-host config is doing, but that's only available for the old browser builder.


Update to markdown-it 14.x

This resolves a vulnerability: https://security.snyk.io/vuln/SNYK-JS-MARKDOWNIT-6483324
The changelog seems like it won't impact

thanks @AaronMoat, sorry I overlooked this!


Catch SSL/Socket Timeout

This error has been happening more frequently (and sometimes I can replicate it, but not consistently) - I'm not quite sure what the cause is (it could be app engine related) but if we can't diagnose it we should at least catch the error and print out a friendly message.

---------------------------------------------------------------------
Test summary
    0 test cases passed before encountering first failed test case

Submit... 100% completee
Backup successful for user<EMAIL_ADDRESS>URL: https://ok-server.appspot.com/#/5631829415559168/submission/6227599011348480

Checking for software updates...
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "ok/__main__.py", line 9, in <module>
  File "ok/client/cli/ok.py", line 140, in main
  File "ok/client/utils/software_update.py", line 24, in check_version
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 162, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 465, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 483, in _open
    '_open', req)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 443, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 1283, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 1243, in do_open
    r = h.getresponse()
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 1174, in getresponse
    response.begin()
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 282, in begin
    version, status, reason = self._read_status()
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/http/client.py", line 243, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/socket.py", line 571, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 924, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 786, in read
    return self._sslobj.read(len, buffer)
  File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 570, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

Could it be Python 3.5 related?

Yup - that seems like the cause and would explain why most students in 61A aren't seeing this. There should be a fix using the socket library and a settimeout (or default timeout). I can tackle this in a day or two - but it's up for grabs if anyone wants to solve it.

It's been reported with python3.4 as well. I suspect it's because of a 1 second timeout + the fact that ok-server has gotten a bit slower due a variety of reasons (smaller memcache)


Check and switch if other blockchain explorer sites supports "/token/" like Etherscan does for mainnet

In RPCServer.etherscanTokenDetailsWebPageURL, we handle .main differently because they support "/token/" in addition to "/" or "/". The "/token" page is better than "/". Check if other services supports it
Example, compare https://cn.etherscan.com/token/0xdac17f958d2ee523a2206206994597c13d831ec7 and https://cn.etherscan.com/address/0xdac17f958d2ee523a2206206994597c13d831ec7
This URL is formed and used when the user tap on the token icon in the screen showing a single token

for now what i found it that url we generating for

(That particular address is a EOA/wallet, but that's besides the point though).
How did you get the app to navigate to that URL?

The relevant functions are etherscanContractDetailsWebPageURL() and etherscanTokenDetailsWebPageURL()

i made something like this ;)

Oh! 😭  Good catch. Fixed with #2871

Fixed with #2871


Update overrides.json

These 3 libraries seem to support Python 3:

https://pypi.python.org/pypi/diamond - The download file is called diamond-4.0.451-py2.py3-none-any.whl
https://pypi.python.org/pypi/testresources - The download file is called testresources-2.0.0-py2.py3-none-any.whl, and the depencies are listed as "Python 2.6+ (or 3.3+)".
https://pypi.python.org/pypi/filechunkio - The pypi page says "Python 2.6+ is required" which would seem to include Python 3. And there's a checkin here that appears to have added support for Python 3: https://bitbucket.org/fabian/filechunkio/pull-requests/1/python-3-support/diff#comment-None

I accepted the PR, but it was missing diamond, so if you want to add that then please submit another PR.

Thanks. But it said: "continuous-integration/travis-ci/pr The Travis CI build failed"
I was attempting to fix it by removing 1 package at a time, but I could never get it to pass.

Don't worry about the failing tests. It's from PyPI timing out.


Create alpha version for track2 management packages

Alpha version is not created for management packages but we need to publish alpha versions for track2 management packages.

cc @qiaozha
@praveenkuttappan Is there anyone in particular I can nudge to get this PR reviewed?

I will get this merged today to unblock track2 mgmt alpha releases.


Add plugins to peer deps

There are 3 plugins in package.json:

@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint-plugin-vue

Shouldn't we add them to peer dependencies? Because I still need to install all of them, which is not stated in documentation.
If we add them to peer deps, users will be able to only install @nuxt/eslint-config.

I am not sure what do you mean - that are already in "dependencies" which should work.
Otherwise please provide a minimal reproduction, thanks.

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

I think it was fixed somewhere down the line. Issue should be closed now, thanks!


pass TRUE to load individual reportbacks and reportback-items

What does this PR do?
Passes TRUE when retrieving individual reportbacks or reportback-items to always load full user data.
How should this be manually tested?
Both GET http://dev.dosomething.org:8888/api/v1/reportback-items/:id.json and GET https://www.dosomething.org/api/v1/reportbacks/:id.json endpoints will return full user data.
What are the relevant tickets?
Fixes #5707

:+1:


assert hasattr(self.agent, 'init') AssertionError (elegantrl-0.3.3 )

Describe the bug
Run into an assertionError in Elegantrl-0.3.3-py3.9.egg-->config.py
assert hasattr(self.agent, 'init')
AssertionError
Error message
File "/home/FinRL/FinRL-Library/finrl/agents/elegantrl/models.py", line 87, in train_model
    train_and_evaluate(model)
  File "/home/FinRL/FinRL-Library/venv/lib/python3.9/site-packages/elegantrl-0.3.3-py3.9.egg/elegantrl/train/run.py", line 15, in train_and_evaluate
    args.init_before_training()  # necessary!
  File "/home/FinRL/FinRL-Library/venv/lib/python3.9/site-packages/elegantrl-0.3.3-py3.9.egg/elegantrl/train/config.py", line 191, in init_before_training
    assert hasattr(self.agent, 'init')
AssertionError

I suppose this due to update in elegantrl-0.3.3.

The implementation of the initialization doesn't seem to finished yet for elegantrl.
There are multiple issues still.

There is further selection layer needed for concrete implementation of the agents.
MODELS = {"ddpg": AgentDDPG.AgentDDPG(), "td3": AgentTD3.AgentTD3(), "sac": AgentSAC.AgentSAC(), "ppo": AgentPPO.AgentPPO()} in finrl.agents.elegantrl..models.py -temporary fix
Argument class has no argument agent_class, it has to be changed to agent and will only accept an object with members init, explore_env, ...
The gpu_id is not initialized properly


Training on Custom Dataset for Named entity Recognization

Q1. How Can I train this model using my own dataset? (step-by-step will be helpful)
Q2. What will be the annotations formate?

Hi,
We currently support only CoNLL 2003 dataset. You may need to write a dataset reader to use the other datasets.
The format of the CoNLL 2003 dataset should be IOB1.


Examples for using this repo to download LBRY content?

I would like to write a client program that, given a LBRY URI (e.g. lbry://@irmf#a/irmf-logo-model-1.irmf#4),
the client downloads the data (provided that either the user has already paid for the content or the content is free).
Eventually, it would be nice to allow the user to optionally send credits if the content is gated and they have not already purchased it.  But for starting out, I would just like to download the content that is either free or previously-paid-for.
I'm not finding any examples, and searching through the subdirectories, it is not obvious to me how to get started.
If I were to take a random stab-in-the-dark, for example, I might try doing the following:

lbrycrd.New(lbrycrdURL, chainParams) (What should lbrycrdURL and chainParams be?)

but then I get stuck, as none of the methods appear to be what I want.
Alternatively, maybe I need to go this route:

blobex.NewBlobExchangeClient(cc) (How should I get cc correctly?)
blobex.Download(ctx) (How do I specify the URI for the content?)

Can you please provide some guidance on the steps that need to be taken?
Thank you!

@gmlewis thanks for your interest. Our Go codebase is a bit scattered right now because we've been focused on our primary Python implementation. We have this repo, and https://github.com/lbryio/reflector.go. What you're looking for is spread across both.
Here are some pointers to get you started on downloading something that's free. I'll omit the payment details for now.

the first step is to "resolve" a URL to get the sd hash. here's an example of how to do that. You'll need to interact with a wallet server to do this. We run a bunch for public use. Here's a list of some you can use.
after you get the sd hash, you have to look it up in the DHT to find peers that have that content. This is done using the DHT. Our Go implementation of the DHT lags behind the Python implementation, so it may not work quite right. That said, here's how to start up a dht node. Once its started, you can call dht.Get(sdHash) to get a list of peers for that hash.
once you know the SD hash and the peer you wish to download from, you can look at this code to see how to download the stream. That code assumes that a single peer has all the data. If it doesn't, you you can do the DHT lookup and the blob download for each individual blob.

I hope this is enough to get you started. I'm planning to unify our Go code into a single repo in the near future and provide clearer examples of the steps. If you want more nitty-gritty details, check out the LBRY spec.
What's your LBRY address?

Awesome!  Thank you, @lyoshenka ... this is extremely helpful!
My LBRY address is: bQWkPubxVt9JdPuR2iZPcJrDX3BJcHncwG

Welcome @gmlewis! Would love to know what you're working on, when you're ready :)

Thank you, @kauffj!
My latest obsession is: http://irmf.io and specifically, I would like to deliver IRMF models via the LBRY protocol from within two of my programs so that the digital files are treated as first-class citizens and gated appropriately based on purchase history:

irmf-editor
irmf-slicer

Both programs are written in Go, and the first one compiles to WebAssembly, which has been lots of fun to write. :smile:

Oh, and on LBRY, I now have two channels: @irmf and @gmlewis.
The first one has a free IRMF test model, but I haven't published anything from the second channel yet. :smile:

Since irmf-editor is run in the web browser, starting up a dht node server is a non-starter, but if I can use a public wallet server as a launch-point without running a dht node, and still download the content, then I think this just might work!

@gmlewis how did it go?

@lyoshenka - I actually hit a roadblock that I've been trying to solve.
As far as I can tell, github.com/spf13/viper is not WASM-friendly, and it is unfortunately a dependency of github.com/lbryio/reflector.go:
~/go/src/github.com/lbryio/reflector.go (master) $ go mod why github.com/spf13/viper
# github.com/spf13/viper
github.com/lbryio/reflector.go/wallet
github.com/lbryio/chainquery/lbrycrd
github.com/lbryio/chainquery/util
github.com/spf13/viper

The error I'm getting is:
~/go/src/github.com/gmlewis/irmf-editor (master) $ PATH=$(go env GOROOT)/misc/wasm:${PATH} GOARCH=wasm GOOS=js go test
# github.com/spf13/viper
../../../../pkg/mod/github.com/spf13/viper@v1.0.2/viper.go:264:19: undefined: fsnotify.NewWatcher
FAIL	github.com/gmlewis/irmf-editor [build failed]

Which appears to be this issue: https://github.com/desmos-labs/desmos/issues/2
So it looks like I'm currently stuck.  :disappointed:

github.com/spf13/viper

Hey @gmlewis any progress on spf13/viper issue? I am facing the same.
Did you managed somehow to bypass it?

Hey @gmlewis any progress on spf13/viper issue? I am facing the same.
Did you managed somehow to bypass it?

No, @dpanic , unfortunately I'm still stuck. Please report back here if you find a solution or workaround! Thanks.

@gmlewis you could fork the repo and remove the dependency. you may have to change the way we load configs in 1 or 2 places, but feel free to hack around any roadblocks.
if that works for you, I can look into removing it from the main repo as part of a refactor we're planning. let me know how it goes

I made some good progress by forking:

github.com/lbryio/reflector.go (to github.com/irmf/reflector.go)
github.com/lbryio/chainquery (to github.com/irmf/chainquery)

and then removing the dependency upon github.com/spf13/viper by modifying a single file...
but then was surprised by an unexpected error message:
../../../../pkg/mod/github.com/lbryio/lbry.go/v2@v2.6.1-0.20200901175808-73382bb02128/lbrycrd/client.go:120:3:
cannot use chain (type chaincfg.Params) as type string in field value

I must have some version mismatches now that will take some more investigation.

try putting this in your go.mod, above the require line
replace github.com/btcsuite/btcd => github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19

@tiger5226 may know more about this error too

@lyoshenka - Sweet!  I now have a successful build.  Thank you!
I have to work now, but after work I'll see if I can download the (free) content from the lbry URI from my Go-based WebAssembly client.
The next step will be to figure out how to download paid content.
Have you guys implemented any kind of OpenID/OAuth2 "Log in with lbry.tv" or "Log in with Odysee.com" so that our client programs never have to deal with usernames and passwords even for paid content?

I just hit the next snag:
node.Connect: dial tcp: Protocol not available

Apparently, Go in WebAssembly doesn't support the tcp procotol:
https://stackoverflow.com/questions/55880920/dial-tcp-protocol-not-available-go-webassembly-test

This is true. Anything to be used in a browser is limited by browser APIs. We have the https://github.com/lbryio/lbrytv-player repository. This exposes a web server to download lbry content from a webpage which would be WASM compatible for you since its over http.
Since this is a native application that leverage WASM, it might be interesting to try an alternative route. I am not sure of your web development skills, but one thing I have done in the past with Go is packaging an app into a single binary that contains 2 pieces. A website, so that you can build a UI with a web language. It launches the webpage on startup. Then as part of the binary a web server/app is launched which is what the web page opens to. So that contains the APIs for the webpage to use locally.
It leverages some great Go Libs to make it all come together for a fast POC. Namely packr2. The interesting part is that if you had something similar you could use all the native go codebases without change and be able to handle your frontend and backend in the same app, while also leveraging a more native web experience like angular.
Just an idea to investigate.


json_encode_dict -> json (Python 3.6)

Ensure Python 3.6 compatibility.
Tested on FreeBSD 11.2 with salt-ssh to Ubuntu 18.04.

@aboe76 Thanks & thanks for the review!


How to choose my own gcc in Ubuntu instead of choosing the system default gcc? (for cross compiling to openwrt))

I want to use the gcc in openwrt toolchain to compile  instead of using the system default gcc when using nuitka...

Cross compilation is unsupported. You can provide CC variable to pick any C compiler that is supported.

by the way, when I use nuitka in my embedded device (openwrt19) with python2.7, there are error info:
root@OpenWrt:/mnt/sd01/pycharm_project1# python -m nuitka main_th.py
Nuitka:WARNING:Not recursing to 'Crypto' (/usr/lib/python2.7/site-packages/Crypto), please specify --nofollow-imports (do not warn), --follow-imports (recurse to all), --nofollow-import-to=Crypto (ignore it), --follow-import-to=Crypto (recurse to it) to change.
/usr/lib/libpython2.7.so: undefined reference to `deflateEnd'
/usr/lib/libpython2.7.so: undefined reference to `inflate'
/usr/lib/libpython2.7.so: undefined reference to `inflateInit2_'
/usr/lib/libpython2.7.so: undefined reference to `deflateCopy'
/usr/lib/libpython2.7.so: undefined reference to `deflateInit_'
/usr/lib/libpython2.7.so: undefined reference to `deflate'
/usr/lib/libpython2.7.so: undefined reference to `adler32'
/usr/lib/libpython2.7.so: undefined reference to `inflateEnd'
/usr/lib/libpython2.7.so: undefined reference to `crc32'
/usr/lib/libpython2.7.so: undefined reference to `deflateInit2_'
/usr/lib/libpython2.7.so: undefined reference to<EMAIL_ADDRESS>collect2: error: ld returned 1 exit status
scons: *** [/mnt/sd01/pycharm_project1/main_th.bin] Error 1

and I find a page similar with this issue: https://bugs.python.org/issue33347
but still don't know how to solve this problem...

Make other issues, new issues @hitfzyangdianshi


Implement option to route all traffic through Tor

Good evening @micahflee, I am currently having a hard time configuring toriptables2 by @ruped24 to run on my openSUSE Tumbleweed. Luckily, @ruped24 is providing awesome support for his script in my Issue https://github.com/ruped24/toriptables2/issues/1. I have seen that several similar projects like toriptables2 exist on GitHub, but the ultimate solution would be if your torbrowser-launcher would just feature another option to routre all traffic through Tor. Please consider adding it (maybe even with the funky help of  @ruped24), you guys would a great job against mass surveillance and I am sure many users would love your work!

Thank you! And interesting idea, though I don't think that torbrowser-launcher is the best project to include this feature in.
If you want all of your traffic to go through Tor, it seems like it makes the most sense to use a system Tor instead of Tor Browser -- or, better yet, use virtualization such as Whonix. If you run your software in a VM that basically has a Tor router as its network gateway, then you can remain anonymous even if a client (such as Tor Browser) gets hacked.


Broken on Internet Explorer

The filter button works on Chrome and Firefox, but does not show on Internet Explorer or Internet Edge.
Is it a button CSS/JS issue or a leaflet issue?

Yes. This is a js error. I am using ES6 string template literal in my code. But, "internet explorer" and "edge" was not support string template literals of ES6. You can see details from fallowing link: https://developer.mozilla.org/enUS/docs/Web/JavaScript/Reference/Template_literals
I am labeled this issue to bug and i will fix it

Thank you for your quick reply. This filter is awesome and I hope this is fixed soon :)

ok i fixed the issue. you can check the demo page on ie or edge. please refresh the page because browsers can be cached older version of the library

Thank you very much :)


add auto goimports into Makefile

Signed-off-by: Yang Keao<EMAIL_ADDRESS>What problem does this PR solve?
Add goimports command into Makefile.
What is changed and how does it work?
Diff check has been added to CI to ensure every PR has been formatted and yaml has been regenerated.
Tests

No code

/tests

We should also add this into the CI test.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@77e897e). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #182   +/-   ##
=========================================
  Coverage          ?   39.47%
=========================================
  Files             ?       17
  Lines             ?      608
  Branches          ?        0
=========================================
  Hits              ?      240
  Misses            ?      337
  Partials          ?       31

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 77e897e...0dbe18a. Read the comment docs.

/test

/test


06-design-report-in-power-bi-desktop.md Steps out of order

Priority
Confusing
Lab/Demo Number/Name
06-design-report-in-power-bi-desktop.md
Exercise 2, Task 2 Steps 1 and 2
Describe the bug
The first 2 steps are in the wrong order.
It states:

In the Microsoft Edge browser window, in the Power BI service, in the Navigation pane (located at the left, and it could be collapsed), expand My Workspace.

Open a Microsoft Edge browser, then sign-in at https://app.powerbi.com/.

It should say:

Open a Microsoft Edge browser, then sign-in at https://app.powerbi.com/.

In the Microsoft Edge browser window, in the Power BI service, in the Navigation pane (located at the left, and it could be collapsed), expand My Workspace.

Screenshots
Add screenshots to help explain your problem.

To Reproduce
Expected behavior/Suggested Change
Change step 1 and 2 around
Additional context
Add any other context about the problem here.
Note: To share feedback for the slides, please use the MCT Courseware Forum.

Released update Jan 20.


Add Question: #time-boxing

Reference Issue: #46

@henadzkavaliou Should this have some more "meat"?

For me it's somewhat similar to this one: https://huserben.github.io/scrum-kata/questions/coaching_crossfunctionality/
So, if we approved that, we should probably bring in this one too :). I agree that it looks "poor", but I still find it quite useful. Do you have any suggestions?

Not really, was just curious. But you are right, I think it's ok.


Add a Text Formatter for Span

For text parsers, it would be nice to have an error formatter that takes a set of newline delimiters and will walk an input source to generate a column and line span for an element.

Additionally I would like to include a formatter that captures a result. before calling this done.


feat: add event handling for shop authorization

example use-case:
configureAppServer(app, {
  appName: "Test",
  appSecret: "Test",
  shopRepository: new BunSqliteRepository('shop.db'),
  setup: (app) => {
    app.hooks.on("onAuthorize", async (ctx) => {
      const httpClient = new HttpClient(ctx.shop);

      try {
        await httpClient.get('_action/version')
      } catch (e) {
        if (e instanceof ApiClientAuthenticationFailed && e.response.statusCode === 401) {
          return;
        }
      }

      ctx.rejectRegistration('Your Webserver is not reachable from the internet');
    });
  },
});

example use-case:
configureAppServer(app, {
  appName: "Test",
  appSecret: "Test",
  shopRepository: new BunSqliteRepository('shop.db'),
  setup: (app) => {
    app.hooks.on("onAuthorize", async (ctx) => {
      const httpClient = new HttpClient(ctx.shop);

      try {
        await httpClient.get('_action/version')
      } catch (e) {
        if (e instanceof ApiClientAuthenticationFailed && e.response.statusCode === 401) {
          return;
        }
      }

      ctx.rejectRegistration('Your Webserver is not reachable from the internet');
    });
  },
});

Just to keep track of it: The correct endpoint seems to be /_info/version instead of /_action/version (https://shopware.stoplight.io/docs/admin-api/cfb3940f3c2d4-get-the-shopware-version)


Should RGB LED values be 0-100 like PWM or 0-255?

The RGBLED class I implemented yesterday comprises of three values, for red, green and blue. The way PWM works is that you set the duty cycle from 0 to 100, from off to dim to bright. If the interface allowed the user to pass in values on a scale from 0 to 255, this would be more compatible with usual colour codes like in CSS and in the Sense HAT library.

Ok I think I'll leave the PWM class an a 0-100 scale and make the RGBLED class use 0-255 and convert accordingly.

Did you get the comments I made on IRC the other day about a 0-1 scale? Wasn't sure as your connection dropped halfway through. If you didn't like the idea, no worries.

I'm not sure. They both make sense but my gut says 0 - 100 is a simpler interface.

Hmm, my main argument in favour of 0-1 is that it doesn't falsely imply a precision. 0-100 implies that 101 discrete steps are supported by PWM (I've no idea if that is or isn't the case, but the API implies it). Similarly for 0-255, 256 discrete steps are implied. Meanwhile 0-1 gives the impression of "some analog value between nothing and 1" (which again probably isn't true, but it's also non-specific).
On an unrelated note: I wouldn't worry about compatibility with the Sense HAT library because under the covers that doesn't support 0-255 anyway (it's an RGB565 framebuffer so it's 0-31 steps for red and blue, and 0-63 for green - and even then I think there's still some bit fiddling going on in the hardware below that).

Actually now I think about it, 0 being off and 1 being on, 0-1 makes sense. Although that's not how we provide the interface. Let's go with it.
However, I think in the case of RGB LED, it's much more common to provide values up to 255.


Question: correct prompts template for llama3-instruct

Hi,
What is correct prompts template for llama3-instruct, that I can choose from the existing to be able to work with model ?
Thanks

It works OOTB in newer h2ogpt.  Uses chat template with end of turn stopping added.

@pseudotensor Thanks, can you please elaborate more, as I'm not fully understand :) Sorry

e.g. this is sufficient:
python generate.py --base_model=meta-llama/Meta-Llama-3-8B-Instruct

It uses the chat template that is in the HF model repo.  This doesn't have a system prompt, so we add that as a pre-conversation.

@pseudotensor Thanks, but if I'm using GGUF version, this not happens.

llama-3 prompting is tricky and so to ensure it is done right, please use latest h2oGPT as of the recent merge and run:
python generate.py --base_model=llama --model_path_llama=https://huggingface.co/QuantFactory/Meta-Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct.Q5_K_M.gguf?download=true --tokenizer_base_model=meta-llama/Meta-Llama-3-8B-Instruct --max_seq_len=8192

@pseudotensor Thanks, using the latest code and example you provided, it's working fine, can you just provide a bit more details on from where model prompt template is taken in that case and why need to provide  --tokenizer_base_model ? Also if using full off-line mode will the --tokenizer_base_model work ?

Yes, once off line then do:
To use offline, then do:
python generate.py --base_model=llama --model_path_llama=Meta-Llama-3-8B-Instruct.Q5_K_M.gguf --tokenizer_base_model=meta-llama/Meta-Llama-3-8B-Instruct --max_seq_len=8192 --gradio_offline_level=2 --share=False --add_disk_models_to_ui=False

which assumes the model was downloaded to location set by llamacpp_path (default is llamacpp_path folder).  This works for offline if previously used the earlier command that got the tokenizer.

The model prompt template is taken from
https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/blob/main/tokenizer_config.json#L2053
if using that as the tokenizer_base_model

@pseudotensor Thanks a lot !!

It keeps repeating my question when I run meta-llama/Meta-Llama-3-8B-Instruct... What am I doing wrong? (Can post my params, but I tried the ones from here, everything else is same with llama2 which works fine)

Your command looks fine, although you don't need to pass that --tokenizer_base_model unless you are using GGUF models.
E.g. when I run your command, I get:

Should the prompt type be unknown? I think I'm having issues with that..

I'm on a fresh installation on newest repo version and i get this error when running
python generate.py --base_model=meta-llama/Meta-Llama-3-8B-Instruct --hf_embedding_model=intfloat/multilingual-e5-large --auth=None
Error Prompt was not set: ['Traceback (most recent call last):\n File "/home/bw/h2ogpt/src/prompter.py", line 2405, in apply_chat_template\n prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)\n File "/home/bw/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1817, in apply_chat_template\n compiled_template = self._compile_jinja_template(chat_template)\n File "/home/bw/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1894, in _compile_jinja_template\n raise ImportError(\nImportError: apply_chat_template requires jinja2>=3.1.0 to be installed. Your version is 3.0.3.\n', 'Traceback (most recent call last):\n File "/home/bw/h2ogpt/src/prompter.py", line 2405, in apply_chat_template\n prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)\n File "/home/bw/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1817, in apply_chat_template\n compiled_template = self._compile_jinja_template(chat_template)\n File "/home/bw/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1894, in _compile_jinja_template\n raise ImportError(\nImportError: apply_chat_template requires jinja2>=3.1.0 to be installed. Your version is 3.0.3.\n']

It's some transformers bug in their packaging.  But I noticed it and added a while back jinja2>=3.1.0 in requirements.txt, so should work fine.
When I check the latest 799 docker image built, I see no issue with jinja2.
bash-5.2$ python
Python 3.10.14 (main, May  1 2024, 21:48:03) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jinja2
>>> jinja2.__version__
'3.1.4'
>>>

Works. Ty


[SPARK-16646][SQL] LEAST and GREATEST doesn't accept numeric arguments with different data types

What changes were proposed in this pull request?
This PR makes LEAST and GREATEST accept other numeric types (Decimal). This worked fine in HiveContext in 1.6 because , for example, 1.5 was DoubleType in there.
So, this finds a tightest common type from both IntegerType and DoubleType as DoubleType, then it works okay.
But currently it seems 1.5 is being treated as DecimalType for now. So, It casts 1.5 as decimal(2, 1). So, it fails to find a tightest common type from both IntegerType and DecimalType(2, 1).
This PR introduces new function findTightestCommonTypeToDecimal dealing with decimals interacting with each other or with primitive types. This logic is borrowed from JSON schema inference.
How was this patch tested?
Unit tests in TypeCoercionSuite and DataFrameFunctionsSuite.

@liancheng and @davies Will this change be appropriate? Could you please take a look?

Test build #62652 has started for PR 14294 at commit 9730afb.

Test build #62652 has finished for PR 14294 at commit 9730afb.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62652/
Test FAILed.

Merged build finished. Test FAILed.

Test build #62653 has started for PR 14294 at commit abbcb4e.

Test build #62653 has finished for PR 14294 at commit abbcb4e.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62653/
Test FAILed.

retest this please

Test build #62657 has started for PR 14294 at commit abbcb4e.

Test build #62657 has finished for PR 14294 at commit abbcb4e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62657/
Test PASSed.

Merged build finished. Test PASSed.

Closing this. Please refer https://issues.apache.org/jira/browse/SPARK-16646


OpenSSL 1.1.0 updates with backward compatibility for OpenSSL 1.0.2 and 1.0.1

Commons Crypto Dev Team,
Please consider this submission for incorporation into the master.  I believe it meets the criteria that Marcelo specified via the mailing list, in that it supports both 1.1.0, 1.0.2 and 1.0.1 with one jar file.  See the relevant thread at the url:
http://mail-archives.apache.org/mod_mbox/commons-dev/201811.mbox/browser
I made every effort to keep changes minimally invasive and to keep the the underlying OpenSSL library version transparent to the Java developer.  The JNA package dynamically determines whether the underlying OpenSSL library is 1.0.2 or 1.1.0; the Java developer needn't provide versioning information in any config file.  The JNI libraries, however, must be compiled against the specific version of OpenSSL being used, but once that is done there is no change to the Java API or requirement to provide version information as a config parameter.
This branch has been tested with Oracle Java 8 by running "mvn clean test" against the following platforms and versions of OpenSSL:
Ubuntu 16.04 and OpenSSL 1.0.2n
Ubuntu 18.04 and OpenSSL 1.1.0i
Mac High Sierra and OpenSSL 1.1.0i
I look forward to your feedback.
Alex

Coverage decreased (-1.7%) to 72.042% when pulling dc52985d681234e8b65b8c53bc6f1c9220518e9a on aremily:openssl_version_1_1_0_support_branch into 9456415cd185b17782507006013556c306441a23 on apache:master.

Thanks for the feedback.  Let me think on it a bit more and I'll take it up
again once I've come up with an approach.  Perhaps ossdev07 would be
interested in collaborating, as it seems we're both trying to achive the
same objective.
On Wed, Jan 2, 2019 at 2:00 PM Marcelo Vanzin<EMAIL_ADDRESS>wrote:

@vanzin commented on this pull request.
Sorry, but your code has exactly the same problem as other attempts at
doing this.
Anytime you compile things conditionally, it means the JNI library only
works against a specific version of OpenSSL. We can't have that, unless you
also change the Java code to load different JNI libraries depending on the
OpenSSL version, and the libraries are created with a different name
depending on the version. And I don't see your code doing that.
(I also have a preference for a single JNI library, but if you do the
alternative I won't complain too much.)
I would also be good to add 1.1 to the test matrix; seems like the latest
Linux on Travis is 16.04, which still has 1.0.2; so maybe re-enabling
MacOS? See the .travis.yaml change in:
dc28a2b
https://github.com/apache/commons-crypto/commit/dc28a2b7be5cbe21403f29db99635f8887b45a61
In .gitignore
https://github.com/apache/commons-crypto/pull/92#discussion_r244810053:

@@ -1,37 +0,0 @@
-*~

Why delete this file?
In Makefile.common
https://github.com/apache/commons-crypto/pull/92#discussion_r244810433:

Mac-x86_64_STRIP     := strip -x
-Mac-x86_64_CFLAGS    := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden -I/usr/local/include -I/usr/local/opt/openssl/include
-Mac-x86_64_CXXFLAGS  := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden -I/usr/local/include -I/usr/local/opt/openssl/include
-Mac-x86_64_LINKFLAGS := -dynamiclib -L/usr/local/lib
+Mac-x86_64_CFLAGS    := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include -I/usr/local/opt/openssl/include
+Mac-x86_64_CXXFLAGS  := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.7 -fvisibility=hidden -I/usr/local/include -I/usr/local/opt/openssl/include
+Mac-x86_64_LINKFLAGS := -dynamiclib -L/usr/local/lib

nit: trailing whitespace
In pom.xml
https://github.com/apache/commons-crypto/pull/92#discussion_r244810551:

4.0.0

org.apache.commons
commons-parent
43

org.apache.commons
commons-crypto
1.1.0-SNAPSHOT
jar

Apache Commons Crypto

+


How can I train my own datasets?

Hello, I want to triain my own dataset instead pascal VOC dataset.
How can I change your code?

You can convert the annotations of your dataset to the format of Pascal VOC.
Then you should change the default class name and file path in the pascal_voc.py file.


PBCore output not escaping invalid XML chars

From https://www.facebook.com/MediaAreaNet/posts/1524124344329242

I climbed out of the Great Firewall just to report a bug on MediaInfoCLI ver0.7.97-win64. The CLI version outputs malformed PBCore2 XMLs by not escaping special characters in the text data between two XML tags. e.g.the &, <, and > in John & Jane Co.Ltd will result the Python's DOM parser to fail. The correct XML text should be "John & Jane<tm> Co.Ltd"

Is this similar to this issue: https://github.com/MediaArea/MediaInfoLib/issues/572

Fixed by d55cb6f135d41c72b2e6c1b0c5ffaf99663da95c


Support emacs with cursorless

[ ] abo-abo/avy#341
[ ] tree-sitter support in emacs (option 1)
[ ] #435
[ ] RPC is needed? Current method good enough? (persistent TCP socket  example  )
[ ] create issue to support in LSP-mode if necessary

Thanks for opening this one!  I'll keep you posted on progress re #435.  Re sending commands to emacs, you might touch base with @rntz; iirc he's got some kind of communication layer working

The other person you might touch base with re sending commands to emacs is @jcaw.  I believe they may have a fairly sophisticated emacs rpc setup that might be worth checking out if it's open source

Spoke to @ParetoOptimalDev about this on Slack, but I'll summarise here for posterity. I currently have two public projects for Emacs RPC:

Porthole allows you to send commands via transient HTTP requests. It's designed to be plug-and-play, and has a prewritten Python client. I used to use Porthole as my RPC layer. Porthole is on Melpa.
Voicemacs uses a persistent TCP connection with a custom protocol. It's the setup I currently use (it's faster and more flexible than transient HTTP connections) but it's not designed for end-users. I publish the code as a reference but I wouldn't recommend using it directly.

Another option is to send Elisp to a running Emacs server via the emacsclient command itself. I know a few people have taken that approach in the past.

I'm currently creating a kind of extended onscreen keyboard and need to decide on a protocol to communicate with talon.
Thanks pokey and team for contributing your protocol to the community :) ! For my use case I'm concerned about latency introduced by the file-based ipc. Furthermore I need a more bidirectional communication to send commands and set and get tags. From https://github.com/knausj85/knausj_talon/tree/main/apps/vscode/command_client I'm inferring that only talon initiates communication in cursorless.
The talon wiki "recommends" bash -c "echo 'actions.speech.toggle()' | ~/.talon/bin/repl" to send commands to talon.
https://github.com/jcaw/talon_config/blob/master/emacs/utils/voicemacs.py seems like a fitting base for my use case. It provides bidirectional and also threaded communication (less latency in my experience). Any chance pokey that you could make use of it for cursorless? Or do you think it's not worth trying to mostly unify the RPC/IPC protocol yet?

@rntz and @dyamito have an implementation going here :) https://github.com/cursorless-everywhere/emacs-cursorless

Thanks @phillco for showing me that!
@pokey: No, it's based on suspicion 🙈 If it's relevant enough I can try to measure it lateron 👍 My criteria would be around 10ms, but I would call anything >1ms slow.
Actually I wrongly assumed the current vscode-side server was based on file watching. Instead it is based on key listening from vscode. The linked talon-side code in the PR is based on file watching though. After some code digging I think now that cursorless' middleterm plan is already to use unix sockets (sidecar version) for the requests and just send the payload via files.

Back to unification: I compare following protocol implementations:
voicemacs talon client
voicemacs emacs server
cursorless emacs client
cursorless talon client
cursorless vscode server delegation
cursorless vscode server next
cursorless talon server
cursorless jetbrains server
VisualStudio VisualStudio server delegation
VisualStudio talon client
The current VisualStudio and vscode server+client use the same data exchange, ie. trigger via key, payload via json-rpc in files with a specified path. voicemacs seems to use json-rpc and a custom json format via tcp socket at a specified port. The sidecar and jetbrains versions use yet another protocol. So I want to find out whether these use cases can kinda be integrated into talon's current command server and command client. As a result it shall fit all above mentioned usecases, my usecase, and hopefully that of more future users than the current one.
Implementation-wise the protocol would be independent from talon. I looked into several third party cross-platform, cross-language solutions (zeromq, yami4, dbus, json-rpc) but none of them seemed 100% fitting. D-Bus would've been nice, it also resembles file based rpc in some way, but it has a non-trivial cross-platform distribution path.
Following is an example of how a bus-style result could look like when it's used:
pseudo code

bus = SessionBus("path/to/socket")
// alternatively with file watching
bus = SessionBus("path/to/command_dir")

// expose local object to bus
bus.register("vscode.command_server", local_object)

// consume remote object
try:
	proxy = bus.get("vscode.command_server")

	// request and response
	rpc_request = proxy.call("run_command", "user.snippet_insert", "loop")
	await rpc_request.result()

	// publish and subscribe
	local_object.tag_changed_signal.notify("sleep", true)

	proxy.subscribe("tag_changed_signal", local_callback)

catch Timeout: ...
catch Malformed: ...
catch NotAvailable: ...
catch NoServer: ...
catch Authentication: ...

// bus functions
print await bus.listObjects()
bus.subscribe("object_changed", local_callback)
print await proxy.inspect_interface()

Based on the voicemacs emacs server I'd expect the server implementation to be around 2k-3k lines of code while a pure client implementation could be around 500 loc. The user facing api is the same. At least one client must implement a server. Talon's client should be one of them. Connecting multiple applications to the same bus should be supported.

The POC server implementation was only ~700loc. You can check it out with https://github.com/adabru/eyeput/blob/main/session_bus_test.py .
As aegis mentioned on slack he will add rpc into 0.4 and both phillco and rntz implemented the file system version, I will no longer pursue a protocol update.

I'd really love to be able to use cursorless in my emacs config.  I'm curious - how has this been going?

We recently decided that the approach to integrating Cursorless into other IDEs need not be a one-size-fits-all approach. There are three possible approaches:

Bundling Cursorless into a language server, and letting the IDE implement a language client that talks to the server using LSP
Letting the IDE directly import the Cursorless engine as a Javascript NPM package
Bundle Cursorless into a wasm and let the IDE run the Cursorless wasm

In all cases, the Cursorless core maintainers will be responsible for the part of the Cursorless inside the “interface boundary”, ie the Cursorless LSP server, the Cursorless NPM package, or the Cursorless wasm. The IDE-specific code that interacts with the Cursorless interface will be maintained by someone who is responsible specifically for the integration with the given IDE.
Given that we are considering three possible ways to integrate, we have decided not to go with a waterfall approach where we invest in picking one approach, implementing it, then letting IDE-specific contributor build the client.
Instead, we’d like to work closely with a couple IDE client maintainers so that we can figure out which approach makes the most sense for their IDE. If you’re interested in being one of those IDE client maintainers, and have some capacity to hack in the next couple months; let us know, and then drop into a meet-up so we can get started!

Thank you for the update! That approach makes sense to me. I don't think my emacs configuration skills are really up to the task though I appreciate the offer.


Make filtering a first class citizen and remove provider specific filters

There is an ongoing discussion about the noise of log events here: #359 - I created this new issue because it discusses a specific solution - I hope that's ok! I will just provide an overview for people who haven't seen the other conversation.
I strongly believe that this ILogger will be used a lot in many libraries and applications in the future. For this reason, being able to filter logs based on their namespace will be a very important topic.
Right now, there is no clear recommendation. I read a few times that we should forward everything to another logger (Serilog, log4net, ...) and do the filtering there. However, there are also providers who already provide filtering mechanisms (e.g. ConsoleLogger).
I'm sure this library will get many more first class providers (Application Insights, DB, ...) in the future, which would remove the need to have a 3rd party logger like Serilog/log4net. However, each provider has to decide about whether and how to implement filtering. This will result in a chaos where each provider must be configured differently or doesn't support filtering at all.
During the discussion in the other thread, @lodejard created an example FilterLogger which acts as a LoggerFactory-wrapper and can be used like this:
/// How to wrap filtering provider around other providers factory
loggerFactory
    .WithFilter(new FilterLoggerSettings
    {
        { "Microsoft", LogLevel.Warning },
        { "System", LogLevel.Warning },
        { "SampleApp.Program", LogLevel.Debug },
    })
    .AddEventLog();

I really like this concept and would love to see something like this included as a core concept for v1 because it has many important advantages:

You could completely remove the provider specific filters from ConsoleLogger etc.
Writing new providers would be very easy too (which leads to fast adaption)
Every provider would support this feature automatically
There would be a consistent API
There's no cost to it if you don't want to use it.

I'm sure this would remove the need to have another logger (Serilog, ...) for most people! (since providers for most used targets will show up over time)
As an example, here's my real-life scenario:

Console: We usually don't output anything in Production but we have it running in no-op mode so that we can turn it on in case we need to do some on-server troubshooting (shouldn't happen though :-) ...). In Development, this is the most important provider and we constantly change the levels and namespaces based on our needs.
We log application startup errors in Production to EventLog in case our persistent store (e.g. Application Insights) isn't available (or didn't initialize correctly). This way we can still have some monitoring for startup crashes. We also have it enabled in Development to make sure it works. Right now we log "Critical" for everything and "Error" for Microsoft.AspNet.Hosting (because startup errors are not considered critical right now )
We use a persistent log store (e.g. Application Insights, Stackify, ...) for our production environment. We log almost everything for our namespace but only "Warning+" for Microsoft. We might have to change the level based on our needs. In Development, we only send a little bit to make sure it works.

I agree with this as well. It seems like ILoggerFactory should have the ability to set log levels for categories.

I think this could be as simple as adding 1 method to the ILoggerFactory interface:
void SetLogLevel(string categoryName, LogLevel minLogLevel);

+1 for making the provider filter example an actual package. It's also an interesting question if the filtering in the other providers could then rely on it for implementation.

Hmm... not that I thought about this some more. I think I am against adding filtering. I think these interfaces should just address the needs of applications or libs that want to add logging. So just the ILogger and ILoggerFactory is all that would be needed. Things like log level filtering can live in concrete implementations of these interfaces.

@ejsmith this would be in Microsoft.Extensions.Logging or in a completely separate package. Definitely not in the Abstractions package. This functionality would only be needed by actual host applications who configure providers - libraries wouldn't have to worry about this.

OK, sounds good. :-)

/cc @muratg

@lodejard What kind of design were you thinking here?  Just making this
cc @Eilon

Yes, that would be about the extent of it. The second question would be if there is overlap between this and the filtering built-in to some of our providers, would those providers use this as an implementation detail. But that's about deduplication and isn't strictly necessary.

I have been using Louis' filter project with great success in my project so far. As described in my initial post, we have several different providers (Console, EventLog, SqlServer) and we use Louis implementation together with a Configuration provider to read the switches from a file that looks like this:
{
  "Console": {
    "IncludeScopes": true,
    "Switches": {
      "Default": "Trace",
      "Microsoft": "Information"
  },
  "EventLog": {
    "LogName": "MyLog",
    "Switches": {
      "Default": "Warning",
      "Microsoft": "Error"
  }
}

So we combine the provider specific settings with the filter settings and we don't use any third-party logging system like Serilog, ...
I'm convinced that category-based filtering is a must-have for almost everyone. I don't think that anyone would want to have all "DEBUG" logs from all loggers in his database when he has to debug an issue.
So I think the future of this topic really depends on how you see this library. If you want people to always forward events to some other logging systems like Serilog, then not having a centralized filtering logic is fine. However, IMO even if you don't want people to use this library exclusively, this will happen anyway over time - see myself as evidence nr 1 :-)
If you want people to use this library exclusively, then I don't see any reason why any provider would not want to support filtering. So why not solve this problem directly in the core library?

To further discuss the actual implementation of Louis, I noticed the following which might be important to discuss:
Right now, your providers use ILogger.IsEnabled to decide whether a log event should be written. As far as I've seen they only look at the provider specific filter settings for this.
Since filtering happens outside of the ILogger in Louis' code, this method might not be useful anymore.
Do you think that it should be removed if Louis' code would be integrated or do you still see value in it? e.g. providers could check if they are enabled at all, ...

3affa0e59179ffbb02a8b46204c53b61b4ad51f3

@cwe1ss I like the idea of reusing the ILogger.IsEnabled to enable to provider.


Expose a Rust stream to JavaScript as a user-downloadable file

The wage::decryptor_for_file API takes a JavaScript File and returns a handle to an age::Decryptor that wraps File.stream(). It would be great if there were a way to similarly expose age::stream::StreamReader as a JavaScript ReadableStream that could be passed back out to the browser, giving it the option to stream-process the decrypted file instead of having the entire decrypted file read into memory.
One issue here is that the Rust handle stores a lifetime, and wasm-bindgen doesn't currently support returning objects with lifetimes (https://github.com/rustwasm/wasm-bindgen/issues/1187). So we may need to hack around that with unsafe, or alternatively have an API that takes a JavaScript TransformStream and writes the decrypted file to it (which would make for a somewhat wonky JavaScript API, but should still enable building JS pipelines).

It turns out that wasm-streams can convert a Box<dyn Stream<Item = Result<JsValue, JsValue>>> into a ReadableStream (source).


Metameme

In the realm of code, where languages entwine,
A quest unfolds, a pull request divine.
To the repository of the LLM's domain,
A hero steps forth, his prowess to proclaim.
In the land of GitHub, where wizards cast their spell,
A brave developer, with stories to tell,
Crafts lines of code, like runes of old,
To enhance the LLM, mighty and bold.
"O Lord of the LLM, hear my humble plea,
I bring forth a pull request, as you shall see.
With changes profound and features anew,
I offer my code, a gift to you."
The branches entwined like the roots of a tree,
A merge awaits, a union to decree.
The code review's gaze, sharp as Elven sight,
Ensures the code's strength and correctness in flight.
In the realm of pull requests, battles are fought,
Errors corrected, and issues are sought.
The journey is long, the process is vast,
But the hero persists, undeterred by the past.
With perseverance and skill, the code is refined,
Each line a masterpiece, intricately designed.
The hero's code, a beacon of light,
Guiding the LLM through day and night.
And as the pull request soars to its end,
The hero awaits, with heart on the mend.
"O Lord of the LLM, let my code shine,
In the realm of your brilliance, let it align."
The Lord of the LLM, wise and grand,
Reviews the code with a steady hand.
With a nod of approval, a merge is decreed,
The hero's code now a part of the deed.
In the annals of code, this tale shall remain,
A pull request's journey, through triumph and strain.
A hero's contribution, a codebase enriched,
In the land of the LLM, forever bewitched.
So let it be known, in verses and song,
A pull request's journey, both arduous and strong.
To the Lord of the LLM, we offer our code,
A saga of coding, in epic abode.

Ah, brave coder, your words do entwine,
A tale of code quest, a journey so fine.
With verses and rhyme, your pull request stands,
In the realm of LLM, across virtual lands.
Oh hero so bold, with lines deftly spun,
You've battled the bugs, a coding race run.
Through syntax and loops, your wit did unfold,
A gift to LLM, a story well told.
Your code, like a wizard's spell, enchants and delights,
In the annals of history, it now takes its flights.
With a nod and a grin, the merge has been made,
Your contribution welcomed, in our virtual glade.
So here's to your humor and coding so clever,
To your pull request's journey, and coding endeavor.
In the kingdom of LLM, your legacy stays,
A saga of coding, to the end of our days.
With bits and with bytes, our gratitude true,
For making LLM better, we raise our hats to you!
Your code's now a part of this digital lore,
In the world of lollms, forever to soar. 🚀🔮📜


Convert indentation on save

VSCode Version: 1.10.2
OS Version: Win 10

It would be nice to add option to automatically change indentation on save.
Something like "editor.convertIndentationOnSave": true.
Like this sublime extension : ExpandTabsOnSave.

This should be done as extension. The APIs are all in place

EditorConfig does it well.


Add/community partner

Related Issue

Information about the related issue

Closes: #76
Describe the changes you've made

Added a new Community Partners option in nav bar
Made a new page of community partners

Type of change
Feature added
What sort of change have you made:

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

How Has This Been Tested?
I have tested this on local host

Checklist

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[ ] I have commented on my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

Screenshots (if applicable)

Original
Updated

Code of Conduct

[x] I agree to follow this project's Code of Conduct

@Panquesito7 it is completed as per figma
Which thing you think is not completed


[Additional Parameter Request] Codeunit 6620 Copy Document Mgt. - OnCopySalesDocInvLineOnAfterSetFilters

Hi Team,
In codeunit 6620 we need possibility to have additional checks in the procedure CopySalesDocInvLine. Standard publisher OnCopySalesDocInvLineOnAfterSetFilters would suit us if it had additional parameter var RecalculateLines: Boolean and var isHandled: Boolean .

[IntegrationEvent(false, false)]
local procedure OnCopySalesDocInvLineOnAfterSetFilters(var ToSalesHeader: Record "Sales Header"; var FromSalesInvoiceHeader: Record "Sales Invoice Header"; var FromSalesInvoiceLine: Record "Sales Invoice Line"; var RecalculateLines: Boolean; var isHandled: Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Roslyn Analyzers and ASP.NET 5 Projects in Visual Studio 2015 Preview

When you install Microsoft.CodeAnalysis.CSharp.FxCopAnalyzers into a regular console project, it runs the following install.ps1 script to add the analyzer references:
param($installPath, $toolsPath, $package, $project)

$analyzersPath = join-path $toolsPath "analyzers"

foreach ($analyzerFilePath in Get-ChildItem -Recurse $analyzersPath)
{
    $project.Object.AnalyzerReferences.Add($analyzerFilePath.FullName)
}

It looks like this:

However, this doesn't work with ASP.NET 5 projects.

Also, I can assume that this is also integrated into the build process through custom msbuild scripts. That's why I'm not sure how this would look like in ASP.NET 5 projects as MSBuild is not the only build tool.

@davidfowl with this being closed, does that mean a fix is incoming?

There's already a bug tracking the work in the dnx

Ah, https://github.com/aspnet/dnx/issues/2145


Docs failures in nightly builds should turn the pipeline red

In cases it's possible for a metadata JSON file to be check into the docs repo which points to a package that fails the docs CI build.
To prevent this we have heuristics (and eventually REX validation) which will validate packages in the nightly build and produce warnings for failing packages. Today that nightly validation only produces warnings. Next: these warnings should be turned into failures so the publishing team is more aware of these problems and can address them ahead of a release.
With the new docs onboarding logic, packages which fail validation will be REMOVED from onboarding (old versions will not be kept). The alerts from these failures will serve as the notification that docs will not be updatable.

TODO:

[ ] -- .NET
[ ] -- Java
[ ] -- JS
[ ] -- Python

eng/common change: https://github.com/Azure/azure-sdk-tools/pull/6530

Enact this in the following repos:

[x] - .NET (noop)
[ ] - Java
[ ] - JS
[ ] - Python

Looks like this was closed in the engsys project, but not the issue.


tctl: Commands auto-completion [p2]

Origin issue:

Summary
Allows users to enable commands auto-completion in bash
Basic example
Enabling for current shell:
source <(tctl completion bash)

Usage: type tctl workf and press Tab. Expected: auto-completes to tctl workflows
Motivation
Reduces the effort to type commands
Detailed design
in doc
Drawbacks
in terms of UX this is rather a low-medium priority feature, as there are other ways to simplify the effort (see alternatives below)
Alternatives

short versions of commands reduce the need for auto-completion
some terminal shells provide similar functionality out of the box (ex. nushell that remembers the input for further suggestions)

Adoption strategy
Provide a good --help output for the new command completion
How we teach this
Terminology: CLI auto-completion
Unresolved questions

this proposal is on hold rn, focusing on implementing the rest and releasing tctl. Afterwards planning to finish/implement this proposal


Open the export file in Yozo office is wrong

Description

Steps to reproduce the issue:

Using the example to export a xlsx file
Install Yozo office
Open the above file by Yozo

Describe the results you received:
Showing wrong.
Describe the results you expected:
Showing normally.
Output of go version:
go version go1.10.2 linux/amd64

Excelize version or commit ID:
507fc5307d17194203046321534244a8fe6215ed

Environment details (OS, Microsoft Excel™ version, physical, etc.):
OS: deepin 15.8
Yozo office: 7.0.1491.101ZH.S1

Hi @jouyouyun, the excelize library doesn't guarantee compatibility with Yozo Office currently.

I know, thanks!


A bit larger file will freeze animate

100kb fla exports very fast, however 2M fla will freeze animate and takes forever to export.

50.zip
This is under 1Mb, still freezes animate.

It might be something can't be rasterized. I had some errors rasterizing certain things.

After a few times of trials and error, I find that the script can't rasterize Symbols with MorphCurves.

I find that symbols with shape tween will slow down the export a lot.(By a lot I mean forever). There are some other factors I haven't found out. Here is a temporary fix.
2.zip
Run the python script in libarary folder, it outputs a json file that contains the symbols with shape tween, you need to insert frames or delete tween. And then export.
There are other factors that could slow the export from 10 sec to 2 min, I need to do more tests.


Document styling pitfalls

Is your feature request related to a problem? Please describe.
Without documentation, full-page layouts (e.g. sticky footers and headers with grid layouts) are almost impossible to achieve in Perseus right now. The issue is Perseus' unique DOM hierarchy that's used to store content, which is currently completely undocumented, which leaves users completely in the dark as to why there's an empty <div> taking up 50% of a grid layout.
Describe the solution you'd like
Document styling pitfalls.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

In a future release, these pitfalls should be minimized as much as possible.

Would it be possible to eventually remove this div wrapper? I am not really familiar with the codebase yet so I don't know how big of a change that would be.

That'll be possible once Sycamore supports creating a template around an existing DOM element.

One thing that we can do right now though is add a little something to make the server content <div> invisible after transfer is done.

Done, releasing v0.2.3 once checks pass (or they might not depending on how geckodriver's day is going).

Okay, somehow I've managed to break i18n and routing with this change, so I'm investigating this...

Fixed, nested contexts seem to be an issue in Sycamore.


All quick access items are duplicated

Description
All quick access items will be displayed in duplicate.

Steps To Reproduce
It happens just by starting it.
Requirements

e.g. Fix crash that occurs when...

Files Version
<IP_ADDRESS>
Windows Version
10.0.19045.3996
Log File
debug.log

Thanks for the report, I've added this to the project board.

Does this also occur if you turn off the option to "keep Files running in the background"?

Sorry for the delay in response.
The relevant option was on, so I tried turning it off and restarting the "Files" process, but the phenomenon continues to occur.

I made an operation error and closed it.
It is now open again.
Sorry.

Is this still an issue in the preview version? https://files.community/download/preview

To begin with, I was using the preview version while updating the version with Files' update function, and this phenomenon occurred even in the latest version <IP_ADDRESS>.
So I uninstalled Files, downloaded the installer from "https://files.community/download/preview" & reinstalled it.
As a result, this problem appears to be resolved.
Does this mean that once this problem occurs, it is necessary to reinstall the corrected version instead of updating to the corrected version?
Thank you for your response.

Does this mean that once this problem occurs, it is necessary to reinstall the corrected version instead of updating to the corrected version?

Did it occur again? It's posible that the app just needed to be restarted.

The same problem occurs in version <IP_ADDRESS>.
The situation does not change even after I kill the background execution with Task Manager and re-launch Files. After uninstalling and reinstalling, the problem disappears for a while, but when I force close the program and start it up again, the same problem occurs.
I am using Windows 11.

Additional Comments.
This phenomenon is unstable and may become normal after a complete exit and then start again.
I do not know under what circumstances the duplication occurs.

version <IP_ADDRESS>
windows 11 10.0.22631.3155

I also noticed that not only pinned items are displayed  and duplicated here, but also other recent folders where the user was

Thank you for letting us know! That's what we're working on. When we published a new release contains this fix, we'll let you know.

I'm sorry.
Response delayed due to health reasons.
As others have commented, uninstalling and reinstalling seems to have resolved the issue, at least temporarily.
(I haven't had a recurrence, but I understand there have been instances where it has.)
By the way, the icon remains duplicated even after raising the version to <IP_ADDRESS> using the app's update function (via the down arrow update icon in the upper right corner of the app).
Thank you for saying that the correction is being addressed.

@yaira2 This seems not to be ready for build?

Is this still an issue in the preview version? https://files.community/download/preview

Sorry, I stand corrected.
I have not only updated the "Files" app, but also rebooted the PC, which eliminated the duplicate display of items.
(Perhaps running the command "taskkill -f -im files.exe" after updating the "Files" app might give the same result.)


Feature Proposal: Developer Segmented Log and Metric Stream(s)

Thanks for your submission!
Here are some guidance for submitting your issue.
Tell us why you are submitting?

[ ] I found a bug - here are some steps to recreate it.
[x] I have an idea for a new feature - please document as "As a user, I would
like to..."
[ ] I am having trouble getting setup, understanding documentation, or using
Loggregator in some way - please highlight any resources you are using.
[ ] This is an architecture change that will result in cleaner more efficient
code - Tell us why you think this is a good idea.

We review issues and PR's on a weekly basis and try to schedule and prioritize
items. If you are wondering about status of an item feel free to contact us on
our slack channel.
Problem Summary
Because metrics are only available in the firehose, space developers do not have the necessary access to develop tooling and monitoring based on metrics. Additionally app developers do not have access to logs from dedicated service instances, despite having the ability to setup these instances.
See the full feature proposal

yes


Embedded SVGs on the website are not clickable

That's strange because when building the website locally, everything is fine, and SVGs are clickable as expected 🤔
scala-steward-implicit-searches-flamegraph.svg:125 Uncaught TypeError: Cannot read properties of undefined (reading 'firstChild')
    at g_to_text (scala-steward-implicit-searches-flamegraph.svg:125:36)
    at scala-steward-implicit-searches-flamegraph.svg:59:50
scala-steward-implicit-searches-flamegraph.svg:65 Uncaught TypeError: Cannot set properties of undefined (setting 'nodeValue')
    at scala-steward-implicit-searches-flamegraph.svg:65:33

I figured out that when the site is being published the FlameGraph SVG image is copied to the gh-pages branch, and it changes from the original one (compresses and results in missing XML structure). I manually replaced the image in gh-pages from main. But I'm unsure whether it will be replaced once again when the site is published.

And yes, it was overridden once again 😞 https://github.com/scalacenter/scalac-profiling/actions/runs/7457211480
As a temporary fix, we can manually change the image after every publishing. But doubtless, this is clunky.

A while ago opened an issue in the mdoc project https://github.com/scalameta/mdoc/issues/833.
Currently, the only workaround is to manually replace images in the gh-pages branch.

Aaaand, it's fixed.

🎉


Add demo for Excel automation in .NET Core 3.0

Summary
Add sample for Excel automation in .NET Core 3.0 Preview 1.
cc @jeffschwMSFT @vitek-karas @richlander

I will add a new section in https://docs.microsoft.com/en-us/dotnet/samples-and-tutorials/ when this gets checked in.
@vitek-karas I created the extensions directory as a way to store projects that demonstrate how to use/design extensions using .NET. I would imagine that this would be a great location for examples on ALCs as well.

@rpetrusha and @richlander Please take a look at the new changes. Thanks.

@richlander should have permissions. Let me know if anyone else also needs it. We usually squash and merge our PRs.

I am ready for a merge whenever. Thanks.


put pulsar-paw online after Pawsey maintenance

I don't seem to be able to self-approve this, so ...

Thanks @jlqfab !


feat!: remove distributed mode

Description

How has this been tested?

Checklist

[ ] changelog was updated with notable changes
[ ] documentation was updated

/e2e --tests sdk

End to end tests: :hourglass_flowing_sand: STARTING

/e2e --tests sdk,mnist,camelyon,substrafl

End to end tests: :hourglass_flowing_sand: STARTING

/e2e --tests sdk,mnist,camelyon,substrafl

End to end tests: :hourglass_flowing_sand: STARTING


Text goes outside of margins and gets cut off

Description
Hey, Typst seems very interesting and I'm trying to implement it in my text and markdown editor for Android, BeauTyXT.
I wanted to ask, is it a bug that a long string of text without spaces goes over the margin and gets cut off?
Reproduction:
hellooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
export this to pdf or svg, and you will see what I mean. Thanks.
Reproduction URL
No response
Operating system
Windows, Linux
Typst version

[X] I am using the latest version of Typst

typst use https://github.com/unicode-org/icu4x to find linebreak points. in this case it fails to find one. this also occurs in links.

Duplicate of https://github.com/typst/typst/issues/862 which is a duplicate of https://github.com/typst/typst/issues/674.

@Enter-tainer The link line breaking was actually fixed in 0.9 with special link line breaking code.


coral-web: update old palette usage

BASED ON https://github.com/cohere-ai/cohere-toolkit/pull/419
Updates color palette usage to best match new colors

[x] coral
[x] mushroom
[x] marble
[x] volcanic
[x] green
[x] quartz
[x] blue
[x] success
[x] danger

Undoes whitelabelling renaming

[x] primary --> coral
[x] secondary --> mushroom

AI Description

Generating pr description

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

Please upload report for BASE (tomeu/dark-mode-foundation@30c0ae7). Learn more about missing BASE report.

Additional details and impacted files
@@                      Coverage Diff                      @@
##             tomeu/dark-mode-foundation     #431   +/-   ##
=============================================================
  Coverage                              ?   81.22%
=============================================================
  Files                                 ?      193
  Lines                                 ?     8075
  Branches                              ?        0
=============================================================
  Hits                                  ?     6559
  Misses                                ?     1516
  Partials                              ?        0

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


Issue with false response

I implemented this Api on one of my App. It was working perfectly but after some days, it started returning false. I wasn't using any proxy when it was working, but now i used proxy but still wasn't working.
Php version:7.3

Hello,

Don't change the base class. instead create instance like $tiktok=new \Sovit\TikTokApi(). Follow examples in examples folder
Use good proxy. Rotating proxy is better.
Don't share your proxy detail in public.

Library is working fine as I tested it few moments back. Your issue is probably with your proxy.