Implement the ability to change the ssh port to match what is in the gitea config

This request just adjusts the ssh_config file to being a template, then applies the SSH_PORT value against it so it can be equal to the value which is being set inside the gitea configuration. It was previously hard-coded

Codecov Report

Merging #7286 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7286      +/-   ##
==========================================
+ Coverage   41.16%   41.17%   +<.01%
==========================================
  Files         464      464
  Lines       62761    62761
==========================================
+ Hits        25837    25840       +3
+ Misses      33530    33528       -2
+ Partials     3394     3393       -1

Impacted Files
Coverage Δ

models/gpg_key.go
56.66% <0%> (+0.83%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for the continuation.
I’m not sure about this change for a few reasons, this is a breaking change due to the file rename (some downstream users reference it specifically), this port can be remapped using flags in the docker run command, as well we plan on moving to the built in ssh server which would allow this port to be defined without having to modify the openssh server.

can you give an example of downstream users who use this file? Since it's in the docker root, it only applies to the docker configuration.
any downstream users can just adjust the file paths if they find their images don't work anymore. The change was to properly illustrate what file is configuring what software. Since I moved sshd_config to being a template too. It made more sense to have files named after the project they were configuring than a generic and ambiguous app.ini filename. In any case, I would like to know what downstream people you're referring to. But if you're insistent on the name being app.ini, I don't care enough about it to make a big deal about it, the problem I have is the port 22 for the openssh. I just wanted to be consistent in how the software defined it's filenames: app.ini is ambigious, gitea.ini is not.
the port is hardcoded to server on port 22 as per the sshd_config file, even if gitea changes the port it can't be actually changed to match what gitea is reporting. Thats the bug that is being fixed here. That gitea can report the ssh_port is 10022 and ssh is listening on port 22. It's not consistent.
in the meantime between now and the time that you actually do the change to the ssh server. I suggest we focus on fixing the actual bugs and then this issue can be "deprecated" when that happens. There is no reason why the software should be inconsistent until that time. Which is an undetermined point in the future.

@techknowlogick I think this might actually be reasonable - we don't have rootless docker yet and this gives a reasonable feature for a very small changeset.
My only concern is the change from /etc/templates/app.ini to /etc/templates/gitea.ini - which although I agree would be a better name (/etc/templates/gitea/app.ini would be even better) - I don't think we should just change that right now. I can't guarantee that that change won't break other users who mutate the docker and given the isolated nature of docker containers I'm not certain that it matters that the name isn't perfect.

This isn't a mountain I want to die on, I'll just change the filename. I care more about the ssh_config, I just felt that having app.ini and sshd_config next to each other meant a bit of ambiguity and I'm very active at my company in providing a consistent naming scheme and pushing towards a more perfect setup rather than leave things to rot and become even more inconsistent over time. I'm the main guy writing the docker setups there.
Give me a minute, I'll change it and push another change

Thanks for PR :) Please note that the blocked label is just so this doesn't accidentally get merged into 1.9 which is in freeze mode right now. This will be merged into 1.10

We need to add a breaking notice to docker to say that we're now shadowing /etc/sshd_config

Would you like me to do that? If so, please let me know which files I should edit since I'm not part of your typical release team and I have no experience with your protocols. I can make the edits today if you let me know.

TBH I don't know where to put it -  It's more of a changelog thing really.
We have had a couple of users who have complained about us changing the dockerfiles before - unfortunately it's effectively part of our API.

Then I guess it goes in the changelog then and we just have to assume that people read them :)
I could go on to explain that it's just a part of developing a tool that sometimes things change and people need to learn to cope with adapting themselves.
Otherwise, we end up making ourselves hostage to our past. Afraid to change things in case one person gets upset about it.

Yes, a changelog item. So the label breaking label applied would take care of this when generating the changelog. Nothing else needs to be done.


dart:ffi how to describe in dart GoString and GoSlice structures generated by go

