Mali - DS-Unit-2-Classification-2.md

Module 01 - Making Datasets, Avoiding Leakage
Overall: You're off to a decent start with the Lending Club data! I can tell that you've gotten pretty good at leveraging the power of Pandas!
Feedback: Get in the habit of being explicit about what you're doing and why. If you can explain your reasoning to a non-technical reader, you're quality of communication accounts for virtually every stakeholder you'll engage with. Leverage comments and text cells! Beyond that, try and recreate everything from lecture and ASK MORE QUESTIONS IF YOU GET STUCK!
Get the data

Glob FTW! For future reference, it can be easier to assign your path to a variable and then use that to work with multiple files inside the same notebook. For example:
path = '/Users/YourUserName/Documents/etc/etc/FILES!'
Good idea looking for Nulls. But you could Transpose the ouput and normalize it to see the percentage of missing values per feature. That way, features that have a TON of missing data you can drop for now and then only determine their predictive power after creating an initial model. Prioritize!

Choose number of observations

I see that you split the data but it would be great to add a text cell or some commenting to explain how/why you decided to do so (code etiquette).

Save your Data for reuse

👍

Choose Features

Same as above. Document your choices more explicitly with text cells / comments.

SC Review
Overall: Really solid progress this week. Also kudos for stepping up to answer questions from your peers inside and outside Office Hours! 👏 👍
Feedback: N/A you're progressing brilliantly. Let me know if there's anything you're not sure of ahead of the SC tomorrow!
Making Datasets, Avoiding Leakage

Glob is a superpower. Remember that tomorrow in case you need to combine multiple csvs.
Key point of Data Hygiene in predictive modeling: leakage can easily lead you astray so proactively prevent it. Removing features is one really effective way to go about it. Consider Time-Series!

Start with Baselines

Not an explicit learning objective of this Sprint but so important that it's worth reiterating 👍

Class Imbalances

When confronting classification problems, accuracy may not be a good measure because it doesn't factor True Positive rate. But the threshold for this is contextual. You want to bear in mind the consequences of your choices when factoring this in. Par for the course re: Predictive Modeling & Decision Making.
If you determine that you can't afford false positives, use ROC AUC as a more appropriate metric for evaluating your model. By plotting the true positive rate vs the false positive rate at different thresholds, you can better understand your model's predictive power.

Making & Explaining Decisions

The whole point of Data Science (if you can reduce it down to just one) is to draw actionable insights. That means making decisions. In order to better calibrate that decision-making, we leverage Expected Values, and Shapley Value Plots. Review the lecture notebook for links to dive deeper into both of these topics if you wish!

Gradient Descent

How can you programaticaly minimize a value you care about? Gradient Descent refers to a method that iteratively discovers minima. The trick is understanding if they are local or global, for one. For another, computation is not free. The time and effort it takes your model to minimize it's errors is a consideration you must make. Calibrate the learning_rate as one knob/dial.


Unexpected reserved word in Moment.js 2.10.6

I found this issue in an angularjs project. My project fails all tests because of an "Unexpected reserved word."
Karma output:
Chrome 44.0.2403 (Linux 0.0.0) ERROR
  Uncaught SyntaxError: Unexpected reserved word
  at /mnt/DATA/Documents/Web_Development/Projects/buzzweb/vendor/moment/src/moment.js:7

This issue on stackoverflow also describes the same error http://stackoverflow.com/questions/29977553/uncaught-syntax-error-with-moment-js
I'm not a javascript expert, but it appears to be an issue with the switch to ES6

You only use moment as a third party library, right?
you can try the min version in min/moment.min.js

@liamlundy - How are you loading moment?  You should not get this error unless you are using the ES6 sources directly.  The releases contain the ES5 transpiled output.

I'm using it in an angularjs app with angular ui calendar. i use bower to get moment and then load the unminified js file in a script tag.

Using the minified version is working for me right now. i'd prefer to use the unminified version and minify it when i need to so that i can debug my app. it also seemed like a strange issue that could be reproed. i can close it if there isn't a resolution and it isn't being experienced by other users. it also might be an issue with my setup and/or angular.

@liamlundy show us the place where you "pick" the moment file (minified or not). You should either use min/moment.min.js or moment.js, NOT src/moment.js.

yes, your are correct by using min/moment.min.js problem is solved


refactor(state): split database access into modules by Zebra types

Motivation
As part of changing the database, we'll need to make sure all database accesses go through a well-defined API.
As the final step, we split reads and writes into modules by zebra_chain types.
This makes it easier to review changes, because the read and write formats are next to each other.
Solution
Code Movement:

split reading and writing into block, transparent, shielded, chain, and metrics modules

Related Cleanups:

split genesis note commitment trees from the genesis block check

Related Fixes:

only change metrics after we've fully validated the block

Part of ticket #3151.
Based on PR #3607, feel free to move this PR out of draft after it merges.
Review
@oxarbitrage can review this PR.
git diff --color-moved could make the review a lot easier.
Reviewer Checklist

[ ] Code moves are correct
[ ] Existing tests pass

Follow Up Work

add state snapshot tests - I'll get Janito to review my next PRs
start changing the state format

@oxarbitrage this PR is ready for review now - it's the last refactor PR.
Thanks for sticking with this!


json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Command Ran
twint -u jeekajoo

Description of Issue
Traceback (most recent call last):
  File "/mnt/data/twint/twint-venv/bin/twint", line 11, in <module>
    load_entry_point('twint', 'console_scripts', 'twint')()
  File "/mnt/data/twint/twint-venv/src/twint/twint/cli.py", line 269, in run_as_command
    main()
  File "/mnt/data/twint/twint-venv/src/twint/twint/cli.py", line 261, in main
    run.Search(c)
  File "/mnt/data/twint/twint-venv/src/twint/twint/run.py", line 271, in Search
    run(config, callback)
  File "/mnt/data/twint/twint-venv/src/twint/twint/run.py", line 200, in run
    get_event_loop().run_until_complete(Twint(config).main(callback))
  File "/root/bin/python3.6/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/mnt/data/twint/twint-venv/src/twint/twint/run.py", line 141, in main
    await task
  File "/mnt/data/twint/twint-venv/src/twint/twint/run.py", line 144, in run
    self.user_agent = await get.RandomUserAgent()
  File "/mnt/data/twint/twint-venv/src/twint/twint/get.py", line 142, in RandomUserAgent
    browsers = loads(r)['browsers']
  File "/root/bin/python3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/root/bin/python3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/root/bin/python3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Environment Details
Debian 9 / Python 3.6.8 / Twint master

I'm having the same issue in a Mac OS 10.14.5

Yeah, same thing
Hope this isn't related to my cashtag pull request

Same!

Same issue on arch linux.

What versions?

This is the issue:
https://fake-useragent.herokuapp.com/browsers/0.1.8

The website for random user-agents seems to be down, I changed the RandomUserAgent() in get.py to catch the exception and use a set user-agent.
website fault: https://fake-useragent.herokuapp.com/browsers/0.1.8
Maybe another website could be used..?
http://www.user-agents.org/
http://www.useragentstring.com/pages/useragentstring.php
Line 135 of get.py (more a quick fix then real fix)
async def RandomUserAgent():
    logme.debug(__name__+':RandomUserAgent')
    url = "https://fake-useragent.herokuapp.com/browsers/0.1.8"
    r = await Request(url)
    try:
        browsers = loads(r)['browsers']
        return random.choice(browsers[random.choice(list(browsers))])
    except ValueError:
        return "NCSA Mosaic/1.0 (X11;SunOS 4.1.4 sun4m)"

So im new here. we pull user agents from a website? can we use a list?

https://github.com/twintproject/twint/pull/427

Same issue on Mac OS 10.14.4, Python 3.7.3

Same issue, I was in the middle of a process as well.
My guess would be that Twitter has changed something. I'm new to programming so perhaps someone more talented than myself can make suggested changes?

There's a working fix located here: #427
Otherwise wait for the pull request to be completed and update afterwards

Yes, thank you! I manually made the changes and it works just beautifully!
Next I need to work out how to use diff files to streamline the process :-P

Hi, I  change the file as #427 describe, but  it still have the same error:
"json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"
on Windows 7  python: 3.7
could you give me some suggestion ? thanks a a lot

@yuuiki What changes have you made? Did you update get.py according to #427?
Don't forget to pip3 install fake-useragent before you run.

The fake-useragent server is unreachable, pushing fix right now

Merging #427 , better than my workaround
Sorry for troubles guys

Thank you :cupid:

@pielco11 thanks for pushing the fix so quick. However I still had to run two commands to update twint:
pip3 install --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint
and
pip3 install fake-useragent
Perhaps that's the expected behavior and I see that fake-useragent is included in the requirements.txt file so it's probably not a big issue.

@louisgregg because a new requirement has been added, fake-useragent is already in requirements.txt
Hope that when people will come here will read the comments
I also pinned this issue to give users a direct link to the solution

@louisgregg fixed now, had to update setup.py as well. Now everyone will get installed fake-useragent automatically

Thank you! it works now

HI,
I have Archlinux with virtualenv.
it seems that I always have the error, even after updating.
 of twint. It worked last week
my requirements.txt
aiohttp
aiodns
beautifulsoup4
cchardet
elasticsearch
pysocks
pandas>=0.23.0
aiohttp_socks
schedule
geopy
fake-useragent
unidecode

-e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

My steps
rm -rf .virtualenv
virtualenv --no-site-packages -p ${PYTHON} .virtualenv
${PIP} install -r requirements.txt

Here are the error messages I have
TWINT_DEBUG=debug .virtualenv/bin/python retrieve.py
Get tweets for 39298212/jesuislibre for 2019-05-17
[+] Inserting into Database: datas/drongo.db
Traceback (most recent call last):
  File "/usr/lib64/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib64/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/usr/lib64/python3.7/http/client.py", line 928, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.7/socket.py", line 727, in create_connection
    raise err
  File "/usr/lib64/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/badele/private/projects/drongo/.virtualenv/lib/python3.7/site-packages/fake_useragent/utils.py", line 67, in get
    context=context,
  File "/usr/lib64/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib64/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.7/urllib/request.py", line 1345, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib64/python3.7/urllib/request.py", line 1319, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error timed out>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/badele/private/projects/drongo/.virtualenv/lib/python3.7/site-packages/fake_useragent/utils.py", line 166, in load
    verify_ssl=verify_ssl,
  File "/home/badele/private/projects/drongo/.virtualenv/lib/python3.7/site-packages/fake_useragent/utils.py", line 122, in get_browser_versions
    verify_ssl=verify_ssl,
  File "/home/badele/private/projects/drongo/.virtualenv/lib/python3.7/site-packages/fake_useragent/utils.py", line 84, in get
    raise FakeUserAgentError('Maximum amount of retries reached')
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached

