Getting "KeyError: 'd'" when reading XML OData

I'm trying to read from this site:
http://knesset.gov.il/Odata/ParliamentInfo.svc/
The site is in XML and every table is saved in XML too.
For example:
http://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Agenda
When reading with python-pyodata, there is a key error when trying to get entities.
Code:
import requests
import pyodata

SERVICE_URL = 'http://knesset.gov.il/Odata/ParliamentInfo.svc/'

# Create instance of OData client
client = pyodata.Client(SERVICE_URL, requests.Session())

# This is the problematic line
a = client.entity_sets.KNS_Agenda.get_entities().execute()

The exception:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pyodata/v2/service.py", line 305, in execute
    return self._handler(response)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pyodata/v2/service.py", line 1102, in get_entities_handler
    entities = content['d']['results']
KeyError: 'd'

Is there a way to fix this?
Thanks in advance,

@aviasd Thank you for taking the time to report this issue. Unfortunately, I do believe the service is OData V3 service which is not supported yet.
I have created an experimental fix which is available on the branch:
https://github.com/SAP/python-pyodata/tree/experimental_v3
I was able to run your example without issues with pyodata from that branch. However, I didn't try to fetch any additional entity sets, so there might be more incompatibilities.
If you have time and you want to help us make pyodata better, please, try to use pyodata from the experimental_v3 branch and report results here.

@filak-sap Thank you for the quick answer and solution.
The solution is working perfectly well almost all of the time.
Today I ran into a problem for the first time:
The code:
import pyodata
import requests

SERVICE_URL = 'http://knesset.gov.il/Odata/ParliamentInfo.svc/'
client = pyodata.Client(SERVICE_URL, requests.Session())

# count is 44535
count = client.entity_sets.KNS_Bill.get_entities().count().execute()

laws = []
for i in range(34300, count, 100):
    laws += [client.entity_sets.KNS_Bill.get_entities().skip(i).top(100).execute()]

This is the error:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\model.py", line 409, in from_literal
    value = datetime.datetime.strptime(value, '%Y-%m-%dT%H:%M:%S.%f')
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 577, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 362, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: 7

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\model.py", line 412, in from_literal
    value = datetime.datetime.strptime(value, '%Y-%m-%dT%H:%M:%S')
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 577, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 362, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: .3766667

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\model.py", line 415, in from_literal
    value = datetime.datetime.strptime(value, '%Y-%m-%dT%H:%M')
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 577, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\_strptime.py", line 362, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: :50.3766667

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/Aviad/PycharmProjects/BigData/util_classes.py", line 44, in <module>
    laws += [client.entity_sets.KNS_Bill.get_entities().skip(i).top(100).execute()]
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\service.py", line 305, in execute
    return self._handler(response)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\service.py", line 1109, in get_entities_handler
    entity = EntityProxy(self._service, self._entity_set, self._entity_set.entity_type, props)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\service.py", line 723, in __init__
    self._cache[type_proprty.name] = type_proprty.typ.traits.from_json(proprties[type_proprty.name])
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\model.py", line 401, in from_json
    return self.from_literal(value)
  File "C:\ProgramData\Anaconda3\envs\BD\lib\site-packages\pyodata\v2\model.py", line 417, in from_literal
    raise PyODataModelError('Cannot decode datetime from value {}.'.format(value))
pyodata.exceptions.PyODataModelError: Cannot decode datetime from value 2019-04-28T19:40:50.3766667.

Process finished with exit code 1

Thank you,

Interestingly enough, Edm.DateTime allows 7 digits for microseconds while Python allows only 6 digits (which is sane because the 7th digit is hundreds of nanoseconds). For the time being, I will ignore the last 7th digit.
I posted a comment to a blog post about SAP Gateway Date Time:
https://blogs.sap.com/2017/01/05/date-and-time-in-sap-gateway-foundation/comment-page-1/#comment-497276

@aviasd I pushed commits fixing the recent problems you found to the branch experimental_v3. I can run all your requests without exceptions.
Please, keep in mind that the branch is not stable, not official and servers only the experimental purposes.

Hey,
I am using your branch experimental_v3,
It is working perfectly fine.
I have a question on the Usage:
I am trying to pickle <class 'pyodata.v2.service.EntityProxy'>, it is not working.. I get:
Traceback (most recent call last):
  File "C:/PycharmProjects/BigData/kafka_try.py", line 36, in <module>
    ab = pickle.dumps(a)
_pickle.PicklingError: Can't pickle <enum 'Kinds'>: attribute lookup Kinds on pyodata.v2.model failed

The purpose is to pickle or serialize it somehow so I can send it via kafka Producer.
Is there a way to do that?
Thank you very much,

Hi @aviasd, EntityProxy is a thin wrapper holding a cache of properties. These instances also have a reference to HTTP session. I don't think you want to pickle EntityProxy. It would be better to pickle only the downloaded properties converted to Python types.
I am starting thinking about a customizable OData response de-serializer because Panda users also needs it.
How do you want to de-serialize and use it?

any progress?

any progress making this solution official?

@elisim unfortunately, the experimental branch will remain experimental. We are currently working on V4 #39 which would make it simple to add support for V3.
Is there anything I can backport to the experimental branch?

Hi,
Ran in the same problem as aviasd, experimental branch works for me.  Thank you guys for the work on this.

Experimental_v3 branch worked for me to run this code:
vendors = getattr(client.entity_sets, 'DW_Vendor').get_entities().execute() and I am able to retrieve all the data from that feed in one line of code.
When using the production v2 code I was getting the KeyError['d'] error.
However using _v3 I still see this error when I try to perform a count() operation on the oData feed:
vendors = getattr(client.entity_sets, 'DW_Vendor').get_entities().count().execute()

Not sure if this is related to the OData feed itself.  It shows a 404 error, but as I mentioned above, dropping .count() successfully returned rows.


The price is too expensive, can we start the Black Friday activity?

A single conversation consumes 50,000 tokens, hoping it can be more cost-effective, so that I can consider purchasing more token packages.

Hi @kankanai,
The team continues to make improvements to improve token efficiency. The issue being tracked here describes progress on this as well as tips to improve token efficiency.


refactor: expand abbreviations for clarity

Expand abbreviated references to the registrations data frame for improved clarity and comprehension

Codecov Report
Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (bff89ba) 84.58% compared to head (398a059) 84.58%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##           development      #55   +/-   ##
============================================
  Coverage        84.58%   84.58%
============================================
  Files                6        6
  Lines              253      253
============================================
  Hits               214      214
  Misses              39       39

Files
Coverage Δ

src/gbif_registrar/_utilities.py
88.28% <100.00%> (ø)

src/gbif_registrar/register.py
90.90% <ø> (ø)

src/gbif_registrar/validate.py
0.00% <0.00%> (ø)

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


feat(ofrep): implement OFREP bulk provider

This PR

adds OFREP bulk provider

Is the /ofrep/v1/configuration endpoint still in use or in the spec? I don't see any usage of it anywhere in OFREP providers.

The discussion about this PR could be found in Slack https://cloud-native.slack.com/archives/C06HAN9KP9Q/p1732117274908179
I moved this work into erka/openfeature-go-ofrep-provider.


setdiff() -- why need to pull if it is a dplyr function ? Is there a base and tidyverse version?

Maybe could be nice to show some of these other options: https://dplyr.tidyverse.org/reference/setops.html

I imagine they are all like that but idk

Okay, here is some more information on setdiff() .
Example data:
data_As <- tibble(State = c("Alabama", "Alaska"),
state_bird = c("wild turkey", "willow ptarmigan"))
data_cold <- tibble(State = c("Maine", "Alaska", "Alaska"),
vacc_rate = c(0.795, 0.623, 0.626),
month = c("April", "April", "May"))
setdiff() is both a base R and dplyr function. This is confusing and part of the struggle of an open development environment.
When using setdiff() from base R, vectors are required. It shows the elements in the first that are missing from the second:
A_states <- data_As %>% pull(State)
cold_states <- data_cold %>% pull(State)
setdiff(A_states, cold_states)
[1] "Alabama"
When using setdiff() from dplyr, it does something different. It tells us the rows in the first tibble that are not in the second tibble. We have to select “State” column so the columns are identical across the two tibbles.
A_states <- data_As %>% select(State)
cold_states <- data_cold %>% select(State)
setdiff(A_states, cold_states)
A tibble: 1 × 1
State

1 Alabama
We could also use setdiff() from dplyr  to tell us what rows were removed when filtering a dataframe or tibble:
mt_cars_high_mpg <- mtcars %>% filter(mpg > 20)
setdiff(mtcars, mt_cars_high_mpg)

I started a PR - feel free to take over if you prefer! otherwise I will just copy over what you have :P


Fixes Offline Issues with Elasticsearch

Please take a in depth view on this Pull-Request.
For us to have it working, we needed to "hard-code" the following URI for the elastic statsd plugin:
STATSD_PLUGIN="http://master.mesos:8082/elastic/uris/elasticsearch-statsd-$ELASTIC_VERSION.0.zip"

This pullrequest is for mere Pointers on where to touch the code base to have a fully offline capable installation of elastic search.
Please also make sure that there is an adaption in the univers module.

Can one of the admins verify this patch?

I think this issue got addressed by https://github.com/mesosphere/dcos-commons/pull/1017

Oh great when will it be available?

It merged into master this morning, so it should be released in the Universe in the next two weeks

Please also take a look at the following patch,
there is also a JRE issue regarding this package:
https://github.com/mesosphere/universe/pull/1197

@loren could you please make sure that those changes are also taken into account for the BETA version?
We couldn't find the sources for the BETA packages of Elastic. That Package still contains this issue.
Thanks, Achim

@loren ... turned out it has been fixed in the latest 5.4.1 based version.
Thought there is still the question, which repository does host the beta packages? Or are those packages closed?


docs: update pr template

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[New Package] Added MartiCliment.UniGetUI version 3.1.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

https://github.com/microsoft/winget-pkgs/issues/173379
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

No errors to post.

(Automated response - build 895.)


Create ro/rw user roles