Here (gist) dart and go code with generated header file.
i tried with Utf8 class from sqlite example, it's seems work.
calling add 1, 2: 3
calling cosine 2pi: 1.0
callin log��U��o��U�����U@�o��UP�o��U��o��UP�o��Uf��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U�o��U�o��U �o��U0�o��U@�o��UP�o��U`�o��Up�o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U��o��U
1

Here's a working Gist which uses your "Log" function:
https://gist.github.com/sjindel-google/b88c964eb260e09280e588c41c6af3e5
Note that because GoString is represented as a struct in C, you have to pass it to the Go function by pointer (*string in Go) because we don't supporting passing structs directly to native functions.

/cc @mraleph @dcharkes

@sjindel-google   how to return a GoString when dart call golang return string, like go code
func hello() (string, error) {
   return "", nil
}

We need support for passing structs by values in the calling convention for that. See https://github.com/dart-lang/sdk/issues/36730.

In the meantime you can use a string* in Go (GoString* in C).

Thanks @dcharkes @sjindel-google, hope support soon.
How about the return multiple values like go return error and another value?


fix(ecma/transform/base): visit computed prop in usage analyzer

As discussed in #3178

Oh, I messed up head commit...


Use __iter [in addition to?] __call

Our implementation of __iter (RFC) currently respects __call and treats it as a sign that we should not iterate through key/value pairs of the table to preserve backwards compatibility. __iter is currently in Studio beta (https://developer.roblox.com/en-us/resources/release-note/Release-Notes-for-526).
Long term it would be nice if we could clean this up and remove the special casing of __call during iteration. This requires that all code that currently uses __call in iterators to migrate to __iter. Matter is one of very few (two for now based on our analytics) libraries that does that.
Would it be possible to specify __iter on iteratable objects? You should be able to do this in a way that doesn't break when __iter is not implemented by simply declaring it as a forwarding method, something like
function Iterator.__iter(self)
  return self
end

(which will still call __call on every iteration after that, __iter is only called once before the iteration begins)
Alternatively you can return an actual iteration function from __iter which will be faster since __call calls are slower than regular function calls, but I haven't looked closely at Matter source to see if this would be easy to do. In either case the change would be backwards compatible if you don't touch __call so it can be implemented before __iter goes out of beta I believe.

Matter now uses both __iter and __call for iteration over QueryResult. We can remove __call once __iter is stable


Tuya plugin error

Prerequisite

[X] Yes, I've read the readme completely.

Cache

[X] Yes, I've cleaned accessory cache and the issue still exists.

Version
v1.7.0-beta.54
Device Infomation JSON File
}
[12/09/2024, 18:21:06] [Tuya] [TuyaOpenMQ] Error: Error: getaddrinfo ENOTFOUND m1.tuyaus.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'm1.tuyaus.com'
}

Device Control Mode
None
Logs
}
[12/09/2024, 18:21:06] [Tuya] [TuyaOpenMQ] Error: Error: getaddrinfo ENOTFOUND m1.tuyaus.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'm1.tuyaus.com'
}

Other Infomations
Tuya plugin tries to connect but fails. As a result, it does not allow to control Homebridge accessories since they are shown as  NO RESPONSE

Has anyone experienced this?


Determine how to handle container arguments in WASCC

A Kubernetes Pod resource can specify arguments for each of its containers.  The WASI provider passes these to the WASM module via the WASI-defined interface.
However, there is no obvious mapping from command line arguments to the WASCC actor model.  We should determine whether to:

Map container arguments to actor data in some Krustlet-specific way
Drop container arguments on the floor

Silently?
Or with a log message?

Error if container arguments are provided because we can't honour them

And then whatever we decide we should do it.

I believe it is better if the provider errors out if container arguments are provided.
Taking an example...

Kubernetes 1.100 introduces a new image pull policy: Sometimes
krustlet-wasi and krustlet-wascc do not support this new policy
I create a WASI pod, declaring imagePullPolicy: "Sometimes"

If we silently dropped this error, we would also silently default to the default policy. Then, in a new Krustlet update when we support that policy, we would start respecting that new pull policy. This situation would result in us silently defaulting to a policy the workload did not expect, then silently switching over to the expected policy in an update. Is that better or worse for the user than erroring out until we support the Sometimes image pull policy?
In more general terms, it would be nice if there's a way we can validate resources incoming from Kubernetes in a provider, erroring out in a generic fashion if the provider cannot handle the input.

+1 for validating and failing things we can't process - this is better than silently ignoring them and so doing something the user did not expect and may not have desired.
containers:
- image: drevil/melt-pittsburgh:0.3
  args:
  - --dry-run


[FALSE-POSITIVE]

https://essayservice.com
https://essaypro.com
We have noticed through the VirusTotal report that our websites (Essayservice.com & Essaypro.com) are reported on phishing by Phishing Database.
These websites are whitelisted by all other sources:
https://www.virustotal.com/gui/domain/essayservice.com/detection
https://www.virustotal.com/gui/domain/essaypro.com/detection
We would like to solve this issue and are ready to prove that we have never resorted to any actions related to Phishing or any other possible malicious actions.
Also, we are ready to provide you with all the needed conforming material and information upon your request.

EssayService.com - we are a professional team of essay writers that provides academic writing services. In our essay writing service, you can order the service of writing, editing, or proofreading work. We have a convenient calculator, a large selection of professional essay writers, real experts with a Ph.D. degree. We know the purpose for which you are contacting us, and we guarantee that you will not regret it. We also know and understand the problems of students and solve them successfully since 1997

And when they are looking for a job??

we guarantee that you will regret it

When people notice you haven't done any of your exams or papers by your self

Dear Spirillen,
We understand your point of view. However, we are not pushing students to cheat, we just provide them with help, when they cannot handle both studying and working at the same time. Our main intention is to help when students are overloaded with homework that has nothing common with real knowledge and practice.
Moreover, it is not related to the safety of our domains. We have never used any information our clients provide on the service for personal purposes and can show confirming materials to prove it.
Thank you for understanding.

They wouldn't need to work as much if they should pay them to cheat ... What you're doing is all bad. Period. And adding you to a Phishing filter.... well, what kind of filter would you add you're self in? Scamming?

Spirillen, we totally respect your opinion.
However, now our website essayservice.com is reported on phishing without any reasonable basis.
At this point, we are kindly asking your community to remove our website from the Phishing Database. We can prove that essayservice.com is clean and does not conduct any fraudulent activity such as phishing.
Thank you in advance.

@mitchellkrogza
We see that you were assigned to this issue automatically. Is there a way you can help us?

@funilrys We see that you were assigned to this issue automatically. Is there a way you can help us?

As of now, I can't find any occurrences of the subject of this issue.
Closing.
Stay safe and healthy.
Nissar


[nereids] downgrade bucket shuffle if tablet num < instance num

Proposed changes
Issue Number: close #xxx

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

run buildall

run buildall

run buildall

run performance

run performance


Gridster with NVD3

Hello, I am trying to use gridster with NVD3 charts but i am running into a few issues..
I currently have to set NVD3 charts to have a bottom margin of 75 to fit into the Gridster panles.. This works well in none mobile views.. (although in dev mode i can see that the nvd3 passes the panel by quite alot which is why i have to use such a huge margin). When i reduce the screen width to mobile size everything resizes as expected apart from NVD3.. In mobile view the margin is too big and causes the chart to be cut off. Why would NVD3 (a child of gridster) need a bottom margin of 75 in normal mode so that it doesnt get cut off but not need it in mobile view?
Question 2.. i tried to get around this by using  $scope.$on('gridster-mobile-changed', function (gridster) and the altering the margin myself but it doesnt seem to be able to detect the change in margin (i check to see what the current margin is and change accordingly)... Is there a way to know if its going into mobile view rather than either or?
Thanks

@whittssg did you ever arrive to a solution on this issue?


Request for changes in the list

Action: Link is dead, remove

**Name:**Michelle McGhee

Website:

It's fixed. For some reason, I uploaded the link incomplete, thanks for the warning!


Fix error to parse FLAGS #127 issue of eval.py

Fixed this issue:
FLAGS._parse_flags() not support any longer use FLAGS(sys.argv) instead. (call the python object)
python 2.7 & 3.6
tensorflow >= 1.4.0

cool, your change helped me.


test[next]: Skip all dace tests until new DaCe backend lands (GTIR branch)

CC: @edopao

Just for me to understand, what is the reason for this PR? are we going to break compatibility with legacy ITIR-backends? if we skip ITIR-dace why do we keep ITIR-gtfn?


Declaration of Jenssegers\Mongodb\Schema\Blueprint::primary

i get the following error when i run php artisan migrate on a fresh laravel install
Declaration of Jenssegers\Mongodb\Schema\Blueprint::primary($columns = NULL, $options = Array) should be compatible with Illuminate\Database\Schema\Blueprint::primar
  y($columns, $name = NULL, $algorithm = NULL)

Please upgrade composer to latest version or switch to Moloquent


[Bug]: FileDisplayZip styles isn't applied until you refresh(?) the component

Contact Details
No response
What happened?
On page load:

After opening any file preview and then closing it:

And also, can you please add to documetation that ContentStream field on FileDisplay & FileDisplayZip needs NOT closed/disposed stream?
Thanks a lot for this library! I'm really enjoying it
Expected Behavior

Screenshots
No response
What browser are you using?
Chrome
Sample Solution
No response
Pull Request
No response
Code of Conduct

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

Do you have an Server side blazor project, or a webassembly app?

Do you have an Server side blazor project, or a webassembly app?

I'm using server

This should work now!
not released but you can test it with this preview package
1.7.65-d2308140839

Thanks a lot! It works perfectly now. :)


Fix the command for generating content trust delegation cert.

The command provided for generating delegation certificate for Content Trust requires SHA256.
# notary delegation add docker.io/quiq/logspout targets/releases delegation.crt --all-paths -p

* fatal: unable to parse valid public key certificate from PEM file delegation.crt: invalid certificate: certificate with CN notary-delegation uses invalid SHA1 signature algorithm

Certificate was generated per instructions from the docs and it misses -sha256.
By default, SHA1 is used which is insecure and what notary.docker.io complains about.
# openssl genrsa -out delegation.key 2048
# openssl req -new -sha256 -subj ‘/C=US/ST=MT/L=Bozeman/O=Quiq/CN=notary-delegation‘ -key delegation.key -out delegation.csr
# openssl x509 -req -days 365 -in delegation.csr -signkey delegation.key -out delegation.crt
# openssl x509 -text -noout -in delegation.crt
...
    Signature Algorithm: sha1WithRSAEncryption
...

Indeed it does. Nice catch, @roman-vynar thank you!


Help Needed

Hello when ever i tried to install the other dependecies needed for production i got the following errors
npm WARN install Couldn't install optional dependency: Unsupported
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\lepat\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.1.0
npm ERR! npm  v3.3.12
npm ERR! file C:\Users\lepat\AppData\Roaming\npm-cache\graceful-fs\4.1.2\package\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\lepat\AppData\Roaming\npm-cache\graceful-fs\4.1.2\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR!     C:\wamp\www\p1\npm-debug.log
thanks for the help

Well, creating a json file with a single null byte is definitely not a graceful-fs bug.  That seems like an issue with either npm, node, or your network.
Perhaps run npm cache clean and try again?  Closing because it's not work to be done here, but feel free to keep sharing in this thread to try to debug the issue.


Files not reopened after closing and open file from Windows Explorer

Issue Type: Bug
Steps to reproduce:

Open VS Code
Open a file
Close VS Code
Open VS Code
SUCCESS: Files are reopened
Close VS Code
GoTo Windows Explorer
Open a file with right click and open with VS Code
FAILURE: Only the file from Windows Explorer is reopened. NOT the files from the last session!

VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:20:54.427Z)
OS version: Windows_NT x64 10.0.17763
This is not related to #66525!!!

@bpasero can you please tell me why this issue is marked as duplicate?
This is a unique issue and I can not found a similar one! It's simple to reproduce and not a duplicate one from the other.

@DoCode https://github.com/Microsoft/vscode/issues/14675


Can raspeberry 3B+ run SLAM??

Can raspeberry 3B+ with 1G ram run SLAM??

Raspberry Pi@

Raspberry Pi@cschuet


Refactor pytest

Move common code to vp-qe-test-common

This looks sane to me. Do we need to also update the utility-container?


Download and embed remotely-hosted images

Automatically download remotely-hosted images and convert them into data URIs for embedding.

+1, or at least support linking to external images in the meantime.

I'll check that... Agreed, at least external images should be supported meanwhile.


[feature] Content Security Policy (CSP)

It is possible to specify a nonce prop when rendering <NextScript />, but there's currently no way to do the same for styled-jsx inline styles, forcing me to resort to using 'unsafe-inline' for styles.
I would like to be able to pass any number of props supported by <style /> to 'styled-jsx/server' and have them rendered in the DOM.
I can make a pull request (although, that would require 2 pull requests to both next and styled-jsx), if you are open to the idea.

Definitely open to add this if you prepare a PR.

Here is a workaround:
let styles = flush()
styles = styles.map(({props, key}) =>
  React.createElement('style', {...props, key, nonce})
)

I purposefully did not use JSX to avoid going through the styled-jsx babel plugin, which causes all kinds of strange issues.

Unfortunately, I will most probably not have the time in the next several months to do these pull requests.
Maybe someone else will do them in the meantime 🤞

@thealjey: the workaround by @jlecomte would be in your code, not in styled-jsx's code.

@andy-viv

I was not referring to his workaround
I would rather not have to do any workarounds
Next.js does the flush, so more workarounds are necessary to make this work

fixed in #482


Feature Request: Personally Hosted API support

Since the APOD API you're using has been down for a couple days, I looked into and am successfully hosting my own API locally. I'd love to have an option to point at that using this integration. I'm going to make an attempt myself, but this integration is more complex than anything I've tackled before.

Well. 👍
Unfortunately I'm not a programmer and for me it was an experiment. I took some examples on the internet and made this integration. I'd like to get back to work, but I'm not able to deal with it quickly. :0(
We can try to match the jobs, or we should do a new, simpler integration.
Anyway, will you publish your API?

Simpler integration may be the way to go. I'm running the API in Docker, following the instructions here. It was very easy. I think I'm actually just going to make some REST sensors in HA to collect the data, and skip over this integration altogether.

OK thank you.
Not everyone knows how to install the script on their server, meanwhile I'll follow what happens API returns error code 503 (Service Unavailable) but APOD site running fine.


 Every pull request merging will trigger this process.

Pull Request Test Coverage Report for Build 7597

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 64.975%

Totals

Change from base Build 7585:
0.01%

Covered Lines:
11162

Relevant Lines:
17179

💛  - Coveralls


[Bug Report] Can not be deleted or Input in el--input component

Element UI version
2.7.2
OS/Browsers version
Google Chrome
Vue version
2.6.10
Reproduction Link
https://codepen.io/anon/pen/qwVggP?&editable=true
Steps to reproduce
reload
What is Expected?
can deleted or Input
What is actually happening?
can not deleted or Input

@alive-z I don't think this is a bug
https://cn.vuejs.org/v2/api/index.html#Vue-set
according to this you need change your setInput function
setInput(){       let that = this;       setTimeout(function(){         that.$set(that.a, 'input', '12345')       },2000);   }

Thanks @susiwen8

sorry，el-input updated Controlled components. i should define field


What is the best way to add support for additional schemas?

I'd like to add support for schemas definied in health-lifesci
e.g. http://health-lifesci.schema.org/MedicalWebPage

As of right now, you have to create a pull request

Just added the ability in v0.0.7. https://github.com/Torann/json-ld#custom-context-type


Do you plan to support GFF3.

Given that GFF2 is deprecated, I was wondering if their is a plan to support GFF3?

GTF is still very commonly used - for me much more commonly than GFF3. I have occasionally started work on a GFF3 PR, but getting it to work nicely is non-trivial.
PRs are welcome.


Ctrl+Shift+E cannot hide the resource manage panel

Issue Type: Bug
In windows system, we use Ctrl+Shift+E to open the hiden resource manage panel, but we cannot hide the panel by Ctrl+Shift+E, other panels have the same problem.
VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:38:45.278Z)
OS version: Windows_NT x64 6.1.7601

duplicate of #19400
You can add two keybindings to achieve your demand:
    {
        "command": "workbench.view.explorer",
        "key": "ctrl+shift+e",
        "when": "!explorerViewletFocus"
    },
    {
        "command": "workbench.action.toggleSidebarVisibility",
        "key": "ctrl+shift+e",
        "when": "explorerViewletFocus"
    }

also for the search viewlet: "when": "searchViewletVisible"
sadly there is no when clause for the other two views.

sorry I forgot about the activeViewlet when clause.
relates: #17722
    {
        "command": "workbench.view.explorer",
        "key": "ctrl+shift+e",
        "when": "activeViewlet != 'workbench.view.explorer'"
    },
    {
        "command": "workbench.action.toggleSidebarVisibility",
        "key": "ctrl+shift+e",
        "when": "activeViewlet == 'workbench.view.explorer'"
    },
    {
        "command": "workbench.view.scm",
        "key": "ctrl+shift+g",
        "when": "activeViewlet != 'workbench.view.scm'"
    },
    {
        "command": "workbench.action.toggleSidebarVisibility",
        "key": "ctrl+shift+g",
        "when": "activeViewlet == 'workbench.view.scm'"
    },

thanks！


fix RPC API

made rpc functions methods on nodes
made connection cache specific to node instead of being package level
got rid of per-call dialopts

as far as i can tell, this PR actually fixes most of the CI problems

builds finally work!


Is it possible to rewrite URLs?

title says it all. How can I use proxy-mirror to rewrite a URL?

have the same question

Nope currently nope - it's possible to do so with https://github.com/nodejitsu/node-http-proxy


Brandonvu

Implementing JSON to practice fetching data

I deployed the new version just now. https://brandonvu-step-2020.appspot.com/

PTAL. I made a few comments. Thank you!


Better SQL server documentation

Laravel Version
9.32.16
PHP Version
8.0.30
Database Driver & Version
Microsoft SQL Server 2019 (RTM-CU24) - 15.0.43445.5
Description
(Versions are unrelated, merely the ones I'm using.)
Just vouching for my Laravel documentation update here: https://github.com/laravel/docs/pull/9459
But in case you want me to move this additional documentation to \Illuminate\Database\Connectors\SqlServerConnector->getSqlSrvDsn() 👍
https://github.com/laravel/framework/blob/c4e8cf5d7e0a4a5f5621e979a07c1ed9167a6e33/src/Illuminate/Database/Connectors/SqlServerConnector.php#L125..L192
Or maybe the config/database.php stub.
Now is the right time to mention that.
Steps To Reproduce
Don't find MultiSubnetFailover documented in Laravel. So I failed to set it on my MS SQL Server connection.

Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.
Thanks!


Closed socket 19 (AF_UNIX) error

Hello, just sharing my log file
It starts when I start the two services, and it ends right after I click ok on the error dialog that eventually pops up on the connecting client (takes about 5 minutes to pop up)
https://github.com/neutrinolabs/xrdp/files/1319371/xrdp.log.txt
Nothing about the nature of the problem has changed, just hoping my log file of the newest devel branch will help shed some light on my issue.
Thanks
( pulled from https://github.com/neutrinolabs/xrdp/issues/786#issuecomment-330996444 )

Can you show me the result / output of this command?
 Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log

Something's going wrong around here.
Sep 20 17:44:40 xrdp-sesman[1318]: (1318)(140089155450688)[INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Sep 20 17:44:44 xrdp[1176]: (1176)(140103243383744)[DEBUG] Closed socket 19 (AF_UNIX)
Sep 20 17:44:47 xrdp[1176]: (1176)(140103243383744)[DEBUG] Closed socket 19 (AF_UNIX)
Sep 20 17:44:50 xrdp-sesman[1316]: (1316)(140089155450688)[ERROR] X server for display 10 startup timeout
Sep 20 17:44:50 xrdp-sesman[1316]: (1316)(140089155450688)[CORE ] waiting for window manager (pid 1317) to exit
Sep 20 17:44:50 xrdp-sesman[1317]: (1317)(140089155450688)[ERROR] X server for display 10 startup timeout
Sep 20 17:44:50 xrdp-sesman[1317]: (1317)(140089155450688)[ERROR] another Xserver might already be active on display 10 - see log
Sep 20 17:44:50 xrdp-sesman[1317]: (1317)(140089155450688)[DEBUG] aborting connection...

Blank/black screen that I can't seem to switch away from. I kill the process remotely over ssh, and it shuts down gracefully.
.xorgxrdp.10.log

It seems nvidia driver is loaded, even if the xorg provided ask not to autoadd devices:
[ 47037.155] (**) Option "AutoAddDevices" "off"
[ 47037.155] (**) Not automatically adding devices
[ 47037.155] (==) Automatically enabling devices
[ 47037.155] (==) Automatically adding GPU devices
[ 47037.155] (==) Automatically binding GPU devices
...
[ 47037.560] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32

Which distribution are you using  and how the nvidia drivers have been installed ?
What is the current content of the following directories:
/etc/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d

ArchLinux, installed the normal nvidia driver package.
/etc/X11/xorg.conf.d/20-nvidia.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 384.59  (builduser@felix)  Tue Jul 25 16:14:33 CST 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Ancor Communications Inc VG248"
    HorizSync       30.0 - 160.0
    VertRefresh     50.0 - 150.0
    Modeline       "1920x1080_120lb" 286.7 1920 1968 2000 2080 1080 1083 1088 1149 +HSync -VSync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 680"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "1920x1080_120lb +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    Option         "ModeValidation" "NoXServerModes, NoVesaModes, AllowNonEdidModes"
    SubSection     "Display"
        Depth       24
	Modes      "1920x1080_120lb"
    EndSubSection
EndSection

/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
EndSection

/usr/share/X11/xorg.conf.d/10-quirks.conf
# Collection of quirks and blacklist/whitelists for specific devices.

# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
# http://bugs.freedesktop.org/show_bug.cgi?id=22442
Section "InputClass"
        Identifier "ThinkPad HDAPS accelerometer blacklist"
        MatchProduct "ThinkPad HDAPS accelerometer data"
        Option "Ignore" "on"
EndSection

# https://bugzilla.redhat.com/show_bug.cgi?id=523914
# Mouse does not move in PV Xen guest
# Explicitly tell evdev to not ignore the absolute axes.
Section "InputClass"
        Identifier "Xen Virtual Pointer axis blacklist"
        MatchProduct "Xen Virtual Pointer"
        Option "IgnoreAbsoluteAxes" "off"
        Option "IgnoreRelativeAxes" "off"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=55867
# Bug 55867 - Doesn't know how to tag XI_TRACKBALL
Section "InputClass"
        Identifier "Tag trackballs as XI_TRACKBALL"
        MatchProduct "trackball"
        MatchDriver "evdev"
        Option "TypeName" "TRACKBALL"
EndSection

# https://bugs.freedesktop.org/show_bug.cgi?id=62831
# Bug 62831 - Mionix Naos 5000 mouse detected incorrectly
Section "InputClass"
        Identifier "Tag Mionix Naos 5000 mouse XI_MOUSE"
        MatchProduct "La-VIEW Technology Naos 5000 Mouse"
        MatchDriver "evdev"
        Option "TypeName" "MOUSE"
EndSection

/usr/share/X11/xorg.conf.d/40-libinput.conf
# Match on all types of devices but joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Can you temporary rename the directory /etc/X11/xorg.conf.d and try to log in again ?

It works successfully when I do this ^

Is the issue solved for you?

Functionally disabling my Nvidia driver/xorg config isn't a long term solution, no.

same setup here, same problem. I don't need nvidia rendering on xrpd perse. As soon as I remove the nvidia drivers (or rename /etc/X11/xorg.conf.d) I can login via xrdp.
how can we tell the xrdp xorg.conf not to use the nvidia drivers since glx cannot talk with opengl?


Added static file folder

Is there a way to default to using the delphi/static folder instead of the delphi folder from the from importlibs.resources import files @jaidhyani ? In here I just join the path with static every time.

Sort of - files takes a module (or string-specifying-a-module) as an argument. So to make it point somewhere other than our package, we would need to give it a different argument. One thing we could do would be to add an __init__.py to the static dir, and then we could do files(delphi.static). Either approach is fine, I think - your call.
But either way, you're right that we shouldn't require people to type that out each time. Let's add a delphi/constants.py, which for now can just contain STATIC_ASSETS_DIR definition.

@jaidhyani I added __init__.py to the directory, and added the constants file. How does it look now?

@joshuawe I rebased, not sure if I did that correctly. Does it look ok?


[code-template-service] Download the template binary from the URL and store it as a file

Download and store template binary - only http urls need to be supported for now
Blocked by "[base-layer-scanner] detect and store info about code templates on base layer"
Acceptance criteria:

the code template service attempts to download the wasm binary from the given http url
binary data is stored in a file template_store/[author_public_key]/[binary_hash].wasm
the above path should be written to the db record, the contents validated against the sha
if valid, the status updated to valid otherwise invalid

Current status: Currently download to sql database, we should abstract wasm template storage from the template manager and use the above file structure.
Urls are in multiaddr form on the base layer e.g /dns4/github.com/tcp/443/http/tari-project/wasm_examples/releases/download/v0.0.6/erc20.wasm (typed as a string because rust multiaddr does not support the entire multiaddr spec (http paths) :/) however this is given as is to reqwest. Multiaddr is preferable because it supports ipfs, p2p links etc.
As a hack for now, we can look for /http and parse the first part as a multiaddr and the second part as a path
fn parse_http_multiaddr(s: &str) -> Result<(Multiaddr, String)>

Put in "Could do" because the code is working at the moment using the data in sqlite


Support: EventBridgeConfiguration for S3.Client.put_bucket_notification_configuration request parameter

According to boto3 document, we can support EventBridgeConfiguration for put_bucket_notification_configuration request.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/put_bucket_notification_configuration.html
However, moto does not support this. How about supporting EventBridge notifications?
https://github.com/getmoto/moto/blob/ca9d8fc4208f0f7aab6c3e9769977598731a0937/moto/s3/models.py#L1248-L1269

Makes sense @tsugumi-sys.
Do you need to actually send the notifications to EventBridge as well? Then we'll also have to extend the send_event-method:
https://github.com/getmoto/moto/blob/ca9d8fc4208f0f7aab6c3e9769977598731a0937/moto/s3/notifications.py#L44

Do you need to actually send the notifications to EventBridge as well? Then we'll also have to extend the send_event-method:

Actually sending the notifications to EventBridge is also needed for this issue :)
So I want to try it here!

@bblommers
I haven't committed for a while, but I've started trying on this task again.


console broken after update 18298.1000

Please fill out the below information:

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.18298.1000]

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

start WSL,

vi ~/.bashrc

quite vi

console no longer prints anything

or if you have it installed:

emacs -nw
screen looks wierd
quit emacs
console has got a red background

it appears that most curses apps are the same, htop, etc...
curiously top resets it.

What's wrong / what should be happening instead:

The console should continue to work after vi and other curses apps.

Strace of the failing command, if applicable:  (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).

For WSL launch issues, please collect detailed logs.

See our contributing instructions for assistance.

There is no error shown with your given steps. Did you change any color in console settings?

If this is a console issue (a problem with layout, rendering, colors, etc.), please post to the console issue tracker.

I was going to open a new report, but this sounds very similar to what I'm seeing on 18298. While Vim and psql all work, "less" no longer works. I get a blank screen with a cursor blinking in the middle of it.
I thought for sure it was curses related but with Vim and psqql and pico all working, I'm not entirely convinced of that.

Should it have been fixed in 18305? Then it would be another bug, because less does not work in 18305, showing invisible characters...


feat(package): add repository information to package.json

Signed-off-by: Aniruddha Shriwant<EMAIL_ADDRESS>

Closes #341

Changes

Added Package Repository Information (directory) in package.json

Related Issues

Issue #
Pull Request #243

Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[ ] Vital features and changes captured in unit and/or integration tests
[x] Commits messages follow AP format
[ ] Extend the documentation, if necessary
[x] Merging to master from fork:branchname
[ ] Manual accessibility test performed

[ ] Keyboard-only access, including forms
[ ] Contrast at least WCAG Level A
[ ] Appropriate labels, alt text, and instructions

Please don't merge until all related PRs are approved (tracked in https://github.com/accordproject/techdocs/issues/341)


Enhance "Create detection rule" with field descriptions

What are you proposing?
We are proposing to improve the description text of the forms fields. We are updating some of the form UI components to make it easier for users to define rules.
What problems are you trying to solve?
Creating detection rules requires some knowledge of Sigma rules syntax. Some of the fields and sections might require additional descriptions and context.
What solution would you like?
Add descriptions for the form fields that might require additional context. Engage alternative UX patterns (tooltip for the short fields, external link to the documentation for more detailed explanations).

Field
UX Pattern recommendation
Description

Rule name
Description
A short capitalised title, e.g. "Uninstall Antivirus Software"

Rule description
Description
A description of what your rule is meant to detect, e.g. "Detects..."

Author
Description
One author or a list of authors.

Log type
Description
The product or type of data that the rule applies to

Rule level (severity)
Description
Severity level for this rule

Rule status
Description
Indicating the stage of rule development

Map
Description
A directory that contains pairs of keys and values

Key
OuiIconTip
A field or event name?

Modifier
OuiIconTip or external link
Value modifier is transforming value/list or convert them into regular expressions. Learn more.

contains
Description
puts * wildcards around the values, such that the value is matched anywhere in the field

all
Description
link values of a list with a logical AND

base64
Description
match the value encoded with Base64

endswith
Description
the value is expected at the end of the field's content (e.g. *\cmd.exe)

startswith
Description
the value is expected at the beginning of the field's content. (e.g. adm*)

cidr
Description
the value is a subnet in CIDR notation (e.g. <IP_ADDRESS>/24) the IP address should belong to

Value
Description
Specific value of the fields the rule looks for.

List
Field description or external link
Multiple string-based search parameters

Tags
Description
Serve to categorize the rule by mapping to known cyber attack techniques.

References
Description
A list of all references that can help a reader or analyst understand the meaning of a triggered rule

False positives
Description
Describe possible false positive conditions to help the analysts in their investigation

Notes:

The "Authors" field should use OUI combo box with custom input and delimiter option.
We need to define the link to documentation for "Modifier" field.

UX Patterns examples

Built-in description for the form field/accordion can be used for adding the context and the expectations for the input.

OuiIconTip. This would work well for short input fields.

Providing external link. This is useful for longer pieces of content. No need to maintain the content in the product.

Added to backlog


localStorage is being lost when using role

What is your Test Scenario?

When using a role, when localStorage is set programmatically (via a button click) and is then accessed on a new page, it becomes completely lost.  This happens in Test Cafe versions 1.0.0 onward.  NOTE: the role is not finished yet when this is happening.
What is the Current behavior?

A localStorage key becomes null after going to a new page in the middle of using a role
What is the Expected behavior?

The localStorage key should not become null in the middle of using a role
What is your web application and your TestCafe test code?

This is my demo repo  https://github.com/dbschwartz/test-cafe-local-storage
It runs against a website I built to demonstrate it.
Your website URL (or attach your complete example):
The test code can be viewed in my demo: https://github.com/dbschwartz/test-cafe-local-storage/blob/master/test.js

Your complete test code (or attach your test files):

 import { Selector } from 'testcafe';
import { testRole } from './roles/role'

fixture `This is an example showing the test working without using a role`
    .page `https://dbschwartz.github.io/local-storage-demo`