It seems that they are having some issues with the backend
I'll add a list of known user-agent

Hi,
I'm still getting the fake_useragent error even after updating, and trying all the fixes suggested here. I'm at a loss - running python 3.7.4 on a MacBook Pro 2013, macos Mojave 10.14.5
Any help would be appreciated. Here's the error message:

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/envs/bin/python /Users/sidblack/PycharmProjects/HelloWorld/hkairport.py
WARNING:fake_useragent:Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1244, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1290, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1239, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1414, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 423, in wrap_socket
session=session
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 870, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fake_useragent/utils.py", line 67, in get
context=context,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fake_useragent/utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fake_useragent/utils.py", line 97, in get_browsers
html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fake_useragent/utils.py", line 84, in get
raise FakeUserAgentError('Maximum amount of retries reached')
fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
Process finished with exit code 0

@sdtblck may you update the package? The issue has been fixed

@pielco11 The package is fully updated, and I also tried manually implementing the fix above with no luck. I actually get a result from twint, which is strange, but i'm not sure if it's complete

@sdtblck I guess the issue is not related to Twint itself. I don't get error messages, anyway if Twint can't fetch user-agents (Maximum amount of retries reached error message), it'll use a random one from a hardcoded list. So Twint will return tweets, one way or another


Added mx.stack c++ frontend impl

This pr will add stack support for mlx.core c++ frontend.
// Functions:
array stack(const std::vector<array>& arrays, int axis, StreamOrDevice s = {});
array stack(const std::vector<array>& arrays, StreamOrDevice s = {});

// Usage:
auto x = array({1, 2, 3}, {3});
auto y = array({4, 5, 6}, {3});
auto z = std::vector<array>{x, y};

stack(z, axis=1) // shape (3,2)

Will add Python bindings in next PR. Also might need to work on making it a Primitive if needed @awni

pushed up the fix, lmk if there's anything else

Looks perfect. I left some style comments that currently break the docs if not updated.
Sorry for the back and forth. In the future if you want I could apply these minor changes myself and then merge. Just let me know if it is ok. I didn't do it by default cause I would show up as a co-author and steal a bit of your thunder which I didn't want.

Not at all, just happy to help! Will push up these fixes

@awni waiting on your approval on this.


Make sure get operations are covered

Clazz.objects.get(id=...)

if local obj exists, get cdms obj, compare, update if necessary and return
if local obj doesn't exist, raise DoesNotExist

Clazz.objects.get(cdms_pk=...)

if local obj exists, get cdms obj, compare, update if necessary and return
if local obj doesn't exist but cdms obj does, get, create local and return
if neither local nor cdms obj exists, raise DoesNotExist

Clazz.objects.get(other_field=...)

if returns 1 obj from local, same as get(id=...)
if returns >= 2, raise MultipleObjectsReturned
if 0, raise DoesNotExist

Re. sync operations:

if local and cdms obj in sync, get won't update any objs
if cdms obj more up-to-date, get will update local obj
if local obj more up-to-date, raise ObjectsNotInSyncException as atm this shouldn't happen

Skipping cdms sync supported with:

Clazz.objects.skip_cdms().get(...)

@danielquinn code review? Does it make sense?

@danielquinn before merging it, let me know and I'll rebase whatever is needed to keep things clean

I'm happy to merge now, so rebase away.

@danielquinn done


fix: remove workspace support for docusaurus

Replace workspace commands with prefix commands
Remove is-ci dependency
Update dependencies
Upgrade node engine to v22
Update github workflow to use setup-node

#225  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Create proposal for generic type mapping support

We need to provide a general mechanism to map generic types.
Currently we have methods like as(Class<T> type), or asList(Class<T> type) but these have some limitations.
Come-up with an equivalent of JAXRS's GenericType, and an API guideline for the various Helidon APIs (WebServer, Config etc.).

@tomas-langer FYI, we need to coordinate this for the Config refactoring so that the WebServer and Config API are consistent around the asXXX methods.


Demo source link 404s on your example

where:
http://rackt.org/react-tabs/example/
Link text:
Demo Source
broken link to:
https://github.com/rackt/react-tabs/blob/master/example/main.js

@mzabriskie Could you please check why the gh-page is not updated? Maybe it was deactivated when moved? Or does there need to be a command called to update the site?
Because the link was already fixed in the gh-page branch, but the site does not refelect this change.
https://reactcommunity.org/react-tabs/example/