See https://github.com/bulletproofnetworks/pigeonhole/pull/9:

As an aside, what sanitising do we need to do here?

Any destructive instructions I guess. DELETE from timeseries; and the like.
We could seriously minimise damage if we allowed for a read-only user and a more privileged read/write user here. The import script uses the read/write user and hitting submit on the categorisation page opens a new influx connection using the read/write user credentials. Everything else, especially the search runs as the read-only user.
So the worst we'd have to fear is that somebody runs a select * from timeseries; and gets all information they could have queried anyway :smile:

Password is TqwtXBVsjqpUxH5r6tQ2
hubot-lore ➤ curl http://bpsyd07-dvmh-rndutils-01.inf.bulletproof.net:8086/db/pigeonhole_production/users?u=root&p=root | json_pp                                                                                (master|…)
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   142  100   142    0     0   1675      0 --:--:-- --:--:-- --:--:--  1670
[
{
"writeTo" : ".",
"name" : "pigeonhole",
"readFrom" : ".",
"isAdmin" : false
},
{
"readFrom" : ".*",
"name" : "pigeonhole_ro",
"writeTo" : "^$",
"isAdmin" : false
}
]

Sent the new password to you, @glasnt

This is done and deployed.


Make the host info metric generation optional

Making this optional, because the application observability plugin in Grafana Cloud will bill for these metrics.

Converting to draft. I want to create an "Application observability" example that:

Enables traces with this feature turned on
Enables profiles and pyroscope
Describes gathering data from Beyla

Also, what do we do about AppO11y customers that were using this previously, then upgrade? They'll lose AppO11y features, making this a potentially breaking change.

Also, what do we do about AppO11y customers that were using this previously, then upgrade? They'll lose AppO11y features, making this a potentially breaking change.

I'd propose the following:

Set the default value of the new flag to true
Rollout plugin changes that allow disabling this functionality
Set the default value to false in the chart (with the plugin still defaulting to true)

WDYT?

Ready to review, please take a look and let's get the process going.
When this is merged and released, I'll do an associated change to make this disabled in the plugin.


Add business logic to process_instruction() function.

Description
Add business logic to process_instruction() function and maintain session for a given user.
Goals

[ ] If a plain text is passed, the function should return an answer generated from open AI
[ ] If a valid action is passed, the function should take that action and return the response for that action in valid human readable format
[x] The logic should be tested with /webhook endpoint
[x] End to end integrations tests for all 5 domains to be added
[x] Load test to be added (to be skipped in normal tests), which can be run through a separate script npm run test:load to test the integration tests at least 50 times

Expected Outcome
The function should be able to return with an answer or act on the instruction based on given input.
Acceptance Criteria

[ ] All goals must be achieved

Implementation Details
process_instruction() should be able to  receive a plain text input and generate a response based on following criteria:

Pass the instruction to get_beckn_request_from_text()
If the response.status of get_beckn_request_from_text() is false, return the response.message
If the response.status of get_beckn_request_from_text() is true, pass the response.data to call_api() function to make the api call and get a response
If the response from call_api() is a valid response, translate the JSON back to text using get_text_from_json() function to get the final text response
Write test cases for each of the goals.

Mockups / Wireframes
NA

[Please note that the below section of the ticket has to be in the format as mentioned as it is key to enabling proper listing of the project. Please only choose the options mentioned under the headings wherever applicable.]
Product Name
[Product Name: For eg: Beckn, Sunbird Obsrv etc]
Project Name
[Project Name: Descriptive of the ticket]
Organization Name:
[Organization Name]
Domain
[Area of governance]
Tech Skills Needed:
[Required technical skills for the project]
Complexity
Pick one of [High]/[Medium]/[Low]
Category
Pick one or more of [CI/CD], [Integrations], [Performance Improvement], [Security], [UI/UX/Design], [Bug], [Feature], [Documentation], [Deployment], [Test], [PoC]
Sub Category
Pick one or more of [API], [Database], [Analytics], [Refactoring], [Data Science], [Machine Learning], [Accessibility], [Internationalization], [Localization], [Frontend], [Backend], [Mobile], [SEO], [Configuration], [Deprecation], [Breaking Change], [Maintenance], [Support], [Question], [Technical Debt], [Beginner friendly], [Research], [Reproducible], [Needs Reproduction].

As communicated in the status, @shreyvishal  to complete the development by today or not later than tomorrow morning

Current Status: 30% of development is completed will complete the rest by tomorrow morning
cc: @mayurvir @faizmagic

Added Draft PR for a review of the development as asked by @mayurvir please review
PR
cc: @faizmagic

PR link - PR
Link to document - NA
Brief description of what has been acheived - Added Test Cases for Process Instruction Action
Screenshots / link to documents if any - NA

Note: I have tested the test cases and it all passed but now it shows 429 You exceeded your current quota so need to wait for its renewal.
@mayurvir @faizmagic


Browser tests for button functionality within the RTE

Browser tests for button functionality within the RTE
Changes

Modified files to create the necessary menus, pages, and workflows for testing the Rich Text Editor.  Fixed all of the linting errors but didn't resolve the warnings.

Testing

run tox -e acceptance

Screenshots
Notes

There is currently an error on the insert link button.

Todos

Need to write tests for the following buttons:

Add Edit / Link
Remove Link
Documents
Images
Embed

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[ ] New functions include new tests
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated
[ ] Reviewers requested with the Assignee tool :arrow_right:

So exciting! I'll give this a thorough review tonight

This gets through all the steps OK until it hits "And I select the full width text organism", which errors out again and again with a message like
  Scenario: Italicize Text
[ Entry {
    level: Level { name_: 'SEVERE', value_: 1000 },
    message: 'http://localhost:9000/path/to/my/custom.js - Failed to load resource: the server responded with a status of 404 (NOT FOUND)',
    timestamp:<PHONE_NUMBER>738,
    type: '' },
  Entry {
    level: Level { name_: 'SEVERE', value_: 1000 },
    message: 'http://localhost:9000/path/to/my/custom.css - Failed to load resource: the server responded with a status of 404 (NOT FOUND)',
    timestamp:<PHONE_NUMBER>769,
    type: '' },
  Entry {
    level: Level { name_: 'SEVERE', value_: 1000 },
    message: 'http://localhost:9000/path/to/my/custom.js - Failed to load resource: the server responded with a status of 404 (NOT FOUND)',
    timestamp:<PHONE_NUMBER>836,
    type: '' },
  Entry {
    level: Level { name_: 'WARNING', value_: 900 },
    message: 'http://localhost:9000/static/wagtailadmin/js/vendor/rangy-core.js 79 The behavior that Selection.addRange() merges existing Range and the specified Range was removed. See https://www.chromestatus.com/features/6680566019653632 for more details.',
    timestamp:<PHONE_NUMBER>008,
    type: '' } ]

@richaagarwal, I think that was just the console log from the browser. I've commented out those lines. Please run again when you get a chance.

You should get:

I've made two changes to get this to work on Travis: first, I reverted the use of headless mode in Chrome as that doesn't seem to work well with selecting elements (possibly due to screen size? not sure). Also now instead of using beta Chrome we just use the stable version as described in the newly merged docs on Travis here.
My change in 8234bb9 fixes a minor thing related to how we parse the Wagtail inserted link attributes.


What are the limits of the Funnel?

Citing the Sampling section: "If your application sends a lot of data" - could you please define "a lot"? What is the recommendation in terms of amount of data, what are the limits? Thank you:)
What are the limits in terms of throughput? Does https://dev.applicationinsights.io/documentation/Authorization/Rate-limits apply here as well?

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

ID: 0abefda3-86b0-ed2c-1ce2-1f2d7cc175ad
Version Independent ID: e4625f13-77b4-6f48-41c8-5ac6be626063
Content: Export to Power BI from Azure Application Insights
Content Source: articles/application-insights/app-insights-export-power-bi.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

The decision of whether to turn on sampling or what constitutes "a lot of data" is going to vary depending on your individual use case and requirements. A small company's definition of "a lot of data" is going to be very different from a large fortune 500 company's definition so unfortunately there really isn't a one size fits all definition/solution. Though I agree "a lot" is an extremely vague and unhelpful term.
If you have compliance requirements to track and store all transactions to your application, than sampling probably isn't a good fit regardless of the amount of data. If your goal is maximize cost savings while monitoring application health and performance than sampling may allow you to save money while still getting valuable monitoring information about your application.
Our sampling article provides guidance around the different types of sampling and some of the benefits that sampling can provide.
As far as ingestion limits per Application Insights resource/ikey that information can be found here.
If you need to send more than 100 GB/day reach out and contact us at this address.
Also important to keep in mind if you are looking to use the Export to PowerBI M Query from analytics method  described in this article, Analytics currently caps queries to only return 10,000 results per query so you either need to structure your query to fit within that constraint or use the REST API or continuous export which would allow you to query/return much larger datasets.

@isamllr Thank you for reaching out to us!

@isamllr thanks again for reaching out with your question. I also modified the doc to remove the "a lot of data" language. The change is merged internally and will go live in the public docs between 3-4 PM UTC -8.

@MicrosoftDocs/azure-cxp-triage #please-close

Thank you Michael


Great Job.

hi Rapheal ,
Great Job implementing all  required the features in this project.

Optional suggestions
N/A

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.
Please, remember to tag me in your question so I can receive the notification.

Great job @rmiyoyo you have got a good design but I suggest you check the portfolio buttons and make them look just as the figma design


Add logs when Docker enabled selinux

The docs describes that "SELinux does not presently support the BTRFS storage driver".
When i run Docker Daemon with command as follow, Docker Daemon is running successfuly,
docker -d -s btrfs --selinux-enabled=true
I found the reason is that i have not config selinux, and function selinuxEnabled in sourcecode return false, so the error as follow was not implemented, Docker Daemon goes on running.
if selinuxEnabled() && config.EnableSelinuxSupport && driver.String() == "btrfs" {
return nil, fmt.Errorf("SELinux is not supported with the BTRFS graph driver!")
}
As above, in my opinion, maybe we can add some logs about selinuxEnabled return result to advoid user misunderstand it.