// Tests
test('Text typing basics', async t => {
    await t
    .click(Selector('#first'))
    .click(Selector('#second'))
    .click(Selector('#third'))

});

fixture `This is an example showing the test failing while without using a role`
    .page `https://dbschwartz.github.io/local-storage-demo`
    .beforeEach( async t => {
        await t.useRole(testRole)
    });

// Tests
test('Placeholder', async t => {
});

Your complete test report:

✖ Placeholder

   1) - Error in Role initializer -
      A JavaScript error occurred on
      "https://dbschwartz.github.io/local-storage-demo/localstorage.html".
      Repeat test actions in the browser and check the console for errors.
      If you see this error, it means that the tested website caused it. You
      can fix it or disable tracking JavaScript errors in TestCafe. To do
      the latter, enable the "--skip-js-errors" option.
      If this error does not occur, please write a new issue at:

   "https://github.com/DevExpress/testcafe/issues/new?template=bug-report.md".

      JavaScript error details:
      TypeError: Cannot read property '0' of null
          at
      https://dbschwartz.github.io/local-storage-demo/localstorage.html:15:26

Screenshots:

Steps to Reproduce:

Go to my demo repo: https://github.com/dbschwartz/test-cafe-local-storage
Clone the repo
Do an npm install
Run the tests via npm test
See the error...