@spicyj @mjackson @vjeux  Sorry for pinging you, but I would really appreciate if anyone of you could look into why the github-page of react-tabs is not updating (https://reactcommunity.org/react-tabs/example/). I wasn't able to reach @mzabriskie and I only have write access to this repo, so I can't see if the github pages are turned off. At least this would be my first guess right now, as the site is still there but not updating. Thanks

Hmm, thanks.


Update README.md

Summary | Résumé
Remove English paragraph from French section.

Thank you for your PR @millette .  Not only have you found an issue with our README but apparently one of our GitHub actions as well.  We'll try to fix the action in the next day or two so that we can get your PR approved and merged.
Sorry for the delay and thanks for your understanding.


local file browser agent

Why are these changes needed?

Related issue number
#1765

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Looks good.
I'm not sure about if we want to put the file browser-related bits (Renderers, etc) in file_utils. @gagb to comment. Will discuss in the meeting.


feat(prettier): add

Create a Prettier friendly eslint config

@JAdshead looks like the capital "C" Copyright failed the commit message check.


Migrate codegen to pure-rust generator

This commit replaces the build.rs dev dependency to generate protobuf
files using a pure-rust implementation, removing the requirement to have
protoc installed and making it easier to contribute.
This commit also bumps the lib protobuf lib to the latest version, and pin it
to a specific dependency, as required by the constant it generates. Due
to requiring a specific protobuf version, a new minor version has been
bumped.
Tentatively fix https://github.com/datrs/dat-network-protocol/issues/2
Choose one:  a 🙋 feature

Checklist

[x] tests pass
[x] tests and/or benchmarks are included
[x] documentation is changed or added

Context
https://github.com/datrs/dat-network-protocol/issues/2

Semver Changes
0.2.0

@bltavares I've given you access to both! If you log into crates.io you're now part of the team for  https://crates.io/crates/dat-network-protocol :tada:


Book related issues #179  #281

Implemented the same logic to re-render the contents of the PowerBook as for the ArtiFactBook.
Also added OrderBy extension methos to the Get methods of powers and artifacts.
I looked at your commit for #372 and a bug we've already fixed in #135 came back with that commit.
Basically when an item gets removed so that the page is now empty, even after reshuffling the book it shows the wrong page because _activePageIndex does not get reset.
So I fixed that.
I realise that with the way I fixed this I kinda reverted what you did in #372 and I am not too happy with the way this turned out but I couldn't think of a better solution so yea.

Interesting! Looks pretty good to me.
The changes I made in #372 were intended to stop a desync issue with the way we were handling Books, so I'll just have to make sure that hasn't come back. But otherwise I think this might be an improvement. Will give it a proper review when I can.

Closing as #416 supersedes this.


link hpcx and impi modulefiles iso trying to load from outside module…

…path; this will also allow Lmod to be using the provided modules...

closing outdated PR

@jithinjosepkl This issue persists on Centos-HPC 7.9 (/usr/share/Module/modulefiles/mpi/hpcx tries to load a module that is outside the MODULEPATH):
(base) module load mpi/hpcx
Lmod has detected the following error:  The following module(s) are unknown: "/opt/hpcx-v2.9.0-gcc9.2.0-MLNX_OFED_LINUX-5.4-<IP_ADDRESS>-redhat7.9-x86_64/modulefiles/hpcx"

Please check the spelling or version number. Also try "module spider ..."
It is also possible your cache file is out-of-date; it may help to try:
  $ module --ignore_cache load "/opt/hpcx-v2.9.0-gcc9.2.0-MLNX_OFED_LINUX-5.4-<IP_ADDRESS>-redhat7.9-x86_64/modulefiles/hpcx"

Also make sure that all modulefiles written in TCL start with the string #%Module

Why is this PR considered outdated?

@ltalirz , we are not pushing any more image updates for CentOS as it is EoL.

Thanks @jithinjosepkl for the quick reply!
Do I understand correctly that all CentOS HPC images are no longer supported and everyone should switch to AlmaLinux now?
Perhaps it would be useful to mention this in the README (happy to open a PR), as well as in https://github.com/Azure/azhpc-images/issues/121

If you let me know the planned EOL for the images in

(or which schedule you align to for each of the OS versions), I will open a PR that adds an "EOL" column to this table.
I believe this would be very useful for users of the HPC images.


Add an encrypt command

This PR adds an encrypt subcommand that does the inverse of decrypt.
Our use case is that we want to use Medusa to export secrets, but we also are exporting our PKI private keys via /sys/raw. To keep things simple, we'd like one tool to be able to handle the encryption and decryption of all these files. There's already a subcommand to handle the decryption that works well, so we need a subcommand to do the encryption. (There's no expectation that Medusa will restore the stuff we exported from /sys/raw.)
Help:
$ .../medusa encrypt -h
Encrypt a Vault export file onto stdout or to an output file

Usage:
  medusa encrypt [file path] [flags]

Flags:
  -h, --help                help for encrypt
  -o, --output string       Write to file instead of stdout
  -p, --public-key string   Location of the RSA public key

Global Flags:
  -a, --address string     Address of the Vault server
  -k, --insecure           Allow insecure server connections when using SSL
  -n, --namespace string   Namespace within the Vault server (Enterprise only)
  -t, --token string       Vault authentication token

This goes back and forth nicely (FWIW this is a test only key and non sensitive data so no need to redact anything):
$ echo "Hello World" > payload.txt
$ .../medusa encrypt payload.txt --public-key public-key.pem --output payload.txt.b64
$ cat payload.txt.b64
7okDQwelUizUsndet4sTKpk3TzbBn6hiRW/G/jdHpTgULLvpovyx5Q==
WnlZY0NjajRESUhwTHI5YzN0dnZDV1FoUEVTc3ZCUFN3WEdXczZOMFlNaU9TWFFWYWwyTXI3eHNUYU8wYmEvaG55TGlwdUdCbWNpaWFBS0crYkxDbXAvd1FvTmFUMUcySmtGR3c1b2o3REMxZklRVU1HOElmaTFJb3FEbVJSKzdwL3VJZHY4Z0NmNnd5M3g2TE9mbFZkNnlWcVpNVDhoeE5OR2dPT0lYWTRVNkdlTjBIaWV1YlRoZ3A0TlpKUXZKc3ExUFhrOWc0YWNxQnZHU0V3VFZCOXhrdy9PS2ZKQklWVUI1N1hnemJJNXVrRmZia1I5MWJhWW1oKzlZbUIvdndUNXZsVXFIS1ppSmRTZWZzWExhaERGVGFwRyt4dExkUDhTYlFoUENCUXowRDV6K0NLdWlvOHZNNzd3WWlFSlV6NisxUCtmdjVCajJqaDdRQVhBVXhaRVk2NG04bDNSaDFEK1cxQ2Jvbi9wTHlGYkJCUnYyckk1VExER0p5VUNndWVhMFFRODVuVlEzanllK0YrVGdjb2lGenVENUswRmRXVk5mQXBWZTYvTWRmeDZkMVZvSTdBKzFPQlM4U0tSTjdzM0tkbUlVM2xMamcrZmIrSm5lSW9mM0ZpSHEwakpFeGtRV3NHRTBzNGFOYTJ0L21VUk5meGpUTnlZRE0wYm9xdkF4eFdlYlBxSE1vd00vR3hSMWpuNkRpL25MeVBLL0RtRnE4dFRlbEFvQXN4bnlXZHo5ZGdsQytDZG1UZXpnQS9HeFQrWnZRSnJtY2J5M1JoUTFGcFhTUElQOW9keVo1L09FTDZlVEZ0aTdicTFwOTJDRWpDeG1JdHIxaHRvSDVwRXhWT0xlMEZEcCtpckFqRmdEdm4rUnhMT3RzWGhZSjlhRGZPbkZ1SkE9
$ .../medusa decrypt payload.txt.b64 --private-key private-key.pem > payload.txt.new
$ cat payload.txt.new
Hello World

Implementation note: The output code added to cmd/encrypt.go is copy-pasta from:
https://github.com/jonasvinther/medusa/blob/578643a2693db0b033934f47eda5b551c5bedd09/cmd/export.go#L71-L97
I can DRY this if you prefer, but didn't want to go refactoring a bunch of stuff without a specific request to do so.

Not a bad idea. Thank you for your contribution.


Generation of >> was broken

Regex was probably copy pasted from i_shift_l :
r'\bshift_l\b.\bcount\b'
instead of
r'\bshift_r\b.\bcount\b'

Thanks


Double Content-Type header

Hi!
I created a request that works fine via Paw. However, using the Ruby Net::Http generator, it creates a duplicate Content-Type header:
    # Create Request
    req =  Net::HTTP::Post.new(uri)
    # Add headers
    req.add_field "X-My-Custom-Header", "somevalueformyheader"
    # Add headers
    req.add_field "Content-Type", "application/json; charset=utf-8"
    # Set header and body
    req.add_field "Content-Type", "application/json"
    req.body = body

When running it from my rails app, the request failed. I needed to remove the line req.add_field "Content-Type", "application/json; charset=utf-8" in order to make it work.

I'll look into it! Thanks for the report

fixed in PR #7

That was fast! Thanks @JonathanMontane


property memory offset caculation error

there's some code like this:
// Character.h
#if WITH_EDITORONLY_DATA
	/** Component shown in the editor only to indicate character facing */
	UPROPERTY()
	TObjectPtr<UArrowComponent> ArrowComponent;
#endif

some property is replicated using pointer to their memory location. when we package the game, the memory offset will be different.

Does this only happen to the properties with TObjectPtr type? We have a similar issue: #26

lack of description, I don't fully understand what #26 is about. In our case, it's cause by different memory layout between editor and packaged game/server binary.
currently we generate replication code using the reflection info generated in editor.
for example
#if WITH_EDITORONLY_DATA
int PropA;
#endif
int PropB;

so the memory offset of PropB would be sizeof(int),  which is used in some replication code.
// init
PropA_ptr = (uint8*)ContainerAddress + 0;
PropB_ptr =  (uint8*)ContainerAddress + 4;
//set state
*PropA_ptr = state->prop_propA()
*PropB_ptr = state->prop_propB()

When we package the game, with WITH_EDITORONLY_DATA leaved out , the actual memory offset of PropB will be 0 in both Client/Server binary. but the replication code is not updated(only generated in editor), which will lead to some undefined behaviors.

There are two ways to support conditional compilation properties:

Borrowing from UBT, compile the entire project in another process and then generate replication code.
Add a custom metadata that requires developers to add this metadata to conditional compilation properties that wrapped with WITH_EDITORONLY_DATA.
The first approach has the strongest compatibility but is inefficient and complex to implement. The second approach requires developers to do more work, such as manually adding metadata to the source code of conditional compilation attributes when introducing a new plugin, but the benefit is that the time spent generating code is no different from now.


Signed-off-by: Bret Fontecchio<EMAIL_ADDRESS>

added to release notes under # Bug Fixes

repo id, not the full repo, is now sent to dockpulp.updateRepo so repos are actually updated to turn off autopublish


Chat creation

Let the user create new chats, and load all the existent conversations when he logs in.

Some progress in this issue: pull request #38 .

Solved in pull request #45


Wrong documentation about default ffmpeg file arguments

The wiki page https://github.com/AlexxIT/go2rtc/wiki/Configuration#defaults states, that the default arguments for the ffmpeg file is -re -stream_loop -1 -i {input}.
It is also mentioned in a code comment https://github.com/AlexxIT/go2rtc/blob/bd73b07ed809d40ee75632f2ff06069976c2d321/pkg/ffmpeg/ffmpeg.go#L21
The -stream_loop -1 was actually removed in https://github.com/AlexxIT/go2rtc/commit/a8612fca4399e503324fc3cddb09a1905bfef3d5.
Please synchronize the documentation with the code.
Thanks :+1:

Thanks. I removed the mention of presets from the documentation. There are a lot of presets and they change all the time.


How to change the Datamodule during training with a callback?

What is your question?
How to change the Datamodule during training with a callback?
More details:
I am looking for a way to reinitialized my Datamodule with different parameter, I am currently sending the height of my images as argument to my datamodule and I want to change this height at some point during training, the simple way is to call trainer.fit multiple times with different datamodules, but I am wondering is there a way to do this on callback, in the same way as you do when you change the optimizer or lr_scheduler?
Something similar to this:
def on_train_epoch_start(self, trainer, pl_module):
            sch = optim.lr_scheduler.StepLR(optimizer, 1, 0.96)
            scheduler = {
                'scheduler': sch,
                'interval': interval,  # or 'step'
                'monitor': 'train_loss',
                'reduce_on_plateau': False,
                'frequency': 1,
            }
            trainer.lr_schedulers = trainer.configure_schedulers([scheduler])

Answer from @teddykoker:

I have done this using a callback:
class Scheduler(pl.Callback):
    def _prepare_epoch(self, trainer, model, epoch):
        phase = ...
        trainer.datamodule.set_phase(phase)

    def on_epoch_end(self, trainer, model):
        self._prepare_epoch(trainer, model, trainer.current_epoch + 1)

class Data(pl.LightningDataModule):
    def set_phase(self, phase: dict):
        self.size = phase.get("size", self.size)
        train_transforms = T.Compose(
            [
                T.RandomResizedCrop(self.size, scale=(self.min_scale, 1.0)),
                T.RandomHorizontalFlip(),
                T.ToTensor(),
                normalize,
            ]
        )
        self.train_ds = ImageFolder(self.train_dir, transform=train_transforms)

    def train_dataloader(self):
        train_dl = DataLoader(
            self.train_ds,
            batch_size=self.batch_size,
            shuffle=True,
            num_workers=self.num_workers,
            pin_memory=True,
        )
        return train_dl

Its important to note:

You can access your datamodule from a callback using trainer.datamodule
In order to have train_dataloader(), val_dataloader() called every epoch, you must set reload_dataloaders_every_epoch=True in your trainer.

Thank you @teddykoker for the help.


fix [Tooltip]: toggling toggleOnPress, withOverlay, withPointer props …

fixes #98
Video Recording of the fix:
https://www.loom.com/share/8cb4b89af26e40d9b3771fe2b6caa845

LGTM

Can you pls investigate the weird behaviour when it's toggled (It positioned at the extreme top of the page)


Event Handling Support on the Application Layer

Currently, there isn't a way to send events to the application layer. One possible approach is to support GStreamer events so that the application layer can handle events. But any other mechanism that allows for easy event handling would be helpful.

I agree that this is super important for any involved application using KVS GStreamer plugin.
To add a few notes on the events.

Report any errors during streaming
Report any error ACKs coming back
Report any API call failures like putFrame/putMetadata, etc..
Report most of the callbacks (informative or pressures) so the applications can react.


Fix for button click tracking not working

fixes: https://github.com/mautic/mautic/issues/10323

https://github.com/mautic/mautic/issues/10331


 feat(@schematics/angular): update Angular dependencies to use `^` as version prefix

With this change we update Angular dependencies to use ^ instead of ~ as version prefix.
Closes #21925

Also, let's hold off on merging breaking changes like this until we're sure that we aren't doing 13.3.

I assume the typical ng update version bumps already respect the user's prefix and won't clobber the ^ with a ~? Just want to make sure it doesn't overwrite all this hard work.

Yeah it does.


feat(db): SyncDatabase for cross-chain state access

should merge after #1, this is the same PR as https://github.com/taikoxyz/taiko-reth/pull/44
Overview

We modified Revm for cross-chain state access, namely, it reads any account/storage with ChainAddress = (ChainId, Address) and we need to support that when we start L2 nodes in ExEx Context.
Current Database & Provider

Revm
Need state provider associated with the current block to execute transactions, so the entire Revm crate abstracts over DB: revm::Database to provide this access. The struct implementation is typically a wrapper holding an in-memory cache state with underlying real database passed from Reth.
pub trait Database {
    /// The database error type.
    type Error;

    /// Get basic account information.
    fn basic(&mut self, address: Address) -> Result<Option<AccountInfo>, Self::Error>;

    /// Get account code by its hash.
    fn code_by_hash(&mut self, code_hash: B256) -> Result<Bytecode, Self::Error>;

    /// Get storage value of address at index.
    fn storage(&mut self, address: Address, index: U256) -> Result<U256, Self::Error>;

    /// Get block hash by block number.
    fn block_hash(&mut self, number: u64) -> Result<B256, Self::Error>;
}

Reth
Reth uses a ProviderFactory that holds unique references to an in-memory (mostly MDBX) DB and a StaticFileProvider: https://github.com/paradigmxyz/reth/tree/main/crates/static-file/static-file
The lowest level abstraction of Database in Reth represents operations on reading/writing data, which is different from that of Revm. Between the physical database and Revm state provider, Reth implemented many APIs to access blockchain data and they are mostly in StateProvider trait.
/// Main Database trait that can open read-only and read-write transactions.
///
/// Sealed trait which cannot be implemented by 3rd parties, exposed only for consumption.
pub trait Database: Send + Sync {
    /// Read-Only database transaction
    type TX: DbTx + Send + Sync + Debug + 'static;
    /// Read-Write database transaction
    type TXMut: DbTxMut + DbTx + TableImporter + Send + Sync + Debug + 'static;

    /// Create read only transaction.
    #[track_caller]
    fn tx(&self) -> Result<Self::TX, DatabaseError>;

    /// Create read write transaction only possible if database is open with write access.
    #[track_caller]
    fn tx_mut(&self) -> Result<Self::TXMut, DatabaseError>;
    ... ...
}

Cross-chain Database & Provider
We first modified Revm's Database trait to execute transactions against the targeted state root: https://github.com/taikoxyz/revm/pull/17
pub trait SyncDatabase {
    /// The database error type.
    type Error;

    /// Get basic account information.
    fn basic(&mut self, address: ChainAddress) -> Result<Option<AccountInfo>, Self::Error>;

    /// Get account code by its hash.
    fn code_by_hash(&mut self, chain_id: u64, code_hash: B256) -> Result<Bytecode, Self::Error>;

    /// Get storage value of address at index.
    fn storage(&mut self, address: ChainAddress, index: U256) -> Result<U256, Self::Error>;

    /// Get block hash by block number.
    fn block_hash(&mut self, chain_id: u64, number: u64) -> Result<B256, Self::Error>;
}

For Reth, the cross-chain state provider should be implemented as a HashMap over some database trait, but the concrete type can be anything. Thus, performing type erasure with dyn trait object makes sense. We managed to preserve Reth's abstraction on its physical database, and the building process of different generic Box< dyn StateProvider> is kept the same. The main DB being pass into the executor is the following:
pub struct SyncStateProviderDatabase<DB>(pub HashMap<u64, StateProviderDatabase<DB>>);

This implements SyncDatabase and a modified blanket trait SyncEvmStateProvider which glue the old singleton database with EvmStateProvider and the synchronous database together:
impl<DB: EvmStateProvider> SyncEvmStateProvider for SyncStateProviderDatabase<DB> {
    fn basic_account(&self, address: ChainAddress) -> ProviderResult<Option<Account>> {
        if let Some(db) = self.get(&address.0) {
            db.0.basic_account(address.1)
        } else {
            Err(ProviderError::UnsupportedProvider)
        }
    }
    // ... other functions ...
}

We can start the sync DB compatible with the old code, and insert as many DB instances for multiple L2s in the ExEx context. Note that the CacheDB and state builder with WrapDatabaseRef are also available out of the box:
https://github.com/taikoxyz/taiko-reth/blob/1f7ea4e2ce3b55b11e6b98fa94a1ffe3a998a556/crates/gwyneth/src/builder.rs#L80

Merged at https://github.com/taikoxyz/taiko-reth/pull/44


how to make connection to local process without ssh

i want to connect to local system using command line.
like ifconfig , ip and vtysh commands.
is this possible?

no. https://pkg.go.dev/os/exec


Format Error?

I saw "xref data-throw-if-not-resolved="true"" in the document, is it supposed to happen? I also saw some words are cut in that line.

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

ID: 7716b5cd-1280-3d9d-bc82-48b88ef57467
Version Independent ID: 346173f4-dc4a-b8cc-7284-5a7a4343d1e0
Content: OnnxConverter.Convert(PredictionModel) Method (Microsoft.ML.Models)
Content Source: dotnet/xml/Microsoft.ML.Models/OnnxConverter.xml
GitHub Login: @dotnet-bot

Thanks for your feedback, @wschin! Nope, not supposed to happen. I've added it to the backlog.


Getting region features from inference.

Hi There,
Could you point me to an example of using your network for region proposals? Similar to the ROI pooling layer in faster rcnn?
Thanks!

I figured out what I needed. Thanks :)

I figured out what I needed. Thanks :)