@rhatdan can you take a look at this please?

Ping @MabinGo please address issues mentioned by rhatdan, thanks!

@rhatdan @tiborvass Thanks for your mention.I'm sorry to reply so late, because it's in the night in China 8 hours ago. I have checked the code with the mention by rhatdan, and found my carelessness, so i have updated the code again, please take a recheck, thanks all :-)

@rhatdan OK,i accept to. I have updated it, please take a recheck,thanks:-)

ping @crosbymichael @tiborvass @rhatdan Can you help me to check it please?Thanks

@MabinGo I think this PR is meant to resolve https://github.com/docker/docker/issues/11197?
If correct, could you add closes #11197 to the description of the PR, so that GitHub automatically closes that issue if this is merged?

@thaJeztah Yes,this PR resolved to #11197,i'll add the tag just like you said.Thanks:-)
Should i add somthing as below?
this PR closes #11197

ping @thaJeztah @rhatdan @tiborvass Is that correct now?Thanks!

@MabinGo correct, if you just add that to the description at the top of this page, it should be fine (no need to "ping" after that :smile:)

@thaJeztah Done.Thanks for your help, you are so nice:)

LGTM

@tiborvass @rhatdan @thaJeztah Is the modifies of this PR right now?

@MabinGo I think this is how @tiborvass wanted it yes. But he should review it, because I'm not a very good "Go" coder myself (yet) :)

@thaJeztah you are modest :-) I'm a Go language and opensource beginner, then I'll learn from everybody.

LGTM


Change the booted instances status string from 'running' to 'active'

In order to be compatible with the openstack compute APIs.

Fixed with commit d1f7552192388923c39f78d901844054dd958e7e


Bug in case lack of objects while saving in AAM

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Expected Behaviour

Saving the task without bugs.
Current Behaviour

If you save the task when the label of an object was changed in Attribute Annotation Mode with a filter applied to a specific label, then CVAT closes with the error “Oops, something went wrong”.
Possible Solution

Steps to Reproduce (for bugs)

Add filter (example label == “label_name”)
Change annotation mode to Attribute Annotation Mode
Change the label to any other. Thus, there should be no objects that meet the filter.
Save

Context

Saving occurs, but the bug forces you to reboot the page
Your Environment

Windows 10, Google Chrome,
Git hash commit (git log -1):
Docker version docker version (e.g. Docker 17.0.05):
Are you using Docker Swarm or Kubernetes?
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
TypeError