Your Environment details:

testcafe version:                   1.1.4
node.js version:                    8.10.0
command-line arguments:  testcafe chrome test.js
browser name and version: Chrome
platform and version:          Window 10
other:                                   This has already been referenced in another issue

I see the same error and think that it does not relate to the role mechanism (at least in this example).
I found that the localstorage.html page is invalid, since it has an incorrect script tag:
<script='./script.js'></script>

Moreover, the script section is defined after the html closing tag.
I fixed these issues in my local example and your tests work fine.
If you still have other problems, please feel free to update your example with new tests.

@AlexKamaev , I don't believe that's the issue. I  fixed the script tag <script='./script.js'></script> to <script='script.js'></script>  so that now includes a valid javascript file and I added a </html> tag to the end localstorage.html and the problem is still happening. The problem is during the role the data in hammerhead|storages-sandbox-temp in localStorage is not being transferred to hammerhead|storage-wrapper||dbschwartz.github.io  properly as it does without a role.  With a role the  data in  hammerhead|storage-wrapper||dbschwartz.github.io  is [[],[]] and it  needs to be [["storageBucket"],["[{\"extra\":\"adfasdfasdf\",\"testObj\":{\"abcdef\":\"12345\",\"ghijkl\":\"123123\"},\"link\":\"https://devexpress.github.io/testcafe/example/\"}]"]] in order to work correctly (this is what it is without a role).  I will post screenshots as soon as I am able.

I was able to reproduce the issue. I need some additional time to research it in detail.

Thanks @AlexKamaev, I really appreciate it.

I researched your issue and found that it's related to the Network Cache. You can see the detailed information in this question on StackOverflow.
Could you please try to run your tests with --disk-cache-size=1 flag, e.g testcafe "chrome --disk-cache-size=1" test.js?
Meanwhile, I recommend that you use this workaround. However, I hope that we will fix this behavior in the near future.

Thank you so much for your help @AlexKamaev!  This works!
The only caveat I might add is that the problem is also happening in Firefox, so cacheing would have to be disabled there too and perhaps other browsers too like IE and Firefox.
I find it odd that it's cacheing issue because localStorage is supposed to happen on the browser itself, rather than through Network Requests.  Maybe since TestCafe runs all its commands through the hammerhead server?
Thanks so much for finding a workaround, I hope there is a patch soon so that we can run our tests in all browsers.

I find it odd that it's cacheing issue because localStorage is supposed to happen on the browser itself, rather than through Network Requests. Maybe since TestCafe runs all its commands through the hammerhead server is the reason behind the cacheing issue?

You are right, the cause of the issue is in the core mechanisms.

The only caveat I might add is that the problem is also happening in Firefox, so cacheing would have to be disabled there too and perhaps IE, Edge and Safari.

We will check this behavior in other browsers as well.