FIREFOX only: socket.io "interrupted while the page was loading"

The connection to ws://[hsotname]/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket&sid=... was interrupted while the page was loading.
according to this you need to unload it to fix, but I tried that and it still has this error
http://stackoverflow.com/questions/14140414/websocket-interrupted-while-page-is-loading-on-firefox-for-socket-io?rq=1

Try to upgrade Socket.io in sails.io.js (minified at the top).
I remember that I had issues like that.


Filter/redact sensitive information from iControl Rest debug logging

https://github.com/F5Networks/f5-icontrol-rest-python/blob/v1.3.0/icontrol/session.py#L255
The iControl Rest library logs anything and everything that passes through, as seen at the line above. This can be useful information, however if sensitive information such as custom ssl profiles are uploaded to the BIG-IP, the data is logged at the debug level. There should likely be some sort of filter or redacted text in the case of sensitive data being sent to the BIG-IP via iControl Rest.

@caphrim007 any thoughts?


RoR Group Project : Setup your kanban board

Our Github project link👉  : https://github.com/users/ohyajk/projects/1
We are 2 People in this project @ohyajk & @kennedyowusu

Hi Team,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights

Great job including all the Required points.

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Incorrect softmax use

You aplpy tf.nn.softmax inside your model and then apply tf.nn.softmax_cross_entropy_with_logits to that softmax:
self.all_preds = tf.nn.softmax(logits)
loss = tf.nn.softmax_cross_entropy_with_logits(logits=logits, labels=labels)

however, the tensorflow documentation clearly states
"WARNING: This op expects unscaled logits, since it performs a softmax on logits internally for efficiency. Do not call this op with the output of softmax, as it will produce incorrect results."
This seems like a bug?

The variable self.all_preds is only used for the output. Only logits are used to calculate the loss.

Thanks, I wasn't paying attention!
Cheers :)


exec App error

% of customers impacted: [100]%
Affected Users: [Engineers / Operators / Customers]
Is revenue impacted: [Yes / No]
Urgency: [High / Medium / Low]
Deadline: [Date]

Description of Bug
What should the expected behavior be
How can I get it?
Platform Affected
[ ] Dev
[ ] Preview
[ ] Production
Steps to Reproduce
Steps to reproduce the behavior
Additional context
OS, Desktop/Mobile, Browser, Date/Time,
Kali 2020.02
Relevant screenshots
If applicable, add screenshots to help explain your problem.

Hi idlefire,
I believe you have a permissions issue with the user running docker-compose. See https://github.com/docker/compose/issues/4039.
Thank you,
Jake


Update the integration image with some rbac issues fixed

Signed-off-by: Jing Qi<EMAIL_ADDRESS>

@Michkov this PR contains critical fixes which will resolve the broken integration service in pre-kcp and help e2e and UI teams.

/retest

/lgtm


Update notice when no update available

info.plist version was not updated to 3.0.3, causing upgrade notice to appear when 3.0.3 is installed

This is fixed in v3.0.4 👍


Xiaomi Gateway 3 ZHA enable error after upgrade from 1.5.1 to 2.0.5

022-02-19 17:31:14  DEBUG    utils         Try to update Zigbee NCP to version v6.7.10
2022-02-19 17:31:14  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 17:31:16  DEBUG    elelabs_ezsp_utility  sendVersion: V4
2022-02-19 17:31:16  DEBUG    elelabs_ezsp_utility  EZSP v7 detected
2022-02-19 17:31:16  DEBUG    elelabs_ezsp_utility  sendVersion: V7
2022-02-19 17:31:16  DEBUG    elelabs_ezsp_utility  getValue: VER
2022-02-19 17:31:16  DEBUG    utils         NCP state: normal, version: NCP v6.6.2-126
2022-02-19 17:31:16  DEBUG    elelabs_ezsp_utility  launchStandaloneBootloader: BOOT
2022-02-19 17:31:18  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 17:31:18  DEBUG    ezsp          NCP first line error: b'@\x00\r\n'
2022-02-19 17:31:18  DEBUG    utils         NCP state: None, version: NCP v6.6.2-126
2022-02-19 17:31:18  DEBUG    utils         Try to update Zigbee NCP to version v6.7.10
2022-02-19 17:31:18  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 17:31:18  DEBUG    ezsp          NCP first line error: b'@\x00\r\n'
2022-02-19 17:31:18  DEBUG    elelabs_ezsp_utility  RESET FRAME

I am using the custom open telnet command and i am on firmware 1.5.0_0102 stock

Try to reboot gateway before change mode

This is the new log
2022-02-19 19:07:52  DEBUG    utils         Try to update Zigbee NCP to version v6.7.10
2022-02-19 19:07:52  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:07:53  DEBUG    elelabs_ezsp_utility  sendVersion: V4
2022-02-19 19:07:53  DEBUG    elelabs_ezsp_utility  EZSP v7 detected
2022-02-19 19:07:53  DEBUG    elelabs_ezsp_utility  sendVersion: V7
2022-02-19 19:07:53  DEBUG    elelabs_ezsp_utility  getValue: VER
2022-02-19 19:07:53  DEBUG    utils         NCP state: normal, version: NCP v6.6.2-126
2022-02-19 19:07:53  DEBUG    elelabs_ezsp_utility  launchStandaloneBootloader: BOOT
2022-02-19 19:07:56  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:07:56  DEBUG    ezsp          NCP first line error: b'@\x00\r\n'
2022-02-19 19:07:56  DEBUG    utils         NCP state: None, version: NCP v6.6.2-126
2022-02-19 19:07:56  DEBUG    utils         Try to update Zigbee NCP to version v6.7.10
2022-02-19 19:07:56  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:07:56  DEBUG    ezsp          NCP first line error: b'@\x00\r\n'
2022-02-19 19:07:56  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:08:00  DEBUG    base          <IP_ADDRESS> [MQTT] zigbee/send b'{"cmd":"report","id":2000000009,"did":"lumi.0","time":1645290478796,"rssi":0,"zseq":0,"params":[{"res_name":"8.0.2024","value":0},{"res_name":"8.0.2157","value":27044}],"dev_src":"0"}'
2022-02-19 19:08:00  DEBUG    base          <IP_ADDRESS> [LUMI] 6490c1781978 (lumi.gateway.mgl03) recv {'channel': 0}
2022-02-19 19:08:06  DEBUG    ezsp          NCP first line error: b"'\xf8\x8c\x861\x86\xa9\x95\xd0l\xe5\x13\xd8E|\x07\xe4\x13\x07\xaf%\xb0\x88%\xfa\xae\xa61\x86\xa9\x95\x90L\xe11\xd8G\\x07\xa4\x13\x07\x8f\x07\xb0\x88"
2022-02-19 19:08:06  DEBUG    utils         NCP flash error
2022-02-19 19:08:06  DEBUG    utils         Try to update Zigbee NCP to version v6.7.10
2022-02-19 19:08:06  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:08:06  DEBUG    ezsp          NCP first line error: b'@\x00\r\n'
2022-02-19 19:08:06  DEBUG    elelabs_ezsp_utility  RESET FRAME
2022-02-19 19:08:16  DEBUG    ezsp          NCP first line error: b'%\xf8\xae\xa6\x13\x86\x8b\x97\xd0l\xe1\x13\xd8e|\x07\xe4\x13\x07\xaf%\xb0\x88%\xfa\xae\x861\x86\xa9\x95\x90L\xe11\xd8G\\x07\xa4\x13\x07\x8f\x07\xf0\x88'
2022-02-19 19:08:16  DEBUG    utils         NCP flash error