Cannot read property 'objectType' of undefined
TypeError: Cannot read property 'objectType' of undefined
at Ew.activateOnCanvas (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:414:998304)
at Ew.componentDidUpdate (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:414:996061)
at os (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:83470)
at pl (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:101245)
at t.unstable_runWithPriority (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:360:3844)
at Ba (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:45023)
at fl (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:97717)
at Qs (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:93871)
at https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:352:45314
at t.unstable_runWithPriority (https://cvat.org/cvat-ui.619e2cab9c511e1a12c4.min.js:360:3844)

Next steps
You may join our Gitter channel for community support.

Change the label to any other. Thus, there should be no objects that meet the filter.

Yes, it is true. But it was intentioned that after the object was changed it is still visible because of UX reasons (the change can be done accidentally or it is not finished yet when we are changing the text for example). In these cases, we should not immediately hide the object.
The issue fixed in the PR below.


Translation of renderToStaticMarkup

Menambahkan terjemahan Bahasa Indonesia untuk renderToStaticMarkup.
Resolves #460.

Should be fine but let's wait for the others. @resir014 @r17x @mazipan @zainfathoni


Omit e. g. 'language' works only for full bib export, not selected items?

Discussed in https://github.com/retorquere/zotero-better-bibtex/discussions/2055

Originally posted by 192933488S February 25, 2022
Can anyone verify please:
Reproduction steps:

Have latest Zotero (+ lib content), latest BBT
Set Exports -> Fields -> Omit: 'language'
Export a selected item using right click -> Export item
Compare with full export of bib File -> Export library
Result: Selected item export does not omit 'language'

Would be nice if it works for selected items too.
Regards

5564UA5F-refs-euc

You have language in the skip-fields preference.
You also have caching off. Are you sure you want that?

Reverse answer:

Caching not sure? Shall I enable
Language: Yes, want to remove it since it's troubling the LaTeX class I'm using in combination with bable and other packages, so if it's "out" of the *.bib, it "works" and produces output without warnings etc. The language as such is not showing in the reference or do I misunderstand something?

But it's being exported if you export the whole library? How are you exporting the library?

Are you sure there's a language field in the output at all? Can you paste an exported entry here that has the field you want to get rid of?

I'd generally advise to leave caching on, yes.

Are you sure there's a language field in the output at all? Can you paste an exported entry here that has the field you want to get rid of?

Sure,
Variant 1 – without (Full export, omitting 'language'
@article{zeilinger_experiment_1999,
title = {Experiment and the foundations of quantum physics},
volume = {71},
issn = {0034-6861, 1539-0756},
url = {https://link.aps.org/doi/10.1103/RevModPhys.71.S288},
doi = {10.1103/RevModPhys.71.S288},
number = {2},
urldate = {2022-01-23},
journal = {Reviews of Modern Physics},
author = {Zeilinger, Anton},
month = mar,
year = {1999},
pages = {S288--S297},
}
Variant 2 – with (using right click -> Export item)
@article{zeilingerExperimentFoundationsQuantum1999,
title = {Experiment and the foundations of quantum physics},
volume = {71},
issn = {0034-6861, 1539-0756},
url = {https://link.aps.org/doi/10.1103/RevModPhys.71.S288},
doi = {10.1103/RevModPhys.71.S288},
language = {en},
number = {2},
urldate = {2022-01-23},
journal = {Reviews of Modern Physics},
author = {Zeilinger, Anton},
month = mar,
year = {1999},
pages = {S288--S297},
}
In principle I was unable to actually also find the specification for the field 'language' and this matters too me. Does it use the standard-format EN, DE, IT, do you know? I have found *.bibs with 'English' or 'ger' randomly. I'd say it's rather unusual nowadays having a field unspecified - or maybe it is and ignored etc.

Those are exported by the Zotero BibTeX export, not the Better BibTeX export.

Could a "BBT Export item" menu-item be added to the right-click drop-down menu, which would do just that? Exporting a selection of items via Better BibTeX export.

But you can use BBT to export a selection of items or your whole library. When exporting, choose "Better BibTeX" or "Better BibLaTeX" from the dropdown in the export popup (where you can also check "export notes" and such). Zotero will remember the last export format you chose, so it will be the default after that.

Duh! Right of course that works. Sorry for the long discussion, sometimes the answers is right in front of you, but must be explicitly enforced or set. I wasn't clear to me that this acts as a filter in this case or simple replacement.

No problem. I now see the reminder isn't shown, I'll set of I can fix that.

2118 will show a warning when you select the standard BibTeX/BibLaTeX format.


Use nestjs-plus/rabbitmq within a reusable module

Hi,
We use @nestjs-plus/rabbitmq to communicate with rabbitmq.
If we use it directly in a given service (with the implementation associated with this level), it is functional.
But we want to have a RabbitModule module that would contain the services to publish or receive the messages and use this service in other modules. But we face either errors of transpiration or errors where the service is not recognized.
So, we wonder if this feature is feasible with @nestjs-plus/rabbitmq and if so, what are we doing wrong?

rabbitmq.service.ts
import { Injectable } from '@nestjs/common';
import { AmqpConnection } from '@nestjs-plus/rabbitmq';

@Injectable()
export class RabbitmqClientService {
  constructor(private readonly amqpConnection: AmqpConnection) {}

  public async publishMessage(exchange: string, subscribeRoute: string, message: {}) {
    await this.amqpConnection.publish(exchange, subscribeRoute, {
      message,
    });
    return {
      result: 'Published message',
    };
  }
}

rabbit.module.ts :
import { Module } from '@nestjs/common';
import { RabbitMQModule } from '@nestjs-plus/rabbitmq';
import { AmqpConnection } from '@nestjs-plus/rabbitmq';

import { RabbitmqClientService } from './services/rabbitmq.service';
import { RabbitmqController } from './controllers/rabbitmq.controller';

@Module({
  imports: [
    RabbitMQModule.forRootAsync({
      useFactory: () => ({
        exchanges: [
          {
            name: 'exchange1',
            type: 'topic',
          },
          {
            name: 'exchange2',
            type: 'fanout',
          },
        ],
        uri: 'amqp://rabbitmq:rabbitmq@localhost:5672',
      }),
    }),
    AmqpConnection
  ],
  controllers: [RabbitmqController],
  providers: [AmqpConnection, RabbitmqClientService],
  exports: [RabbitmqClientService]
})
export class RabbitModule {}

PodcastController.ts :
(...)
 public constructor(
    private readonly podcastService: PodcastService,
    private readonly rabbitmqClientService: RabbitmqClientService,
  ) {}
(...)
})
  public async getListPodcast(): Promise<Redaction[]> {
    const queue: QueueDto = {
      name: 'queue_test',
    };
    const exchange =  'exchange_test';
    const podcasts = await this.podcastService.findAll();
    const message: RabbitmqEvent = {
      eventName: EventName.PodcastListWasRequested,
      objectId: uuid(),
      objectVersion: 1,
      commandPayload: {
        podcasts,
      },
      eventCreatedBy: 'fdf9859f-6f51-42b0-b7a5-b2c9f697cad6',
      eventCreatedAt: Date.now(),
    };
    await this.rabbitmqClientService.publishMessage(
      queue.name,
      exchange,
      message
    );

    return podcasts;
  }

we have this error
 Nest can't resolve dependencies of the RabbitmqClientService (?). Please make sure that the argument AmqpConnection at index [0] is available in the PodcastModule context.

Potential solutions:
- If AmqpConnection is a provider, is it part of the current PodcastModule?
- If AmqpConnection is exported from a separate @Module, is that module imported within PodcastModule?
  @Module({
    imports: [ /* the Module containing AmqpConnection */ ]
  })
 +1ms

if we modify the module rabbit.module.ts as well :
controllers: [RabbitmqController],
providers: [AmqpConnection, RabbitmqClientService],
exports: [RabbitmqClientService, AmqpConnection],

and podcast.module.ts :
controllers: [PodcastController],
providers: [PodcastService, RabbitmqClientService, AmqpConnection, ...queryHandler],
exports: [RabbitmqClientService],

We do not have a compilation problem, however, when we call the getListPodcast method (in REST with a GET), we have this error:
TypeError: Cannot read property 'publish' of undefined

we found the solution, so that everyone can reproduce what we wanted to do, we publish the solution.
rabbit.module.ts :
import { Module } from '@nestjs/common';
import { RabbitMQModule } from '@nestjs-plus/rabbitmq';

import { RabbitmqClientService } from './services/rabbitmq.service';
import { RabbitmqController } from './controllers/rabbitmq.controller';

@Module({
  imports: [
    RabbitMQModule.forRootAsync({
      useFactory: () => ({
        exchanges: [
          {
            name: 'exchange1',
            type: 'topic',
          },
          {
            name: 'exchange2',
            type: 'fanout',
          },
        ],
        uri: 'amqp://rabbitmq:rabbitmq@localhost:5672',
      }),
    }),
  ],
  controllers: [RabbitmqController],
  providers: [RabbitmqClientService],
  exports: [RabbitmqClientService],
})
export class RabbitModule {}

rabbitmq.service.ts :
import { Injectable } from '@nestjs/common';
import { AmqpConnection } from '@nestjs-plus/rabbitmq';

@Injectable()
export class RabbitmqClientService {
  constructor(private readonly amqpConnection: AmqpConnection) {}

  public async publishMessage(
    exchange: string,
    subscribeRoute: string,
    message: {},
  ) {
    await this.amqpConnection.publish(exchange, subscribeRoute, {
      message,
    });
    return {
      result: 'Published message',
    };
  }
}

podcast.module.ts
// ...
import { RabbitModule } from '../rabbitmq/rabbit.module';

@Module({
  imports: [
    RabbitModule,
    //...
  controllers: [PodcastController],
  providers: [PodcastService],
  exports: [],
})
export class PodcastModule {}

podcast.controler.ts :
export class PodcastController {
// ...
  public constructor(
    private readonly podcastService: PodcastService,
    private readonly rabbitmqClientService: RabbitmqClientService,
  ) {}
// ...
  public async getListPodcast(): Promise<Redaction[]> {
    const exchange = 'exchange2';
    const routingKey = 'subscribe-route';
    const podcasts = await this.podcastService.findAll();
    const message: RabbitmqEvent = {
      eventName: EventName.PodcastListWasRequested,
      objectId: uuid(),
      objectVersion: 1,
      commandPayload: {
        podcasts,
      },
      eventCreatedBy: 'fdf9859f-6f51-42b0-b7a5-b2c9f697cad6',
      eventCreatedAt: Date.now(),
    };
    try {
      await this.rabbitmqClientService.publishMessage(
        exchange,
        routingKey,
        message,
      );
    } catch (e) {
      console.log('e: ', e);
    }

    return podcasts;
  }

Hey guys glad you got this figured out! Thanks for sharing code here too so that future users of the library will potentially be able to find and reference this issue. It looks like the main issue in the original snippet was putting the AmqpConnection in the imports array and the providers array from your original rabbitmq.module

yes, you should not add AmqpConnection in the imports of rabbitmq.module.


⚠ Bofrost.nl has degraded performance

In 7a4d920, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 22765 ms

Resolved: Bofrost.nl performance has improved in cdac798 after 19 minutes.


401 Unauthorized

I can't download firmware.

It works fine for me.

it's working now, after allow access to download folder.

Thanks.


Aircrack-ng

Aircrack-ng is a complete suite of tools to assess WiFi network security.
It focuses on different areas of WiFi security:

Monitoring: Packet capture and export of data to text files for further processing by third party tools
Attacking: Replay attacks, de-authentication, fake access points and others via packet injection
Testing: Checking WiFi cards and driver capabilities (capture and injection)
Cracking: WEP and WPA PSK (WPA 1 and 2)

All tools are command line which allows for heavy scripting:

Airmon-ng is used to manage wireless card modes and to kill unnecessary processes while using aircrack-ng. To sniff a wireless connection, you need to change your wireless card from managed mode to monitor mode and airmon-ng is used for that purpose.
Airodump-ng is a wireless sniffer that can capture wireless data from one or more wireless Access Points. It is used to analyze nearby Access Points and to capture handshakes.
Aireplay-ng is used for replay attacks and as packet injector. It can be de-authenticate users from their APs to capture handshakes.
Airdecap-ng is used to decrypt encrypted WEP, WPA/WPA2 wireless packets with known key.
Aircrack-ng is used to attack WPA/WEP wireless protocols in order to find the key.

Steps to use aircrack-ng

Install Kali Linux on docker

Install aircrack-ng, and pciutils
apt-get install -y aircrack-ng pciutils

Save the container's state in a new image

Run new container image
docker run -it --net="host" --privileged --name aircrack kali-aircrack bash

Get the name of the wifi device
iwconfig

Start airmon-ng to monitor the wifi
airmon-ng start wlp9s0 // wifi device name wlp9s0 may vary
// Internet will not work now
// Device now will be named such as wlp9s0mon

List out the wifi devices in the area.
airodump-ng wlp9s0mon
// Let it list out the devices. Then exit.
// Select the device's MAC address(BSSID) and CH for the penetration test.

Capture exchanged 802.11 frames in that device using BSSID and CH
airodump-ng --bssid 88:B3:62:24:2D:69 -c 4 wlp9s0mon --write /tmp/handshake.cap
// For easy read dump to a file

There is a default password provided by Kali. Unarchive the passwords file.
gunzip /usr/share/wordlists/rockyou.txt.gz  /usr/share/wordlists/rockyou.txt

Crack the passoword from the device captured data.
aircrack-ng /tmp/handshake.cap-03.cap -w /usr/share/wordlists/rockyou.txt

If there is password match it will provide the password.

Resource: https://github.com/brannondorsey/wifi-cracking

Further research could be done with:

https://github.com/brannondorsey/PassGAN
https://github.com/brannondorsey/naive-hashcat

and find other methods and tools.


CSS validation error

In the audio.js file, line 109 specifies a CSS property of:
white-space: wrap;

"Wrap" is not a valid value for the white-space property. Should be "normal" or "nowrap"?
http://www.w3schools.com/cssref/pr_text_white-space.asp

Thanks a lot for filing this issue! We'll triage and take a look at it as soon as possible!


Meisterplan Connector: Removed securityDefinitions from swagger json

the definied securityDefinitions caused the issue that the authorization header was not added to the requests resulting in 401 unauthorized results

Hello @itd-sk,
Congratulations, your PR is approved and merged. Please update your submission in ISV Studio by using the latest commit ID.
Let us know if you have any questions.


[master] [WFLY-4340] use-try-lock exposed for

Copy'n'paste bug from datasources.

No default value
Never marshalled/unmarshalled
Never in XSDs
Never used in resource adapter deployments

Windows Build 2154 is now running using a merge of 48c0905066762754f395159198a91c24e5ed3404

Linux with security manager Build 1975 is now running using a merge of 48c0905066762754f395159198a91c24e5ed3404

Linux Build 7102 is now running using a merge of 48c0905066762754f395159198a91c24e5ed3404

Linux with security manager Build 1975 outcome was SUCCESS using a merge of 48c0905066762754f395159198a91c24e5ed3404
Summary: Tests passed: 877, ignored: 284 Build time: 0:06:49

Linux Build 7102 outcome was SUCCESS using a merge of 48c0905066762754f395159198a91c24e5ed3404
Summary: Tests passed: 2956, ignored: 354 Build time: 0:48:20

Windows Build 2154 outcome was FAILURE using a merge of 48c0905066762754f395159198a91c24e5ed3404
Summary: Tests failed: 2, passed: 2954, ignored: 354 Build time: 0:48:23
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase.testPutRelayedToBackups: <no details avaliable>

org.jboss.as.test.manualmode.ejb.client.cluster.EJBClientClusterConfigurationTestCase.testServerToServerClusterFormation: <no details avaliable>

Linux with security manager Build 2008 is now running using a merge of aca21aa7d91867053b7511da5ea3f06a448de190

Windows Build 2187 is now running using a merge of aca21aa7d91867053b7511da5ea3f06a448de190

Linux Build 7135 is now running using a merge of aca21aa7d91867053b7511da5ea3f06a448de190

Linux with security manager Build 2008 outcome was SUCCESS using a merge of aca21aa7d91867053b7511da5ea3f06a448de190
Summary: Tests passed: 877, ignored: 284 Build time: 0:06:45

Windows Build 2187 outcome was SUCCESS using a merge of aca21aa7d91867053b7511da5ea3f06a448de190
Summary: Tests passed: 2951, ignored: 357 Build time: 0:45:31

Linux Build 7135 outcome was FAILURE using a merge of aca21aa7d91867053b7511da5ea3f06a448de190
Summary: Tests failed: 1 (1 new), passed: 2950, ignored: 357 Build time: 0:45:55
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.clustering.cluster.cdi.CdiFailoverTestCase(SYNC-tcp).testGracefulSimpleFailover: <no details avaliable>

Windows Build 2220 is now running using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8

Linux with security manager Build 2036 is now running using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8

Linux Build 7164 is now running using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8

Linux with security manager Build 2036 outcome was SUCCESS using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8
Summary: Tests passed: 879, ignored: 282 Build time: 0:06:38

Linux Build 7164 outcome was FAILURE using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8
Summary: Tests failed: 1 (1 new), passed: 2948, ignored: 354 Build time: 0:45:35
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.clustering.xsite.XSiteSimpleTestCase.testPutRelayedToBackups: <no details avaliable>

Windows Build 2220 outcome was SUCCESS using a merge of f287b26d21107531b1d45962476d286c1dd6f8e8
Summary: Tests passed: 2947, ignored: 355, muted: 1 Build time: 0:48:25

Windows Build 2255 is now running using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced

Linux Build 7199 is now running using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced

Linux with security manager Build 2071 is now running using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced

Linux with security manager Build 2071 outcome was SUCCESS using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced
Summary: Tests passed: 878, ignored: 281 Build time: 0:06:13

Linux Build 7199 outcome was SUCCESS using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced
Summary: Tests passed: 2958, ignored: 353 Build time: 0:47:06

Windows Build 2255 outcome was SUCCESS using a merge of<PHONE_NUMBER>9e7e4311facc179c02d79494749ced
Summary: Tests passed: 2956, ignored: 354, muted: 1 Build time: 0:47:29

@bstansberry is there anything else that needs to be done in this case from a backward compatibility point of view?

@stuartwdouglas In a perfect world the attribute would be retained and deprecated and then removed in a future release. But since this was never parsed, no existing config will fail to parse because it's gone. If some CLI script set it, the setting never took effect and was never persisted. So I think the odds are low that any script uses this and will now break.


Fix content type error

I called the wrong function :roll_eyes: so introduced a bug that fails with:
botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter ContentType, value: ('application/x-netcdf', None), type: <class 'tuple'>, valid types: <class 'str'>

CircleCI failure is because an API service is down -- since that's unrelated to this PR I'm :ship:-ing it! :shipit:

Not sure if you were following circleCI updates over the last month. They needed all secrets etc recycled.


Add cegepst.qc.ca domain

Cégep de Sorel-Tracy
http://www.cegepst.qc.ca/

an URL of a page on the official website where an IT-related long-term (>1 year) course is offered by the university

Course page (FR only): http://www.cegepst.qc.ca/programmes-etudes/programmes/programmes-techniques/techniques-informatique-informatique-gestion
The course spreads over 6 semesters (usually completed in 3 years)

an URL of a page or another proof (.pdf or a screenshot are OK) showing that the university recognizes the domain which you are submitting as an official email domain for the students.

On the course page, a professor's e-mail address can be seen. Simply search<EMAIL_ADDRESS>

@mystadio Pull request merged. Thank you!


Add EM27 webscraper tests

This PR adds unit tests for testing the EM27 webscraping module.
The em27_scraper module's _on_reply_received() function is now a method of the EM27Scraper class to mirror the structure of the em27 module's EM27 class. This allows identical mocking of the QNetworkRequest() call.
Closes #105

Thanks for this. Looks great!
I've made some minor suggestions. The main thing I'd change is that I'd leave _on_reply_received() as a non-member function. You're not using the self argument and it's fine to mock a non-member function (as you've done for get_em27sensor_data()).

I was aiming to mimic the structure of the corresponding method in the EM27 class, but you're right - if I'm not making use of self then there's no need to have it as an instance method.


What happened with aceEditor ?

I tried to follow some examples based basically on:
var aceEditor = undefined;

function(editor){
aceEditor = editor;

aceEditor.method(foofoofoo);

But never works. I read somewhere in near past that aceEditor was removed ... but I didn't find any official sign of that, so ..
¿Is that method broken or definetively aceEditor was removed?
Thanks in advance,
CieNTi

As far as I can tell, ACE editor is long gone. I updated the developer doc in a pull request (#728) to reflect that.

.<

Why that is not documented? Or if it already is, why so hard to find?
Thanks for the information, spent many time without sense hehehe


travis: switch to container-based infrastructure (sudo: false)

currently we use sudo to install gcc 4.8 because Brotli used to require C++11 features in order to compile. That is no longer the case, since brotli can now be compiled with old compilers that don't support C++11.
I have opened a PR on https://github.com/google/brotli/pull/278 to disable the option in brotli's setup.py. Once that is merged, we will be able to compile brotli with the gcc version pre-installed on Travis, and no longer need sudo apt-get it.
We can then add the line sudo: false to our .travis.yml, and remove the before_install part for gcc-4.8.
Our Travis builds will hopefully be faster.

@anthrotype fwiw, you don’t need sudo for installing apt packages; Travis supports specifiying dependencies like this: https://github.com/addaleax/lzma-native/blob/master/.travis.yml#L17

@addaleax oh, I didn't know that. Thanks!
Anyway, we don't need to install g++ 4.8 now that Brotli can be built without C++11 support, and the Travis build will be a little bit faster with that step.


Release uefi-0.21.0, uefi-raw-0.1.0, uefi-macros-0.12.0, and uefi-services-0.18.0

A couple notes:

The uefi release will include the new fs API
This will be the first release of uefi-raw. I don't plan to start maintaining a changelog for that package just yet, because we have a lot more to add there before it's useful as a standalone package (rather than just an internal dep of uefi).

👍🏻


Faulty link to "DRAFT COOP MEMBERSHIP AGREEMENT"

There have been two persons that asked for access to DRAFT COOP MEMBERSHIP AGREEMENT. This doc is maybe referred to in the Coop Sign Up process.
The link has to be Coop Membership Agreement
Please repair that ASAP. Or give more details about where the link exactly is.

You can set the budget here with a remark.

URL
Status
Project / Issue
Category
Votes
Last month
Left over
New Budget
Voters

https://github.com/rchain/Members/issues/109
New
Faulty link to "DRAFT COOP MEMBERSHIP AGREEMENT"
Marketing
1
$ -
$ -
$ 40.00
@lapin7

--
--
--
--
--
--
--
--
--

The link can be found at the coop website. Here precisely https://www.rchain.coop/coop-information-1#more-information under reference linlks at the bottom of the page.

@Ojimadu that's great. Thx a lot. And please claim your reward by setting a % of work done for yourself and the other collaborators. Like:
@Ojimadu 90%
@lapin7 5%
@patrick727 5%
@patrick727 @drbloom Please repair this link !!
The link has to be Coop Membership Agreement
Rewards

URL
Description
Category
Set
Set
⍴ To Pay
Activist
AVG work
Votes
Voters

https://github.com/rchain/Members/issues/109
Faulty link to "DRAFT COOP MEMBERSHIP AGREEMENT"
Marketing
1
New
⍴ 380
Activist
95%
2
Voters

https://github.com/rchain/Members/issues/109
Faulty link to "DRAFT COOP MEMBERSHIP AGREEMENT"
Marketing
1
New
⍴ 20
@Ojimadu
5%
1

https://github.com/rchain/Members/issues/109
Faulty link to "DRAFT COOP MEMBERSHIP AGREEMENT"
Marketing
1
New
⍴ 360
@lapin7
90%
1
@lapin7 0.9

You can see the overview at Pub Activist Budget Allocation-Spending

@Ojimadu good catch, @lapin7  it's fixed now

I think the reward has been set. It needs an extra vote to be claimed right?

This is fixed and should be closed right?

yes thank you


Flutterwave payment integration

Fixes #57

This branch only added the name field, and was replaced with another branch with same changes, but a different name.


networkStatus is 2 (NetworkStatus.setVariables) for 1st refetch

If the graphql container has no variables set, calling refetch for the first time will set networkStatus to 2 (NetworkStatus.setVariables) instead of 4 (NetworkStatus.refetch).
The reason seems to be this check that compares previousQuery.variables with action.variables and assumes the action is setVariables although it's a refetch. (When the container doesn't have any variables set initially,  previousQuery.variables is undefined and action.variables is {}.)
Subsequent refetches correctly set the network status to 4, because then {} is compared with {}.

@fson Thanks for the detailed bug report!
I think we should probably just set the initial variables to {} when they're undefined. That seems like the most consistent thing to do here. Would you have time to make a quick PR?

@helfer I've implemented the fix in PR #1105.


[TimePicker] Add support for custom wordings

@feit That looks good :+1:. Could you squash down the commit? Thanks

Maybe it's just me, wordings always seemed a really odd name for that prop. Rather than introduce another one with the same name, would this be an opportunity to think about what the name should really be for both components (and any others that might require i18n / l10n)?

Rather than introduce another one with the same name, would this be an opportunity to think about what the name should really be for both components

What do you propose. Would it be ok for you to merge this PR with wording for consistency with the DatePicker and use v0.15.0 to change the name?

I agree the word wordings doesn't seem right. Not quite sure if I have a better alternative though. Maybe separate it out into two props confirmText and cancelText?
That being said, something like this might be better covered by a general localization strategy rather than component props. @oliviertassinari Out of curiosity, if you want to change the names of the months to French, how would you do that now?

if you want to change the names of the months to French, how would you do that now?

Like this: https://github.com/callemall/material-ui/blob/master/docs/src/app/components/pages/components/DatePicker/ExampleInternational.jsx#L20

if you want to change the names of the months to French, how would you do that now?

Like this: https://github.com/callemall/material-ui/blob/master/docs/src/app/components/pages/components/DatePicker/ExampleInternational.jsx#L20

Oh interesting! It's even documented :laughing: and demoed. I never noticed that the DateFormat also included that but makes perfect sense.

What do you propose?

TBH I hadn't thought it through! Looking through the docs, there are less components that take strings, (especially multiples) than I had remembered.

Well, I guess we could change the name now and deprecate wordings.

That would probably be easier: strings, text, labels are all good.

rebased

I think if we can agree what it should be for both we use the new prop name here, and the DatePicker rename / deprecation can happen at 0.15.0.

@feit Thanks, could you add a TimePickerExampleInternational in the documentation section?
Something close to https://github.com/callemall/material-ui/blob/master/docs/src/app/components/pages/components/DatePicker/ExampleInternational.jsx?

@mbrookes I have honestly no idea how we could improve our i18n approach :grin:.

Discussion moved here: #3043

@oliviertassinari like this?

@feit Thanks. It's almost good, the example isn't used by the documentation. Could you make it use it?
@mbrookes Thanks for opening #3043. I think that we should wait v0.14.3 to merge this PR with the wordings parameter. Then, we can change it (no need to deprecate) with v0.15.0.

How about chinese? :grimacing:

How about chinese?

That's fine for me.

I have make the example used by the documentation ;)

fixed :sweat_smile:

@feit Thanks! But keep in mind that this PR with the wordings property may not be released like this. We are discussion how to improve it and we may change the name.

Can DatePicker change display language.
example:
change   'Thu, Aug 24'   to  '星期二，8月24'

@woshiwenzhijie this pr can only change text for ok or cancel text


Custom binary format

Exporting to custom bunary format.
Data to export to binary file:

[ ] positions
[ ] uv
[ ] normals
[ ] indices
[ ] tangents
[ ] bone relations

To export to YAML:

[ ] per mesh:

[ ] offsets
[ ] textures
[ ] bones

[ ] other info

[ ] mesh optimization

http://blender.stackexchange.com/questions/3637/get-indices-of-vertices-of-triangulated-faces-in-python

dropped, i've decided to write .exe which loads any type and outputs binaries, easier to maintan, allow to use assimp, etc.


Generic states

This is a sighting shot at reducing duplication and extracting commonality across providers.  I'm still not 100% happy that it's the right design, but I put a lot of time into a 'right' design and it felt like too much at once, so this is more modest!  This approach provides a canned set of 'preparation' states -- from Registered through VolumeMount - after which the state machine transitions into the first "actually running stuff" state, as defined by the provider.  This allows us to encapsulate validation, image pulling, volume mounting and error handling, while ducking (for now) the trickier commonalities around different ways of executing stuff under different runtimes.  There is also some minor stuff around termination and error handling.
There are a lot of things in this proposal that I'm not sure about so I haven't really invested in things like organising the modules, prettifying the code, etc. - I'd like to discuss and get a feeling as to whether this is a useful direction before I invest that additional time.  @kflansburg I'd particularly value your opinion as you are authoring a CRI provider which will be quite different from the WASI and WASCC providers on which this proposal is based.

@kflansburg Thanks heaps for all the thoughts and feedback!

REBASEPOCALYPSE (in fact so pocalyptic that I restarted from latest master and manually recreated the changes more cleanly on a wholly new branch - didn't want to risk Git's automatic merge trashing the container status stuff)


Docs do not specify allowable values for "default:" parameter values

[Enter feedback here]
The documentation as written shows 28 examples of "default:" parameter values expressed as literals. It is implied, possibly incorrectly, through these examples that only literal expressions are allowed for parameter default values. If that is the case, then docs should clear state that limitation. If not the case, docs should specify the types of expressions (e.g. compile/run-time/variables) that are allowed and provide examples of each usage.

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

ID: 6724abea-bbdc-bf66-ed5e-3214fa6c3e66
Version Independent ID: 4f8dab21-3f0e-da32-cc0e-1d85c13c0065
Content: Templates - Azure Pipelines
Content Source: docs/pipelines/process/templates.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

I've confirmed that only literals are allowed and will update the article.


[LLVMGPU] Add GPUCombineValueBarriersPass to TileAndFuse pipeline

This adds the GPUCombineValueBarriersPass to the TileAndFusePipeline to improve barrier placement.

based on https://github.com/iree-org/iree/pull/18444 so I don't have to rebase lit test changes.


Preview images not loading when using ControlNet

Not sure if I'm doing something wrong or this feature isn't in there yet- running v1.20 and image previews work great on every other mode but don't show up at all when I'm using Controlnet- I just see the image when it's finished. I'm on MacOS M1 running Venture 13.0.1 and Photoshop v24.2.

You're not doing anything wrong, but the ControlNet API is experimental. One of its quirks is that it pauses any communication to automatic1111 until the current request is finished.
Hopefully the developer working on the ControlNet API will resolve this issue.

Gotcha, thanks! Thought it might be something like that.

We've already fixed this issue for those using the UXP version of the plugin. However, we will release a patch for those using the ccx version very soon.

This has been fixed in v1.2.2.ccx
you will need to update your Auto1111 and ControlNet extension too.

@jwooldridge234 Have you gotten ControlNet to work in this plugin? As I state in #156, the interface displays the models without an issue, but the plugin doesn't use ControlNet at all to modify the main image. Perhaps there are some special steps that need to be taken to get this to work (other than clicking Enable). Hopefully, you may have an idea.

read the following to get it working:
https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/issues/172


[WIP] New documentation site

Issue: -documentation system is limited and hard to maintain-
What I did
I build a new documentation site built with next.js
Goals

[x] pages based on markdown & react
[ ] great multi-framework support
[x] pages should be fully viewable in GitHub
[x] great dev experience (HMR)
[x] great user experience (rich design)
[ ] great accessibility
[ ] fast, first paint and TTI
[ ] automatic contributions
[x] multiple versions support ( progress by @igor-dv )
[ ] deploy from CI to main URL when on master
[ ] deploy to branch-URL when on PR ( progress by @igor-dv )
[ ] Place branch-URL on PR
[ ] prepare for multi-language support
[ ] provide a page with statistics on the repo & npm, maybe some nice graphs? ( why storybook )

How to test
-todo-

Great work! As far as I remember, you’ve deployed this to some custom domain. Can you bring it in?

Is there a chance that some of those components would be useful as part of @storybook/components?

Using close colours for background and text leads to bad readabiity =(

Are those lines really needed?

@ndelangen @dangreenisrael I wonder do we start having contributor docs in two places and keeping them in sync?

Perhaps we can autogenerate a copy of the docs into /docs, and have a note at the top telling people how to get to the source files.

@ndelangen is this going to be merged or are the changes stale?


Resolve Spelling Mistake in Modal.JS

The Loading Message on Modal popups has a capitalised "P" for Loading Please wait.
This should be set to lower case.
Might be nice to add a spinner also.

Implemented


License

Hello! Really love this implementation of source engine movement. Please consider adding a license (preferably MIT, but ultimately it's up to you), as I would love to use this code in my FPS project.
Thank you!

You got it boss. Its done
https://github.com/EricXu1728/Godot4SourceEngineMovement/blob/main/LICENSE


React router context type: "child context type is invalid; it must be a function"

Working on a JEST test for a component that uses react-router. I'm using enzyme to mount() the component for testing. The component only calls router's push function (this.context.router.push).
Passing router context with context and childContextTypes as mount options. When I run my test I get:
"child context type 'router' is invalid: it must be a function, usually from React.PropTypes"
Per console logs, I confirmed contextType of router is object (not function). The component itself works fine in the browser, and does not throw any console warnings or errors. I should be able to pass a simple object, like here
https://stackoverflow.com/questions/36143925/react-js-how-to-mock-context-when-testing-component
Why am I getting the warning that it must be a function?

contextTypes values, and propTypes values, must be validator functions. It's possible that React ignores non-function propTypes/contextTypes, but that doesn't mean it's correct, or actually checking anything.


Tests for DA job

This PR introduces tests for DA Job.
Pre-Requisites :

MongoDB docker up and running.
LocalStack docker up and running.

Integration Tests :
(No tests needed for create_job and verify_job)

test_da_job_process_job_failure_on_impossible_blob_length
test_da_job_process_job_failure_on_pending_block
test_da_job_process_job_success

Unit Tests :

test_da_word
test_state_update_to_blob_data
test_fft_transformation
test_bincode

Build_Config :
Link to File

Added S3 initiation in init storage section.
Reworked from madara_rpc_url to localhost:{server.port} since ServerMock doesn't work with predefined url.

Closing in favor of #74


how to multiple domains? (localhost, IP, domain)

Hi,
Is is possible to have multiple domains? for example I want to be able to access erin in 3 ways:

with my local IP (<IP_ADDRESS>)
with localhost
with a custom domain (tiktok.homelab.com)

but it seems like I only can choose one
Right now I want another people to access erin in my local network, so I had to set the env var PUBLIC_URL to http://<IP_ADDRESS>:3333 but now I cannot access via localhost:3333
But I want to access via tiktok.homelab.com but only on my LAN, so I added traefik proxy to help with that but it doesnt work :(
I have 10 applications via docker compose and I expose them via Traefik and a local https certificate (thanks to mkcert.dev), I only add a few labels and it works OK on all applications except erin, this is my current docker-compose.yaml file
name: tiktok

networks:
  proxy:
    external: true

services:
  erin:
    image: mosswill/erin:latest
    ports:
      - "3333:3333"
    volumes:
      - "/e/videos/:/srv/videos:ro"
    networks:
      - proxy
    environment:
      PUBLIC_URL: "http://<IP_ADDRESS>:3333"
      AUTH_ENABLED: "false"
      AUTOPLAY_ENABLED: "true"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`tiktok.homelab.com`)"
      - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=https"
      - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls=true"
      - "traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=3333"

Hi !
Thanks a lot for opening the issue and providing all those details.
I'm not entirely sure that Erin supports multiple domains at once, but I think we could try still.
May I suggest that, in the "PUBLIC_URL" variable, you set only ":3333" and see if that works?
I have checked the documentation of Caddy (the server that Erin is built on top of), and I think that ":3333" is enough to instruct the server to accept all the requests, so long as they come on port 3333, regardless of the hostname.
Let me know if that works, and else, I think I can adjust the code for your use case.

Hi @will-moss, thanks for your response
With ":3333" now I can access with localhost:3333 and my local IP address, thank you very much!
Now when I access tiktok.homelab.com it loads the application but it doesnt show any videos.
Using the dev tools I can see a http request to the URL https://tiktok.homelab.com/:3333/media/?hash= which returns the same HTML im seeing with the error message, but If I remove the :3333/ I can see a list of my videos and I can see them manually
I think its because of the following script on the index.html page:
        <script>
            window.PUBLIC_URL = ":3333",
            window.USE_SECRET = false,
            "https:" === window.location.protocol && (window.PUBLIC_URL = window.PUBLIC_URL.replace("http:", "https:")),
            window.AUTOPLAY_ENABLED = true,
            window.PROGRESS_BAR_POSITION = "bottom"
        </script>

It is possible to change the index.html template from window.PUBLIC_URL = "__PUBLIC_URL__"; to window.PUBLIC_URL = window.location.href?

Alright, thanks a lot for reporting back, and I'm glad this works better already.
I have just published a new release that should (hopefully) fix everything.
You can pull the latest image and tell me if that solves it!
PS : I used window.location.origin because the client needs the root address, while href would include the path too. Thanks a lot for the recommendation, you rock 👍


error on npm start

Steps to reproduce

Clone angular-seed repo
Install dependencies using npm install
Try to start the server using npm start.

Below are log file [npm-debug.log] details
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli   'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose node symlink C:\Program Files\nodejs\node.exe
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart<EMAIL_ADDRESS>7 verbose unsafe-perm in lifecycle true
8 info<EMAIL_ADDRESS>Failed to exec prestart script
9 error<EMAIL_ADDRESS>prestart: npm install
9 error Exit status 1
10 error Failed at the<EMAIL_ADDRESS>prestart script.
10 error This is most likely a problem with the angular-seed package,
10 error not with npm itself.
10 error Tell the author that this fails on your system:
10 error     npm install
10 error You can get their info via:
10 error     npm owner ls angular-seed
10 error There is likely additional logging output above.
11 error System Windows_NT 6.2.9200
12 error command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
13 error cwd C:$\Code - Git\Open Source\angular-seed
14 error node -v v0.10.28
15 error npm -v 1.4.9
16 error code ELIFECYCLE
17 verbose exit [ 1, true ]

I encountered an error on startup as well. Output:
chrubuntu:angular-seed user$ npm start

><EMAIL_ADDRESS>prestart /home/user/projects/angular-seed
> npm install

><EMAIL_ADDRESS>postinstall /home/user/projects/angular-seed
> bower install

><EMAIL_ADDRESS>start /home/user/projects/angular-seed
> http-server -a localhost -p 1337 -c-1

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRNOTAVAIL
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1020:19)
    at listen (net.js:1061:10)
    at net.js:1143:9
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:121:9)

npm ERR<EMAIL_ADDRESS>start: `http-server -a localhost -p 1337 -c-1`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     http-server -a localhost -p 1337 -c-1
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-seed
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.11
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /home/user/projects/angular-seed
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/projects/angular-seed/npm-debug.log
npm ERR! not ok code 0

I tried changing the port number in package.json as noted above but that did nothing (I tried 8000, 5000 and 1337). Changing http-server -a localhost -p 1337 -c-1 to http-server -a <IP_ADDRESS> -p 8000 got the app to start. I am running a chroot on an HP Chromebook so I imagine the unorthodox installation on Linux has something to do with it.

I had this error, when I've tried to run angular-seed project for the first time. I've closed all other terminal windows, deleted the angular-seed and cloned it again. After that used npm install and npm start and it worked for me.

I've been struggling with same error too. Seems like this error happens whenever I try to run my server from an already open port, so I ended up getting a list of the processes and killing it. Took me a while to figure out what was going on, but here's what I did to fix it:
I got a list of open processes on a port, use 'sudo lsof - :port'. For example, for port :8000:
sudo lsof -i :8000

Then I killed the process using the listed PID:
sudo kill -9 PID

Thats it - hope this helps someone!

@im-auld : I have got the same error, and fix the error with your answer, thx :+1:

Fixed by uninstalling and reinstalling npm
sudo npm uninstall npm -g
brew install npm
npm install

I had the same problem when I tried npm start. The solution that worked for me: http-server needs to be installed globally with npm install -g http-server

I had the same problem when I tried npm start. The solution that worked for me:delete the existing "node_modules" files, the clean the cache:  npm cache clean

open the terminal,execute "npm cache clean"

Thank you @skananitos, I installed http-server globally and it started a server.

I got the same error. Later I open the terminal in administrative mode in Windows 7 and then it works fine.

Closing since the OP was able to solve the problem and other issues seem to not be related to angular-seed itself (but rather node, npm or firewalls).

hey guys ,
I AM ALSO FACING THE SOME ISSUES CAN ANYONE HELP HOW TO FIX IT.

HEY GUYS, I AM ALSO FACING SOME ISSUES CAN ANYONE HELP IN FIXING IT.


Handle NaN values in FormulaEngine

While you are at this, it should probably be a good idea to also treat NaN's specially (probably the same as None). You can check using math.isnan().
(same for all steps)
OR, maybe replace None with NaN and it should have the same effect of propagating None manually as you are doing here, but it will be done automatically. Then you only need to convert the final NaN in the stack to None and you are set. This option is easier to write (as you don't have to touch every step) but it might be harder read (to figure out what's going on).
Originally posted by @leandro-lucarella-frequenz in https://github.com/frequenz-floss/frequenz-sdk-python/pull/95#discussion_r1038228733

@sahas-subramanian-frequenz what is the rationale to treat float nan as None. In any case if we try nan in a special way, should we do the same for inf?

I'd like to check with you if this is what you have in mind to handle None/NaN, please see the example below
from math import isnan, isinf

class Adder(FormulaStep):
    """A formula step for adding two values."""

    def __repr__(self) -> str:
        """Return a string representation of the step.

        Returns:
            A string representation of the step.
        """
        return "+"

    def apply(self, eval_stack: List[Optional[float]]) -> None:
        """Extract two values from the stack, add them, push the result back in.

        Args:
            eval_stack: An evaluation stack, to apply the formula step on.
        """
        val2 = float("NaN") if (val := eval_stack.pop()) is None else val
        val1 = float("NaN") if (val := eval_stack.pop()) is None else val
        res = val1 + val2
        if isnan(res) or isinf(res):
            res = None
        eval_stack.append(res)

Hey @daniel-zullo-frequenz ,  I think that makes sense,  but I wonder what kind of perf cost this would have.  Maybe we should write some benchmark scripts for the data pipeline first.  We can talk about that this afternoon.
But another option for implementing this,  is to just check incoming values in the MetricFetcher if they are NaN or INF, and replace those with None in that step alone.

Or like Luca originally mentioned,  we could replace None values with NaN, or 0 in the MetricFetcher, and remove all the special None handling in the other steps,  and in the engine's apply function,  replace the output with None if it was NaN.  Maybe that's be most efficient approach.

That makes sense. I'll work out the changes and push a MR. Thanks for the clarification!

@sahas-subramanian-frequenz I'm afraid I've lost your approval when re-signing the commit to be verified. Can you please re-approve it?

We've recently found out there is an issue with the Averager formula, I'll fix it and add a separate a test case with all inputs having values,  and one test with fewer with values.

It turned out MetricFetcher.apply() is not called/reached out when the FormulaStep Averager  is performed, so the current patch/code was actually correct. However I have added unit tests for Averager in a separate commit.


Unable to deploy with NODE_ENV=test. Error: Cannot find module 'mongodb-memory-server'

Link to reproduction
No response
Describe the Bug
When deploying with NODE_ENV=test, the following is encountered:
Error: Cannot find module 'mongodb-memory-server'Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>- /home/node/app/dist/payload.config.js
- /home/node/app/node_modules/payload/dist/config/load.js
- /home/node/app/node_modules/payload/dist/payload.js
- /home/node/app/node_modules/payload/dist/initHTTP.js
- /home/node/app/node_modules/payload/dist/index.js
- /home/node/app/dist/server.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at Hook._require.Module.require (/home/node/app/node_modules/@newrelic/ritm/index.js:167:34)
    at require (node:internal/modules/helpers:179:18)
    at Object.connect (/home/node/app/node_modules/@payloadcms/db-mongodb/dist/connect.js:36:44)
    at BasePayload.init (/home/node/app/node_modules/payload/dist/payload.js:222:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getPayload (/home/node/app/node_modules/payload/dist/payload.js:266:26)
    at async initHTTP (/home/node/app/node_modules/payload/dist/initHTTP.js:39:21)
{
  code: 'MODULE_NOT_FOUND',
  requireStack: [
<EMAIL_ADDRESS><EMAIL_ADDRESS>    '/home/node/app/dist/payload.config.js',
    '/home/node/app/node_modules/payload/dist/config/load.js',
    '/home/node/app/node_modules/payload/dist/payload.js',
    '/home/node/app/node_modules/payload/dist/initHTTP.js',
    '/home/node/app/node_modules/payload/dist/index.js',
    '/home/node/app/dist/server.js'
  ]
}
Node.js v20.15.1

This seems to be coming from @payloadcms/db-mongodb. I couldn't find the env variable details anywhere.
I believe it expects an env variable PAYLOAD_TEST_MONGO_URL and if not, I guess it tries to create a MongoDB instance.
We are already passing the MongoDB URL in the payload config for the respective env.
To Reproduce
Deploy payload with NODE_ENV=test
Payload Version
2.22.0
Adapters and Plugins
@payloadcms/db-mongodb: ^1.5.2

Out of curiosity, what is the use case for deploying with NODE_ENV of test?
Payload uses this variable to determine if a memory server should be used or not.
You'll either need to set PAYLOAD_TEST_MONGO_URL or use a different NODE_ENV.

We will be hosting payload server for production & test environment for our internal tools.
This is something we encountered during test deployment.

You'll either need to set PAYLOAD_TEST_MONGO_URL or use a different NODE_ENV.
Got it 👍 . We went with adding PAYLOAD_TEST_MONGO_URL to our env-variables.
I am assuming test as NODE_ENV will be common in repo's across. Possible to add this to the docs as well ?


How to stream video, but only to authenticated users?

Which Category is your question related to?
I've seen this blog: https://aws.amazon.com/blogs/media/introducing_aws_amplify_video/
There it's described that both live and on demand video streaming is now possible in Amplify.
My questions are:

I have a large number of videos and I'm looking to control access per video to specific users (which are Cognito users). Video's should not be publically available in any way.

How do I do a live streaming session, and again only to authenticated users?

Background: We're building a membership portal with learning videos where only paid users can access the content. If they leave their membership and in some way have gotten the direct link to the stored video (view source for example), how can I prevent that they won't be able to access it?
What AWS Services are you utilizing?
Amplify with Cognito, AppSync, DynamoDB etc.

To the Amplify CLI, the amplify video is a third party plugin, you can directly post issues on their github repo
https://github.com/awslabs/amplify-video

Thanks, sometimes it can be hard to figure out where something is being done in AWS land... I found an existing ticket over there for this exact request, bud sadly this is not yet possible and there doesn't seem to be a timeline on when that will be.


pythonPackages.me_cleaner: init at 1.2

Motivation for this change
me_cleaner is not yet packaged in nixpkgs. Manually checking out the source repo to get to the script is less cool, than just having it available in your packetmanager.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/) (there is just the me_cleaner.py script)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 138176 at 35992a1a run on x86_64-linux 1

2 packages built successfully:

python38Packages.me_cleaner
python39Packages.me_cleaner

1 suggestion:

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/me_cleaner/default.nix:27:0:
   |
27 |     description = "Tool for partial deblobbing of Intel ME/TXE firmware images";
   | ^

It seems like me_cleaner is in nixpkgs... https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/me_cleaner/default.nix

It seems like me_cleaner is in nixpkgs... https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/me_cleaner/default.nix

I'm fine with adding it as a python module, and re-exporting in all-packages as me-cleaner = with python3Packages; toPythonApplication me-cleaner;

this should also bump the python interpret version, which is good :)

It seems like me_cleaner is in nixpkgs... https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/me_cleaner/default.nix

Oops. Sorry, I totally missed that.

I'm fine with adding it as a python module, and re-exporting in all-packages as me-cleaner = with python3Packages; toPythonApplication me-cleaner;

If I understand this correclty, this means dropping the old definition from pkgs/tools/misc/me_cleaner/default.nix.
You want me-cleaner in all-packages. Currently it is named me_cleaner. I will create an alias for backward compatibility.


How to do this step?

Load ./google-form.js in your browser, or require it with browserify or webpack.

I don't know how to load that script in my browser.

cd path/to/project
wget https://raw.githubusercontent.com/jsdevel/google-form/master/google-form.js

Then add the following to the bottom of your HTML:
<script src="google-form.js"></script>


Add unique id to tabs so aria-controls in tab component points to cor…

…rect tab

Together with https://github.com/statisticsnorway/ssb-component-library/pull/866


Is it possible for the rect tooltip to stay in the upper left corner?

If not, that would be a nice style option to add.

Also, when using the 'inside' setting for the y-axis, keep the rect tooltip from overlapping the axis when it is on the same side.

Also, when using the 'inside' setting for the y-axis, keep the rect tooltip from overlapping the axis when it is on the same side.

candle.tooltip.rect.offsetLeft or candle.tooltip.rect.offsetRight

If not, that would be a nice style option to add.

Do you want it to be fixed?

Yes please. Thanks for the offset suggestion.


Error running tests with Jest

Created a new project and selected Jest as the testing framwork. Running into an issue with it though. Node version 10.16.0, npx version 10.2.0.
Using the command "npx create-nuxt-app" and the following options:
Use a custom server framework: Express
Choose features to install:

Progressive Web App (PWA) Support
Linter / Formatter
Axios

Use a custom UI framework: none
Use a custom test framework: jest
Choose rendering mode: Universal
Choose a package manager: npm
When running npm run test get the following error:
 FAIL  test/Logo.spec.js
  Test suite failed to run

    Jest encountered an unexpected token

    This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

    By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

    Here's what you can do:
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/en/configuration.html

    Details:

    ~/sample-project/test/Logo.spec.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import { mount } from '@vue/test-utils';
                                                                                ^

    SyntaxError: Unexpected token {

      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)

Running coverage on untested files...Failed to collect coverage from ~/sample-project/pages/index.vue
ERROR: ~/sample-project/pages/index.vue: 'import' and 'export' may only appear at the top level (28:0)

  26 | //
  27 | //
> 28 | import Logo from '~/components/Logo.vue';
     | ^
  29 | export default {
  30 |   components: {
  31 |     Logo
STACK: SyntaxError: ~/sample-project/pages/index.vue: 'import' and 'export' may only appear at the top level (28:0)

  26 | //
  27 | //
> 28 | import Logo from '~/components/Logo.vue';
     | ^
  29 | export default {
  30 |   components: {
  31 |     Logo
    at Parser.raise (~/sample-project/node_modules/@babel/parser/lib/index.js:6344:17)
    at Parser.parseStatementContent (~/sample-project/node_modules/@babel/parser/lib/index.js:9879:18)
    at Parser.parseStatement (~/sample-project/node_modules/@babel/parser/lib/index.js:9788:17)
    at Parser.parseBlockOrModuleBlockBody (~/sample-project/node_modules/@babel/parser/lib/index.js:10364:25)
    at Parser.parseBlockBody (~/sample-project/node_modules/@babel/parser/lib/index.js:10351:10)
    at Parser.parseBlock (~/sample-project/node_modules/@babel/parser/lib/index.js:10335:10)
    at Parser.parseFunctionBody (~/sample-project/node_modules/@babel/parser/lib/index.js:9408:24)
    at Parser.parseFunctionBodyAndFinish (~/sample-project/node_modules/@babel/parser/lib/index.js:9378:10)
    at withTopicForbiddingContext (~/sample-project/node_modules/@babel/parser/lib/index.js:10498:12)
    at Parser.withTopicForbiddingContext (~/sample-project/node_modules/@babel/parser/lib/index.js:9683:14)
----------|----------|----------|----------|----------|-------------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files |        0 |        0 |        0 |        0 |                   |
----------|----------|----------|----------|----------|-------------------|
Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        2.231s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>test: `jest`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Hmm strange seems to work after I restarted my machine. Will close then.


chore(sdk): Update MLFlow Importer to match new importer pattern

Description
Updates MLFlow importer to match patterns of new importer (PR looks big because it's based on the importer fixes, but it's actually <100 lines changed)
Testing
e2e test for mlflow runs

seeing this in the CI: https://app.circleci.com/pipelines/github/wandb/wandb/30422/workflows/d33a699b-4c69-4b42-94f0-f62a92a11474/jobs/984857?invite=true#step-110-65 -- do you know why?


⚠ Bofrost.lu has degraded performance

In 4289802, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2553 ms

Resolved: Bofrost.lu performance has improved in 1105271 after 29 minutes.


Add information about the SBHS example

@tbeu The paper is slightly more than 11 pages after this (limit is 10, right?). I suppose we should include it anyway...

Well, there are two more pages coming after my PR.

There is the possibility to apply for five extra pages.

That's OK, then :)


common: remove unnecessary run_once statements

1303611 introduced tasks for disabling the pg_autoscaler on pools and
the balancer but thoses tasks are already executed on the first monitor
node so we don't need to add the run_once statement.
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

jenkins test centos-non_container-all_daemons

jenkins test centos-container-all_daemons


Make EnumClassHash operator() constexpr

It's just a static_cast, no reason it shouldn't be constexpr.
By the way, I notice that there's no typedef for std::forward_list. It has slightly better performance than std::list for certain operations (and worse for others, of course).

Thanks, merged. Feel free to add forward_list if you feel like it. If not I'll keep it in mind for when it seems like it could come in handy. Maybe it would be good to make the default List be a forward list, since it feels like it's more commonly required.


Add Term and LogIndex types

This adds types for Term and LogIndex, instead of raw u64s.

Thanks, awesome!


changed color

added the fill color = pink

Good job learning how to change variables (strings) and seeing the resulting change in color! Score 2/5 for learning how to submit pull requests. The HW is incomplete because the task was to draw a rectangle.


Internet Speed Meter using Python

Is your proposal related to a problem? Please describe.
Features
Download speed
Upload speed
Data usages
CPU usages
Computer Info
Add any other context or screenshots about the proposal request here.
ss:

@Kushal997-das Please assign this issue to me under Gssoc 2022

@Kushal997-das pr is made #640


Double Column Layout + Margin Notes in landscape views

Summary
It would be nice to have a double column layout for the paragraphs plus the margin notes in landscape or 16:9 views.
Details
Due to a lot of horizontal space, when using the landscape mode, the margin layout is too wide to get a good reading experience. It would be good to have two columns for the paragraphs with a similar word count per row of 6-8 words. This would improve the reading experience due to shorter rows per column. Is there any option that I missed, that enables me to get that?
Layout-Proposal
Like the margin Layout now, but instead of just having one paragraph section and a margin for the notes/cites --> Two paragraph columns plus the margin for the notes.
Looking forward to chat about the possibilities.
Kind regards,
Tobias

If you already know how to do it, PR are always welcome :) (Otherwise I'll look into it when I find the time)


BUG: Filter for nullable booleans SQLite not working

Hey there,
I encountered a weird problem in my project while filtering for boolean fields.
I have a table PatientTable that has boolean fields created, staged, deleted, archived which can be null as well., except for archived.
When I try to filter for patients that can be deleted I want to get all patients, where created and staged are not true. So being null or false is fine. Also they should be archived.
I made a little example in the play ground. I wasn't sure how to get results from the filtering, but at least you can see my queries. It's the very last function called query.
When I run this in my project I don't get any values which is as far as I figured out due to some of the values being null.
playground
I hope you can recreate this issue and have som tips for me how I can achieve this filtering.
Best regards,

Hey 👋
The SQL you're trying to build seems off. e.g. exists usage seems excessive or wrong, comparison with true/false instead of 0/1 (might be ok in newer SQLite versions).
Try ditching the exists and running again.
Have you tried writing it outside Kysely and running it directly with better-sqlite3?

Hey,
Thank you for your quick answer!!
opps, sorry, I didn't see the exists in the playground. In my project I already removed it. I tried writing it in raw sql with the raw template tag, but that as well didn't give me the results I am looking for.
I'll try running it outside kysely and will get back to you shortly!

Hey,
I found my error.
I didn't know that but

SQLite evaluates this as NULL because NULL cannot be compared to 'true'. So explicitly account for NULL values in your query

So if I want to filter for 'created != true' and it is a field that can be null as well I need to check that too. So I should filter like this
eb("created", "is", null).or("created", "!=", true)


Update clear-caches.yml

Codecov Report

Merging #487 (0ac2bea) into main (ebad6f7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #487   +/-   ##
=======================================
  Coverage   73.77%   73.77%
=======================================
  Files          83       83
  Lines        4354     4354
  Branches     1029     1029
=======================================
  Hits         3212     3212
  Misses        393      393
  Partials      749      749

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more