@dbschwartz sadly Your workaround with CustomRequestHook  does not compile for version 1.2.0 :( Can You provide one for this version?
Adding --disk-cache-size=1 does not help in my case.

@Evilweed
Hello,
This workaround works in the latest v1.2.0 version.
If you have any workaround questions to implement your scenario, it will be best to ask them on StackOverflow. We try to keep the GitHub issues tracker for bugs and feature requests only.
And, of course, feel free to open a new report if you encounter any bugs.

Thank you so much for all your help @AlexKamaev.
@Evilweed,
I tried the workaround and it works in v1.2.0, but there are two caveats:

If you do all browsers at the same time (testcafe all test.js) you will get a JavaScript error with No stack trace that will fail all the tests.
After you do the failing testcafe all test.js  browsers do not automatically close.

Other than that this seems to be a good workaround! 👍
Thank you so much TestCafe team for all your hard work

@Evilweed and @Farfurix
Hello,
I was having the same problem, the two workarounds didn't work for my tests that used Role.
However, when I removed the .page (...) from my fixture ... - using {preserveUrl: true} on my Role -, the login token stored in Local Storage was not deleted between the execution of the tests.
I suspect that the behaviour - Local Storage is being lost while using Role - might be related to the use of .page (...) in fixture along with {preserveUrl: true} in Role.
When I used both together the Token behavior in Local Storage varies between:

'null' value just after login, within Role code execution;
valid value within the execution of the Login on Role code and value 'null' shortly after running the Role and running the tests;

Then, as a workaround, what worked for me was:
Role:
export const adminRole = Role(
  loginPageUrl,
  async t => {
    // Perform login
    await t
      .typeText(userNameInput, USER)
      .typeText(userPasswordInput, PASSWORD)
      .click(loginPageButton);

    // Just for test: Verify if Login with userRole was performed
    const loginToken = await getLocalStorage('Token');
    console.log('IN ROLE');
    console.log(loginToken); // <-- Unpredictable behavior when used with `.page (...)` in fixture: null or valid value only at this point in the rest of the tests is always null
  },
  { preserveUrl: true },
);

// Workaround to keep Local Storage between useRole tests;
class CustomRequestHook extends RequestHook {
  _onConfigureResponse(event) {
    super._onConfigureResponse(event);
    event.setHeader('cache-control', 'no-store');
  }
  async onRequest(event) {
    event;
  }
  async onResponse(event) {
    event;
  }
}

export const roleWorkaroundHook = new CustomRequestHook(/.*/);

Fixture and test:
fixture`Visit x page`
  .requestHooks(roleWorkaroundHook)
  // .page(xPageUrl) <-- Uncomment to verify abnormal behaviour
  .beforeEach(async t => {
    await t.useRole(adminRole);
    // Just for test
    console.log('Fixture');
    console.log(await getLocalStorage('Token'));
  });

test('X render with logged user', async t => {
  // Just for test
  console.log('test1 - before.js');
  console.log(await getLocalStorage('Token'));
  await t
    .navigateTo(xPageUrl)
    .hover(...)
    .rightClick(...)
    .click(...)
    .expect(getCurrentPageUrl())
    .contains(xPageUrl, { timeout: 5000 });

  // Just for test
  console.log('test1 - after.js');
  console.log(await getLocalStorage('Token'));
});

test('X does not render with unlogged user', async t => {
  // Just for test
  console.log('test2 - before.js');
  console.log(await getLocalStorage('Token'));

  await useAnonymousRole(); // <-- Need reload the page to real logout
  await t
    .navigateTo(xPageUrl)
    .expect(getCurrentPageUrl())
    .contains(loginPageUrl, { timeout: 5000 });

  // Just for test
  console.log('test2 - after.js');
  console.log(await getLocalStorage('Token'));
});

Auxiliary Functions:
export const getLocalStorage = ClientFunction(key => localStorage.getItem(key));

export const getCurrentPageUrl = ClientFunction(() =>
  window.location.href.toString(),
);

@AllanNobre
We are happy to hear that you found a workaround for your issue. The roles mechanism is quite complex, so there can be a lot of unexpected issues which can differ from one project to another. The @dbschwartz's issue is definitely related to the Network cache. This issue cannot be related to it. Despite you have a workaround we will appreciate it if you share your project with us. It will allow us to research the problem in detail.

@AlexKamaev
The app is in a private corporate environment so I'm not able to share :( , sorry!

@AllanNobre
Feel free to open a new issue if you will have some project (or public URL) to reproduce your scenario issues.


Upload Schema Options

From @siuc-nate

It would be useful if there was an option to pull the schema from a URL here.  For example, the CTDL is available directly from URLs.  These URLS are included below.
It would be useful if the upload box supported dragging/dropping a file onto it

CTDL URL Example: From this page https://credreg.net/ctdl/schema use the "Without Meta Properties:". There's a link to download and a direct link.

Definitely a nice to have


Rewrite Ferris Product Documentation (ferrislabs.net)

[ ] Develop parameter based doc structure (Ferris Labs / Gridmine)
[ ] Review, revise, complete Ferris Documentation
[ ] Proof Read new Ferris Documentation
[ ] Add new Graphic to Ferris Documentation
[ ] Publish new Ferris Documentation to ferrislabs.net

Master content is hosted on stream-zero / shared-docs-source
All edits will be done on local DEV branch

OPEN ISSUES AND QUESTIONS
The following list of items is a collection of questions/topics from the website documentation review:
Ferris FX

[ ] Ferris FX needs a clear product category. We need to be able to say "Ferris FX is a [ devops platform, development platform, paas, or similar]" so that a clear definition of FX can be looked up and/or documented.
[ ] Suggest to add an overview section that highlights the purpose and audience of FX. I would also mention the explicit and direct vicinity to DevOps and GitOps
[ ]

New Findings (by Felix)
Projects

[ ] added new Details section with screenshot (add screenshot to source repo)
[ ] added new Charts section, with a Link to Charts page (add Charts page; add link to Charts page)


use mountpoint to check if /var/lib/docker is on separate partition

Signed-off-by: Julien Garcia Gonzalez<EMAIL_ADDRESS>Regarding the rule 1.1  - Ensure a separate partition for containers has been created, use mountpoint -q -- /var/lib/docker to validate /var/lib/docker is mounted.
For eg, on Container Linux, there no fstab, and partition are mounted via systemd

Thanks!


Re-integrate ERM data

KZN provinces are not getting location data in the new database. province is spelled differently in the new database (there's an extra "-" in the vocabulary tree.

Fixed via the tool to identify bad vocabularies


Roadmap

Hi there SK,
I saw this site and immediately wondered if you have some of their features are on your roadmap.
_https://material-ui.com/components_
THE SPECIFIC FEATURES THAT I THOUGHT WERE REALLY GOOD WERE:
Grid List
Box
Breadcrumbs
Tabs - I don't like their implementation - It is never clear if the tabs are selected.....
Tooltips
Combo box
Data Grid - Columns and rows
Speed Dial
Time Lines
Totally amazing - Edit Web site Colors (Edit Themes ,,, this is seriously needed to accommodate client colors.
Beyond that what about a set of buttons on semi-circle axis
Is there an email account that I can use to directly contact you - there are a few things I would like ask but not in a public forum.

Hey thanks.
Yes. I wish to have all components from material-ui to be ported in skclusive-ui. it takes time (material-ui is huge) and as of now i am a single contributor (part-time) to skclusive-ui (it seems not good at marketing or collaborating (need to improve)).
so there is no fixed roadmap. based on my availability i pick and port.
post 5.2.0 release, already following components are ported in skclusive.material.lab https://github.com/skclusive/Skclusive.Material.Lab/tree/develop
Accordion
Skeleton
Popper
Tooltip
Box (partially in docs repo)
Next looking into:
Breadcrumbs
Yes. Themes already are configurable. Need documentation sample though.
you can reach me at<EMAIL_ADDRESS>https://github.com/skclusive some info here.


Added Chocolate Distribution solution in java

Description
I have added the solution of Chocolate Distribution solution in java.
Fixes #300
Replace issue_no with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

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

Checklist:

[ ] My code follows the style guidelines(Clean Code) of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

I have been trying to push my PR from last 2 days but when I push the code nothing happens.
I have tried to search on google but could not find the solution!!
Can you share the commands you made in git from cloning till the end. Because no changes are made when I push my code!!

@shruti29s u were not assigned this issue then why did u send the PR?

@Amit366 Sorry, I don't know about this. I will keep this in mind in future.


Low resolution blocky preview for all visual file types (video, image, pdf, doc etc..)

Can anyone help? I am getting really weird low resolution previews for all visual file types, I'm using kitty terminal. Viewing images on kitty works fine with icat.
Image

video

PDF

Doc

It looks like something chafa could do. Can you try to add set forcekitty to your ctpv config?

Unfortunately I can't try that anymore, I was using Linuxmint before but I switched to Fedora 38 a couple of days ago and everything works just fine now. 😅

Oh, glad to hear that it's fixed!


Add  v1.26 Deprecations and Removals blog article

Adding the initial version of the v1.26 Deprecations and Removals blog article, which will also include some Major Changes for some of the features that are now Stable. The publication date is approximately as discussed with the release team (one extra day to allow changes).
This version was shared in hackmd.io before and reflects the suggestions that were made during the initial discussion.

And also for the Release Lead, RN lead and Docs lead for the release:
/cc @leonardpahlke @ramrodo @krol3

Windows updates LGTM - Thanks!

Sorry, I apparently clicked the wrong button and removed all previously assigned reviewers  :/ Re-adding those that haven't replied yet.
For the Support of multiple protocols entry
/cc @bridgetkromhout @thockin
For the Azure and vSphere CSI migration entry
/cc @andyzhangx @divyenpatel

/assign @sftim

/hold
This PR includes announcements that should go into the v1.26 release blog article. As far as I understand it, this article should only cover deprecations and removals.
Ok to remove this hold once there is consensus about the way to process, and any related updates are already applied.

I've made a bunch of suggestions that I think will improve the article; what do you think?

They seem fine, I'll commit them during the next hours, thank you for the thorough review.

This PR includes announcements that should go into the v1.26 release blog article. As far as I understand it, this article should only cover deprecations and removals.
Ok to remove this hold once there is consensus about the way to process, and any related updates are already applied.

This is a good point: given the apparent lack of deprecations and removals, the discussion (on Slack) moved towards the desirability of an hybrid approach that also includes some user visible changes: I'm assuming your comment refers to the three selected graduations to Stable that appear near the end.
Since we ended up with more removals and deprecations than expected, including a significant one, I feel that there is no need for this, and that content can be perfectly reused in the Release article (the draft of which will be shared today).
@leonardpahlke , @ramrodo , thoughts?

@sftim newly graduated features removed and will be used (if applicable) in the Release article, I think this covers everything.
/unhold
/cc @leonardpahlke @ramrodo

Since we ended up with more removals and deprecations than expected, including a significant one, I feel that there is no need for this, and that content can be perfectly reused in the Release article (the draft of which will be shared today).

+1, sounds good to me, thanks :) Let's mention only deprecations and removals in this blog 👍

/lgtm

Great!
/lgtm

/assign @nate-double-u sftim

/assign @sftim

/assign @onlydole

Thank you, team! This looks good to me 🥳
/approve


Describe how to view/edit the idle timeout

[Enter feedback here]

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

ID: 802f720e-6a3d-c4f9-b646-789f53f80f11
Version Independent ID: ff8d3d52-9b1b-25a9-6833-fb7f3fa4e1cf
Content: Web terminal - Azure Databricks - Workspace
Content Source: databricks/clusters/web-terminal.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

Hi @william-cairns Thanks for reaching out. Could you please elaborate a bit on your feedback.
This channel is for driving improvements towards MS Docs, in case if this is a product related to question, we request you to please reach out in other forums like Microsoft Q&A or Stackoverflow. We have our engineers and other community members who will be happy to assist.
If you have a document which you are following and if you think it needs an update, please let us know about that here.
Thank you.

We will now proceed to close this thread as we have not heard back from you. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.


Parent addons not available to engine

Perhaps this is intended for separation of concerns purposes, but none of the parent application's addons are available to the in-repo-engine. Is there a way to make them available without having to duplicate the dependencies in the engine's package.json?

Nope. That is by design, as we want the dependencies of the Engine to be explicitly stated as that is needed to do the right thing during the build process.


Add option to automatically dismiss banner after a fixed number of seconds

I saw that in version 1 an implicit consent was possible. Why did it disappear in v2?
It would be nice if one could set a timer in seconds when the banner should disappear, implying an implicit consent of the visitor.

CookieConsent V2 does not have this by default, but CookieConsent V3 does.
There is now an option called dismissOnTimeout which will automatically dismiss the popup after the specified number of milliseconds.


What can you do with Wechaty sub-section of Introduction section

Improve the Introduction and Explanation sections project

Section
Sub-section
Technical Writer

Introduction
What can you do with Wechaty
Chris Estepa

This  is What can you do with Wechaty sub-section of the Introduction section

I actually feel like you could talk more in each section. Maybe you could have a talk with @huan to fulfill your content?

Thanks for looping me in! I agree that we need to learn more from the history / stories from Wechaty so that we can write better docs. Please feel free to ask me any questions when there's any need.
And we have lots of blog posts on our website (you can use Google Translate to read them @nibble0101 ) which I believe will help as well.

@huan Can you give some more information on the business problems that have been solved by using Wechaty so I can elaborate further? Thanks.

No problem! I'd like to loop @lijiarui in this thread and I believe she can share lots of information on the business problems that have been solved by using Wechaty because her company business is building on top of Wechaty.

@chris-4444
First, I would like to introduce Juzibot:
JuziBot is a startup that provides smart marketing and sales services for customers on WeChat and WeCom platforms, the company helps companies build secure and stable Private Traffic, as well as helps corporate clients with customer acquisition and sales conversion. JuziBot currently serves customers in education, consumer, healthcare, and a few other industries, some of the clients include Meituan Dianping, JingDong, L'Oréal, etc., and 80% of these existing customers have been acquired through word of mouth. JuziBot's products have been known to improve the sales experience for one million sales professionals on a daily basis.
The company was accepted by the highly competitive Baidu AI accelerator in 2018, and it has also been invested by a number of leading VCs including PreAngel, Plug and Play, Y Combinator, TSVC, and Alpha Startups. JuziBot received the CCFA Retail Technology Rising Enterprise Award in 2018. In 2018 and 2019, respectively, the company won 1st place in both the task-based human-machine dialogue response naturalness and the chat-type human-machine dialogue assessment in the SMP Chinese Human-Machine Dialogue Technology Evaluation held by the Chinese Information Processing Society of China (CIPSC).
Second, I would like to describe more about the problem
You can find our 2 minutes speech in YC Demo Day show our business on top of Wechaty in 2019. (We changed our name from BotOrange to Juzibot, but all of the two brands belong to us.)
We are Intercom for WeChat, we help companies to acquire, engage and retain customers via WeChat. In China, WeChat IS the internet. Most Chinese people, they even never open a web browser, they only use WeChat.   But WeChat offers no tools for companies to manage their customers.  There is no Google Analytics, there is no salesforce, there is no intercom. There is nothing. But they need a tool.
We built a customer management tool for WeChat based on WeCom. It is very similar to Intercom. It provides a customer support ticket, includes a chatbot, and provides analytics to the business.
We give Chinese companies the ability to communicate with their customers where they live their life - on WeChat.
Here are two articles that show more about the business:

Intercom for WeChat, Why I create Juzibot
How can brands build private traffic to own their customer traffic
Juzibot provide chatbot and martech tools to help you get customer better based on WeChat
What is Juzibot
Microsoft MVP Blog: Six Lines Of Code. Two MVPs. One Chatbot.

Hope it can help a lot, and feel free to contact me if you have more questions.

@lijiarui It's a great introduction to Juzi.BOT! It will be great if you can add the above content to https://pre-angel.com/portfolios/juzibot/ for the English version.

hi @Rohitesh-Kumar-Jain As GSoD Project PR Review Rules in https://github.com/wechaty/wechaty.js.org/issues/1045
This PR should follow our rules and get enough approval, then I will review this PR. So I remove the ready to merge tag and feel free to add this tag when it gets enough approval.

@chris-4444 I would like you to once go through the PR, and approve when you think it's ready to get merged.

And I suggest adding some of the information https://github.com/wechaty/wechaty.js.org/pull/873#issuecomment-846589160 I wrote in the blog.

Pls resolve merge conflicts as well, so that we can proceed towards the merge

Pls resolve merge conflicts as well, so that we can proceed towards the merge

Hi @Rohitesh-Kumar-Jain.  The merge conflicts have been fixed. Is there anything else?

Pls resolve merge conflicts as well, so that we can proceed towards the merge

Hi @Rohitesh-Kumar-Jain. The merge conflicts have been fixed. Is there anything else?

No, you implemented the requested changes, so I think I am just waiting for @lijiarui approval for the merge


Creating missing LWCs and QAs

The project did not have LWCs for editContactRecord and editOpportunityRecord. Also, did not have quick actions pre-defined for Contat.create, Contact.edit, and Opportunity.create|edit|view.
@khawkins @sfdctaka @maliroteh-sf @AdamLiechty

@khawkins 👍  the original reason for excluding these LWCs was minimalism: Create the minimum number of examples from which to build a complete solution. But adding these better fulfills the goal of having a more unified, complete example from which to start. If a particular implementation does not need any of these quick actions or LWCs, they can easily be removed.


update Dockerfile and env to match new model source option

update Dockerfile and env to match new model source option

I was thinking about adding this option in the Python code yesterday. You are really efficient.

Hi, thanks for the contribution.
I just like the project so I'm working on it, still have ideas for development )


Javascript errors + can't open program

OS: Windows 10 Pro 64bit
Issue Descriptions: Player used to work fine, errored out with Javascript messages and crashed, has refused to reopen for a month now. Restarted computer, uninstalled Windows Updates, deleted & reinstalled player, etc. no fix. Trying to open now results in this: http://i.imgur.com/PixdcEE.png
Steps to Reproduce:
Don't know what caused it but it happened out of the blue, I left the app open overnight and came back, played Graduation by Kanye West and it started erroring but continued working, crashed and then wouldn't work anymore.

Looks like your settings file is corrupt, maybe try deleting it and restarting the app?

where is the settings file located?

I was trying to recall, but it's either in %appdata% or %localappdata% and then under GPMDP_3 or Google Play Music Desktop Player and its called .settings.json

I've had enough of these issues, I'll try patch this with a bunch of try { .. } catch { .. }


AWS KMS/IAM integration?

I'm trying to setup Hiera/eyaml on my infrastructure.
In my mockup, I simply created one set of private/public keys, had puppet distribute them onto all hosts and encrypted everything with those keys.
But now I'm trying to recreate this again, this time in separate AWS accounts, new secrets and different eyaml encryption for each environment.
It would be nice if I somehow could use the existing AWS infrastructure for this (such as IAM Roles and KMS keys/secrets). But I'm a little unsure how to do this in the most efficient and secure way.
Because eyaml requires both the public and secret key to be on the host that needs to decrypt a hiera-eyaml secret, it's somewhat difficult to keep the "blast radius" as small as possible.
Is there any "best practices" on how to actually use hiera-eyaml in a production environment, preferably in AWS?

I have seen an example at https://github.com/adenot/hiera-eyaml-kms but I have not tried it out personally.

Looks nice, thanx!
I ended up using the new Parameter Store to put the Hiera/Eyaml keys in, then have those readable only to specific instance profiles. Those Hiera/Eyaml keys are then "extracted" from the Parameter Store by the/my bootstrap script (that runs on all instances being created) and put where needed.
So the instance is running on/with a specific profile, which only have access to decrypt the keys for that instance (this controlled with policies on both the KMS key and on the Role that's "attached to" the instance profile).
It's not pretty, but it "kinda works". I'm going to try that hiera-eyaml-kms plugin/module one of these days, because that's a much cleaner solution.
For posterity:
KMS key policy to allow decrypt and describe
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": [
          "arn:aws:iam::<ACCOUNT_ID>:role/<ROLE>"
        ]
      },
      "Action": [
        "kms:Decrypt",
        "kms:DescribeKey"
      ],
      "Resource": "*"
    }
  ]
}