Here is my hassio config

Tell the story of your gateway. What have you done with it before? From the beginning. Have you flashed it? Or anything else.

Bought it around September 202, used it for a while directly in homekit and mi app. After that I decided to go with homeassistant and used your integration around the beginning of 2021. Everything worked fine until the first version after 1.5.1. Over time i had a combination of the modded firmware and stock firmware, only recommended versions from your github. Now I have stock firmware, but I even tried the modded firmware. Is there a way to manually update the NCP firmware and in a verbose way to debug it more?
Razvan Temelcea

Yes. You can manually change firmware via telnet
https://github.com/zvldz/mgl03_fw/tree/main/zigbee
This is the first time I've seen such an error. Is the zigbee chip working now? Can it work with Xiaomi/Aqara devices in MiHome mode?
I know how to recover a zigbee chip from very difficult situations. Let me know if manual installation via telnet does not help.

As of right now, I rolled back to 1.5.1 and I’m using zha  that way. Also tried using my Xiaomi bulbs with mi app and they work. When I have the chance, I will update the zigbee firmware manually and I will post the results. To make sure, I should update the firmware, install the 2.0.5 version then enable zha.
Razvan Temelcea

The same error on 2.0.4, 2.0.6 versions of Xiaomi Gateway 3

Detected EZSP v7
Rebooting to bootloader
Sending upload command
Sending ncp-uart-sw_mgl03_6_7_10_z2m.gbl, 1548 blocks: Give your local XMODEM re          ceive command now.
Xmodem sectors/kbytes sent:   0/ 0kRetry 0: Got 0d for sector ACK
Retry 0: Got 0d for sector ACK
Retry 0: Got 0d for sector ACK
Retry 0: Got 0d for sector ACK
Upgraded to 1.5.1 modded . This is the manual zigbee firmware upgrade

Any suggestion?

Please reopen the issue if it is still relevant


abstractmethod decorator breaks OCP 0.0.6 compat.

This refactor breaks compat with OCP 0.0.6 and OCP 0.0.7a2 includes a dependency on ovos-utils 0.1.0. This should probably be updated for backwards-compat. so it may be included with ovos-core 0.0.8 which will not depend on ovos-utils 0.1.0
2024-05-17 15:24:03.671 - audio - ovos_audio.audio:load_services:128 - INFO - Found audio service plugin: ovos_common_play
2024-05-17 15:24:03.684 - audio - ovos_plugin_manager.audio:setup_audio_service:70 - ERROR - Failed to load audio service. TypeError("Can't instantiate abstract class OCPAudioBackend with abstract method playback_time")

Originally posted by @NeonDaniel in https://github.com/OpenVoiceOS/ovos-plugin-manager/pull/226#discussion_r1605592732

fixed by #230


Adjust for SVN r352827

Update for getOrInsertFunction API in LLVM.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @bob-wilson

CC: @shajrawi

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 6a1072d825a6529d15901ed3c46430b2d1fbae30

Build failed
Swift Test OS X Platform
Git Sha - 6a1072d825a6529d15901ed3c46430b2d1fbae30

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 6a1072d825a6529d15901ed3c46430b2d1fbae30

Build failed
Swift Test OS X Platform
Git Sha - 6a1072d825a6529d15901ed3c46430b2d1fbae30

The PR testing seems to be broken now. I'll just merge this. It looks good to me.


plural and stringsdict support

People familiar with other systems will almost immediately recognize this English-as-key approach as similar to gettext, a Unix translation facility from the late 1980s. Such a comparison will almost immediately raise a question: where is the plural facility?
If I am not mistaken, the current form of the python tool only generates strings files, which has no capacity to handle plural stuff (NSStringPluralRuleType). For truly international programs, this is often needed since plural rules vary widely among languages. Please consider putting plural support on your TODO list.
(Python has a builtin plistlib library that makes dealing with plists less of a headache. You will still need to come up with a way to select the NSStringFormatValueTypeKey used for the plural though.)

You are absolutely correct on this. It's an issue we are well aware of and something we do have plans for in the future. We have nothing concrete at this point though.

What we want is a way to represent the multiple plural substitutions in one string. There actually is a string format system called ICU MessageFormat that does the whole sort of stuff, and we can simplify its syntax to something like:
Localized("{ eggs, d, one: An egg, other: %{} eggs } in { drawers, x, one: a drawer, other: %{} drawers }", "Comment here...");

In Python we can parse this {VAR, FMT, one: ONE, other: OTHER} sort of stuff. The example is meant to yield the following plist structure:
{
    "SomeKey "=     {
        NSStringLocalizedFormatKey = "%1$#@eggs@ in %2$#@drawers@";
        drawers =         {
            NSStringFormatSpecTypeKey = NSStringPluralRuleType;
            NSStringFormatValueTypeKey = x;
            one = "a drawer";
            other = "%x fields";
        };
        geese =         {
            NSStringFormatSpecTypeKey = NSStringPluralRuleType;
            NSStringFormatValueTypeKey = d;
            one = "An egg";
            other = "%d eggs";
        };
    };
}

If I get this right, I can do this in the dotstrings module as an extra transformation step. After extraction by XCode it can run the parser, get the parsed entries, turn some into dict entries, and emit the new dict.

@dalemyers I'm planning to add support for stringsdict in a way that is more consistent with how Apple does it. Using %#@ like "I ate %#@appleCount@ and %#@bananaCount@" with no change to the Objective-C API.
let str = Localized("I ate %#@appleCount@ and %#@bananaCount@", comment: "Comment for a string with cardinal numbers")
let localized = String.localizedStringWithFormat(str, 1, 2)

In localizedstringkit python code, we detect<EMAIL_ADDRESS>pattern with regex from the scanner result, and generate stringsdict for these entries.


Kwxm/benching update integer copy

Just a small PR to update something in the benchmarking code.

Pre-submit checklist:

Branch

[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[ ] Relevant tickets are mentioned in commit messages

PR

[x] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

If you updated any cabal files or added Haskell packages:

[ ] nix-shell shell.nix --run updateMaterialized to update the materialized Nix files
[ ] Update hie-*.yaml files if needed

If you changed any Haskell files:

[ ] nix-shell shell.nix --run fix-stylish-haskell to fix any formatting issues

If you changed any Purescript files:

[ ] nix-shell shell.nix --run fix-purty to fix any formatting issues

Pre-merge checklist:

[ ] Someone approved it
[ ] Commits have useful messages
[ ] Review clarifications made it into the code
[ ] History is moderately tidy; or going to squash-merge

This is pretty trivial so I'll just merge it myself.


LNPoS Menu Button Not Working

After selecting LNPoS as a payment method, the Menu button does not do anything and forced to restart the stack

Seems to be fixed after removing && onchainCheck from line 554


Document that /usr/bin/env no longer gets environment variables from the container

I believe I've found an undocumented change from #166 .
Over at https://github.com/pbkhrv/rtl_433-hass-addons/blame/a698bb7e676f8c46fc147cd257ba22f6f9495861/rtl_433/run.sh#L1 we've been using #!/usr/bin/env bashio in our run scripts since the project was started. In rebuilding containers, those scripts now fail because none of the environment variables (like SUPERVISOR_TOKEN) are passed through. Switching to #!/usr/bin/with-contenv fixes this.
I haven't found exactly why this changed, other than running git bisect and confirming that the merge from #166 is the first bad commit.
It would be good if this could be documented somewhere as it's pretty tricky to track down.

Switching to #!/usr/bin/with-contenv fixes this.

It should have always been that. Please consult the S6-Overlay documentation for more information about using the S6 Overlay.
https://github.com/just-containers/s6-overlay#readme
This is not a bug or recent change, therefore closing this issue.
../Frenck


The provider verification doesn't fail when the value for a generated body attribute wasn't set

When a generated body attribute is used in the definition of an interaction, the TypeMatcher successfully matches the response body even if the expected value was not provided in the state callback.
Dsl interaction:
.body(new PactDslJsonBody()
     .valueFromProviderState("accountId", "${accountId}", "4beb44f1-53f7-4281-a78b-12c06d682067"))

Pact fragment:
"response": {
        "status": 200,
        "body": {
          "accountId": "4beb44f1-53f7-4281-a78b-12c06d682067"
        },
        "matchingRules": {
          "body": {
            "$.accountId": {
              "matchers": [
                {
                  "match": "type"
                }
              ],
              "combine": "AND"
            }
          }
        },
        "generators": {
          "body": {
            "$.accountId": {
              "type": "ProviderState",
              "expression": "${accountId}"
            }
          }
        }
      }

The expected failure should be:
BodyComparisonResult(mismatches={$.accountId=[BodyMismatch(expected="null", actual="af45e0ca-22dd-41fb-8d20-d4494df34e13", mismatch=Expected "null" but received "af45e0ca-22dd-41fb-8d20-d4494df34e13", path=$.accountId, diff=null)]}, diff=[{, -  "accountId": "null", +  "accountId": "af45e0ca-22dd-41fb-8d20-d4494df34e13", }])

The TypeMatcher has been added in the following patch: https://github.com/DiUS/pact-jvm/commit/80aa4db43775a3524274eba11d8eb19ce01deb71
Please note that for a generated response header attribute, no matchers are added and provider verification works as expected.

The issue here is that the expression "${accountId}" becomes the string "null", which has the correct type.
It would be better to use a matcher that checks for a UUID, instead of any string.
The other thing to do is not use an expression, just the key. That will get the desired result.
I.e,
.body(new PactDslJsonBody()
     .valueFromProviderState("accountId", "accountId", "4beb44f1-53f7-4281-a78b-12c06d682067"))

results in
BodyComparisonResult(mismatches={$.accountId=[BodyMismatch(expected=null, actual="4beb44f1-53f7-4281-abcd-12c06d682067", mismatch=Expected "4beb44f1-53f7-4281-abcd-12c06d682067" to be null, path=$.accountId, diff=null)]}, diff=[{, -  "accountId": null, +  "accountId": "4beb44f1-53f7-4281-abcd-12c06d682067", }])

Thank you @uglyog for your help.
I'm not sure the UUID matcher is an option because I'd like to assert the equality between the expected and the actual field.
The suggested option with the key addresses the issue, I mean when no value is provided then verification fails, but when a value is provided it's not injected and verification still fails when it should pass.

I figured out why it wasn't injected - the interaction was expecting a String but the value from the provider sate was a UUID.


fix(youtube-player): Add playerVars input and tweak readme.

Fixes #17368. Closes #19267

What is the status here?
The playerVars still don't show up in the latest version on (at least inn my setup). ?!
Some clarity would be appreciated. :)

@YourDeveloperFriend if you don't have time wrap this one up, I wouldn't mind taking it over.

@Kristiyan that would be great. I have a lot going on, and this keeps
getting punted. Thanks!
On Tue, Jun 23, 2020 at 4:43 AM Kristiyan Kostadinov <
<EMAIL_ADDRESS>wrote:

@YourDeveloperFriend https://github.com/YourDeveloperFriend if you
don't have time wrap this one up, I wouldn't mind taking it over.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/components/pull/17672#issuecomment-648093028,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANZPHXV6H2CTWICGDLX2OLRYCIPHANCNFSM4JL2UF5A
.

playerVars were added in https://github.com/angular/components/pull/19746 so this PR can be closed.

playerVars were added in https://github.com/angular/components/pull/19746 so this PR can be closed.


Login Information Retrieving

Is there any way to retrieve the login information ?

Trying to find a way through the source codes


[BUG]:

Steps to reproduce:

Just placed the script at the plugins and ran refresh nothing special

Stack trace:
{"user_data": {"platform": "win32", "python_version": "3.8.2", "plugin_version": "1.8.0", "ida": {"kernel_version": "7.6", "bits": 32}}, "exception_data": {"exception_type": "UnboundLocalError", "exception_value": "local variable 'algorithms' referenced before assignment"}, "frames": [{"frame_index": 2, "line_number": 570, "function_name": "OnBtnRefresh", "line": "sorted_algorithms = sorted(algorithms, key = lambda algorithm: algorithm[0].lower())", "locals": {"self": "<__plugins__hashdb.hashdb_settings_t object at 0x000002BA20DAA2B0>", "code": "0", "api_url": "'https://hashdb.openanalysis.net'"}}]}

Error Log
  bytes   pages size description
--------- ----- ---- --------------------------------------------
   524288    64 8192 allocating memory for b-tree...
   278528    34 8192 allocating memory for virtual array...
   262144    32 8192 allocating memory for name pointers...
-----------------------------------------------------------------
  1064960            total memory allocated

Loading processor module C:\Program Files\IDA Pro 7.6\procs\pc.dll for metapc...Initializing processor module metapc...OK
Loading type libraries...
Autoanalysis subsystem has been initialized.
Database for file 'meter_x32_reverse_winhttps_1645148307.exe' has been loaded.
Hex-Rays Decompiler plugin has been loaded (v<IP_ADDRESS>319)
  License: 57-B81B-7F84-88 Palo Alto Networks Ltd (1 user)
  The hotkeys are F5: decompile, Ctrl-F5: decompile all.

  Please check the Edit/Plugins menu for more informaton.