Role policy to allow getting the parameter
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ssm:DescribeParameters"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:GetParameters"
      ],
      "Resource": [
        "arn:aws:ssm:<REGION>:<ACCOUNT_ID>:parameter/<PARM_PREFIX>.*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "kms:Decrypt"
      ],
      "Resource": [
        "<KMS_KEY_ARN>"
      ]
    }
  ]
}

That policy is then attached to the role marked as <ROLE> in the key policy. And the role is then attached to the/a instance profile and that profile is attached to the instance.

I haven't tried it, but I wonder if the hiera-eyaml-gpg module would work with the hiera-eyaml-kms plugin, facilitating key rotation provided new and old are within the same ring of trust.
The hiera-eyaml-gpg module is near. Ecause it creates an encryption key for the day, and then each authorized key gets the file's key encrypted for each of them to use, so that they can still access the secrets without sharing the same key

@rnelson0 Because my "fix" isn't technically related to Hiera-eyaml at all but instead is an AWS setup thing, I don't see the point to document it (here).
If you think this is of value anyway, then by all means add a line or two to the README.md, linking to my comment above. I think that would be the simplest. That way, people could contribute to it here.

@FransUrbo I don't like linking to an issue that's closed if there's a possibility of comments. How about creating a gist and I can link to that?

Ok, how does this look: https://gist.github.com/FransUrbo/88b26033cb513a8aa569bd5392a427b1

If you change the type to markdown (.md) it should look a lot better. I'll
take a look at integrating that into the docs later today, thanks!

Ah, cool! I was wondering on how to do that! Updated, thanx!


code coverage

use Codecov for code coverage

Codecov Report

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

@@            Coverage Diff             @@
##             develop     #225   +/-   ##
==========================================
  Coverage           ?   98.82%
==========================================
  Files              ?       43
  Lines              ?      427
  Branches           ?       77
==========================================
  Hits               ?      422
  Misses             ?        5
  Partials           ?        0

Continue to review full report at Codecov.

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


[UUID Generator] I need upper uuid

Extension – UUID Generator
Author:

Now uuid show me the lower uuid, I need upper uuid. plz

Here you go @shanxik 🙂


workspace object + exec() command

On the feature-dashboards branch in Tutorial 20, running this code
from pygsti.report import workspace
w = workspace.Workspace()

Gave rise to this SyntaxError:
File "/Users/tlschol/Desktop/pyGSTi/packages/pygsti/report/workspace.py", line 158
    exec(factory_func_def, exec_globals) #Python 3
SyntaxError: function 'makefactory' uses import * and bare exec, which are illegal because it is a nested function

In pygsti/report/workspace.py, the relevant lines are
exec_globals = {'cls' : cls, 'self': self}
if _sys.version_info > (3, 0):
    exec(factory_func_def, exec_globals) #Python 3
else:
    exec("""exec factory_func_def in exec_globals""") #Python 2

A similar issue arises if you comment out the first part of the if/then, and have the interpreter check the other line:
File "/Users/tlschol/Desktop/pyGSTi/packages/pygsti/report/workspace.py", line 161
    exec("""exec factory_func_def in exec_globals""") #Python 2
SyntaxError: unqualified exec is not allowed in function 'makefactory' because it is a nested function

This syntax error prevents the creation of the workspace object, which in turn blocks the user from executing any of the remaining code in Tutorials 20, 21, or 22.
The system I am using has pygsti 0.9.3, and Python 2.7.12 :: Anaconda custom (x86_64).

Thanks for noticing this Travis.  I had only been testing with Python3.  I think commit 1a98c84999087689454b7f13c937133f5b986356 to feature-dashboards fixes the issues with running the Tutorials.  Please try again and let me know if you still encounter issues.

The workspace object is now operating! The tutorials run.

Closing this issue.


Create content for wrfcloud.com homepage

Describe the New Feature
Per Issue #90, the wrfcloud.com domain will serve as the public access point to get information about the project, with a new subdomain called app.wrfcloud.com to host all of the forecast running/viewing.
This issue to create the content for that wrfcloud.com homepage. Content will include:

Brief description of project
Contact form

Acceptance Testing
View wrfcloud.com and proof read content.
Time Estimate
1-2 days
Sub-Issues
Consider breaking the new feature down into sub-issues.

[ ] Add a checkbox for each sub-issue here.

Relevant Deadlines
December 5, 2022 (before AGU with time to test and refine)
Define the Metadata
Assignee

[x] Select engineer(s) or no engineer required
[x] Select scientist(s) or no scientist required

Labels

[x] Select component(s)
[x] Select priority

Projects and Milestone

[x] Select Project
[x] Select Milestone as the next official version or Backlog of Development Ideas

New Feature Checklist

[ ] Complete the issue definition above, including the Time Estimate and Funding source.
[ ] Fork this repository or create a branch of develop.
Branch name: feature_<Issue Number>/<Description>
[ ] Complete the development and test your changes.
[ ] Add/update log messages for easier debugging.
[ ] Add/update tests.
[ ] Add/update documentation.
[ ] Push local changes to GitHub.
[ ] Submit a pull request to merge into develop.
Pull request: feature <Issue Number> <Description>
[ ] Define the pull request metadata, as permissions allow.
Select: Reviewer(s), Project, and Development issue
Select: Milestone as the next official version
[ ] Iterate until the reviewer(s) accept and merge your changes.
[ ] Delete your fork or branch.
[ ] Close this issue.

Initial homepage content has been filled.


Conrefing of simple tables leads to duplicated content in PDF

DITA-OT 2.1.1 running on Windows 64-bit edition.
Content is repeated three times in each table cell or table header. The attached ZIP includes a small source sample and output from both 1.8.5 and 2.1,
test-files-for-DITA-OT-project.zip

Unable to reproduce with 2.2.2.

I think there are gremlins in my laptop. I reinstalled DITA-OT 2.1.1 and do not have the problem.


[CELEBORN-1566] Update docs about using HDFS

What changes were proposed in this pull request?
update client deployment doc to include the param (spark.celeborn.storage.activeTypes)
Why are the changes needed?
Just provide a hint for users, otherwise they may miss this param.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Yes

plz review this PR. Thanks @FMX

It looks like the UT failures are not relevant to this PR.  The README file should be updated too.

It looks like the UT failures are not relevant to this PR. The README file should be updated too.

Done. Thanks.

seems duplicated with https://github.com/apache/celeborn/pull/2675

seems duplicated with #2675, If you don't mind, we may need to close this PR.

OK. It's ok for me.

This is not duplicated with #2675 . Updating different part of the docs , and for different purposes.

Thank you for clarifying, you are correct.

merge to main(v0.6.0)


ValueError: {dt} not found

if one day's position contains the following two entries:
(dt, None, 0, 0, 0),
(dt, "xxxxxx.XSHG", 100, 100, 0)