================================================================================
   _   _           _    ____________
  | | | |         | |   |  _  \ ___ \
  | |_| | __ _ ___| |__ | | | | |_/ /
  |  _  |/ _` / __| '_ \| | | | ___ \
  | | | | (_| \__ \ | | | |/ /| |_/ /
  \_| |_/\__,_|___/_| |_|___/ \____/

HashDB v1.8.0 by @herrcore

HashDB search shortcut key is Alt+`
================================================================================
No saved HashDB configuration
---------------------------------------------------------------------------------------
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]
IDAPython v7.4.0 final (serial 0) (c) The IDAPython Team<EMAIL_ADDRESS>---------------------------------------------------------------------------------------
ERROR: HashDB API request failed: HTTPSConnectionPool(host='hashdb.openanalysis.net', port=443): Max retries exceeded with url: /hash (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')))
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 237, in 'calling callback function'
  File "C:\Program Files\IDA Pro 7.6\python\3\ida_kernwin.py", line 9792, in helper_cb
    r = self.handler(button_code)
  File "C:/Program Files/IDA Pro 7.6/plugins/hashdb.py", line 570, in OnBtnRefresh
    sorted_algorithms = sorted(algorithms, key = lambda algorithm: algorithm[0].lower())
UnboundLocalError: local variable 'algorithms' referenced before assignment
ERROR: HashDB API request failed: HTTPSConnectionPool(host='hashdb.openanalysis.net', port=443): Max retries exceeded with url: /hash (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')))
HashDB settings saved
HashDB: HashDB terminated...
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 237, in 'calling callback function'
  File "C:\Program Files\IDA Pro 7.6\python\3\ida_kernwin.py", line 9792, in helper_cb
    r = self.handler(button_code)
  File "C:/Program Files/IDA Pro 7.6/plugins/hashdb.py", line 570, in OnBtnRefresh
    sorted_algorithms = sorted(algorithms, key = lambda algorithm: algorithm[0].lower())
UnboundLocalError: local variable 'algorithms' referenced before assignment
HashDB configuration cancelled!

I guess it has something to do with my HTTPS connection

Worked once i disabled my VPN


Error handling and logging bug fixes

The changes are from https://github.com/Rykian/clockwork master branch.
Mostly important bug fixes for logging errors when a job finished running.

We should probably upstream the 921b7e5 commit here, this way we wouldn't need to maintain this anymore.

@rafaeelaudibert I agree. Why not submit the PR to the official repo?


feat: Init Network Types

This PR marks the beginning of implementing the Network types according to the official CL specs.
Uses alloy-primitives and  will add ghiliweld-sszb as and when required.

It appears lint is failing for the CI, I made a PR so we can do make lint going forward https://github.com/ReamLabs/ream/pull/17


Headset disconnected error everytime I try to use VR

Since I installed Bloxstrap, anytime I try to play any game on VR mode, I immediately seem to get this error message, no matter what I do.

I reinstalled Bloxstrap, and the problem seems to have fixed itself, but this time I renamed it to Roblox, instead of Bitchstrap. Maybe that might be the issue?

but this time I renamed it to Roblox
What did you rename? The exe file before installing it?


Lint and format docs

Fixes #135

Thanks for the review, I've made the necessary updates :)

It doesn’t exist already but it might be nice to have a linting subsection in the dev guide, explaining what is linted with what tools and with a pointer toward make fix.

It doesn’t exist already but it might be nice to have a linting subsection in the dev guide, explaining what is linted with what tools and with a pointer toward make fix.

Feel free to add more to the existing lint and fix section

Oops, forgot that was in the build instructions.

Also the contributing guidelines should be moved to the 99 developer page as they include required information (like e.g. closing PRs with non-substantive changes or without prior discussion for big features). But we can do in a followup PR to avoid conflicts


Fix fg/bg and modeline-bright

This PR fixes the fg/bg without solaire-mode and modeline color when modeline-brighter is t in the following themes:

Solarized light
Citylights
Nord
Dracula

#146 Fixed in recent commit

I think it's good to go

Ahh.... just clicked the wrong button....


A few minor spelling suggestions

Not sure if all of these are correct. Mostly I added a few articles like "a" and "the" and gave a few suggestions on alternate wording.

It's hard to see the changes, github shows only whole paragraphs?

Thanks for taking your time! What do you think about the idea?

Loved the article. Read some of the old Google knols associated with it, and am reading A Philosophical Treatise of Universal Induction, which I saw mentioned somewhere.
I am going to look through the Python and Julia code, too, eventually.

Thanks! We don't have any Julia code at the moment and plan to stick with Python for as long as possible. Let me know if you want to talk about it.

Philosophical Treatise of Universal Induction is not directly relevant, I cite it to underscore the difference: primary search should be over the inputs, not over operations to process them.

@Mechachleopteryx
long time ago but in response to 'I am going to look through the Python and Julia code, too, eventually.', did you ever take a look over the code?

@Mechachleopteryx
long time ago but in response to 'I am going to look through the Python and Julia code, too, eventually.', did you ever take a look over the code?


how to change the terminal input value based on a button action

Hi @nitin42, I need to change the terminal input value based on the button action from my component.  As of now i am using printToActive of the terminal ref which actually prints the command. But for my case, i just want to show the value in terminal based on the button action, then the user can edit it.
Is there any way to achieve this?

Now i achieved it through this.terminalObj.state.instances[0].instance.com.value, but if there was a prop for that in the terminal then it will be more convenient.

Hey @SanthoshDhandapani , would you be able to explain how you were able to do that? I am running into the same issue where I can't change the terminal input value based on changing component state.

Hi @jeffconnelly, I have created a variable as terminalObj in the class component then in the terminal component <Terminal ref={(terminal) => { this.terminalObj = terminal; }} /> using the ref in Terminal component I got the reference of the terminal component. Then as i mentioned in previous command I change its value like this this.terminalObj.state.instances[0].instance.com.value

@SanthoshDhandapani That worked! Thanks for the help, appreciate it.

@jeffconnelly Glad to hear that it helped you 🙂


Not able to execute generictest from testhub since source filter is always set to *.dll and not able to change it to generictest through any options

Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Environment

Server - VSTS or TFS on-premises?

If using TFS on-premises, provide the version:

If using VSTS, provide the account name, team project name, build definition name/build number:

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name:

If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description
[Include task name(s), screenshots and any other relevant details]
Error logs
[Insert error from the logs here]

This project is for issues with tasks in VSTS.  Questions or bug reports about the Test Hub should be directed to Developer Community.


Missing Capability NET_RAW in manifest?

I tried running kube-vip as a static Pod using ARP

OS/Distro: Ubunutu20.04
Kubernetes Version: v1.19
cri-o Version: v1.19
Kube-vip Version: 0.2.3

After bootstraping the cluster the ARP Broadcast fails with
time="2020-12-18T13:52:10Z" level=info msg="Broadcasting ARP update for <IP_ADDRESS> (b0:26:28:f1:e2:a6) via eno3"
time="2020-12-18T13:52:10Z" level=warning msg="failed to get raw socket: operation not permitted"

I tracked this down to the NET_RAW Capability and after adding it to
 securityContext:
      capabilities:
        add:
        - NET_ADMIN
        - SYS_TIME
        - NET_RAW

in the manifest everything seems to work.
Not sure if this should be the default, feel free to close this if this is just needed for my setup.
But maybe this is useful for someone else.
Kube-vip.yaml:
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  name: kube-vip
  namespace: kube-system
spec:
  containers:
  - args:
    - start
    env:
    - name: vip_arp
      value: "true"
    - name: vip_interface
      value: eno3
    - name: vip_address
      value: <censored>
    - name: vip_leaderelection
      value: "true"
    - name: vip_leaseduration
      value: "5"
    - name: vip_renewdeadline
      value: "3"
    - name: vip_retryperiod
      value: "1"
    image: plndr/kube-vip:0.1.8
    imagePullPolicy: Always
    name: kube-vip
    resources: {}
    securityContext:
      capabilities:
        add:
        - NET_ADMIN
        - SYS_TIME
    volumeMounts:
    - mountPath: /etc/kubernetes/admin.conf
      name: kubeconfig
    - mountPath: /etc/ssl/certs
      name: ca-certs
      readOnly: true
  hostNetwork: true
  volumes:
  - hostPath:
      path: /etc/kubernetes/admin.conf
    name: kubeconfig
  - hostPath:
      path: /etc/ssl/certs
    name: ca-certs
status: {}

This is odd, i've never had anyone report this as an issue before.
https://man7.org/linux/man-pages/man7/capabilities.7.html
NET_ADMIN, has normally been fine for modifying interfaces.. I wonder if this is specific to the ubuntu 2004 kernel.

I appreciate the testing btw!, I'm happy to add this capability to the manifests. The majority of "scary" capabilities are in the NET_ADMIN cap anyway.

Yeah i did not find any other bug reports for this error, and i think my setup is pretty common.
I am running the 5.4.0-58-generic kernel.
Thanks for the quick response!

Fixed in #148 (along with CI)


Tweak block_till_done

Every time you refer to a weakmap it will remove all entries that no longer exist. In our block_till_done method we referred to it twice and it could happen that the map became empty between the time that we checked the length and it got passed into asyncio.wait, causing asyncio.wait to raise an error.

Yeah I also see that on travis.


fix!(bolt): adsgarevba

Changes

Merge activity

Feb 21, 2:42 PM EST: @AngelOnFira started a stack merge that includes this pull request via Graphite.

Current dependencies on/for this PR:

#7  👈
main

This stack of pull requests is managed by Graphite.


Slack link down

Documentation Is:

[x] Missing or needed
[ ] Confusing
[ ] Not Sure?

Please Explain in Detail...
The link to slack in the official doc shows Application Error
Your Proposal for Changes
Example
https://chartjs-slack.herokuapp.com/

This is because of that the link is hosted on a free plan, which is out of data, the link should work again first day of the next month

got it thanks


Issue with fitDimension when using stateless components

My canvas is a stateless component.
const Canvas = (props) =>
  <ChartCanvas {...props}>
     {...chartData}
  </ChartCanvas>

export default fitDimensions(Canvas);

When I resize the window, I get this error:
Uncaught TypeError: Cannot read property 'parentNode' of null
    at getDimensions (fitDimensions.js?0e68dbf:50)

Any idea what is the best way to workaround this?

if you use fitDimensions it has to be a class as it uses a ref. you could not use fitDimensions and pass in the height, width, ratio yourself


Javascript redirections using relative urls

Hi, first, thanks for splash which is a great lightweight alternative to phantomJS or selenium.
Recently, i've been through some issue which is unfortunately not repeatable
I've ben trying to figure out how scrapy handles popups so i've made multiple requests to http://www.popuptest.com/popuptest1.html with scrapy.
Then, i've tried to run that simple script on http://www.google.com, it just goes to the page and then uses javascript redirection to the same page again. Unfortunately, i was always redirected to the popuptest page, what is really annoying. The absolute redirections worked fine, but the relatives one would consider the base page being http://www.popuptest.com/popuptest1.html
I've fixed the problem by restarting the docker container. And i've not succeeded in recreating it.
However, I thought you would like to be informed of that issue.
function main(splash)
  local url = splash.args.url
  assert(splash:go(url))
  assert(splash:wait(0.5))
  assert(splash:runjs('window.location.replace("")'))
  assert(splash:wait(2))
  return {
    html = splash:html(),
    png = splash:png(),
    har = splash:har(),
  }
end

Has it ever happened again since you reported it?


[Addition]: Puny Blush Poodle Packet forwarder ?

Hotspot b58 Addresses
112RMFBfirSN1L2pU4rxCzhM2YjJg7vMtKAStLxxS1g183vKf6wY
Discord Handle
No response
Reason(s)
packet forwarder 100 km away

Hey,
That is actually my miner, i just installed it last week
It's a regular sensecap with a 8 DBI antenna.
I have no idea why this is happening, i also see a lot Invalid Witness: Witness RSSI too high,
My other miner is not working so i can't check if that one has the same behavior.
Please do not put on deny list.


Feat/create user objects

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Added base functionality for users in parties. While socket.io has some basic data which tracks users in rooms, we'll need to keep track of usernames and images.

What is the current behavior? (You can also link to an open issue here)
None. I'm building the foundation of our backend. New functions for creating and removing users was added. These can be reused in future events.

What is the new behavior (if this is a feature change)?
Rooms now store the usernames and images of party members. When a user joins a room, a new User object is added to the room. When a user leaves their User object is removed from the room. The same thing happens when a room is either created or destroyed (with a Room object).

Other information:
N/A I'll want to add some test cases, but I'm unsure where those go and how to create them.

@rkrishn7 How and where can I place unit tests for my changes?


Typescript Linting Error

When using your library, the following linting error has started to appear in VSCode for me:
Argument of type '{ size: number; strokeWidth: number; "stroke-width": number; }' is not assignable to parameter of type 'SVGProps'.
  Object literal may only specify known properties, but 'strokeWidth' does not exist in type 'SVGProps'. Did you mean to write 'stroke-width'?ts(2345)

I use it as follows:
<template>
<icon-plus :size="20" :stroke-width="1.5" />
</template>
<script setup lang="ts">
import { IconPlus } from '@tabler/icons-vue'
</script>

+1

@.***/icons-vue` is a different library.
On Sun, Jul 2, 2023, 18:11 Dima Kaltovich @.***> wrote:

+1
—
Reply to this email directly, view it on GitHub
https://github.com/alex-oleshkevich/vue-tabler-icons/issues/41#issuecomment-1616716878,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE3HSGDOGBLG2PU35QBI33XOGMU5ANCNFSM6AAAAAAY2D6WQ4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I have the same issue

I managed to solve it by applying a work around.
Created a file named vue_tabler_icon.d.ts under types/... (as you want).
Then used:
// eslint-disable-next-line @typescript-eslint/no-unused-vars import { SVGAttributes, VNodeProps } from 'vue'; declare module '@vue/runtime-dom' {   export interface HTMLAttributes {     $children?: VNodeChild;   }   export interface SVGAttributes {     $children?: VNodeChild;     strokeWidth?: string | number;   } }


fix(chat): add invitationId validation

Fixes https://github.com/epam/ai-dial-chat/security/code-scanning/22
To fix the SSRF vulnerability, we need to validate and sanitize the invitationId before using it to construct the URL. One way to do this is to ensure that invitationId matches a specific pattern or set of allowed values. This can be done using a whitelist of valid invitationId values or by using a regular expression to validate the format of invitationId.
In this case, we will use a regular expression to ensure that invitationId only contains alphanumeric characters and is of a reasonable length. This will prevent malicious input from being used to manipulate the URL.
Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.
Details:
No release type found in pull request title "Fix code scanning alert no. 22: Server-side request forgery". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - fix
 - hotfix
 - feat
 - feature
 - chore

/deploy-review


Add curses support to PowerShell

As people are going back to the console for management (instead of primarily GUI), we should support curses to enable console based GUIs.

[ ] out-gridview implementation
[ ] get-member interactive navigation

Show-Command?

People are not "going back" to consoles for management!  They are forced to use it as there is no real alternatives!

In one of the posted issues: https://github.com/PowerShell/PowerShell/issues/1808
I mention about using Python Tk with PowerShell.  I think Python would be a BIG candidate to help overcoming the missing GUI component in PowerShell.

:)

I guess Microsoft love Xamarin 😄

Yes to enabling a seperate searchable help window a la -showwindow. That's a useful capability

Hum!! @SteveL-MSFT ... does this count as a "Experimental Flag" feature.
I'm up for it!

New name will difficult to discover. Perhaps it should be proxy to add new parameter -gui.

With dotnet core 3 preview 5 out now and shipping working WPF on dotnet core, is this something that should work now?
I can import PresentationFramework.dll but I get errors when trying to run XamlReader::Load
[Windows.Markup.XamlReader]::Load
The following exception occurred while retrieving member "Load": "Could not load type 'MS.Internal.SecurityCriticalDataForSet`1' from assembly 'WindowsBase, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

@1RedOne you would need to use the feature-netcore30 working branch which has .NET Core 3.0 but isn't ready to be merged.  Also .NET Core 3.0 doesn't have a complete implementation of WPF yet.

@SteveL-MSFT Could you please update the issue description with current status and intentions?

@iSazonov this is post PS7, no work (from my team) is currently happening for this

For console ui's, I'd like to point you to this: https://appliedgo.net/tui/
It shows what we can get out of it with an good abstraction.
This could also help resolving #12113

Closing as work is happening here https://github.com/PowerShell/GraphicalTools/tree/master/src/Microsoft.PowerShell.ConsoleGuiTools


[1.5.x][KOGITO-4952] Support installing product operator using insecure regi…

…stry
https://issues.redhat.com/browse/KOGITO-4952
Signed-off-by: Karel Suta<EMAIL_ADDRESS>Many thanks for submitting your Pull Request :heart:!
Please make sure your PR meets the following requirements:

[x] You have read the contributors' guide
[x] Pull Request title is properly formatted: [KOGITO-XYZ] Subject
[x] Pull Request contains a link to the JIRA issue
[x] Pull Request contains a description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket
[ ] Your feature/bug fix has a unit test that verifies it
[ ] You've tested the new feature/bug fix in an actual OpenShift cluster
[ ] You've added a RELEASE_NOTES.md entry regarding this change

Cherrypick of https://github.com/kiegroup/rhpam-kogito-operator/pull/19

/jenkins test

/jenkins test

@sutaakar I think the default config is still pointing to master branch ...

and I just saw https://github.com/kiegroup/rhpam-kogito-operator/pull/24#pullrequestreview-646078428 :D

/jenkins test

test failures related to https://github.com/kiegroup/rhpam-kogito-operator/pull/25

/jenkins test


amount and halve implementation for Dict and DictView is wrong

This seems to assume some maybe bad things about Dict.
e.g.
julia> using SplittablesBase: amount, halve

julia> d = Dict(:a =>"one", :b=>"two", :c=>"three", :d=>"four", :e=>"five");

julia> l, r = halve(d);

julia> amount(d), length(d)
(16, 5)

julia> amount(l), length(l)
(8, 4)

julia> amount(r), length(r)
(8, 1)

i think you can get a better estimate by just using d.count ÷ 2 instead of doing what is being done right now (but it would be still different to length)


MongoDB compatibility

Hi
I'm trying to use Mailhog to connect to MongoDb Atlas (the cloud offering) and I have not managed.
I use Docker locally and can connect Mailhog to a local mongo instance with no issues.
However connecting to Atlas does not seem to work, always resulting in this type of message:
Error connecting to MongoDB: no reachable servers
They are however reachable as I can connect using Compass using the same connection string.
Has anyone faced the same issue?
Thanks
Vincent

Hello @vmary2014, I am having the same issue right now, I am curious if you were able to resolve this? Thanks.

The issue as I recall was that the original version could not connect due to outdated libraries, Mongo having changed the way you  connect.
I created a PR a long time ago now https://github.com/mailhog/storage/pull/12/files to add the latest drivers but it never got approved or even looked at.
At the time my code worked, but we stopped using mailhog completely now.


Added identity_id to the logs for better traceability

I had to make some adjustments to other packages to avoid import cycles. To avoid some spaghetti code, I decided to go with this solution instead of creating interfaces here and there.
I named the property as identity_id similar to the other property req_id.

Codecov Report

Merging #807 into master will increase coverage by 0.19%.
The diff coverage is 61.53%.

@@            Coverage Diff             @@
##           master     #807      +/-   ##
==========================================
+ Coverage   70.05%   70.24%   +0.19%
==========================================
  Files          76       78       +2
  Lines        5276     5300      +24
==========================================
+ Hits         3696     3723      +27
+ Misses       1227     1224       -3
  Partials      353      353

Impacted Files
Coverage Δ

token/token.go
85.71% <ø> (-6.45%)
:x:

login/token/token.go
100% <100%> (ø)

workitem/workitemtype_repository.go
85% <100%> (+0.09%)
:white_check_mark:

log/log.go
45.68% <40%> (-2.43%)
:x:

login/service.go
64% <42.85%> (-1.05%)
:x:

workitem/workitem_repository.go
71.93% <66.66%> (-0.32%)
:x:

log/context.go
68.75% <68.75%> (ø)

... and 4 more

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 cadc280...d58e3e9. Read the comment docs.

@hectorj2f https://github.com/almighty/almighty-core/pull/812

@aslakknutsen @alexeykazakov  Can I move forward with this ? @alexeykazakov made the changes for the tests so...


Version 1.8.3

Note: Please select the rebase and merge option.
Changes proposed in this PR

Please see the changelog

Why are we making these changes?
Cutting for a new release.

Seems like this should be 1.9.0 based on the changes included


[explorer] fix: partial transaction display fee issue

What was the issue?

fee displayed incorrectly in partial/unconfirmed transactions detail and listing page.

What's the fix?

in unconfirmed/partial transactions, it will display the max fee.
in the confirmed transaction, it will display effective fees.
minor refactor transaction service unit test
added unit test

Sample:

partial/unconfirmed

confirmed

Looks good :+1:  I've checked:
:heavy_check_mark:  partial transaction details (max fee is presented)
:heavy_check_mark: unconfirmed transaction details (max fee is presented)
:heavy_check_mark: confirmed transaction details (fee is presented)
:heavy_check_mark: transaction list - confirmed txs (fee is presented)
:heavy_check_mark: transaction list - partial txs (max fee is presented)
:heavy_check_mark: transaction list - unconfirmed txs (max fee is presented)


Update schema and documentation for global-settings - Missing information on excludeSubscriptions

Describe the bug
In release 10.7.0, a new parameter was added to the global-settings.jsonc file: "excludeSubscriptions"
This setting seems to be missing from the schema file and the documentation.

Schema is updated but not documentation. Can we have some documentation about the feature?

It is documented here -> https://azure.github.io/enterprise-azure-policy-as-code/settings-desired-state/#the-desiredstate-element


Cisco Nexus 7k discovering as Kentik Default

Device Vendor: Cisco
Device Model: Nexus 7k Series
SolarWinds discovering using SYSOBJECTID = <IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>2

Attached SNMP-WALK.
SNMP-WALK.log

This sysoid is already in the nexus profile, i double checked your account and right now all the devices with that sysobjectid are mapping correctly to the nexus profile.
https://github.com/kentik/snmp-profiles/blob/ecdfd917701cdc6f68f1720bfb553db07d1667c5/profiles/kentik_snmp/cisco/cisco-nexus.yml#L13


Storage Scanner doesn't see Storage Crates on Xnet

When using the storage scanner, storage crates (Actually Additions) are only seen via the area scan. They don't show up on Xnet scan. Xnet controller is able to see them.
All The Mods 3 v3.01
RFTools v1.12-6.13

What? Can you clarify what you mean exactly?

Sorry looks like I had the Xnet Controller misconfigured.


[RFC] [WIP] API changes for enabling/disabling stream listeners.

This PR is a WIP and not meant to be merged as-is, instead we want to start discussing this prototype (initially proposed by @igorw a while back) that aims to provide a new API (BC ahead!!) offering an easier and less cumbersome way to enable and disable stream listeners, effectively providing a nice way to toggle read or write notifications for streams without having to re-add the callbacks to the event loop.
This is a just a basic example to partially show how it works in practice:
stream_set_blocking(STDOUT, 0);
stream_set_blocking(STDIN, 0);

$echo = null;
$loop = new React\EventLoop\StreamSelectLoop();

$loop->onWritable(STDOUT, function ($stream, $loop) use (&$echo) {
    if ($echo) {
        fwrite($stream, "JUST $echo??? SRSLY????".PHP_EOL);
    }

    fwrite($stream, "Write anything and press [ENTER]: ");

    $loop->disableWrite($stream);
    $loop->enableRead(STDIN);
});

$loop->onReadable(STDIN, function ($stream, $loop) use (&$echo) {
    $echo = rtrim(fread($stream, 128), PHP_EOL);

    $loop->disableRead($stream);
    $loop->enableWrite(STDOUT);
});

$loop->enableWrite(STDOUT);

$loop->run();

The current implementation, as the time of writing, provides just the basics for testing the new design of React\EventLoop\LoopInterface but it is likely there are some issues (e.g. enabling notifications for streams without an associated listener should throw an exception). The test suite has been simply adapted to the new API with no added test cases.
Share your thoughts please!
NOTE: this PR has been manually ported from reactphp/react#258 to include only the changes related to the event loop while updating parts of code affected by some radical changes introduced in the meanwhile in v0.4 and the current state of the master branch.

offering an easier and less cumbersome way to enable and disable stream listeners, effectively providing a nice way to toggle read or write notifications for streams without having to re-add the callbacks to the event loop

I'm not sure I understand the use case and how this is easier than our current approach. Can you elaborate? Thanks! :clap:

Ping @nrk, what's the status here? :shipit: Is there still interest in this ticket?

@clue status = stalled. I remember I did a few tests at that time by converting the internals of a couple of libraries of mine and eventually found the concept was indeed nice in theory (I mean the separation between the association of listeners to stream events and their actual activation / deactivation) but probably not really worth to have in practice.

FYI the AI event loop has this concept: https://github.com/async-interop/event-loop/blob/master/src/Loop.php#L259-L292

[…] the concept was indeed nice in theory […] but probably not really worth to have in practice.

@nrk Thank you for working on this and helping push this forward!
I'll assume this is resolved and will close this for now, please feel free to report back otherwise :+1:


Remove redundant npm dependency

Hello JuanIrache!
It seems like you have npm as one of your (dev-) dependency in gpmf-extract.
Since you actually need npm to install the dependencies it's redundant to
have npm itself as (dev-) dependency.
Therefore I've removed it and made this PR, merge if you want :)
Be sure to re-run npm i or yarn to actualize your lock files.
Beep boop, I'm a bot.

Wat


Add GromacsEngine to docs

We've had the Gromacs engine working in OPS since version 1.1, and the docstrings were in place and there was an example in the examples/ directory. However, none of this stuff had made it to the website. This PR puts it there.
While I'm at it, I'm going to try to clean up a few complaints that I see coming from sphinx.

This is ready for review. Only involves docs. Will leave up for 24 hours, merging no earlier than Thurs 20 Feb.


Fix up rmw_dds_common documentation when using rosdoc2

Precisely what the title says. This patch:

Updates the rmw_dds_common's Doxyfile.
Cleans up rmw_dds_common API doc blocks.
Rearranges a few md files to avoid path issues.

FYI the links to header files in FEATURES.md are not picked up by Doxygen and so they are broken. To the best of my knowledge, only docs.ros.org links to generated documentation, once we have them online, are the only ones that will work in both generated documentation and Github rendered documents.

Ci up to rmw_dds_common:

Linux
Linux-aarch64
macOS
Windows

Alright, CI's green. Going in !

This pull request has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2021-9-16/22372/1


Add-TeamViewerCustomization , not working?

Hello,
In the docs, there is a mention of the command Add-TeamViewerCustomization , however when trying to run the command on a machine it reports an error 👍
Add-TeamViewerCustomization : Le terme «Add-TeamViewerCustomization» n'est pas reconnu comme nom d'applet de commande, fonction,
fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin
d'accès est correct et réessayez.
Au caractère Ligne:1 : 1
+ Add-TeamViewerCustomization -Id 'xxxxx' -RestartGUI -RemoveExisting
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Add-TeamViewerCustomization:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Is this expected ?
thanks!

Hello @gonzague,
we a have special situation currently, which might be little confusing, as we are preparing the major version 2.
Current Situation:
On Github you are getting the version 1.5.2 as default package, but you could also get the new version 2 already, if you just download the source code.
On Powershell Gallery, you are also getting the version 1.5.2.
I assume, you installed TeamViewerPS from Gallery and got version 1.5.2.
If you now check the documentation on Github, you already see the upcoming cmdlets which are not included in version 1.5.2, like Add-TeamViewerCustomization.
You options
You can download and install the module from Github directly (not as package), or wait until we officially released it to Powershell Gallery.

Ok thanks a lot @ChristianJ-TV  ! Maybe it would make sense in the docs to mention the minimum version necessary :-]
Thanks for the great work anyway it will be helpful