then position extending action will be skipped. And if there's no operation on date dt + 1, dt + 2, then these days will have no position entry(an empty entry is needed), thus the following exception may raises:
2022-06-23 02:31:06,940 E 16 backtest.common.helper:decorated_function:89 | 2020-03-18 not found
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/backtest/common/helper.py", line 81, in decorated_function
    result = await f(request, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/backtest/web/interfaces.py", line 241, in sell_percent
    result = await request.ctx.broker.sell(security, price, volume, order_time)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 1055, in sell
    return await self._sell(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 1136, in _sell
    return await self._fill_sell_order(en, mean_price, filled)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 1035, in _fill_sell_order
    await self._update_assets(refund, en.bid_time)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 938, in _update_assets
    await self.recalc_assets(end)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 265, in recalc_assets
    position = self.get_position(end, position_dtype)
  File "/usr/local/lib/python3.8/dist-packages/backtest/trade/broker.py", line 228, in get_position
    raise ValueError(f"{dt} not found")
ValueError: 2020-03-18 not found

when re-calcing assets

fixed in 8990a43e9c837dc07301033e6ac914e8ae8d08c9


Logical partitioning: support for updates and stream records

The main purpose is to support updates and stream records when using logical/hash partitioning. Also, encoding of context + virtualTableName + bucket in the physical hash key has been changed to be length-based so that we can potentially use non-string contexts.
Notes:

For mapping update expressions and query key condition expressions, both hash and random partitioning now share largely the same logic for parsing and processing. As a result, random partitioning now supports BETWEEN in query range key conditions. Random partitioning's filter expression mapping is still using the existing logic, since it's a no-op for hash partitioning.
The test ArgumentBuilder now includes the hash partitioning strategy as well. There is some refactoring to make it easy to skip a particular strategy, because there is one test case in UpdateTest that we want to skip for hash partitioning, since it updates only one but not all fields of a secondary index.
I think a lot of streaming tests still use random partitioning since that's the default in the shared table builder. I didn't change all of them. I just added hash partitioning as one of the strategies in MtAmazonDynamoDbStreamsBaseTest.

Codecov Report

Merging #611 into master will increase coverage by 0.41%.
The diff coverage is 93.02%.

@@             Coverage Diff              @@
##             master     #611      +/-   ##
============================================
+ Coverage     82.54%   82.95%   +0.41%
- Complexity      905      933      +28
============================================
  Files            63       64       +1
  Lines          4101     4143      +42
  Branches        511      510       -1
============================================
+ Hits           3385     3437      +52
+ Misses          472      467       -5
+ Partials        244      239       -5

Impacted Files
Coverage Δ
Complexity Δ

...dbv2/mt/mappers/sharedtable/impl/MappingUtils.java
94.44% <100%> (+35.62%)
11 <1> (+4)
:arrow_up:

...aredtable/impl/RandomPartitioningTableMapping.java
100% <100%> (ø)
26 <2> (+2)
:arrow_up:

...modbv2/mt/mappers/MtAmazonDynamoDbStreamsBase.java
73.49% <100%> (ø)
14 <1> (ø)
:arrow_down:

...s/sharedtable/impl/HashPartitioningItemMapper.java
100% <100%> (ø)
19 <0> (ø)
:arrow_down:

...dbv2/mt/mappers/sharedtable/impl/RecordMapper.java
100% <100%> (ø)
11 <11> (?)

...sharedtable/impl/HashPartitioningTableMapping.java
100% <100%> (+31.57%)
13 <5> (+8)
:arrow_up:

...pers/sharedtable/impl/AbstractConditionMapper.java
90.41% <90.41%> (ø)
16 <16> (?)

...dtable/impl/RandomPartitioningConditionMapper.java
97.11% <90.62%> (-1.08%)
40 <14> (-11)

...rs/sharedtable/impl/HashPartitioningKeyMapper.java
87.96% <91.66%> (+3.11%)
12 <0> (ø)
:arrow_down:

...redtable/impl/HashPartitioningConditionMapper.java
91.15% <95.83%> (+6.84%)
11 <8> (+7)
:arrow_up:

... and 8 more

Continue to review full report at Codecov.

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


fix: Node-RED stuck in endless loop when using external instable plugins

fix: Node-RED stuck in endless loop when using external instable plugins (Fixes #551)
feat: allow adding environment variables to Node-RED (Fixes #546)
fix(Node-RED): plugin installation does not get stuck anymore (Fixes #553)

FYI: currently updating the link checker as it does not detect broken links in the PR (it detects it only when it is already too late and its in production). Will merge once i get it running


Update to base-<IP_ADDRESS> (GHC 9.4.8)

This is not really to be merged to master, but rather make it available through a dedicated branch or tag.

As discussed, keeping the history linear can be difficult. The master branch does not have to follow the exact history of base, so long as each version is reachable.


Build fails with Python 3.5.0 & SWIG 3.0.10 & g++ 4.8.1

System is RHEL 6.4 with gcc 4.8.1 and SWIG 3.0.10 and Python 3.5.0 installed.
Firstly, python/setup.py is not Python3 clean: it uses print statements rather than print() functions. After running it through 2to3, the build fails with a few occurences of this error:
g++: ../src/paratext_internal_wrap.cxx
In file included from ../src/paratext_internal_wrap.cxx:3140:0:
../src/python/numpy_helper.hpp: In member function ‘string_array_output_iterator& string_array_output_iterator::operator++()’:
../src/python/numpy_helper.hpp:218:75: error: ‘PyString_FromStringAndSize’ was not declared in this scope
     PyObject *s = PyString_FromStringAndSize(output.c_str(), output.size());

Modifying src/python/numpy_helper.hpp to replace "PyString_FromStringAndSize()" with "PyUnicode_FromStringAndSize()" makes the build succeed.
Perhaps something like this is required to support both Python2 and Python3.

Hi,
Thanks for your bug report. It was a bit of a challenge to maintain both Python 2 and 3 support manually. We discovered issues such as this one you found while we built out the automated test suite. Now that our Travis build system is complete and automated Python 2&3 builds, we don't expect this bug to surface again.
https://travis-ci.org/deads/paratext
Python 2.x's PyString_XXX makes no assumptions about the underlying encoding of the data, while PyUnicode_XXX assumes the data is a sequence of valid codepoints. In Python 2.7, the internal string does not need to be a valid sequence of Unicode codepoints (e.g. u"\uDCFF" works in Python 2, but not 3). In Python 3.x, I believe no Unicode string can be constructed unless it is sequence of valid codepoints. In the case where the data is loaded from a file and no assumption can be made about its encoding, one must be a bit more delicate. For Python 3, PyBytes_XXX` can be used for this purpose.
Best,
Damian


11.1 Update

Since very lately (today if I'm not mistaken), update 11.1 rolled out.
Obviously, I didn't know about it and updated my new N3DS as asked in Part 3, after seeing that "Yes, it's safe, stop asking".
Please add a warning !

It is safe because you can go back to your old firmware. But the questions now are these: "Is there another way to DSP DUMP/how important is the DSP DUMP? Can we skip it?"

I don't know what a DSP dump is actually, and I'm for now letting the system run "as is" without trying an update for the next days.
I can install CIAs fine, the system runs smoothly.

It allows homebrew games/applications to have sound/music If your not gonna use homebrew games or applications that have sound you can skip it.
Sent from my iPhone

On Sep 13, 2016, at 4:01 PM, Nicolas Glassey<EMAIL_ADDRESS>wrote:
I don't know what a DSP dump is actually, and I'm for now letting the system run "as is" without trying an update for the next days.
I can install CIAs fine, the system runs smoothly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you !

if you have finished the guide it is safe to update to 11.1, right? or are there some problems if i do that

I ran into some issues with Menuhax not loading past the "parsing config" line.
Had to copy/paste an older version from another console to get it working.
Otherwise everything runs smoothly. I'm currently installing dozens of CIAs with FBI (tested both the Health&Safety and the homebrew direct from menu, both work fine).
I can say you can update.

Guys, update 11.1 rolled out only yesterday! Give time for @Plailect to see what changed and update the guide! He needs to wait for the homebrew developers (smea and/or yls8) to update the entrypoints. So please be patient!

There is a problem updating to 11.1 and that is, ATM, the homebrew launcher doesn't work. This should be a problem only for a matter of days and should be fixed soon, as said in this GBATemp post

Right, actually forgot to mention that....

Yeah that's why dspdump and any other Homebrew app will be useless- there's no 11.1 payload for HBL so HBL doesn't boot on 11.1 yet.

So if I updated am I screwed? Is there a way to downgrade back to 11 and have the homebrew launcher work?

DimSpirit, as I said earlier wait for for @Plailect update the guide and the homebrew developers to update the payloads.

https://twitter.com/smealum/status/775915581379706880


check output conditions with single statement (#1450 unrevert)

GET /outputs fails for specific transactions with thresholds
Invoked on the fastquery branch - but probably also on current master
Stacktrace
  File "/home/dimi/code_ascribe/kyber/bigchaindb-server/bigchaindb/web/views/outputs.py", line 26, in ge
t
    include_spent)
  File "/home/dimi/code_ascribe/kyber/bigchaindb-server/bigchaindb/core.py", line 400, in get_outputs_fi
ltered
    outputs = self.fastquery.get_outputs_by_pubkey(owner)
  File "/home/dimi/code_ascribe/kyber/bigchaindb-server/bigchaindb/fastquery.py", line 45, in get_output
s_by_pubkey
    for tx in txs
  File "/home/dimi/code_ascribe/kyber/bigchaindb-server/bigchaindb/fastquery.py", line 47, in <listcomp>
    if output_has_owner(o, pubkey)]
  File "/home/dimi/code_ascribe/kyber/bigchaindb-server/bigchaindb/utils.py", line 125, in output_has_ow
ner
    return output['condition']['details']['public_key'] == owner
KeyError: 'public_key'

Testvector
{
  "inputs": [
    {
      "fulfills": null,
      "fulfillment": "cf:4:W0dEBH4MFkphXyUzeuY04q8z2visobk5dtiggDfGdOeEzY975pWXZ-nIUHHZ-XDKHha-hiWFs-ido88fPS_fCOmskfpbaB_-yhkVGlc-bdx6irzpD6fWkuRHoe5V0usH",
      "owners_before": [
        "79K8SPZbeSDYXBrWgt3dsNmYTZbKNtdYQ5XrjA9XEWfG"
      ]
    }
  ],
  "id": "c6de675dfef4411c37c2adef80c8ece82740fb48f991613f3d8222029297e3a7",
  "asset": {
    "data": {
      "frequency": 5,
      "timestamp": "1493639461",
      "item": "shirt"
    }
  },
  "operation": "CREATE",
  "metadata": null,
  "outputs": [
    {
      "public_keys": [
        "79K8SPZbeSDYXBrWgt3dsNmYTZbKNtdYQ5XrjA9XEWfG"
      ],
      "amount": "1",
      "condition": {
        "details": {
          "subfulfillments": [
            {
              "signature": null,
              "public_key": "79K8SPZbeSDYXBrWgt3dsNmYTZbKNtdYQ5XrjA9XEWfG",
              "weight": 1,
              "type_id": 4,
              "type": "fulfillment",
              "bitmask": 32
            },
            {
              "subfulfillments": [
                {
                  "hash": "5wbD6GsVBReHetMUw17QcNne8BjB1xSKRoU4JYpafEx5",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 5,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "EuNEkS8TUYaTngMPGiS3DHdApYBf2YYQVdg3hHHTnPDx",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 11,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "Ay3VvUjfEnEhCWxJMGLGBpWTS5iu2nVB64wcsYkPnCqd",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 5,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "H7nD6xkFRm99GzAxvA5JG8DQSZBEGdiUdnYuh7714vMW",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 10,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "8EmZwLhhFAZ9QgHgHfgMokfQ2CfzXaLbyEz4uaXaJyq4",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 7,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "DFf8KSmzgHEarJ2RPJmyDGTvnS8E8MjxkDNVjNsUN8Hr",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 8,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "3qUBtEhzGazLRTM9c3JWKGPTnrkgxbtEoezh7WaJuJBS",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 3,
                  "type": "condition",
                  "bitmask": 3
                },
                {
                  "hash": "4w6YMt6nH3oSsA1uTk6Vmqvqsa9eSquKSAxWtDWPrzTg",
                  "type_id": 0,
                  "weight": 1,
                  "max_fulfillment_length": 4,
                  "type": "condition",
                  "bitmask": 3
                }
              ],
              "weight": 1,
              "type_id": 2,
              "type": "fulfillment",
              "bitmask": 11,
              "threshold": 3
            }
          ],
          "type_id": 2,
          "type": "fulfillment",
          "bitmask": 43,
          "threshold": 2
        },
        "uri": "cc:2:2b:VC7Jv-cUz8xcnSSR11K4nGe0myDWrmOaf3LFfwYPOwQ:358"
      }
    }
  ],
  "version": "0.9"
}

TODO

[x] check why the statement for a single list item was there
[ ] write test to reproduce stacktrace above with testvector
[ ] @sbellem shim cryptoconditions-specific utils ie condition_details_has_owner (see also CC utils in Kyber)

Codecov Report

Merging #1470 into master will decrease coverage by 0.03%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master    #1470      +/-   ##
==========================================
- Coverage   98.38%   98.34%   -0.04%
==========================================
  Files          56       56
  Lines        2595     2594       -1
==========================================
- Hits         2553     2551       -2
- Misses         42       43       +1

@diminator is this still a problem with the latest master?

No, It's still a problem...
https://github.com/bigchaindb/bigchaindb/blob/master/bigchaindb/utils.py#L117

check why the statement for a single list item was there

It was there to check if we needed to look for the public key in the condition details or in the subfulfillments in the case of threshold condition.
This is because we were not expecting hashlocks so a threshold condition would always have multiple public keys.
Also agree that output_has_owner does not need to make this check since condition_details_has_owner already takes care of all the cases.

ok, so how do we proceed?
merge as is or plan it further?

I assigned @r-marques and @libscott to take care of this for the upcoming QA week.

The report bug is fixed.
I would just like to refactor the code a bit more since I found this issue #1367

This also resolves #1367